@@ -122,17 +122,6 @@ fn setup_proto_transaction<'a>(
122
122
panic ! ( "Unsupported arguments" )
123
123
}
124
124
} ,
125
- "register_token" => {
126
- if let OpsDetails :: RegisterToken ( register_token) = ops_details. unwrap ( ) {
127
- Proto :: mod_SigningInput:: OneOftransaction_payload :: register_token (
128
- Proto :: ManagedTokensRegisterMessage {
129
- function : Some ( convert_type_tag_to_struct_tag ( register_token. coin_type ) ) ,
130
- } ,
131
- )
132
- } else {
133
- panic ! ( "Unsupported arguments" )
134
- }
135
- } ,
136
125
"liquid_staking_ops" => {
137
126
if let OpsDetails :: LiquidStakingOps ( liquid_staking_ops) = ops_details. unwrap ( ) {
138
127
Proto :: mod_SigningInput:: OneOftransaction_payload :: liquid_staking_message (
@@ -598,46 +587,6 @@ fn test_aptos_nft_claim() {
598
587
}"# ) ;
599
588
}
600
589
601
- // Successfully broadcasted https://explorer.aptoslabs.com/txn/0xe591252daed785641bfbbcf72a5d17864568cf32e04c0cc9129f3a13834d0e8e?network=testnet
602
- #[ test]
603
- fn test_aptos_register_token ( ) {
604
- let input = setup_proto_transaction ( "0x07968dab936c1bad187c60ce4082f307d030d780e91e694ae03aef16aba73f30" , // Sender's address
605
- "5d996aa76b3212142792d9130796cd2e11e3c445a93118c08414df4f66bc60ec" , // Keypair
606
- "register_token" ,
607
- 23 , // Sequence number
608
- 2 ,
609
- 2000000 ,
610
- 3664390082 ,
611
- 100 ,
612
- "" ,
613
- "" ,
614
- Some ( OpsDetails :: RegisterToken ( RegisterToken { coin_type : TypeTag :: from_str ( "0xe4497a32bf4a9fd5601b27661aa0b933a923191bf403bd08669ab2468d43b379::move_coin::MoveCoin" ) . unwrap ( ) } ) ) ,
615
- ) ;
616
- let output = Signer :: sign_proto ( input) ;
617
- test_tx_result ( output,
618
- "07968dab936c1bad187c60ce4082f307d030d780e91e694ae03aef16aba73f3017000000000000000200000000000000000000000000000000000000000000000000000000000000010c6d616e616765645f636f696e0872656769737465720107e4497a32bf4a9fd5601b27661aa0b933a923191bf403bd08669ab2468d43b379096d6f76655f636f696e084d6f7665436f696e000080841e00000000006400000000000000c2276ada0000000002" , // Expected raw transaction bytes
619
- "e230b49f552fb85356dbec9df13f0dc56228eb7a9c29a8af3a99f4ae95b86c72bdcaa4ff1e9beb0bd81c298b967b9d97449856ec8bc672a08e2efef345c37100" , // Expected signature
620
- "07968dab936c1bad187c60ce4082f307d030d780e91e694ae03aef16aba73f3017000000000000000200000000000000000000000000000000000000000000000000000000000000010c6d616e616765645f636f696e0872656769737465720107e4497a32bf4a9fd5601b27661aa0b933a923191bf403bd08669ab2468d43b379096d6f76655f636f696e084d6f7665436f696e000080841e00000000006400000000000000c2276ada00000000020020ea526ba1710343d953461ff68641f1b7df5f23b9042ffa2d2a798d3adb3f3d6c40e230b49f552fb85356dbec9df13f0dc56228eb7a9c29a8af3a99f4ae95b86c72bdcaa4ff1e9beb0bd81c298b967b9d97449856ec8bc672a08e2efef345c37100" , // Expected encoded transaction
621
- r#"{
622
- "expiration_timestamp_secs": "3664390082",
623
- "gas_unit_price": "100",
624
- "max_gas_amount": "2000000",
625
- "payload": {
626
- "arguments": [],
627
- "function": "0x1::managed_coin::register",
628
- "type": "entry_function_payload",
629
- "type_arguments": ["0xe4497a32bf4a9fd5601b27661aa0b933a923191bf403bd08669ab2468d43b379::move_coin::MoveCoin"]
630
- },
631
- "sender": "0x7968dab936c1bad187c60ce4082f307d030d780e91e694ae03aef16aba73f30",
632
- "sequence_number": "23",
633
- "signature": {
634
- "public_key": "0xea526ba1710343d953461ff68641f1b7df5f23b9042ffa2d2a798d3adb3f3d6c",
635
- "signature": "0xe230b49f552fb85356dbec9df13f0dc56228eb7a9c29a8af3a99f4ae95b86c72bdcaa4ff1e9beb0bd81c298b967b9d97449856ec8bc672a08e2efef345c37100",
636
- "type": "ed25519_signature"
637
- }
638
- }"# ) ;
639
- }
640
-
641
590
// Successfully broadcasted: https://explorer.aptoslabs.com/txn/0x25dca849cb4ebacbff223139f7ad5d24c37c225d9506b8b12a925de70429e685/userTxnOverview?network=mainnet
642
591
#[ test]
643
592
fn test_aptos_tortuga_stake ( ) {
0 commit comments