Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit 9320924

Browse files
authored
Merge pull request #93 from jacqueswww/update-test-config-jsons
Add extra settings to json config files.
2 parents 2c420af + c3e4d7f commit 9320924

File tree

2 files changed

+163
-2
lines changed

2 files changed

+163
-2
lines changed

tests/config.json

Lines changed: 146 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,146 @@
1-
{"runtime_fees":{"action_receipt_creation_config":{"send_sir":1,"send_not_sir":1,"execution":1},"data_receipt_creation_config":{"base_cost":{"send_sir":1,"send_not_sir":1,"execution":1},"cost_per_byte":{"send_sir":1,"send_not_sir":1,"execution":1}},"action_creation_config":{"create_account_cost":{"send_sir":1,"send_not_sir":1,"execution":1},"deploy_contract_cost":{"send_sir":1,"send_not_sir":1,"execution":1},"deploy_contract_cost_per_byte":{"send_sir":1,"send_not_sir":1,"execution":1},"function_call_cost":{"send_sir":1,"send_not_sir":1,"execution":1},"function_call_cost_per_byte":{"send_sir":1,"send_not_sir":1,"execution":1},"transfer_cost":{"send_sir":1,"send_not_sir":1,"execution":1},"stake_cost":{"send_sir":1,"send_not_sir":1,"execution":1},"add_key_cost":{"full_access_cost":{"send_sir":1,"send_not_sir":1,"execution":1},"function_call_cost":{"send_sir":1,"send_not_sir":1,"execution":1},"function_call_cost_per_byte":{"send_sir":1,"send_not_sir":1,"execution":1}},"delete_key_cost":{"send_sir":1,"send_not_sir":1,"execution":1},"delete_account_cost":{"send_sir":1,"send_not_sir":1,"execution":1}},"storage_usage_config":{"account_cost":100,"data_record_cost":40,"key_cost_per_byte":1,"value_cost_per_byte":1,"code_cost_per_byte":1}},"grow_mem_cost":1,"regular_op_cost":1,"max_gas_burnt":1000000000,"max_stack_height":65536,"initial_memory_pages":17,"max_memory_pages":32,"registers_memory_limit":1073741824,"max_register_size":104857600,"max_number_registers":100,"max_number_logs":100,"max_log_len":500}
1+
{
2+
"runtime_fees": {
3+
"action_receipt_creation_config": {
4+
"send_sir": 1,
5+
"send_not_sir": 1,
6+
"execution": 1
7+
},
8+
"data_receipt_creation_config": {
9+
"base_cost": {
10+
"send_sir": 1,
11+
"send_not_sir": 1,
12+
"execution": 1
13+
},
14+
"cost_per_byte": {
15+
"send_sir": 1,
16+
"send_not_sir": 1,
17+
"execution": 1
18+
}
19+
},
20+
"action_creation_config": {
21+
"create_account_cost": {
22+
"send_sir": 1,
23+
"send_not_sir": 1,
24+
"execution": 1
25+
},
26+
"deploy_contract_cost": {
27+
"send_sir": 1,
28+
"send_not_sir": 1,
29+
"execution": 1
30+
},
31+
"deploy_contract_cost_per_byte": {
32+
"send_sir": 1,
33+
"send_not_sir": 1,
34+
"execution": 1
35+
},
36+
"function_call_cost": {
37+
"send_sir": 1,
38+
"send_not_sir": 1,
39+
"execution": 1
40+
},
41+
"function_call_cost_per_byte": {
42+
"send_sir": 1,
43+
"send_not_sir": 1,
44+
"execution": 1
45+
},
46+
"transfer_cost": {
47+
"send_sir": 1,
48+
"send_not_sir": 1,
49+
"execution": 1
50+
},
51+
"stake_cost": {
52+
"send_sir": 1,
53+
"send_not_sir": 1,
54+
"execution": 1
55+
},
56+
"add_key_cost": {
57+
"full_access_cost": {
58+
"send_sir": 1,
59+
"send_not_sir": 1,
60+
"execution": 1
61+
},
62+
"function_call_cost": {
63+
"send_sir": 1,
64+
"send_not_sir": 1,
65+
"execution": 1
66+
},
67+
"function_call_cost_per_byte": {
68+
"send_sir": 1,
69+
"send_not_sir": 1,
70+
"execution": 1
71+
}
72+
},
73+
"delete_key_cost": {
74+
"send_sir": 1,
75+
"send_not_sir": 1,
76+
"execution": 1
77+
},
78+
"delete_account_cost": {
79+
"send_sir": 1,
80+
"send_not_sir": 1,
81+
"execution": 1
82+
}
83+
},
84+
"storage_usage_config": {
85+
"account_cost": 100,
86+
"data_record_cost": 40,
87+
"key_cost_per_byte": 1,
88+
"value_cost_per_byte": 1,
89+
"code_cost_per_byte": 1
90+
}
91+
},
92+
"grow_mem_cost": 1,
93+
"regular_op_cost": 1,
94+
"max_gas_burnt": 1000000000,
95+
"max_stack_height": 65536,
96+
"initial_memory_pages": 17,
97+
"max_memory_pages": 32,
98+
"registers_memory_limit": 1073741824,
99+
"max_register_size": 104857600,
100+
"max_number_registers": 100,
101+
"max_number_logs": 100,
102+
"max_log_len": 500,
103+
"ext_costs": {
104+
"base": 1,
105+
"read_memory_base": 1,
106+
"read_memory_byte": 1,
107+
"write_memory_base": 1,
108+
"write_memory_byte": 1,
109+
"read_register_base": 1,
110+
"read_register_byte": 1,
111+
"write_register_base": 1,
112+
"write_register_byte": 1,
113+
"utf8_decoding_base": 1,
114+
"utf8_decoding_byte": 1,
115+
"utf16_decoding_base": 1,
116+
"utf16_decoding_byte": 1,
117+
"sha256_base": 1,
118+
"sha256_byte": 1,
119+
"log_base": 1,
120+
"log_byte": 1,
121+
"storage_write_base": 1,
122+
"storage_write_key_byte": 1,
123+
"storage_write_value_byte": 1,
124+
"storage_write_evicted_byte": 1,
125+
"storage_read_base": 1,
126+
"storage_read_key_byte": 1,
127+
"storage_read_value_byte": 1,
128+
"storage_remove_base": 1,
129+
"storage_remove_key_byte": 1,
130+
"storage_remove_ret_value_byte": 1,
131+
"storage_has_key_base": 1,
132+
"storage_has_key_byte": 1,
133+
"storage_iter_create_prefix_base": 1,
134+
"storage_iter_create_prefix_byte": 1,
135+
"storage_iter_create_range_base": 1,
136+
"storage_iter_create_from_byte": 1,
137+
"storage_iter_create_to_byte": 1,
138+
"storage_iter_next_base": 1,
139+
"storage_iter_next_key_byte": 1,
140+
"storage_iter_next_value_byte": 1,
141+
"touching_trie_node": 1,
142+
"promise_and_base": 1,
143+
"promise_and_per_promise": 1,
144+
"promise_return": 1
145+
}
146+
}

tests/context.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
1-
{"current_account_id":"alice","signer_account_id":"bob","signer_account_pk":"15T","predecessor_account_id":"carol","input":"{\"name\":\"Alice\"}","block_index":0,"account_balance":0,"attached_deposit":0,"prepaid_gas":1000000000,"random_seed":"15T","free_of_charge":false, "storage_usage": 0, "output_data_receivers": []}
1+
{
2+
"current_account_id": "alice",
3+
"signer_account_id": "bob",
4+
"signer_account_pk": "15T",
5+
"predecessor_account_id": "carol",
6+
"input": "{\"name\":\"Alice\"}",
7+
"block_index": 0,
8+
"account_balance": 0,
9+
"attached_deposit": 0,
10+
"prepaid_gas": 1000000000,
11+
"random_seed": "15T",
12+
"free_of_charge": false,
13+
"storage_usage": 0,
14+
"output_data_receivers": [],
15+
"block_timestamp": 1,
16+
"is_view": true
17+
}

0 commit comments

Comments
 (0)