Skip to content

Investigate additional necessary chain params/configuration for supporting SUI withdraw #3499

@lumtis

Description

@lumtis

To perform withdraws the TSS must provide these two values:

  • gateway object ID
  • withdrawCap object ID

To do a whitelisting the following value:

  • whitelistCap

WithdrawCap and whitelistCap IDs can be parsed in the gateway object, therefore only Gateway Object ID needs to be stored

Gateway object ID should be stored somewhere.

Considered options:

  • In the gateway field of chain params: it will already contains the gateway package ID to allow parsing events, but it would be trivial to include a separator to include the gateway
    -> Drawback: field value is more "complex" and increase potential for mistake when setting the chain params

  • Add a new field in the chain params to include this value
    -> Drawback: new field dedicated for Sui only

  • Add the value as a ZetaClient config value
    -> There is no security risk associated with wrong value, a package ID is coupled with a gateway object ID, if wrong value is set TSS will not be able to perform withdraws
    -> Drawback: manual step for observers

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions