Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SignatureBridgeSide

Implements

Index

Constructors

Properties

ANCHOR_HANDLER_MISSING_ERROR: Error = ...
TOKEN_HANDLER_MISSING_ERROR: Error = ...
TREASURY_HANDLER_MISSING_ERROR: Error = ...
admin: Signer
anchorHandler: Anchors.AnchorHandler
governor: Wallet
proposals: Proposal[]
signingSystemSignFn: (data: any) => Promise<string>

Type declaration

    • (data: any): Promise<string>
    • Parameters

      • data: any

      Returns Promise<string>

treasuryHandler: Tokens.TreasuryHandler

Methods

  • connectAnchorWithSignature(anchor: IAnchor): Promise<string>
  • createAnchorUpdateProposalData(srcAnchor: IAnchor, executionResourceID: string): Promise<string>
  • Creates the proposal data for updating an execution anchor with the latest state of a source anchor (i.e. most recent deposit).

    Parameters

    • srcAnchor: IAnchor

      The anchor instance whose state has updated.

    • executionResourceID: string

    Returns Promise<string>

    Promise

  • createHandlerUpdateProposalData(anchor: IAnchor, newHandler: string): Promise<string>
  • createMaxDepositLimitProposalData(vAnchor: IAnchor, _maximumDepositAmount: string): Promise<string>
  • createMinWithdrawalLimitProposalData(vAnchor: IAnchor, _minimalWithdrawalAmount: string): Promise<string>
  • createRescueTokensProposalData(treasury: Tokens.Treasury, tokenAddress: string, to: string, amountToRescue: BigNumber): Promise<string>
  • createResourceId(): Promise<string>
  • createTreasuryHandlerUpdateProposalData(treasury: Tokens.Treasury, newHandler: string): Promise<string>
  • execute(proposalData: string): Promise<ContractReceipt>
  • executeAnchorProposalWithSig(srcAnchor: IAnchor, executionResourceID: string): Promise<ContractReceipt>
  • executeHandlerProposalWithSig(anchor: IAnchor, newHandler: string): Promise<ContractReceipt>
  • executeMaxDepositLimitProposalWithSig(anchor: IAnchor, _maximumDepositAmount: string): Promise<ContractReceipt>
  • executeMinWithdrawalLimitProposalWithSig(anchor: IAnchor, _minimalWithdrawalAmount: string): Promise<ContractReceipt>
  • executeRescueTokensProposalWithSig(treasury: Tokens.Treasury, tokenAddress: string, to: string, amountToRescue: BigNumber): Promise<ContractReceipt>
  • executeTreasuryHandlerProposalWithSig(treasury: Tokens.Treasury, newHandler: string): Promise<ContractReceipt>
  • setResourceWithSignature(anchor: IAnchor): Promise<string>
  • setTreasuryResourceWithSignature(treasury: Tokens.Treasury): Promise<string>
  • transferOwnership(newOwner: string, nonce: number): Promise<ContractTransaction>
  • Transfers ownership directly from the current governor to the new governor. Note that this requires an externally-signed transaction from the current governor.

    Parameters

    • newOwner: string

      The new owner of the bridge

    • nonce: number

    Returns Promise<ContractTransaction>

Generated using TypeDoc