Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.
This repository was archived by the owner on May 9, 2024. It is now read-only.

Transfer erc721 on Avlanche #642

Description

@swgpd
  1. Environment
    SRC : Avalanche WAGMI subnet
    DST : Avalanche C Chain

  2. To-do : Transfer NFT on both chains

  3. Problems
    a) We need only erc721Handler, so our 'config.json' is like bellow. But the bridge is not working.
    {
    "chains": [
    {
    "name": "WAGMI",
    "type": "ethereum",
    "id": "0",
    "endpoint": "https://subnets.avax.network/wagmi/wagmi-chain-testnet/rpc",
    "from": "0x751D11ae5C8863A0E8f10D4D1Df1932Eb3dd7fb5",
    "opts": {
    "bridge": "0xD683E52662312E33495Cf32B0dFDCC0540a194BE",
    "erc721Handler": "0x9498d403A9B114BfaeF2195B64Bdb2f356D92253",
    "gasLimit": "1000000",
    "maxGasPrice": "50000000000",
    "http": "true",
    "blockConfirmations":"0"
    }
    },
    {
    "name": "Fuji",
    "type": "ethereum",
    "id": "1",
    "endpoint": "https://api.avax-test.network/ext/bc/C/rpc",
    "from": "0x751D11ae5C8863A0E8f10D4D1Df1932Eb3dd7fb5",
    "opts": {
    "bridge": "0x09C4bE97e07083E316694Eb4761c398E5E1E42D9",
    "erc721Handler": "0x9dd0Ee285B0bb0B10BC47556cC6A7cA759219835",
    "gasLimit": "1000000",
    "maxGasPrice": "50000000000",
    "http": "true",
    "blockConfirmations":"0"
    }
    }
    ]
    }

b) Is this right to register 'erc721Handler'?

cb-sol-cli --url $SRC_GATEWAY --privateKey $SRC_PK --gasPrice 25000000000 deploy
--bridge --erc721Handler
--relayers $SRC_ADDR
--relayerThreshold 1
--expiry 500
--chainId 0

cb-sol-cli --url $SRC_GATEWAY --privateKey $SRC_PK --gasPrice 25000000000 bridge register-resource
--bridge $SRC_BRIDGE
--handler $SRC_NFT_HANDLER
--resourceId $RESOURCE_ID
--targetContract $SRC_NFT

cb-sol-cli --url $DST_GATEWAY --privateKey $DST_PK --gasPrice 25000000000 deploy
--bridge --erc721 --erc721Handler
--relayers $DST_ADDR
--relayerThreshold 1
--chainId 1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions