tx · Cz8rsxWfTpv83UcQP7YuADTYtQRVbPLEk196XRyeUNCy
3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx: -0.01000000 Waves
2023.05.20 19:35 [2586535] smart account 3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx > SELF 0.00000000 Waves
{
"type": 13,
"id": "Cz8rsxWfTpv83UcQP7YuADTYtQRVbPLEk196XRyeUNCy",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1684600590896,
"version": 2,
"chainId": 84,
"sender": "3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx",
"senderPublicKey": "2NK7BrUZMvnHzAoHnJfz3FuDBP5zYUNoxshB49AH2kbc",
"proofs": [
"5J4vx8a7bLLjb4pbs1hnLXpRtyLVxC5hztfzpmA9V7FJcErkvdiPJM42trPbQsNbyScxoxKMGMRsdDt3WggDdpiX"
],
"script": "base64:BgIECAISAAABAWkBCHJvdWxldHRlAAQDYmV0CAkAkQMCCAUBaQhwYXltZW50cwAABmFtb3VudAQHYXNzZXRJRAgJAJEDAggFAWkIcGF5bWVudHMAAAdhc3NldElkBAFjAgVSaWRlZQQHY1RvQnl0ZQkAoAMBCQCeAwEJANkEAQUBYwQJcmFuZG9tTnVtCQBqAgUHY1RvQnl0ZQBkBA53aW5Qcm9iYWJpbGl0eQAoBAZnZXROdW0JAJoIAgUEdGhpcwINUmFuZG9tIE51bWJlcgkAzAgCCQEMSW50ZWdlckVudHJ5AgIPUmFuZG9tIE51bWJlcjogBQlyYW5kb21OdW0FA25pbAECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXnpxYNt",
"height": 2586535,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: ASqytv4XgiReRUJnrUE2QLNpVADGzWsiAvTPhdBJpdA4
Next: AtkN3TvTbD1AGpFHrDmJPjKkYpUwyYsCk2tXs9XVAPE
Diff:
Old | New | | Differences |
---|
7 | 7 | | func roulette () = { |
---|
8 | 8 | | let bet = i.payments[0].amount |
---|
9 | 9 | | let assetID = i.payments[0].assetId |
---|
10 | | - | let c = "Ride" |
---|
| 10 | + | let c = "Ridee" |
---|
11 | 11 | | let cToByte = toInt(toBigInt(fromBase58String(c))) |
---|
12 | | - | let randomNum = (cToByte % 10) |
---|
| 12 | + | let randomNum = (cToByte % 100) |
---|
13 | 13 | | let winProbability = 40 |
---|
14 | 14 | | let getNum = getInteger(this, "Random Number") |
---|
15 | 15 | | [IntegerEntry("Random Number: ", randomNum)] |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func roulette () = { |
---|
8 | 8 | | let bet = i.payments[0].amount |
---|
9 | 9 | | let assetID = i.payments[0].assetId |
---|
10 | | - | let c = "Ride" |
---|
| 10 | + | let c = "Ridee" |
---|
11 | 11 | | let cToByte = toInt(toBigInt(fromBase58String(c))) |
---|
12 | | - | let randomNum = (cToByte % 10) |
---|
| 12 | + | let randomNum = (cToByte % 100) |
---|
13 | 13 | | let winProbability = 40 |
---|
14 | 14 | | let getNum = getInteger(this, "Random Number") |
---|
15 | 15 | | [IntegerEntry("Random Number: ", randomNum)] |
---|
16 | 16 | | } |
---|
17 | 17 | | |
---|
18 | 18 | | |
---|
19 | 19 | | @Verifier(tx) |
---|
20 | 20 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
21 | 21 | | |
---|