pub trait IConnectorAdmin: IConnector {
Show 22 methods
// Required methods
fn faucet<'life0, 'async_trait>(
&'life0 self,
balance: u128,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn transfer<'life0, 'async_trait>(
&'life0 self,
address: Address32,
amount: u128,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn balance<'life0, 'async_trait>(
&'life0 self,
address: Address32,
) -> Pin<Box<dyn Future<Output = Result<u128>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn deploy_gateway<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
proxy: &'life1 [u8],
gateway: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = Result<(Address32, u64)>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn redeploy_gateway<'life0, 'life1, 'async_trait>(
&'life0 self,
proxy: Address32,
gateway: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn contract_bytecode_matches<'life0, 'life1, 'async_trait>(
&'life0 self,
address: Address32,
bytecode: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn implementation<'life0, 'async_trait>(
&'life0 self,
proxy: Address32,
) -> Pin<Box<dyn Future<Output = Result<Address32>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn admin<'life0, 'async_trait>(
&'life0 self,
gateway: Address32,
) -> Pin<Box<dyn Future<Output = Result<Address32>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set_admin<'life0, 'async_trait>(
&'life0 self,
gateway: Address32,
admin: Address32,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn shards<'life0, 'async_trait>(
&'life0 self,
gateway: Address32,
) -> Pin<Box<dyn Future<Output = Result<Vec<TssPublicKey>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set_shards<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
gateway: Address32,
register: &'life1 [(TssPublicKey, u16)],
revoke: &'life2 [(TssPublicKey, u16)],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn routes<'life0, 'async_trait>(
&'life0 self,
gateway: Address32,
) -> Pin<Box<dyn Future<Output = Result<Vec<Route>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set_route<'life0, 'async_trait>(
&'life0 self,
gateway: Address32,
route: Route,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set_prices<'life0, 'life1, 'async_trait>(
&'life0 self,
gateway: Address32,
prices: &'life1 [f64],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn deploy_tester<'life0, 'life1, 'async_trait>(
&'life0 self,
gateway: Address32,
tester: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<(Address32, u64)>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn estimate_message_gas_limit<'life0, 'async_trait>(
&'life0 self,
contract: Address32,
src_network: NetworkId,
src: Address32,
payload: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn estimate_message_cost<'life0, 'async_trait>(
&'life0 self,
gateway: Address32,
dest_network: NetworkId,
msg_size: u16,
gas_limit: u64,
) -> Pin<Box<dyn Future<Output = Result<u128>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn send_messages<'life0, 'async_trait>(
&'life0 self,
src: Address32,
dest_network: NetworkId,
dest: Address32,
gas_limit: u64,
msg_cost: u128,
payload: Vec<u8>,
amplification: u16,
) -> Pin<Box<dyn Future<Output = Result<Vec<MessageId>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn recv_messages<'life0, 'async_trait>(
&'life0 self,
contract: Address32,
blocks: Range<u64>,
) -> Pin<Box<dyn Future<Output = Result<Vec<GmpMessage>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn block_gas_limit<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn withdraw_funds<'life0, 'async_trait>(
&'life0 self,
gateway: Address32,
amount: u128,
address: Address32,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn debug_transaction<'life0, 'async_trait>(
&'life0 self,
tx: Hash,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Required Methods§
Sourcefn faucet<'life0, 'async_trait>(
&'life0 self,
balance: u128,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn faucet<'life0, 'async_trait>(
&'life0 self,
balance: u128,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Uses a faucet to fund the account when possible.
Sourcefn transfer<'life0, 'async_trait>(
&'life0 self,
address: Address32,
amount: u128,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn transfer<'life0, 'async_trait>(
&'life0 self,
address: Address32,
amount: u128,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Transfers an amount to an account.
Sourcefn balance<'life0, 'async_trait>(
&'life0 self,
address: Address32,
) -> Pin<Box<dyn Future<Output = Result<u128>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn balance<'life0, 'async_trait>(
&'life0 self,
address: Address32,
) -> Pin<Box<dyn Future<Output = Result<u128>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Queries the account balance.
Sourcefn deploy_gateway<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
proxy: &'life1 [u8],
gateway: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = Result<(Address32, u64)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn deploy_gateway<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
proxy: &'life1 [u8],
gateway: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = Result<(Address32, u64)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Deploys the proxy contract.
Sourcefn redeploy_gateway<'life0, 'life1, 'async_trait>(
&'life0 self,
proxy: Address32,
gateway: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn redeploy_gateway<'life0, 'life1, 'async_trait>(
&'life0 self,
proxy: Address32,
gateway: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Redeploys the gateway contract.
Sourcefn contract_bytecode_matches<'life0, 'life1, 'async_trait>(
&'life0 self,
address: Address32,
bytecode: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn contract_bytecode_matches<'life0, 'life1, 'async_trait>(
&'life0 self,
address: Address32,
bytecode: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Contract bytecode matches.
Sourcefn implementation<'life0, 'async_trait>(
&'life0 self,
proxy: Address32,
) -> Pin<Box<dyn Future<Output = Result<Address32>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn implementation<'life0, 'async_trait>(
&'life0 self,
proxy: Address32,
) -> Pin<Box<dyn Future<Output = Result<Address32>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Proxy implementation address.
Sourcefn admin<'life0, 'async_trait>(
&'life0 self,
gateway: Address32,
) -> Pin<Box<dyn Future<Output = Result<Address32>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn admin<'life0, 'async_trait>(
&'life0 self,
gateway: Address32,
) -> Pin<Box<dyn Future<Output = Result<Address32>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns the gateway admin.
Sourcefn set_admin<'life0, 'async_trait>(
&'life0 self,
gateway: Address32,
admin: Address32,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_admin<'life0, 'async_trait>(
&'life0 self,
gateway: Address32,
admin: Address32,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sets the gateway admin.
Sourcefn shards<'life0, 'async_trait>(
&'life0 self,
gateway: Address32,
) -> Pin<Box<dyn Future<Output = Result<Vec<TssPublicKey>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn shards<'life0, 'async_trait>(
&'life0 self,
gateway: Address32,
) -> Pin<Box<dyn Future<Output = Result<Vec<TssPublicKey>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns the registered shard keys.
Sourcefn set_shards<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
gateway: Address32,
register: &'life1 [(TssPublicKey, u16)],
revoke: &'life2 [(TssPublicKey, u16)],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn set_shards<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
gateway: Address32,
register: &'life1 [(TssPublicKey, u16)],
revoke: &'life2 [(TssPublicKey, u16)],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Sets the registered shard keys. Overwrites any other keys.
Sourcefn routes<'life0, 'async_trait>(
&'life0 self,
gateway: Address32,
) -> Pin<Box<dyn Future<Output = Result<Vec<Route>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn routes<'life0, 'async_trait>(
&'life0 self,
gateway: Address32,
) -> Pin<Box<dyn Future<Output = Result<Vec<Route>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns the gateway routing table.
Sourcefn set_route<'life0, 'async_trait>(
&'life0 self,
gateway: Address32,
route: Route,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_route<'life0, 'async_trait>(
&'life0 self,
gateway: Address32,
route: Route,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Updates an entry in the gateway routing table.
Sourcefn set_prices<'life0, 'life1, 'async_trait>(
&'life0 self,
gateway: Address32,
prices: &'life1 [f64],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn set_prices<'life0, 'life1, 'async_trait>(
&'life0 self,
gateway: Address32,
prices: &'life1 [f64],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Updates the prices for all routes in the gateway.
Sourcefn deploy_tester<'life0, 'life1, 'async_trait>(
&'life0 self,
gateway: Address32,
tester: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<(Address32, u64)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn deploy_tester<'life0, 'life1, 'async_trait>(
&'life0 self,
gateway: Address32,
tester: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<(Address32, u64)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Deploys a test contract.
Sourcefn estimate_message_gas_limit<'life0, 'async_trait>(
&'life0 self,
contract: Address32,
src_network: NetworkId,
src: Address32,
payload: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn estimate_message_gas_limit<'life0, 'async_trait>(
&'life0 self,
contract: Address32,
src_network: NetworkId,
src: Address32,
payload: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Estimates the message gas limit.
Sourcefn estimate_message_cost<'life0, 'async_trait>(
&'life0 self,
gateway: Address32,
dest_network: NetworkId,
msg_size: u16,
gas_limit: u64,
) -> Pin<Box<dyn Future<Output = Result<u128>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn estimate_message_cost<'life0, 'async_trait>(
&'life0 self,
gateway: Address32,
dest_network: NetworkId,
msg_size: u16,
gas_limit: u64,
) -> Pin<Box<dyn Future<Output = Result<u128>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Estimates the message cost.
Sourcefn send_messages<'life0, 'async_trait>(
&'life0 self,
src: Address32,
dest_network: NetworkId,
dest: Address32,
gas_limit: u64,
msg_cost: u128,
payload: Vec<u8>,
amplification: u16,
) -> Pin<Box<dyn Future<Output = Result<Vec<MessageId>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send_messages<'life0, 'async_trait>(
&'life0 self,
src: Address32,
dest_network: NetworkId,
dest: Address32,
gas_limit: u64,
msg_cost: u128,
payload: Vec<u8>,
amplification: u16,
) -> Pin<Box<dyn Future<Output = Result<Vec<MessageId>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sends a message using the test contract and returns the message id.
Sourcefn recv_messages<'life0, 'async_trait>(
&'life0 self,
contract: Address32,
blocks: Range<u64>,
) -> Pin<Box<dyn Future<Output = Result<Vec<GmpMessage>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn recv_messages<'life0, 'async_trait>(
&'life0 self,
contract: Address32,
blocks: Range<u64>,
) -> Pin<Box<dyn Future<Output = Result<Vec<GmpMessage>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Receives messages from test contract.
Sourcefn block_gas_limit<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn block_gas_limit<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Calculate returns the latest block gas_limit for a chain.