tx · 8TxYdYM6z3DrmVya576n4i36B5C78mFKhsQ2hCQNzgMW 3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq: -0.01000000 Waves 2023.05.20 15:40 [2586306] smart account 3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq > SELF 0.00000000 Waves
{ "type": 13, "id": "8TxYdYM6z3DrmVya576n4i36B5C78mFKhsQ2hCQNzgMW", "fee": 1000000, "feeAssetId": null, "timestamp": 1684586525654, "version": 2, "chainId": 84, "sender": "3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq", "senderPublicKey": "ERewvWFUFQfR1eCnipNAv9n7SdQhof2ESP6PGVjTueLd", "proofs": [ "5kocyiLoXbnkFiteVR1a7z9SqtWbQuu8ig76Xm6GqrEW2qbMsLKW3Gfh4pCfEfPWsKyTRnTh1SmiX7XektxdVNdr" ], "script": "base64:BgINCAISAwoBARIECgIIAQACAWkBBmJvcnJvdwELYXNzZXRBbW91bnQED3NtYXJ0Y29udHJhY3RJZAkBB0FkZHJlc3MBARoBVJHyspw5c5zCcXIim0BCoGwdZ5WG+0VDrgQHdG9rZW5JZAkBB0FkZHJlc3MBASAP8hwSrOTEPJrsRhqrJaiw7LoHK0bMbYhy8LXikkkBtAQHYWRkcmVzcwkApQgBCAUBaQZjYWxsZXIEA3JlcwkA/AcEBQ9zbWFydGNvbnRyYWN0SWQCBmJvcnJvdwkAzAgCBQd0b2tlbklkCQDMCAIFC2Fzc2V0QW1vdW50BQNuaWwJAMwIAgkBD0F0dGFjaGVkUGF5bWVudAIFBHVuaXQAgMLXLwUDbmlsAwkAAAIFA3JlcwUDcmVzBAckbWF0Y2gwBQNyZXMDCQABAgUHJG1hdGNoMAIDSW50BAFyBQckbWF0Y2gwCQCUCgIJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgUHYWRkcmVzcwIKX2JvcnJvd2VkXwUBcgUDbmlsBQFyCQACAQIXSW5jb3JyZWN0IGludm9rZSByZXN1bHQJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BaQEId2l0aGRyYXcCCmFzc2V0SWRTdHILYXNzZXRBbW91bnQED3NtYXJ0Y29udHJhY3RJZAkBB0FkZHJlc3MBARoBVJHyspw5c5zCcXIim0BCoGwdZ5WG+0VDrgQHYWRkcmVzcwkApQgBCAUBaQZjYWxsZXIEA3JlcwkA/AcEBQ9zbWFydGNvbnRyYWN0SWQCCHdpdGhkcmF3CQDMCAIJARFAZXh0ck5hdGl2ZSgxMDYyKQEFCmFzc2V0SWRTdHIJAMwIAgULYXNzZXRBbW91bnQFA25pbAkAzAgCCQEPQXR0YWNoZWRQYXltZW50AgUEdW5pdACAwtcvBQNuaWwDCQAAAgUDcmVzBQNyZXMEByRtYXRjaDAFA3JlcwMJAAECBQckbWF0Y2gwAgNJbnQEAXIFByRtYXRjaDAJAJQKAgkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICCQCsAgIFB2FkZHJlc3MCCl93aXRoZHJld18FCmFzc2V0SWRTdHIFAXIFA25pbAUBcgkAAgECF0luY29ycmVjdCBpbnZva2UgcmVzdWx0CQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleZcDlCg=", "height": 2586306, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2mRDWQdQPVpyud4Cz9G758vtY49Xdh5ZaAbGCWjGTKLk Next: DjvpmEPjwyyXC5cX3xA82dN52hUtsnnS5JY7hvmNUAs2 Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | ||
5 | - | ||
6 | - | @Callable(i) | |
7 | - | func issueToken () = $Tuple2([Issue("MyToken", "This is a new token", 10000, 2, true)], unit) | |
8 | - | ||
9 | 4 | ||
10 | 5 | ||
11 | 6 | @Callable(i) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | ||
5 | - | ||
6 | - | @Callable(i) | |
7 | - | func issueToken () = $Tuple2([Issue("MyToken", "This is a new token", 10000, 2, true)], unit) | |
8 | - | ||
9 | 4 | ||
10 | 5 | ||
11 | 6 | @Callable(i) | |
12 | 7 | func borrow (assetAmount) = { | |
13 | 8 | let smartcontractId = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd') | |
14 | 9 | let tokenId = Address(base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT') | |
15 | 10 | let address = toString(i.caller) | |
16 | 11 | let res = invoke(smartcontractId, "borrow", [tokenId, assetAmount], [AttachedPayment(unit, 100000000)]) | |
17 | 12 | if ((res == res)) | |
18 | 13 | then match res { | |
19 | 14 | case r: Int => | |
20 | 15 | $Tuple2([IntegerEntry((address + "_borrowed_"), r)], r) | |
21 | 16 | case _ => | |
22 | 17 | throw("Incorrect invoke result") | |
23 | 18 | } | |
24 | 19 | else throw("Strict value is not equal to itself.") | |
25 | 20 | } | |
26 | 21 | ||
27 | 22 | ||
28 | 23 | ||
29 | 24 | @Callable(i) | |
30 | 25 | func withdraw (assetIdStr,assetAmount) = { | |
31 | 26 | let smartcontractId = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd') | |
32 | 27 | let address = toString(i.caller) | |
33 | 28 | let res = invoke(smartcontractId, "withdraw", [addressFromStringValue(assetIdStr), assetAmount], [AttachedPayment(unit, 100000000)]) | |
34 | 29 | if ((res == res)) | |
35 | 30 | then match res { | |
36 | 31 | case r: Int => | |
37 | 32 | $Tuple2([IntegerEntry(((address + "_withdrew_") + assetIdStr), r)], r) | |
38 | 33 | case _ => | |
39 | 34 | throw("Incorrect invoke result") | |
40 | 35 | } | |
41 | 36 | else throw("Strict value is not equal to itself.") | |
42 | 37 | } | |
43 | 38 | ||
44 | 39 | ||
45 | 40 | @Verifier(tx) | |
46 | 41 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
47 | 42 |
github/deemru/w8io/03bedc9 25.96 ms ◑![]()