-
Notifications
You must be signed in to change notification settings - Fork 110
Expand file tree
/
Copy pathbuy-ticket-after-determined-winner.scen.json
More file actions
89 lines (89 loc) · 2.86 KB
/
buy-ticket-after-determined-winner.scen.json
File metadata and controls
89 lines (89 loc) · 2.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
"name": "buy ticket after announced winner",
"gasSchedule": "dummy",
"steps": [
{
"step": "externalSteps",
"path": "determine-winner-different-ticket-holders-winner-acc1.scen.json"
},
{
"step": "setState",
"accounts": {
"address:acc1": {
"nonce": "1",
"balance": "1,000,000",
"esdt": {
"str:LOTTERY-123456": "100"
}
}
}
},
{
"step": "scCall",
"id": "buy-ticket-after-announced-winner",
"tx": {
"from": "address:acc1",
"to": "sc:lottery#42",
"esdtValue": [
{
"tokenIdentifier": "str:LOTTERY-123456",
"value": "100"
}
],
"function": "buy_ticket",
"arguments": [
"str:lottery_name"
],
"gasLimit": "100,000,000",
"gasPrice": "0"
},
"expect": {
"out": [],
"status": "4",
"message": "str:Lottery is currently inactive.",
"gas": "*",
"refund": "*"
}
},
{
"step": "checkState",
"accounts": {
"address:my_address": {
"nonce": "2",
"balance": "1,000,000",
"storage": {}
},
"address:other_shard_address#41": {
"nonce": "1",
"balance": "1,000,000",
"storage": {}
},
"address:acc1": {
"nonce": "2",
"balance": "1,000,000",
"esdt": {
"str:LOTTERY-123456": "100"
},
"storage": {}
},
"address:acc2": {
"nonce": "1",
"balance": "1,000,000",
"storage": {}
},
"sc:lottery#42": {
"nonce": "0",
"balance": "0",
"storage": {
"str:addressToIdMapper|str:lastId": "2",
"str:addressToIdMapper|str:addr|address:acc1": "1",
"str:addressToIdMapper|str:addrId|u64:1": "address:acc1",
"str:addressToIdMapper|str:addr|address:acc2": "2",
"str:addressToIdMapper|str:addrId|u64:2": "address:acc2"
},
"code": "mxsc:../output/lottery-esdt.mxsc.json"
}
}
}
]
}