index

Bridge

Stores relays for each round, implements slashing

Functions:

Function initialize(address admin, struct IBridge.BridgeConfiguration _configuration, address[] relays)

Initializer
Parameters:
  • admin: Bridge admin
  • _configuration: Initial bridge configuration
  • relays: Initial set of relays (round 0)

Function isRelay(uint32 round, address candidate) → bool

No description

Function verifyRelaySignatures(uint32 round, bytes payload, bytes[] signatures) → bool

Required amount of signatures is (2/3 * relays at round) + 1 Signatures should be sorted by the ascending signers, so it's cheaper to detect duplicates
Parameters:
  • round: Round id
  • payload: Bytes encoded payload
  • signatures: Payload signatures
Return Values:
  • All checks are passed or not

Function recoverSignature(bytes payload, bytes signature) → address signer

No description
Parameters:
  • payload: Payload
  • signature: Signature

Function setRoundRelays(bytes payload, bytes[] signatures)

Grant relay permission for set of addresses at specific round
Parameters:
  • payload: Bytes encoded TONEvent structure
  • signatures: Payload signatures

Function setConfiguration(struct IBridge.BridgeConfiguration _configuration)

No description
Parameters:
  • _configuration: New bridge configuration

DAO

Functions:

Function initialize(address _bridge)

No description

Function updateBridge(address _bridge)

No description

Function execute(bytes payload, bytes[] signatures) → bytes[] responses

No description

IBridge

Functions:

Events:

Function isRelay(uint32 round, address candidate) → bool

No description
Parameters:
  • round: Round id
  • candidate: Address to check

Function verifyRelaySignatures(uint32 round, bytes payload, bytes[] signatures) → bool

No description

Function setRoundRelays(bytes payload, bytes[] signatures)

No description

Function setConfiguration(struct IBridge.BridgeConfiguration _configuration)

No description

Event RoundRelay(uint32 round, address relay)

Relay permission granted

Parameters:

  • round: Round id
  • relay: Relays address

Event ConfigurationUpdate(struct IBridge.BridgeConfiguration configuration)

Configuration updated

Parameters:

  • configuration: Bridge configuration

IDAO

Functions:

Function updateBridge(address _bridge)

No description

Function execute(bytes payload, bytes[] signatures) → bytes[] responses

No description

Array

Functions:

ECDSA

Functions:

UniversalERC20

Functions:

Cache

Last modified 2mo ago