UNPKG

ulysses-sdk

Version:

An sdk for interacting with the Ulysses contracts

144 lines (143 loc) 5.42 kB
import { SupportedChainId } from 'maia-core-sdk'; import { gasParamsMap } from '../types'; export declare const ROOT_CHAIN_IDS: SupportedChainId[]; export declare const EVM_CHAIN_ID_TO_ROOT_CHAIN_ID: { [key in SupportedChainId]: SupportedChainId; }; /** * Holds the action ids for the branch router. * @param NO_ASSET_DEPOSIT - The action doesn't require any asset to be deposited. * @param SINGLE_ASSET_DEPOSIT - The action requires a single asset to be deposited. * @param MULTIPLE_ASSET_DEPOSIT - The action requires multiple assets to be deposited. */ export declare const BRANCH_BRIDGE_AGENT_ACTION_ID: { readonly NO_ASSET_DEPOSIT: 1; readonly SINGLE_ASSET_DEPOSIT: 2; readonly MULTIPLE_ASSET_DEPOSIT: 3; readonly RETRIEVE_SETTLEMENT: 4; readonly FALLBACK: 5; }; /** * Holds the base gas for the branch bridge agent actions. * @param NO_ASSET_DEPOSIT * @param SINGLE_ASSET_DEPOSIT * @param MULTIPLE_ASSET_DEPOSIT */ export declare const BRANCH_BRIDGE_AGENT_ACTION_BASE_GAS: { readonly NO_ASSET_DEPOSIT: 100000; readonly SINGLE_ASSET_DEPOSIT: 150000; readonly MULTIPLE_ASSET_DEPOSIT: 200000; readonly SINGLE_ASSET_DEPOSIT_WITH_FALLBACK: 290000; readonly MULTIPLE_ASSET_DEPOSIT_WITH_FALLBACK: 340000; readonly RETRIEVE_SETTLEMENT: 100000; readonly FALLBACK: 140000; }; /** * Holds the action ids for the Core Branch Router. * @param RECEIVE_ADD_GLOBAL_TOKEN * @param RECEIVE_ADD_BRIDGE_AGENT * @param TOGGLE_BRANCH_BRIDGE_AGENT_FATORY * @param TOGGLE_STRATEGY_TOKEN * @param UPDATE_STRATEGY_TOKEN * @param TOGGLE_PORT_STRATEGY * @param UPDATE_PORT_STRATEGY * @param SET_CORE_BRANCH_ROUTER * @param SWEEP */ export declare const CORE_BRANCH_ROUTER_FUNC_ID: { readonly RECEIVE_ADD_GLOBAL_TOKEN: 1; readonly RECEIVE_ADD_BRIDGE_AGENT: 2; readonly TOGGLE_BRANCH_BRIDGE_AGENT_FATORY: 3; readonly TOGGLE_STRATEGY_TOKEN: 4; readonly UPDATE_STRATEGY_TOKEN: 5; readonly TOGGLE_PORT_STRATEGY: 6; readonly UPDATE_PORT_STRATEGY: 7; readonly SET_CORE_BRANCH_ROUTER: 8; readonly SWEEP: 9; }; /** * Holds the action ids for the Core Root Router. */ export declare const CORE_ROOT_ROUTER_FUNC_ID: { readonly ADD_GLOBAL_TOKEN: 1; readonly ADD_LOCAL_TOKEN: 2; readonly SET_LOCAL_TOKEN: 3; readonly SYNC_BRANCH_BRIDGE_AGENT: 4; }; /** * Holds the action ids for the Root Bridge Agent. * @param NO_ASSET_DEPOSIT * @param SINGLE_ASSET_DEPOSIT * @param MULTIPLE_ASSET_DEPOSIT * @param SIGNED_NO_ASSET_DEPOSIT * @param SIGNED_SINGLE_ASSET_DEPOSIT * @param SIGNED_MULTIPLE_ASSET_DEPOSIT * @param RETRY_SETTLEMENT * @param RETRIEVE_DEPOSIT * @param FALLBACK */ export declare const ROOT_BRIDGE_AGENT_ACTION_ID: { readonly NO_ASSET_DEPOSIT: 1; readonly SINGLE_ASSET_DEPOSIT: 2; readonly MULTIPLE_ASSET_DEPOSIT: 3; readonly SIGNED_NO_ASSET_DEPOSIT: 4; readonly SIGNED_SINGLE_ASSET_DEPOSIT: 5; readonly SIGNED_MULTIPLE_ASSET_DEPOSIT: 6; readonly RETRY_SETTLEMENT: 7; readonly RETRIEVE_DEPOSIT: 8; readonly FALLBACK: 9; }; /** * Holds the base gas for the Root Bridge Agent actions. * @param NO_ASSET_DEPOSIT * @param SINGLE_ASSET_DEPOSIT * @param MULTIPLE_ASSET_DEPOSIT * @param SIGNED_NO_ASSET_DEPOSIT * @param SIGNED_SINGLE_ASSET_DEPOSIT * @param SIGNED_MULTIPLE_ASSET_DEPOSIT * @param RETRY_SETTLEMENT * @param RETRIEVE_DEPOSIT * @param FALLBACK */ export declare const ROOT_BRIDGE_AGENT_ACTION_BASE_GAS: { readonly NO_ASSET_DEPOSIT: 100000; readonly SINGLE_ASSET_DEPOSIT: 150000; readonly MULTIPLE_ASSET_DEPOSIT: 200000; readonly SIGNED_NO_ASSET_DEPOSIT: 100000; readonly SIGNED_SINGLE_ASSET_DEPOSIT: 150000; readonly SIGNED_MULTIPLE_ASSET_DEPOSIT: 200000; readonly SIGNED_SINGLE_ASSET_DEPOSIT_WITH_FALLBACK: 290000; readonly SIGNED_MULTIPLE_ASSET_DEPOSIT_WITH_FALLBACK: 340000; readonly RETRY_SETTLEMENT: 100000; readonly RETRIEVE_DEPOSIT: 100000; readonly FALLBACK: 140000; }; /** * Holds the functions ids to be passed on the multicall calldata first byte. * ``` * 0x01 | multicallNoOutput * 0x02 | multicallSingleOutput * 0x03 | multicallMultipleOutput * 0x04 | multicallSignedNoOutput * 0x05 | multicallSignedSingleOutput * 0x06 | multicallSignedMultipleOutput * ``` * @param NO_OUTPUT - The multicall doesn't return any output. * @param SINGLE_OUTPUT - The multicall returns a single output. * @param MULTIPLE_OUTPUT - The multicall returns multiple outputs. * @param SIGNED_NO_OUTPUT - The multicall doesn't return any output and is using the virtual account. * @param SIGNED_SINGLE_OUTPUT - The multicall returns a single output and is using the virtual account. * @param SIGNED_MULTIPLE_OUTPUT - The multicall returns multiple outputs and is using the virtual account. */ export declare const MULTICALL_FUNCID: { readonly NO_OUTPUT: "0x01"; readonly SINGLE_OUTPUT: "0x02"; readonly MULTIPLE_OUTPUT: "0x03"; readonly SIGNED_NO_OUTPUT: "0x04"; readonly SIGNED_SINGLE_OUTPUT: "0x05"; readonly SIGNED_MULTIPLE_OUTPUT: "0x06"; }; /** * Holds the default Supported Chain Id to gas params used in gas estimation. */ export declare const DEFAULT_GAS_PARAMS: gasParamsMap;