Skip to content

feat: config support multiple bridge accounts w/ diff properties. #10

@joroshiba

Description

@joroshiba

We want to add the ability to support multiple astria bridge accounts, and for each of those to have a different denomination. I propose we update the config to config looking something like below around bridge accounts.

Note an additional feature will need to be added to support erc20 accounts so I'll show two shapes, now and the next version:

{
  bridge_addresses: {
    <tia_bridge_lock_addr>: {
      start_height: 1,
      asset: {
        type: "native",
        denom: "ibc/channel0/utia",
        host_precision: 6
      }
    }
  }
}

Within this the bridge asset named "native" is a special type that is the native asset with precision of 18. When we add the ability to define erc20 asset bridges it looks like this, with an example of usdc:

{
  bridge_addresses: {
    <tia_bridge_lock_addr>: {
      start_height: 1,
      asset: {
        type: "native",
        denom: "ibc/channel0/utia",
        host_precision: 6
      }
    },
    <usdc_bridge_lock_addr>: {
      start_height: 1500,
      asset: {
        type: "erc20",
        erc20_addr: 0x<contractaddress>,
        host_precision: 6,
        contract_precision: 6
      }
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions