event-contracts-multivault
MultiVaultEverscaleEventAlien
afterSignatureCheck
afterSignatureCheckReturns DAO event in slice format.
function afterSignatureCheck(TvmSlice body, TvmCell /*message*/) private inline view returns (TvmSlice)Parameters:
body
TvmSlice
Contains data such as functionId
TvmCell
Return values:
TvmSlice
DAO event represented in slice format
close
closeWhen event is confirmed/rejected transfer back gas used for triggering event.
function close() external viewonInit
onInitInitialize alien token.
function onInit() override internalreceiveTokenMeta
receiveTokenMetaReceives meta token.
function receiveTokenMeta(
uint256 base_chainId_,
uint160 base_token_,
string name,
string symbol,
uint8 decimals
) external overrideParameters:
base_chainId_
uint256
EVM network chain ID
base_token_
uint160
EVM token address
name
string
Token name
symbol
string
Token symbol
decimals
uint8
Token decimals
receiveAlienTokenRoot
receiveAlienTokenRootSets token root and loads relayers.
function receiveAlienTokenRoot(
address token_
) external overrideParameters:
token_
address
The address of the alien token to receive
onRelaysLoaded
onRelaysLoadedUpdates event data and does the change for status.
function onRelaysLoaded() override internalMultiVaultEverscaleEventNative
afterSignatureCheck
afterSignatureCheckReturns DAO event info in slice format.
function afterSignatureCheck(TvmSlice body, TvmCell /*message*/) private inline view returns (TvmSlice)Parameters:
body
TvmSlice
Contains data such as functionId
TvmCell
Return values:
TvmSlice
DAO event represented in slice format
close
closeWhen event is confirmed/rejected transfer back gas used for triggering event.
function close() external viewonInit
onInitInitializes native token.
function onInit() override internalreceiveProxyTokenWallet
receiveProxyTokenWalletSets token wallet address and loads relayers.
function receiveProxyTokenWallet(address tokenWallet_) external overrideParameters:
tokenWallet_
address
The address of the token wallet
onRelaysLoaded
onRelaysLoadedUpdates event data and does the change for status.
function onRelaysLoaded() override internalMultiVaultEVMEventAlien
afterSignatureCheck
afterSignatureCheckReturns DAO event info in slice format.
function afterSignatureCheck(
TvmSlice body,
TvmCell
) private inline view returns (TvmSlice)Parameters:
body
TvmSlice
Contains data such as functionId
TvmCell
Return values:
TvmSlice
DAO event represented in slice format
onInit
onInitInitializes evm alien token by decoding event data, sets recipient address and gets details about ethereum event configuration.
function onInit() override internalreceiveConfigurationDetails
receiveConfigurationDetailsGets configuration details based on proxy about alien token root.
function receiveConfigurationDetails(
IEthereumEventConfiguration.BasicConfiguration,
IEthereumEventConfiguration.EthereumEventConfiguration _networkConfiguration,
TvmCell
) external overrideParameters:
BasicConfiguration
Basic configuration for event including the event code, event initial balance etc.
_networkConfiguration
EthereumEventConfiguration
The configuration of the ethereum event, including event emitter, chain id, start and end block number etc.
TvmCell
receiveAlienTokenRoot
receiveAlienTokenRootSets token root based on token_ param and loads relayers.
function receiveAlienTokenRoot(address token_) external overrideReturn values:
token_
address
The address of the alien token to receive
onConfirm
onConfirmEncodes token root, amount and recipient's address to cell format and confirms event.
function onConfirm() internal overrideMultiVaultEVMEventNative
afterSignatureCheck
afterSignatureCheckReturns DAO event info in slice format.
function afterSignatureCheck(TvmSlice body, TvmCell /*message*/) private inline view returns (TvmSlice)Parameters:
body
TvmSlice
Contains data such as functionId
TvmCell
Return values:
TvmSlice
DAO event represented in slice format
onInit
onInitInitializes native token event and gets details about event configuration.
function onInit() override internalreceiveConfigurationDetails
receiveConfigurationDetailsRetrieves wallet based on proxy.
function receiveConfigurationDetails(
IEthereumEventConfiguration.BasicConfiguration,
IEthereumEventConfiguration.EthereumEventConfiguration _networkConfiguration,
TvmCell
) external overrideParameters:
BasicConfiguration
Basic configuration for event including the event code, event initial balance etc.
_networkConfiguration
EthereumEventConfiguration
The configuration of the ethereum event, including event emitter, chain id, start and end block number etc.
TvmCell
receiveProxyTokenWallet
receiveProxyTokenWalletSets token wallet address and loads relayers.
function receiveProxyTokenWallet(address tokenWallet_) external overrideParameters:
tokenWallet_
address
The address of the token wallet
onConfirm
onConfirmEncodes token wallet, amount and recipient's address to cell format and confirms event.
function onConfirm() internal overrideLast updated
Was this helpful?