@@ -172,7 +172,7 @@ pub fn execute_create_account(
172
172
pub fn quorum_vote < S : StateView > ( state_view : & S , token : TypeTag ) -> u128 {
173
173
let mut ret = execute_readonly_function (
174
174
state_view,
175
- & ModuleId :: new ( genesis_address ( ) , Identifier :: new ( "Dao " ) . unwrap ( ) ) ,
175
+ & ModuleId :: new ( genesis_address ( ) , Identifier :: new ( "dao " ) . unwrap ( ) ) ,
176
176
& Identifier :: new ( "quorum_votes" ) . unwrap ( ) ,
177
177
vec ! [ token] ,
178
178
vec ! [ ] ,
@@ -186,7 +186,7 @@ pub fn quorum_vote<S: StateView>(state_view: &S, token: TypeTag) -> u128 {
186
186
pub fn voting_delay < S : StateView > ( state_view : & S , token : TypeTag ) -> u64 {
187
187
let mut ret = execute_readonly_function (
188
188
state_view,
189
- & ModuleId :: new ( genesis_address ( ) , Identifier :: new ( "Dao " ) . unwrap ( ) ) ,
189
+ & ModuleId :: new ( genesis_address ( ) , Identifier :: new ( "dao " ) . unwrap ( ) ) ,
190
190
& Identifier :: new ( "voting_delay" ) . unwrap ( ) ,
191
191
vec ! [ token] ,
192
192
vec ! [ ] ,
@@ -200,7 +200,7 @@ pub fn voting_delay<S: StateView>(state_view: &S, token: TypeTag) -> u64 {
200
200
pub fn voting_period < S : StateView > ( state_view : & S , token : TypeTag ) -> u64 {
201
201
let mut ret = execute_readonly_function (
202
202
state_view,
203
- & ModuleId :: new ( genesis_address ( ) , Identifier :: new ( "Dao " ) . unwrap ( ) ) ,
203
+ & ModuleId :: new ( genesis_address ( ) , Identifier :: new ( "dao " ) . unwrap ( ) ) ,
204
204
& Identifier :: new ( "voting_period" ) . unwrap ( ) ,
205
205
vec ! [ token] ,
206
206
vec ! [ ] ,
@@ -214,7 +214,7 @@ pub fn voting_period<S: StateView>(state_view: &S, token: TypeTag) -> u64 {
214
214
pub fn min_action_delay < S : StateView > ( state_view : & S , token : TypeTag ) -> u64 {
215
215
let mut ret = execute_readonly_function (
216
216
state_view,
217
- & ModuleId :: new ( genesis_address ( ) , Identifier :: new ( "Dao " ) . unwrap ( ) ) ,
217
+ & ModuleId :: new ( genesis_address ( ) , Identifier :: new ( "dao " ) . unwrap ( ) ) ,
218
218
& Identifier :: new ( "min_action_delay" ) . unwrap ( ) ,
219
219
vec ! [ token] ,
220
220
vec ! [ ] ,
@@ -253,7 +253,7 @@ fn execute_cast_vote(
253
253
let script_function = EntryFunction :: new (
254
254
ModuleId :: new (
255
255
core_code_address ( ) ,
256
- Identifier :: new ( "DaoVoteScripts " ) . unwrap ( ) ,
256
+ Identifier :: new ( "dao_vote_scripts " ) . unwrap ( ) ,
257
257
) ,
258
258
Identifier :: new ( "cast_vote" ) . unwrap ( ) ,
259
259
vec ! [ stc_type_tag( ) , dao_action_type_tag. clone( ) ] ,
@@ -296,7 +296,7 @@ pub fn vote_script_consensus(_net: &ChainNetwork, strategy: u8) -> EntryFunction
296
296
EntryFunction :: new (
297
297
ModuleId :: new (
298
298
core_code_address ( ) ,
299
- Identifier :: new ( "OnChainConfigScripts " ) . unwrap ( ) ,
299
+ Identifier :: new ( "on_chain_config_scripts " ) . unwrap ( ) ,
300
300
) ,
301
301
Identifier :: new ( "propose_update_consensus_config" ) . unwrap ( ) ,
302
302
vec ! [ ] ,
@@ -322,7 +322,7 @@ pub fn vote_reward_scripts(_net: &ChainNetwork, reward_delay: u64) -> EntryFunct
322
322
EntryFunction :: new (
323
323
ModuleId :: new (
324
324
core_code_address ( ) ,
325
- Identifier :: new ( "OnChainConfigScripts " ) . unwrap ( ) ,
325
+ Identifier :: new ( "on_chain_config_scripts " ) . unwrap ( ) ,
326
326
) ,
327
327
Identifier :: new ( "propose_update_reward_config" ) . unwrap ( ) ,
328
328
vec ! [ ] ,
@@ -338,7 +338,7 @@ pub fn vote_txn_timeout_script(_net: &ChainNetwork, duration_seconds: u64) -> En
338
338
EntryFunction :: new (
339
339
ModuleId :: new (
340
340
core_code_address ( ) ,
341
- Identifier :: new ( "OnChainConfigScripts " ) . unwrap ( ) ,
341
+ Identifier :: new ( "on_chain_config_scripts " ) . unwrap ( ) ,
342
342
) ,
343
343
Identifier :: new ( "propose_update_txn_timeout_config" ) . unwrap ( ) ,
344
344
vec ! [ ] ,
@@ -358,7 +358,7 @@ pub fn vote_txn_publish_option_script(
358
358
EntryFunction :: new (
359
359
ModuleId :: new (
360
360
core_code_address ( ) ,
361
- Identifier :: new ( "OnChainConfigScripts " ) . unwrap ( ) ,
361
+ Identifier :: new ( "on_chain_config_scripts " ) . unwrap ( ) ,
362
362
) ,
363
363
Identifier :: new ( "propose_update_txn_publish_option" ) . unwrap ( ) ,
364
364
vec ! [ ] ,
@@ -375,7 +375,7 @@ pub fn vote_vm_config_script(_net: &ChainNetwork, vm_config: VMConfig) -> EntryF
375
375
EntryFunction :: new (
376
376
ModuleId :: new (
377
377
core_code_address ( ) ,
378
- Identifier :: new ( "OnChainConfigScripts " ) . unwrap ( ) ,
378
+ Identifier :: new ( "on_chain_config_scripts " ) . unwrap ( ) ,
379
379
) ,
380
380
Identifier :: new ( "propose_update_vm_config" ) . unwrap ( ) ,
381
381
vec ! [ ] ,
@@ -390,7 +390,7 @@ pub fn vote_language_version(_net: &ChainNetwork, lang_version: u64) -> EntryFun
390
390
EntryFunction :: new (
391
391
ModuleId :: new (
392
392
core_code_address ( ) ,
393
- Identifier :: new ( "OnChainConfigScripts " ) . unwrap ( ) ,
393
+ Identifier :: new ( "on_chain_config_scripts " ) . unwrap ( ) ,
394
394
) ,
395
395
Identifier :: new ( "propose_update_move_language_version" ) . unwrap ( ) ,
396
396
vec ! [ ] ,
@@ -405,7 +405,7 @@ pub fn vote_flexi_dag_config(_net: &ChainNetwork, effective_height: u64) -> Entr
405
405
EntryFunction :: new (
406
406
ModuleId :: new (
407
407
core_code_address ( ) ,
408
- Identifier :: new ( "OnChainConfigScripts " ) . unwrap ( ) ,
408
+ Identifier :: new ( "on_chain_config_scripts " ) . unwrap ( ) ,
409
409
) ,
410
410
Identifier :: new ( "propose_update_flexi_dag_effective_height" ) . unwrap ( ) ,
411
411
vec ! [ ] ,
@@ -425,7 +425,7 @@ pub fn execute_script_on_chain_config(
425
425
EntryFunction :: new (
426
426
ModuleId :: new (
427
427
core_code_address ( ) ,
428
- Identifier :: new ( "OnChainConfigScripts " ) . unwrap ( ) ,
428
+ Identifier :: new ( "on_chain_config_scripts " ) . unwrap ( ) ,
429
429
) ,
430
430
Identifier :: new ( "execute_on_chain_config_proposal" ) . unwrap ( ) ,
431
431
vec ! [ type_tag] ,
@@ -551,7 +551,7 @@ pub fn dao_vote_test(
551
551
assert_eq ! ( state, AGREED ) ;
552
552
553
553
let script_function = EntryFunction :: new (
554
- ModuleId :: new ( core_code_address ( ) , Identifier :: new ( "Dao " ) . unwrap ( ) ) ,
554
+ ModuleId :: new ( core_code_address ( ) , Identifier :: new ( "dao " ) . unwrap ( ) ) ,
555
555
Identifier :: new ( "queue_proposal_action" ) . unwrap ( ) ,
556
556
vec ! [ stc_type_tag( ) , action_type_tag. clone( ) ] ,
557
557
vec ! [
@@ -635,7 +635,7 @@ pub fn dao_vote_test(
635
635
let script_function = EntryFunction :: new (
636
636
ModuleId :: new (
637
637
core_code_address ( ) ,
638
- Identifier :: new ( "DaoVoteScripts " ) . unwrap ( ) ,
638
+ Identifier :: new ( "dao_vote_scripts " ) . unwrap ( ) ,
639
639
) ,
640
640
Identifier :: new ( "unstake_vote" ) . unwrap ( ) ,
641
641
vec ! [ stc_type_tag( ) , action_type_tag. clone( ) ] ,
@@ -653,7 +653,7 @@ pub fn dao_vote_test(
653
653
{
654
654
// Destroy terminated proposal
655
655
let script_function = EntryFunction :: new (
656
- ModuleId :: new ( core_code_address ( ) , Identifier :: new ( "Dao " ) . unwrap ( ) ) ,
656
+ ModuleId :: new ( core_code_address ( ) , Identifier :: new ( "dao " ) . unwrap ( ) ) ,
657
657
Identifier :: new ( "destroy_terminated_proposal" ) . unwrap ( ) ,
658
658
vec ! [ stc_type_tag( ) , action_type_tag] ,
659
659
vec ! [
0 commit comments