ICON
SCORE SmartContract in ICON
minter.py
@eventlog
def Swap(self, hubContract: bytes, fromChain: str, toChain: str, fromAddr: bytes, toAddr: bytes, tokenAddress: bytes, bytes32s: bytes, uints: bytes, data: bytes):
pass
This event occurs when a bridge operator performs bridging with ICON Minter through the Orbit Bridge System.
bytes hubContract
: Orbit Hub Contract Addressstr fromChain
: Chain Symbol requesting bridgingstr toChain
: Chain Symbol to execute bridgingbytes fromAddr
: Address of the chain requesting bridgingbytes toAddr
: Address of chain to execute bridgingbytes tokenAddress
: Token Address minted by bridging executionbytes bytes32s
: Bytes32 data array used in the bridging consensus processbytes uints
: Uint data array used in the bridging consensus processbytes data
: Execution data for Bridge Receiver
@eventlog
def SwapNFT(self, hubContract: bytes, fromChain: str, toChain: str, fromAddr: bytes, toAddr: bytes, tokenAddress: bytes, bytes32s: bytes, uints: bytes, data: bytes):
pass
This event occurs when a bridge operator performs bridging with ICON Minter through the Orbit Bridge System.
bytes hubContract
: Orbit Hub Contract Addressstr fromChain
: Chain Symbol requesting bridgingstr toChain
: Chain Symbol to execute bridgingbytes fromAddr
: Address of the chain requesting bridgingbytes toAddr
: Address of chain to execute bridgingbytes tokenAddress
: Token Address minted by bridging executionbytes bytes32s
: Bytes32 data array used in the bridging consensus processbytes uints
: Uint data array used in the bridging consensus processbytes data
: Execution data for Bridge Receiver
@eventlog
def SwapRequest(self, fromChain: str, toChain: str, fromAddr: bytes, toAddr: bytes, token: bytes, tokenAddress: bytes, decimal: int, amount: int, depositId: int, data: bytes):
pass
Event occurs when a user who uses the Orbit Bridge System requests bridging to ICON Minter
str fromChain
: Chain Symbol requesting bridgingstr toChain
: Chain Symbol to execute bridgingbytes fromAddr
: Address of the chain requesting bridgingbytes toAddr
: Address of chain to execute bridgingbytes token
: Token Information to be executed bridgingbytes tokenAddress
: Token Address requesting bridgingint decimal
: Token Decimal requesting bridgingint amount
: Token Amount requesting bridgingint depositId
: Unique Identifier of bridging requestbytes data
: Execution data for Bridge Receiver
class MinterInterface(InterfaceScore):
@interface
def getTokenAddress(self, token: bytes) -> Address:
pass
@interface
def getChainId(self, chain: str) -> bytes:
pass
@interface
def swap(self, hubContract: bytes, fromChain: str, fromAddr: bytes, toAddr: bytes, token: bytes, bytes32s: bytes, uints: bytes, sigs: str, data: bytes = None):
pass
@interface
def swapNFT(self, hubContract: bytes, fromChain: str, fromAddr: bytes, toAddr: bytes, token: bytes, bytes32s: bytes, uints: bytes, sigs: str, data: bytes = None):
pass
@interface
@payable
def requestSwap(self, tokenAddress: Address, toChain: str, toAddr: bytes, amount: int, data: bytes = None):
pass
@interface
@payable
def def requestSwapNFT(self, nftAddress: Address, toChain: str, toAddr: bytes, tokenId: int, data: bytes = None):
pass
Last modified 2yr ago