LayerZero-Labs / LayerZero-v1

An Omnichain Interoperability Protocol
Other
1.96k stars 1.25k forks source link

I need to determine the interface of the sendFrom and estimateSendFee function. #5

Open Akira-Taniguchi opened 2 years ago

Akira-Taniguchi commented 2 years ago

[ERC20] https://github.com/LayerZero-Labs/solidity-examples/blob/main/contracts/token/oft/IOFTCore.sol#L20 https://github.com/LayerZero-Labs/solidity-examples/blob/main/contracts/token/oft/IOFTCore.sol#L32

[ERC721] https://github.com/LayerZero-Labs/solidity-examples/blob/main/contracts/token/onft/IONFT721Core.sol#L19 https://github.com/LayerZero-Labs/solidity-examples/blob/main/contracts/token/onft/IONFT721Core.sol#L27

By determining the interface of these functions, a contract wallet, for example, would be able to say that it supports chain-to-chain transfers if the tokens are compatible with LayeyZero. Because Axelar has a fixed interface for the function that sends the tokens, it is in a position to easily accommodate large-scale development and inter-chain movement of contract wallets.

Akira-Taniguchi commented 2 years ago

please