Execute Contract
1. Cross-Chain Proposal Contract Interface
1.1. On the Endless chain, the interface for sending a cross-chain proposal is defined as follows:
public entry fun bridge_proposal(
sender: &signer,
source_token: address,
to_chain: vector<u8>,
to_contract: vector<u8>,
to_who: vector<u8>,
all_amount: u128,
upload_gas_fee: u128
)
public entry fun bridge_proposal_with_extra_data(
sender: &signer,
source_token: address,
to_chain: vector<u8>,
to_contract: vector<u8>,
to_who: vector<u8>,
all_amount: u128,
upload_gas_fee: u128,
extra_data: vector<u8>
)1.2. The cross-chain proposal method and ABI on Sepolia, BSC, and Nile networks are as follows:
1.3. Cross-Chain Proposal Method Definition and IDL on Solana Chain
2. Cross-Chain Completion Contract Interface
2.1. The cross-chain completion interface is defined as follows on the Endless chain:
2.2. The message consumption method and ABI on Sepolia, BSC, and Nile chains are defined as follows:
2.3. The cross-chain completion method definition and IDL on the Solana chain are as follows:
Last updated