Skip to content

Commit

Permalink
Bump safe-eth-py[django] from 6.0.0b34 to 6.0.0b35 (#172)
Browse files Browse the repository at this point in the history
* Bump safe-eth-py[django] from 6.0.0b34 to 6.0.0b35

Bumps [safe-eth-py[django]](https://github.com/safe-global/safe-eth-py) from 6.0.0b34 to 6.0.0b35.
- [Release notes](https://github.com/safe-global/safe-eth-py/releases)
- [Commits](safe-global/safe-eth-py@v6.0.0b34...v6.0.0b35)

---
updated-dependencies:
- dependency-name: safe-eth-py[django]
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update EthereumAddressBinaryField

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Felipe Alvarado <felipe@safe.global>
  • Loading branch information
dependabot[bot] and falvaradorodriguez authored Jul 24, 2024
1 parent f3a5dcc commit 50f9212
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 6 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ packaging>=21
pillow==10.4.0
psycopg2==2.9.9
requests==2.32.3
safe-eth-py[django]==6.0.0b34
safe-eth-py[django]==6.0.0b35
web3==6.20.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Generated by Django 5.0.7 on 2024-07-24 15:13

from django.db import migrations

import gnosis.eth.django.models


class Migration(migrations.Migration):

dependencies = [
("campaigns", "0006_campaign_icon_campaign_is_promoted_and_more"),
]

operations = [
migrations.AlterField(
model_name="activity",
name="address",
field=gnosis.eth.django.models.EthereumAddressBinaryField(),
),
]
4 changes: 2 additions & 2 deletions safe_locking_service/campaigns/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from eth_typing import ChecksumAddress
from hexbytes import HexBytes

from gnosis.eth.django.models import EthereumAddressV2Field
from gnosis.eth.django.models import EthereumAddressBinaryField


def get_campaign_icon_path(instance: "Campaign", filename):
Expand Down Expand Up @@ -129,7 +129,7 @@ class Activity(models.Model):
period = models.ForeignKey(
Period, on_delete=models.CASCADE, related_name="activities"
)
address = EthereumAddressV2Field()
address = EthereumAddressBinaryField()
total_points = models.PositiveBigIntegerField()
boost = models.DecimalField(max_digits=15, decimal_places=8)
total_boosted_points = models.DecimalField(max_digits=15, decimal_places=8)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Generated by Django 5.0.7 on 2024-07-24 15:13

from django.db import migrations

import gnosis.eth.django.models


class Migration(migrations.Migration):

dependencies = [
("locking_events", "0003_ethereumtx_confirmed_and_more"),
]

operations = [
migrations.AlterField(
model_name="lockevent",
name="holder",
field=gnosis.eth.django.models.EthereumAddressBinaryField(),
),
migrations.AlterField(
model_name="statuseventsindexer",
name="contract",
field=gnosis.eth.django.models.EthereumAddressBinaryField(
primary_key=True, serialize=False, unique=True
),
),
migrations.AlterField(
model_name="unlockevent",
name="holder",
field=gnosis.eth.django.models.EthereumAddressBinaryField(),
),
migrations.AlterField(
model_name="withdrawnevent",
name="holder",
field=gnosis.eth.django.models.EthereumAddressBinaryField(),
),
]
6 changes: 3 additions & 3 deletions safe_locking_service/locking_events/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from web3.types import EventData

from gnosis.eth.django.models import (
EthereumAddressV2Field,
EthereumAddressBinaryField,
Keccak256Field,
Uint32Field,
Uint96Field,
Expand Down Expand Up @@ -95,7 +95,7 @@ class CommonEvent(models.Model):
timestamp = models.DateTimeField()
ethereum_tx = models.ForeignKey(EthereumTx, on_delete=models.CASCADE)
log_index = Uint32Field()
holder = EthereumAddressV2Field()
holder = EthereumAddressBinaryField()
amount = Uint96Field()

def get_serialized_timestamp(self) -> str:
Expand Down Expand Up @@ -208,7 +208,7 @@ def create_instance_from_decoded_event(


class StatusEventsIndexer(models.Model):
contract = EthereumAddressV2Field(primary_key=True, unique=True)
contract = EthereumAddressBinaryField(primary_key=True, unique=True)
deployed_block = models.PositiveIntegerField()
last_indexed_block = models.PositiveIntegerField()

Expand Down

0 comments on commit 50f9212

Please sign in to comment.