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):
|
9 |
currency.transfer(ctx.caller, ctx.this)
|
10 |
|
11 |
@export
|
12 |
def balances():
|
13 |
return str(currency.balance_of(ctx.this))
|
14 |
|
15 |
@export
|
16 |
def approve(amount: float, to: str):
|
17 |
currency.approve(amount, to)
|
18 |
|
19 |
|
20 |
|
e300000000000000000000000004000000400000007362000000640064016c005a006501640283016502650364039c0264046405840483015a04650164028301650264069c0164076408840483015a056501640283016409640a840083015a066501640283016502650364039c02640b640c840483015a0764015300290de9000000004eda0d636f6e5f656e766961725f31322902da06616d6f756e74da02746f630200000000000000020000000300000043000000731000000074006a017c007c01830201006400530029014e2902da0863757272656e6379da087472616e73666572290272030000007204000000a9007207000000da00da097472616e66657269720400000073020000000002720900000029017203000000630100000000000000010000000300000043000000731400000074006a0174026a0374026a04830201006400530029014e290572050000007206000000da03637478da0663616c6c6572da047468697329017203000000720700000072070000007208000000da076465706f7369740900000073020000000002720d0000006300000000000000000000000003000000430000007310000000740074016a0274036a0483018301530029014e2905da037374727205000000da0a62616c616e63655f6f66720a000000720c0000007207000000720700000072070000007208000000da0862616c616e6365730e000000730200000000027210000000630200000000000000020000000300000043000000731000000074006a017c007c01830201006400530029014e29027205000000da07617070726f766529027203000000720400000072070000007207000000720800000072110000001300000073020000000002721100000029087205000000da085f5f6578706f7274da05666c6f6174720e0000007209000000720d000000721000000072110000007207000000720700000072070000007208000000da083c6d6f64756c653e01000000730e0000000803060112040601100410050601