Skip to content

Refactor all-chain-config #131

@Aman035

Description

@Aman035

Current chain config

❯ pchaind q uregistry all-chain-configs --node https://rpc-testnet-donut-node1.push.org
configs:
- block_confirmation:
    standard_inbound: 1
  chain: eip155:11155111
  enabled:
    isInboundEnabled: true
    isOutboundEnabled: true
  gas_oracle_fetch_interval: 30s
  gateway_address: 0x05bD7a3D18324c1F7e216f7fBF2b15985aE5281A
  gateway_methods:
  - confirmation_type: CONFIRMATION_TYPE_STANDARD
    event_identifier: 0x33e6cf63a9ddbaee9d86893573e2616fe7a78fc9b7b23acb7da8b58bd0024041
    identifier: "0x65f4dbe1"
    name: sendFunds
  - confirmation_type: CONFIRMATION_TYPE_FAST
    event_identifier: 0xb28f49668e7e76dc96d7aabe5b7f63fecfbd1c3574774c05e8204e749fd96fbd
    identifier: "0xf9bfe8a7"
    name: addFunds
  public_rpc_url: https://eth-sepolia.public.blastapi.io
  vm_type: EVM
- block_confirmation:
    standard_inbound: 1
  chain: eip155:421614
  enabled:
    isInboundEnabled: true
    isOutboundEnabled: true
  gas_oracle_fetch_interval: 30s
  gateway_address: 0x2cd870e0166Ba458dEC615168Fd659AacD795f34
  gateway_methods:
  - confirmation_type: CONFIRMATION_TYPE_STANDARD
    event_identifier: 0x33e6cf63a9ddbaee9d86893573e2616fe7a78fc9b7b23acb7da8b58bd0024041
    identifier: "0x65f4dbe1"
    name: sendFunds
  - confirmation_type: CONFIRMATION_TYPE_FAST
    event_identifier: 0xb28f49668e7e76dc96d7aabe5b7f63fecfbd1c3574774c05e8204e749fd96fbd
    identifier: "0xf9bfe8a7"
    name: addFunds
  public_rpc_url: https://endpoints.omniatech.io/v1/arbitrum/sepolia/public
  vm_type: EVM
- block_confirmation:
    standard_inbound: 1
  chain: eip155:84532
  enabled:
    isInboundEnabled: true
    isOutboundEnabled: true
  gas_oracle_fetch_interval: 30s
  gateway_address: 0xFD4fef1F43aFEc8b5bcdEEc47f35a1431479aC16
  gateway_methods:
  - confirmation_type: CONFIRMATION_TYPE_STANDARD
    event_identifier: 0x33e6cf63a9ddbaee9d86893573e2616fe7a78fc9b7b23acb7da8b58bd0024041
    identifier: "0x65f4dbe1"
    name: sendFunds
  - confirmation_type: CONFIRMATION_TYPE_FAST
    event_identifier: 0xb28f49668e7e76dc96d7aabe5b7f63fecfbd1c3574774c05e8204e749fd96fbd
    identifier: "0xf9bfe8a7"
    name: addFunds
  public_rpc_url: https://sepolia.base.org
  vm_type: EVM
- block_confirmation:
    standard_inbound: 1
  chain: eip155:97
  enabled:
    isInboundEnabled: true
    isOutboundEnabled: true
  gas_oracle_fetch_interval: 30s
  gateway_address: 0x44aFFC61983F4348DdddB886349eb992C061EaC0
  gateway_methods:
  - confirmation_type: CONFIRMATION_TYPE_STANDARD
    event_identifier: 0x33e6cf63a9ddbaee9d86893573e2616fe7a78fc9b7b23acb7da8b58bd0024041
    identifier: "0x65f4dbe1"
    name: sendFunds
  - confirmation_type: CONFIRMATION_TYPE_FAST
    event_identifier: 0xb28f49668e7e76dc96d7aabe5b7f63fecfbd1c3574774c05e8204e749fd96fbd
    identifier: "0xf9bfe8a7"
    name: addFunds
  public_rpc_url: https://bsc-testnet-rpc.publicnode.com
  vm_type: EVM
- block_confirmation:
    standard_inbound: 1
  chain: solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1
  enabled:
    isInboundEnabled: true
    isOutboundEnabled: true
  gas_oracle_fetch_interval: 30s
  gateway_address: CFVSincHYbETh2k7w6u1ENEkjbSLtveRCEBupKidw2VS
  gateway_methods:
  - confirmation_type: CONFIRMATION_TYPE_FAST
    event_identifier: 7f1f6cffbb134644
    identifier: 84ed4c39500ab38a
    name: add_funds
  - confirmation_type: CONFIRMATION_TYPE_STANDARD
    event_identifier: 6c9ad829b5ea1d7c
    identifier: 54f7d3283f6a0f3b
    name: send_funds
  public_rpc_url: https://api.devnet.solana.com
  vm_type: SVM

Suggestions

  • public_rpc_url is not needed
  • event_identifier is sufficient. Identifier can be removed
  • add_funds has been removed in Fee Abs V1 and should be a part of this config
  • name - rather than giving fn name, it should give INBOUND or OUTBOUND since these events r mainly related to listening for inbounds and outbounds. Ig this can be renamed to event_type

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions