1 |
import currency
|
2 |
|
3 |
@export
|
4 |
def tranferir(amount: float, to: str):
|
5 |
currency.transfer(amount, to)
|
6 |
|
7 |
@export
|
8 |
def deposit(amount: float, to: str):
|
9 |
currency.transfer(ctx.caller, ctx.this)
|
10 |
|
11 |
@export
|
12 |
def balances(account: str):
|
13 |
return str(currency.balance_of(account))
|
14 |
|
15 |
@export
|
16 |
def approve(amount: float, to: str):
|
17 |
currency.approve(amount, to)
|
18 |
|
19 |
|
20 |
|
e30000000000000000000000000400000040000000736a000000640064016c005a006501640283016502650364039c0264046405840483015a046501640283016502650364039c0264066407840483015a05650164028301650364089c016409640a840483015a066501640283016502650364039c02640b640c840483015a0764015300290de9000000004eda0d636f6e5f656e766961725f31312902da06616d6f756e74da02746f630200000000000000020000000300000043000000731000000074006a017c007c01830201006400530029014e2902da0863757272656e6379da087472616e73666572290272030000007204000000a9007207000000da00da097472616e666572697204000000730200000000027209000000630200000000000000020000000300000043000000731400000074006a0174026a0374026a04830201006400530029014e290572050000007206000000da03637478da0663616c6c6572da0474686973290272030000007204000000720700000072070000007208000000da076465706f7369740900000073020000000002720d0000002901da076163636f756e74630100000000000000010000000300000043000000730e000000740074016a027c0083018301530029014e2903da037374727205000000da0a62616c616e63655f6f662901720e000000720700000072070000007208000000da0862616c616e6365730e000000730200000000027211000000630200000000000000020000000300000043000000731000000074006a017c007c01830201006400530029014e29027205000000da07617070726f766529027203000000720400000072070000007207000000720800000072120000001300000073020000000002721200000029087205000000da085f5f6578706f7274da05666c6f6174720f0000007209000000720d000000721100000072120000007207000000720700000072070000007208000000da083c6d6f64756c653e01000000731000000008030601120406011204060110040601