tx · 6Xge2AZjt6dsxXRseDkaYnG9BR3vqT3BF8edK9VFzAYh
3N3y7nQfqDc7rBUExjKQi5ZbspWRh9q8PYH: -0.00500000 Waves
2023.11.17 15:05 [2847345] smart account 3N3y7nQfqDc7rBUExjKQi5ZbspWRh9q8PYH > SELF 0.00000000 Waves
{
"type": 13,
"id": "6Xge2AZjt6dsxXRseDkaYnG9BR3vqT3BF8edK9VFzAYh",
"fee": 500000,
"feeAssetId": null,
"timestamp": 1700222750442,
"version": 2,
"chainId": 84,
"sender": "3N3y7nQfqDc7rBUExjKQi5ZbspWRh9q8PYH",
"senderPublicKey": "9ggtmbyecVRfUY2zeZhNaoLBp2iymhnQhffXQhemTJaG",
"proofs": [
"3VRQJrr67x7pcWbAABf5stFzKVhVC6NsbwnJJdbvb5rzWcFPTLYSYCYYTxRV9PKG4ePZswYpiThSPNh8FeNrU2SN"
],
"script": "base64:BgIECAISAAUACFRlc3RVc2VyCQEHQWRkcmVzcwEBGgFUmiSvdpHfcyUoO/Y3lJR5RVM/EC7LIlBGAA5UZXN0VXNlclB1YktleQEggQhA7lSDBAV96QCBw6VWWREBAkOfczsVMMZRMcDjO10ACVRlc3RVc2VyMgkBB0FkZHJlc3MBARoBVNBVQEgvriq5Wd7cAHuvw7N/9YPdF0K61wATUHV6emxlTWFzdGVyQWRkcmVzcwkBB0FkZHJlc3MBARoBV85X8yTRB6SzTv7SuuIorMWQltaK0W0F7gASUHV6emxlTWFzdGVyUHViS2V5ASA7NU1uP5+++FSclkQHgFarL+ITYEXEe/I/F0P0QgUmXQEBaQEIYWN0aXZhdGUACQDMCAIJAQxJbnRlZ2VyRW50cnkCAwkAAAIIBQFpBmNhbGxlcgUEdGhpcwIVQWN0aXZhdGVkIGJsb2NraGVpZ2h0AiBBY3RpdmF0ZWQgYnkgYW55Ym9keSBibG9ja2hlaWdodAUGaGVpZ2h0BQNuaWwBAnR4AQZ2ZXJpZnkABA9UZXN0VXNlcjJQdWJLZXkBIBoVri0PIi/W6HMN/BFH8ge2Duo03s/elirY3UgUGn4QAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleQYJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFD1Rlc3RVc2VyMlB1YktleWsBGNw=",
"height": 2847345,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 6KnG2oLavkjwq6H87xNeVZh2oGs8AdJ4ptH9RU84TLan
Next: 2RFT5WoK23aJEpAnVyUZa2xNuSBoaaMCyx4YAXNYD5tP
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let TestSCPubKey = base58'Brp6cacBXyKUcZr5Uc6VDKsnFcaEeQ8nQzrZQyobDsuf' |
---|
5 | | - | |
---|
6 | 4 | | let TestUser = Address(base58'3N3y7nQfqDc7rBUExjKQi5ZbspWRh9q8PYH') |
---|
7 | 5 | | |
---|
8 | 6 | | let TestUserPubKey = base58'9ggtmbyecVRfUY2zeZhNaoLBp2iymhnQhffXQhemTJaG' |
---|
9 | 7 | | |
---|
10 | 8 | | let TestUser2 = Address(base58'3N8ueTAufEUYDKWJDbfK7aZ4HHxBkX4DXA6') |
---|
11 | 9 | | |
---|
12 | | - | let TestUser2PubKey = base58'2kpmuzw1ZbrtgAN3BrR7vbEW1XrJoJKCstL7mf7XNf2P' |
---|
13 | | - | |
---|
14 | 10 | | let PuzzleMasterAddress = Address(base58'3PLjwHcz9NEuaTo63NZR9B9okQiKQxZSbmf') |
---|
15 | 11 | | |
---|
16 | 12 | | let PuzzleMasterPubKey = base58'4z8CKSYQBKkzx7PBb5uBP1YPa6YAHRNTApW1sQVHT5eU' |
---|
17 | | - | |
---|
18 | | - | let accessAddress = [this, TestUser, TestUser2] |
---|
19 | | - | |
---|
20 | | - | let access = [TestSCPubKey, TestUserPubKey, TestUser2PubKey] |
---|
21 | 13 | | |
---|
22 | 14 | | @Callable(i) |
---|
23 | 15 | | func activate () = [IntegerEntry(if ((i.caller == this)) |
---|
|
26 | 18 | | |
---|
27 | 19 | | |
---|
28 | 20 | | @Verifier(tx) |
---|
29 | | - | func verify () = match tx { |
---|
30 | | - | case ttx: Order|DataTransaction|SponsorFeeTransaction|SetScriptTransaction|CreateAliasTransaction|LeaseCancelTransaction|LeaseTransaction|IssueTransaction|InvokeExpressionTransaction|UpdateAssetInfoTransaction|InvokeScriptTransaction|SetAssetScriptTransaction|TransferTransaction|ExchangeTransaction|MassTransferTransaction|BurnTransaction|ReissueTransaction => |
---|
31 | | - | if ((containsElement(accessAddress, ttx.sender) == true)) |
---|
32 | | - | then sigVerify(ttx.bodyBytes, ttx.proofs[0], ttx.senderPublicKey) |
---|
33 | | - | else false |
---|
34 | | - | case _ => |
---|
35 | | - | false |
---|
36 | | - | } |
---|
| 21 | + | func verify () = { |
---|
| 22 | + | let TestUser2PubKey = base58'2kpmuzw1ZbrtgAN3BrR7vbEW1XrJoJKCstL7mf7XNf2P' |
---|
| 23 | + | if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)) |
---|
| 24 | + | then true |
---|
| 25 | + | else sigVerify(tx.bodyBytes, tx.proofs[0], TestUser2PubKey) |
---|
| 26 | + | } |
---|
37 | 27 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let TestSCPubKey = base58'Brp6cacBXyKUcZr5Uc6VDKsnFcaEeQ8nQzrZQyobDsuf' |
---|
5 | | - | |
---|
6 | 4 | | let TestUser = Address(base58'3N3y7nQfqDc7rBUExjKQi5ZbspWRh9q8PYH') |
---|
7 | 5 | | |
---|
8 | 6 | | let TestUserPubKey = base58'9ggtmbyecVRfUY2zeZhNaoLBp2iymhnQhffXQhemTJaG' |
---|
9 | 7 | | |
---|
10 | 8 | | let TestUser2 = Address(base58'3N8ueTAufEUYDKWJDbfK7aZ4HHxBkX4DXA6') |
---|
11 | 9 | | |
---|
12 | | - | let TestUser2PubKey = base58'2kpmuzw1ZbrtgAN3BrR7vbEW1XrJoJKCstL7mf7XNf2P' |
---|
13 | | - | |
---|
14 | 10 | | let PuzzleMasterAddress = Address(base58'3PLjwHcz9NEuaTo63NZR9B9okQiKQxZSbmf') |
---|
15 | 11 | | |
---|
16 | 12 | | let PuzzleMasterPubKey = base58'4z8CKSYQBKkzx7PBb5uBP1YPa6YAHRNTApW1sQVHT5eU' |
---|
17 | | - | |
---|
18 | | - | let accessAddress = [this, TestUser, TestUser2] |
---|
19 | | - | |
---|
20 | | - | let access = [TestSCPubKey, TestUserPubKey, TestUser2PubKey] |
---|
21 | 13 | | |
---|
22 | 14 | | @Callable(i) |
---|
23 | 15 | | func activate () = [IntegerEntry(if ((i.caller == this)) |
---|
24 | 16 | | then "Activated blockheight" |
---|
25 | 17 | | else "Activated by anybody blockheight", height)] |
---|
26 | 18 | | |
---|
27 | 19 | | |
---|
28 | 20 | | @Verifier(tx) |
---|
29 | | - | func verify () = match tx { |
---|
30 | | - | case ttx: Order|DataTransaction|SponsorFeeTransaction|SetScriptTransaction|CreateAliasTransaction|LeaseCancelTransaction|LeaseTransaction|IssueTransaction|InvokeExpressionTransaction|UpdateAssetInfoTransaction|InvokeScriptTransaction|SetAssetScriptTransaction|TransferTransaction|ExchangeTransaction|MassTransferTransaction|BurnTransaction|ReissueTransaction => |
---|
31 | | - | if ((containsElement(accessAddress, ttx.sender) == true)) |
---|
32 | | - | then sigVerify(ttx.bodyBytes, ttx.proofs[0], ttx.senderPublicKey) |
---|
33 | | - | else false |
---|
34 | | - | case _ => |
---|
35 | | - | false |
---|
36 | | - | } |
---|
| 21 | + | func verify () = { |
---|
| 22 | + | let TestUser2PubKey = base58'2kpmuzw1ZbrtgAN3BrR7vbEW1XrJoJKCstL7mf7XNf2P' |
---|
| 23 | + | if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)) |
---|
| 24 | + | then true |
---|
| 25 | + | else sigVerify(tx.bodyBytes, tx.proofs[0], TestUser2PubKey) |
---|
| 26 | + | } |
---|
37 | 27 | | |
---|