You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-15Lines changed: 19 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,8 @@ indexes:
55
55
hen_mainnet:
56
56
kind: operation
57
57
datasource: tzkt_mainnet
58
-
contract: HEN_minter
58
+
contracts:
59
+
- HEN_minter
59
60
handlers:
60
61
- callback: on_mint
61
62
pattern:
@@ -125,19 +126,21 @@ class Token(Model):
125
126
Now take a look at `handlers` module generated by `init` command. When operation group matching `pattern` block of corresponding handler at config will arrive callback will be fired. This example will simply save minted Hic Et Nunc tokens and their owners to the database:
126
127
127
128
```python
128
-
from demo_hic_et_nunc.models import Holder, Token
129
-
from demo_hic_et_nunc.types.hen_minter.parameter.mint_objkt import MintOBJKT
130
-
from demo_hic_et_nunc.types.hen_objkts.parameter.mint import Mint
131
-
from dipdup.models import HandlerContext, OperationContext
129
+
import demo_hic_et_nunc.models as models
130
+
from demo_hic_et_nunc.types.hen_minter.parameter.mint_objkt import MintOBJKTParameter
131
+
from demo_hic_et_nunc.types.hen_minter.storage import HenMinterStorage
132
+
from demo_hic_et_nunc.types.hen_objkts.parameter.mint import MintParameter
133
+
from demo_hic_et_nunc.types.hen_objkts.storage import HenObjktsStorage
134
+
from dipdup.models import OperationContext, OperationHandlerContext
0 commit comments