6
6
transactions = Hash ()
7
7
8
8
9
+ """
10
+ VARS :
11
+ {
12
+ '__name__': 'currency',
13
+ '__doc__': None,
14
+ '__package__': '',
15
+ '__loader__': <contracting.execution.module.DatabaseLoader object at 0xffff80027950>,
16
+ '__spec__': ModuleSpec(name='currency', loader=<contracting.execution.module.DatabaseLoader object at 0xffff80027950>),
17
+ 'Variable': <class 'contracting.stdlib.bridge.orm.V'>,
18
+ 'Hash': <class 'contracting.stdlib.bridge.orm.H'>,
19
+ 'ForeignVariable': <class 'contracting.stdlib.bridge.orm.FV'>,
20
+ 'ForeignHash': <class 'contracting.stdlib.bridge.orm.FH'>,
21
+ 'LogEvent': <class 'contracting.stdlib.bridge.orm.LE'>,
22
+ '__Contract': <class 'contracting.stdlib.bridge.orm.C'>,
23
+ 'hashlib': <module 'hashlib'>,
24
+ 'datetime': <module 'datetime'>,
25
+ 'random': <module 'random'>,
26
+ 'importlib': <module 'importlib'>,
27
+ '__export': <class 'contracting.stdlib.bridge.access.__export'>,
28
+ 'ctx': <contracting.execution.runtime.Context object at 0xffff96de05d0>,
29
+ 'rt': <contracting.execution.runtime.Runtime object at 0xffff96de2d50>,
30
+ 'Any': typing.Any,
31
+ 'decimal': <class 'contracting.stdlib.bridge.decimal.ContractingDecimal'>,
32
+ 'crypto': <module 'crypto'>,
33
+ '__Driver': <contracting.storage.driver.Driver object at 0xffff7ff93310>,
34
+ 'chain_id': 'test-chain',
35
+ 'now': 2025-01-08 15:50:00,
36
+ '__contract__': True,
37
+ '__balances': <contracting.stdlib.bridge.orm.H object at 0xffff80026b50>,
38
+ '__metadata': <contracting.stdlib.bridge.orm.H object at 0xffff80027710>,
39
+ '__permits': <contracting.stdlib.bridge.orm.H object at 0xffff80024a10>,
40
+ '__streams': <contracting.stdlib.bridge.orm.H object at 0xffff80025e10>,
41
+ '__TransferEvent': <contracting.stdlib.bridge.orm.LE object at 0xffff800240d0>,
42
+ '__ApproveEvent': <contracting.stdlib.bridge.orm.LE object at 0xffff80024990>,
43
+ '__StreamCreatedEvent': <contracting.stdlib.bridge.orm.LE object at 0xffff96fcb210>,
44
+ '__StreamBalanceEvent': <contracting.stdlib.bridge.orm.LE object at 0xffff96f74f10>,
45
+ '__StreamCloseChangeEvent': <contracting.stdlib.bridge.orm.LE object at 0xffff96fc69d0>,
46
+ '__StreamForfeitEvent': <contracting.stdlib.bridge.orm.LE object at 0xffff96fc6610>,
47
+ '__StreamFinalizedEvent': <contracting.stdlib.bridge.orm.LE object at 0xffff7ffae610>,
48
+ '____': <function ____ at 0xffff7ffc31a0>,
49
+ '__setup_seed_stream': <function __setup_seed_stream at 0xffff7ffc32e0>,
50
+ 'change_metadata': <function change_metadata at 0xffff7ffc3420>,
51
+ 'transfer': <function transfer at 0xffff7ffc3560>,
52
+ 'approve': <function approve at 0xffff7ffc36a0>,
53
+ 'transfer_from': <function transfer_from at 0xffff7ffc37e0>,
54
+ 'balance_of': <function balance_of at 0xffff7ffc3920>,
55
+ 'permit': <function permit at 0xffff7ffc3a60>,
56
+ '__construct_permit_msg': <function __construct_permit_msg at 0xffff7ffc3b00>,
57
+ 'SENDER_KEY': 'sender',
58
+ 'RECEIVER_KEY': 'receiver',
59
+ 'STATUS_KEY': 'status',
60
+ 'BEGIN_KEY': 'begins',
61
+ 'CLOSE_KEY': 'closes',
62
+ 'RATE_KEY': 'rate',
63
+ 'CLAIMED_KEY': 'claimed',
64
+ 'STREAM_ACTIVE': 'active',
65
+ 'STREAM_FINALIZED': 'finalized',
66
+ 'STREAM_FORFEIT': 'forfeit',
67
+ 'create_stream': <function create_stream at 0xffff7ffc3c40>,
68
+ '__perform_create_stream': <function __perform_create_stream at 0xffff7ffc3ce0>,
69
+ 'create_stream_from_permit': <function create_stream_from_permit at 0xffff7ffc3e20>,
70
+ 'balance_stream': <function balance_stream at 0xffff7ffc3f60>,
71
+ 'change_close_time': <function change_close_time at 0xffff7fff80e0>,
72
+ 'finalize_stream': <function finalize_stream at 0xffff7fff8220>,
73
+ 'close_balance_finalize': <function close_balance_finalize at 0xffff7fff8360>,
74
+ 'balance_finalize': <function balance_finalize at 0xffff7fff84a0>,
75
+ 'forfeit_stream': <function forfeit_stream at 0xffff7fff85e0>,
76
+ '__calc_outstanding_balance': <function __calc_outstanding_balance at 0xffff7fff8680>,
77
+ '__calc_claimable_amount': <function __calc_claimable_amount at 0xffff7fff8720>,
78
+ '__construct_stream_permit_msg': <function __construct_stream_permit_msg at 0xffff7fff87c0>,
79
+ '__strptime_ymdhms': <function __strptime_ymdhms at 0xffff7fff8860>
80
+ }
81
+ """
82
+
83
+
9
84
@construct
10
85
def seed (initial_owners : str , initial_required_signatures : int , stream : str ):
11
86
"""
@@ -134,4 +209,4 @@ def balance_stream():
134
209
Executes balance_stream function from currency
135
210
contract which sends tokens to this contract
136
211
"""
137
- currency .balance_stream (stream_id .get ())
212
+ currency .balance_stream (stream_id .get ())
0 commit comments