xDai Bridge Contracts Management
Operations performed by owners of the MultiSig wallet
Bridge administrators can perform 4 groups of operations with the xDai bridge. All operations are performed by owners of the Multisignature Wallet which requires several accounts to confirm the operation transaction.
Multisignature Wallet Addresses:
Example action flow:
- 1.One of the multisig wallet owner encodes the method call with a set of parameters (if any). For example, this can be done with the ABI Encoding Service.
- 2.The encoded sequence of bytes is used to create a transaction for the multisig wallet contract. This is done with the
submitTransaction
method of the multisig wallet contract. The method raises the eventSubmission
containing the index of the registered transaction. The index is shared with the other owners of the wallet. - 3.The rest of the owners confirm the transaction by invoking
confirmTransaction
from the multisig wallet contract. As soon as enough confirmations are received, the method encoded in step 1 is invoked automatically. This is important because adequate gas limits must be set for that transaction and set of confirmations sent by the wallet owner finalizing the operation. - 4.If the method is not invoked because the gas limit is exceeded, the owners can execute the confirmed transaction manually by sending
executeTransaction
.
The particular action flow will vary for different management operations.
Last modified 2yr ago