-
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing config docstrings, bump deps and testnet, update demo_eve…
…nts (#600)
- Loading branch information
1 parent
0d065c8
commit d8fd819
Showing
92 changed files
with
494 additions
and
698 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
demos/demo-events/src/demo_events/handlers/on_events_no_payload_option.py
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
demos/demo-events/src/demo_events/handlers/on_events_no_payload_unit.py
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
demos/demo-events/src/demo_events/handlers/on_events_no_payload_unknown.py
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
demos/demo-events/src/demo_events/handlers/on_events_null_none.py
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
demos/demo-events/src/demo_events/handlers/on_events_null_unknown.py
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
demos/demo-events/src/demo_events/handlers/on_events_tzconst_option.py
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
demos/demo-events/src/demo_events/handlers/on_events_tzconst_unit.py
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
demos/demo-events/src/demo_events/handlers/on_events_tzconst_unknown.py
This file was deleted.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
...c/demo_events/handlers/on_events_xrate.py → ...src/demo_events/handlers/on_move_event.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
from demo_events import models as models | ||
from demo_events.types.events.event.xrate import XratePayload | ||
from demo_events.types.events_contract.event.move import MovePayload | ||
from dipdup.context import HandlerContext | ||
from dipdup.models import Event | ||
|
||
|
||
async def on_events_xrate( | ||
async def on_move_event( | ||
ctx: HandlerContext, | ||
event: Event[XratePayload], | ||
event: Event[MovePayload], | ||
) -> None: | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...mo_events/handlers/on_events_null_null.py → ...src/demo_events/handlers/on_roll_event.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
from demo_events import models as models | ||
from demo_events.types.events_null.event.null import NullPayload | ||
from demo_events.types.events_contract.event.roll import RollPayload | ||
from dipdup.context import HandlerContext | ||
from dipdup.models import Event | ||
|
||
|
||
async def on_events_null_null( | ||
async def on_roll_event( | ||
ctx: HandlerContext, | ||
event: Event[NullPayload], | ||
event: Event[RollPayload], | ||
) -> None: | ||
... |
File renamed without changes.
File renamed without changes.
12 changes: 8 additions & 4 deletions
12
...c/demo_events/types/events/event/xrate.py → ...vents/types/events_contract/event/move.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
# generated by datamodel-codegen: | ||
# filename: xrate.json | ||
# filename: move.json | ||
|
||
from __future__ import annotations | ||
|
||
from pydantic import BaseModel | ||
from pydantic import Extra | ||
|
||
|
||
class XratePayload(BaseModel): | ||
class MovePayload(BaseModel): | ||
class Config: | ||
extra = Extra.forbid | ||
|
||
evxtz: str | ||
xtz: str | ||
address: str | ||
a: str | ||
b: str | ||
roll: str | ||
epoch: str | ||
rolls: str |
9 changes: 5 additions & 4 deletions
9
...nts/types/events_no_payload/event/unit.py → ...vents/types/events_contract/event/roll.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
# generated by datamodel-codegen: | ||
# filename: unit.json | ||
# filename: roll.json | ||
|
||
from __future__ import annotations | ||
|
||
from pydantic import BaseModel | ||
from pydantic import Extra | ||
|
||
|
||
class UnitPayload(BaseModel): | ||
pass | ||
|
||
class RollPayload(BaseModel): | ||
class Config: | ||
extra = Extra.forbid | ||
|
||
address: str | ||
bool: bool |
Empty file.
Empty file.
12 changes: 0 additions & 12 deletions
12
demos/demo-events/src/demo_events/types/events_no_payload/event/option.py
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file.
10 changes: 0 additions & 10 deletions
10
demos/demo-events/src/demo_events/types/events_null/event/none.py
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
demos/demo-events/src/demo_events/types/events_null/event/null.py
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file.
12 changes: 0 additions & 12 deletions
12
demos/demo-events/src/demo_events/types/events_tzconst/event/option.py
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
demos/demo-events/src/demo_events/types/events_tzconst/event/unit.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.