tx · 9FxdDTZ3mpQnjYyPkUQ9bog7mYDr6GeS419Gnju3kgPk
3N8iygiXd1v34PPaMSQb34SSrBwGxT2DpGK: -0.01400000 Waves
2022.08.20 16:52 [2192879] smart account 3N8iygiXd1v34PPaMSQb34SSrBwGxT2DpGK > SELF 0.00000000 Waves
{
"type": 13,
"id": "9FxdDTZ3mpQnjYyPkUQ9bog7mYDr6GeS419Gnju3kgPk",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1661003578893,
"version": 2,
"chainId": 84,
"sender": "3N8iygiXd1v34PPaMSQb34SSrBwGxT2DpGK",
"senderPublicKey": "FshLkkgzcLs6iQJ1Z8Nnfhm494tC8xZQczf9iXpZep3Y",
"proofs": [
"2pz4Doe1zuZ3NBwgX4n2uffZ4RV7dYAgAJebcbnCor2syLCijsNHeTjT5TCnBWwNHpmBMFa7PQkEfSbakCeTVZEq"
],
"script": "base64:AAIEAAAAAAAAAAcIAhIDCgEIAAAAAQAAAAALQ09ERUFzc2V0SUQBAAAAIAhlhLcP8IpqGvPiaOguCJAkw9MnWAPNLPYuXgvf2hWkAAAAAQAAAAFpAQAAAAxSZWdpc3RlclRHSUQAAAABAAAABFRHSUQEAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAJY2hlY2tUR0lECQAEHQAAAAIFAAAABHRoaXMJAAEsAAAAAgIAAAAKVXNlcl9UR0lEXwUAAAAEVEdJRAQAAAADcG10AwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAAO05vIFBheW1lbnRzIEF0dGFjaGVkIFBsZWFzZSBBdHRhY2ggV2hpdGVsYWJsZWQgQXNzZXRzIE9ubHkuBAAAAAtBc3NldEFtb3VudAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzAgAAAA1TdGFrZWRfQW1vdW50AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAAEm5ld1N0YWtlZEE0QUFtb3VudAkAAGQAAAACBQAAAAtBc3NldEFtb3VudAgFAAAAA3BtdAAAAAZhbW91bnQDCQAAAAAAAAIFAAAACWNoZWNrVEdJRAUAAAAEVEdJRAkAAAIAAAABAgAAADZTZXJpZXMgTmFtZSBBbHJlYWR5IEV4aXN0LiBDaG9vc2UgQW5vdGhlciBTZXJpZXMgTmFtZS4DCQEAAAACIT0AAAACCAUAAAADcG10AAAAB2Fzc2V0SWQFAAAAC0NPREVBc3NldElECQAAAgAAAAEJAAEsAAAAAgkAASwAAAACAgAAABRLaW5kbHkgRGVwb3NpdCBPbmx5IAkAAlgAAAABBQAAAAtDT0RFQXNzZXRJRAIAAAAIIFtDT0RFXS4JAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACAgAAAApQdWJrZXlfT2ZfBQAAAARUR0lEBQAAAApjdXJyZW50S2V5CQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgIAAAAJVGlwQXNzZXRfCQACWAAAAAEFAAAAC0NPREVBc3NldElECQACWAAAAAEFAAAAC0NPREVBc3NldElEBQAAAANuaWwAAAAATaghBw==",
"height": 2192879,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 8JzNUreshQYzDgZuZzKFmS98nMbHs8CwaUJVb8KEqoWr
Next: EK4Q4pELCEB81y8eum269hKiNCT3TioDegiLDNvrcqAY
Diff:
Old | New | | Differences |
---|
4 | 4 | | let CODEAssetID = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H' |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func RegisterTGID (TGID,TipAssetID,amount) = { |
---|
| 7 | + | func RegisterTGID (TGID) = { |
---|
8 | 8 | | let currentKey = toBase58String(i.caller.bytes) |
---|
9 | 9 | | let checkTGID = getString(this, ("User_TGID_" + TGID)) |
---|
10 | 10 | | let pmt = if ((size(i.payments) == 1)) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let CODEAssetID = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H' |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func RegisterTGID (TGID,TipAssetID,amount) = { |
---|
| 7 | + | func RegisterTGID (TGID) = { |
---|
8 | 8 | | let currentKey = toBase58String(i.caller.bytes) |
---|
9 | 9 | | let checkTGID = getString(this, ("User_TGID_" + TGID)) |
---|
10 | 10 | | let pmt = if ((size(i.payments) == 1)) |
---|
11 | 11 | | then i.payments[0] |
---|
12 | 12 | | else throw("No Payments Attached Please Attach Whitelabled Assets Only.") |
---|
13 | 13 | | let AssetAmount = match getInteger(this, "Staked_Amount") { |
---|
14 | 14 | | case a: Int => |
---|
15 | 15 | | a |
---|
16 | 16 | | case _ => |
---|
17 | 17 | | 0 |
---|
18 | 18 | | } |
---|
19 | 19 | | let newStakedA4AAmount = (AssetAmount + pmt.amount) |
---|
20 | 20 | | if ((checkTGID == TGID)) |
---|
21 | 21 | | then throw("Series Name Already Exist. Choose Another Series Name.") |
---|
22 | 22 | | else if ((pmt.assetId != CODEAssetID)) |
---|
23 | 23 | | then throw((("Kindly Deposit Only " + toBase58String(CODEAssetID)) + " [CODE].")) |
---|
24 | 24 | | else [StringEntry(("Pubkey_Of_" + TGID), currentKey), StringEntry(("TipAsset_" + toBase58String(CODEAssetID)), toBase58String(CODEAssetID))] |
---|
25 | 25 | | } |
---|
26 | 26 | | |
---|
27 | 27 | | |
---|