tx · 7Z7NAErQSVdvu54fAtbRy8q9RfFy7XeJWWJmicgnnx2t

3MzFYxmuFCZMtDM4xzqBHW6m3ZvNoX4Xe8T:  -0.01400000 Waves

2021.06.05 16:42 [1557129] smart account 3MzFYxmuFCZMtDM4xzqBHW6m3ZvNoX4Xe8T > SELF 0.00000000 Waves

{ "type": 13, "id": "7Z7NAErQSVdvu54fAtbRy8q9RfFy7XeJWWJmicgnnx2t", "fee": 1400000, "feeAssetId": null, "timestamp": 1622900549053, "version": 2, "chainId": 84, "sender": "3MzFYxmuFCZMtDM4xzqBHW6m3ZvNoX4Xe8T", "senderPublicKey": "6BmCmWEkmyL4KtpmLBbW1T5EDSyu6WhDBx9wy8xedgxJ", "proofs": [ "o5HV7opMhnYBZgKn6jLd4kkKhFaCqQuCcNXR1SzrhZTmpgVKuu5e6MbyaebcdDJnyihZMNZwF3TSGLJAta7KCe7" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAJaXNzdWVnb2xkAAAAAAQAAAADcG10CQEAAAAFdmFsdWUAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAABAAAAApjdXJyZW50S2V5CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAC0dvbGRBc3NldElEAQAAACA4Trgygj42OSxCqzXCVkjy0fg0SK8264yFzLge7MhhwgQAAAALVVNEVEFzc2V0SUQBAAAAIO1uns5hlJz9zuYakh0t3uLmLZDCTZgfB7wEww+WnHxxBAAAABBQcmljZVBlckdyYW1Hb2xkCQEAAAARQGV4dHJOYXRpdmUoMTA1MCkAAAACBQAAAAR0aGlzAgAAAAdHQVUvVVNEBAAAAA1OZXdHb2xkVG9Vc2VyCQAAaQAAAAIIBQAAAANwbXQAAAAGYW1vdW50BQAAABBQcmljZVBlckdyYW1Hb2xkBAAAABJQcmV2aW91c0lzc3VlZEdvbGQJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMCAAAAElRvdGFsX0lzc3VlZF9Hb2xkOgQAAAAPVG90YWxJc3N1ZWRHb2xkCQAAZAAAAAIFAAAAElByZXZpb3VzSXNzdWVkR29sZAUAAAANTmV3R29sZFRvVXNlcgMJAQAAAAIhPQAAAAIIBQAAAANwbXQAAAAHYXNzZXRJZAUAAAALVVNEVEFzc2V0SUQJAAACAAAAAQIAAABiSW5jb3JyZWN0IGFzc2V0IGF0dGFjaGVkLCBwbGVhc2UgYXR0YWNoIFVTRFQgQXNzZXRJRCBHeXFUWURlYTNEV0JhQXlRczVTNXVIMjIyM3VjRUxZRmF6SnBaTENmTXpuVS4DCQAAZgAAAAIAAAAAAAAPQkAIBQAAAANwbXQAAAAGYW1vdW50CQAAAgAAAAECAAAAMVBsZWFzZSBBdHRhY2ggbWluaW11bSAxIFVTRFQgVG8gSXNzdWUgR29sZCBBc3NldC4JAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAElRvdGFsX0lzc3VlZF9Hb2xkOgUAAAAPVG90YWxJc3N1ZWRHb2xkCQAETAAAAAIJAQAAAAdSZWlzc3VlAAAAAwUAAAALR29sZEFzc2V0SUQFAAAADU5ld0dvbGRUb1VzZXIGCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAANTmV3R29sZFRvVXNlcgUAAAALR29sZEFzc2V0SUQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5nATPkg==", "height": 1557129, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ABN2Vs5cVCzeavqvRpia9pDqEtGm3pwyBbBmmQwVLeki Next: DTzz41FSt3mXcBWEvHwKqEr5LdK1zXnFajJ9Tu7PEyb Diff:
OldNewDifferences
44
55
66 @Callable(a)
7-func call () = {
8- let b = Issue("Gold", "Asset Issued based on Gold Price per Gram", 1, 6, true, unit, 0)
9- let c = calculateAssetId(b)
10-[b, ScriptTransfer(a.caller, 1, c)]
7+func issuegold () = {
8+ let b = value(a.payments[0])
9+ let c = toBase58String(a.caller.bytes)
10+ let d = base58'4noTADz7TX4HmjkCMpJAzkfuR6BKxDsSCzp3XJNZAcgy'
11+ let e = base58'GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU'
12+ let f = getIntegerValue(this, "GAU/USD")
13+ let g = (b.amount / f)
14+ let h = getIntegerValue(this, "Total_Issued_Gold:")
15+ let i = (h + g)
16+ if ((b.assetId != e))
17+ then throw("Incorrect asset attached, please attach USDT AssetID GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU.")
18+ else if ((1000000 > b.amount))
19+ then throw("Please Attach minimum 1 USDT To Issue Gold Asset.")
20+ else [IntegerEntry("Total_Issued_Gold:", i), Reissue(d, g, true), ScriptTransfer(a.caller, g, d)]
1121 }
1222
1323
14-@Verifier(d)
15-func e () = sigVerify(d.bodyBytes, d.proofs[0], d.senderPublicKey)
24+@Verifier(j)
25+func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey)
1626
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
7-func call () = {
8- let b = Issue("Gold", "Asset Issued based on Gold Price per Gram", 1, 6, true, unit, 0)
9- let c = calculateAssetId(b)
10-[b, ScriptTransfer(a.caller, 1, c)]
7+func issuegold () = {
8+ let b = value(a.payments[0])
9+ let c = toBase58String(a.caller.bytes)
10+ let d = base58'4noTADz7TX4HmjkCMpJAzkfuR6BKxDsSCzp3XJNZAcgy'
11+ let e = base58'GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU'
12+ let f = getIntegerValue(this, "GAU/USD")
13+ let g = (b.amount / f)
14+ let h = getIntegerValue(this, "Total_Issued_Gold:")
15+ let i = (h + g)
16+ if ((b.assetId != e))
17+ then throw("Incorrect asset attached, please attach USDT AssetID GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU.")
18+ else if ((1000000 > b.amount))
19+ then throw("Please Attach minimum 1 USDT To Issue Gold Asset.")
20+ else [IntegerEntry("Total_Issued_Gold:", i), Reissue(d, g, true), ScriptTransfer(a.caller, g, d)]
1121 }
1222
1323
14-@Verifier(d)
15-func e () = sigVerify(d.bodyBytes, d.proofs[0], d.senderPublicKey)
24+@Verifier(j)
25+func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey)
1626

github/deemru/w8io/026f985 
31.86 ms