-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtestnet-construction-custom.ros
More file actions
54 lines (51 loc) · 1.5 KB
/
testnet-construction-custom.ros
File metadata and controls
54 lines (51 loc) · 1.5 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
transfer(1){
transfer{
transfer.network = {"network":"untitled", "blockchain":"MultiversX"};
custom_currency = {"symbol":"ROSETTA-cd8029", "decimals":4};
sender = {
"account_identifier": {
"address": "erd1ldjsdetjvegjdnda0qw2h62kq6rpvrklkc5pw9zxm0nwulfhtyqqtyc4vq"
},
"currency": {
"symbol": "ROSETTA-cd8029",
"decimals": 4
}
};
max_fee = "50000000000000";
max_transfer_amount = "12345";
recipient_amount = random_number({"minimum": "1", "maximum": {{max_transfer_amount}}});
print_message({"recipient_amount":{{recipient_amount}}});
sender_amount = 0-{{recipient_amount}};
recipient = {
"account_identifier": {
"address": "erd1xtslmt67utuewwv8jsx729mxjxaa8dvyyzp7492hy99dl7hvcuqq30l98v"
},
"currency": {
"symbol": "ROSETTA-cd8029",
"decimals": 4
}
};
transfer.confirmation_depth = "10";
transfer.operations = [
{
"operation_identifier":{"index":0},
"type":"CustomTransfer",
"account":{{sender.account_identifier}},
"amount":{
"value":{{sender_amount}},
"currency":{{custom_currency}}
}
},
{
"operation_identifier":{"index":1},
"related_operations": [{"index": 0}],
"type":"CustomTransfer",
"account":{{recipient.account_identifier}},
"amount":{
"value":{{recipient_amount}},
"currency":{{custom_currency}}
}
}
];
}
}