Variable NativeBridgeMethodsConst
Native Bridge Methods : { generateOperation ( privateKey : string ,
publicKey : string ,
originChainType : "EVM" | "SOLANA" ,
originChain : | "base" | "eth" | "SOLANA" | "polygon" | "bsc" | "arbitrum" | "optimism" | "avalanche" ,
destinationChainType : "EVM" | "SOLANA" ,
destinationChain : | "base" | "eth" | "SOLANA" | "polygon" | "bsc" | "arbitrum" | "optimism" | "avalanche" ,
originAddress : string ,
destinationAddress : string ,
amount : string ,
token : "USDC" ) : RPCRequest ; generateOperationTx ( compiled : NativeBridgeOperationCompiled ) : Transaction ; validateChain ( chain : string ,
chainType : string ,
isOrigin : boolean ) : void ; } = ... Type declaration generate Operation : functiongenerate Operation ( privateKey , publicKey , originChainType , originChain , destinationChainType , destinationChain , originAddress , destinationAddress , amount , token ) : RPCRequest Parameters privateKey : string publicKey : string originChainType : "EVM" | "SOLANA" originChain : | "base" | "eth" | "SOLANA" | "polygon" | "bsc" | "arbitrum" | "optimism" | "avalanche" destinationChainType : "EVM" | "SOLANA" destinationChain : | "base" | "eth" | "SOLANA" | "polygon" | "bsc" | "arbitrum" | "optimism" | "avalanche" originAddress : string destinationAddress : string amount : string token : "USDC" generate Operation Tx : functionvalidate Chain : functionvalidate Chain ( chain , chainType , isOrigin ) : void Parameters chain : string chainType : string isOrigin : boolean Returns void
Generates a new operation, ready to be sent to the node as a RPCRequest TODO Implement the params REVIEW Should we use the identity somehow or we keep using the private key?