tx · 4Fw6gXqvkr8jFhbojGDavjCzV3uCCnCA42GBft1dcMS5
3MvYrCuZcSEEpaonJMECNuAgua1N1pP4QLv: -0.01400000 Waves
2019.11.08 11:09 [755713] smart account 3MvYrCuZcSEEpaonJMECNuAgua1N1pP4QLv > SELF 0.00000000 Waves
{
"type": 13,
"id": "4Fw6gXqvkr8jFhbojGDavjCzV3uCCnCA42GBft1dcMS5",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1573200600433,
"version": 1,
"sender": "3MvYrCuZcSEEpaonJMECNuAgua1N1pP4QLv",
"senderPublicKey": "8M3Q3Umd3j8Awzm99M79fM53H8ciKVWraTxGrf9qktxT",
"proofs": [
"msnVMWm5p7RsnCzhMsBy1UkRTVLcRNFysQnMcKXaADPJrbYEmEq4jFaAizu3osbaYDbiXdqAsVPCicqgW1YZ42t"
],
"script": "base64:AAIDAAAAAAAAAAcIARIDCgECAAAAAQEAAAAMdG9CeXRlVmVjdG9yAAAAAQAAAAJidgQAAAAHJG1hdGNoMAUAAAACYnYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAA2J2MAUAAAAHJG1hdGNoMAUAAAADYnYwCQAAAgAAAAECAAAAE0J5dGVWZWN0b3IgZXhwZWN0ZWQAAAABAAAAAWkBAAAAB3JlZ1VzZXIAAAABAAAACnVzZXJQdWJLZXkJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAACnVzZXJQdWJLZXkFAAAACnVzZXJQdWJLZXkFAAAAA25pbAAAAAEAAAACdHgBAAAACHZlcmlmaWVyAAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF0ludm9rZVNjcmlwdFRyYW5zYWN0aW9uBAAAAANpbnYFAAAAByRtYXRjaDADCQAAAAAAAAIIBQAAAANpbnYAAAAIZnVuY3Rpb24CAAAAB3JlZ1VzZXIJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACQEAAAAMdG9CeXRlVmVjdG9yAAAAAQkAAZEAAAACCAUAAAADaW52AAAABGFyZ3MAAAAAAAAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5CQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleYu7fV8=",
"chainId": 84,
"height": 755713,
"spentComplexity": 0
}
View: original | compacted
Prev: HogsjLY6HDf5r8tRFK7bNcZE71V5rJ2iLVnsHRcA6Hce
Next: 5Et5hyo5vJPrZN9pPKLKfjMvBevv6C9oSo1Dv18yxYsG
Diff:
Old | New | | Differences |
---|
10 | 10 | | |
---|
11 | 11 | | |
---|
12 | 12 | | @Callable(i) |
---|
13 | | - | func regUser (userPubKey,userName,promoLink) = WriteSet([DataEntry("userPubKey", userPubKey)]) |
---|
| 13 | + | func regUser (userPubKey) = WriteSet([DataEntry("userPubKey", userPubKey)]) |
---|
14 | 14 | | |
---|
15 | 15 | | |
---|
16 | 16 | | @Verifier(tx) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func toByteVector (bv) = match bv { |
---|
5 | 5 | | case bv0: ByteVector => |
---|
6 | 6 | | bv0 |
---|
7 | 7 | | case _ => |
---|
8 | 8 | | throw("ByteVector expected") |
---|
9 | 9 | | } |
---|
10 | 10 | | |
---|
11 | 11 | | |
---|
12 | 12 | | @Callable(i) |
---|
13 | | - | func regUser (userPubKey,userName,promoLink) = WriteSet([DataEntry("userPubKey", userPubKey)]) |
---|
| 13 | + | func regUser (userPubKey) = WriteSet([DataEntry("userPubKey", userPubKey)]) |
---|
14 | 14 | | |
---|
15 | 15 | | |
---|
16 | 16 | | @Verifier(tx) |
---|
17 | 17 | | func verifier () = match tx { |
---|
18 | 18 | | case inv: InvokeScriptTransaction => |
---|
19 | 19 | | if ((inv.function == "regUser")) |
---|
20 | 20 | | then sigVerify(tx.bodyBytes, tx.proofs[0], toByteVector(inv.args[0])) |
---|
21 | 21 | | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
22 | 22 | | case _ => |
---|
23 | 23 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
24 | 24 | | } |
---|
25 | 25 | | |
---|