WhiteLightAggregator

Aggregator for chains with high fees (deployed to gas-efficient chains)

Events

Confirmed

event Confirmed(bytes32 submissionId, address operator);

Emits once the submission is confirmed by one oracle.

Parameter

Type

Description

submissionId

bytes32

Submission identifier

operator

address

Oracle address

SubmissionApproved

event SubmissionApproved(bytes32 submissionId);

Emits once the submission is confirmed by min required amount of oracles.

Parameter

Type

Description

_submissionId

bytes32

Submission identifier

Read-Only Functions

isSubmissionConfirmed

function isSubmissionConfirmed(bytes32 _submissionId)
external;

Returns submission confirmation details.

Parameter

Type

Description

_submissionId

bytes32

Submission identifier

getSubmissionInfo

function getSubmissionInfo(bytes32 _submissionId) external view returns (SubmissionInfo);

Returns whether transfer request is confirmed.

Parameter

Type

Description

_submissionId

bytes32

Submission identifier

getUnsignedMsg

function getUnsignedMsg(bytes32 _submissionId)
public;

Prepares raw msg that was signed by the oracle.

Parameter

Type

Description

_submissionId

bytes32

Submission identifier

splitSignature

function splitSignature(bytes memory _signature)
public;

Splits signature bytes to r,s,v components.

Parameter

Type

Description

_signature

bytes memory

Signature bytes in format r+s+v

ORACLE_ROLE

function ORACLE_ROLE() public view returns (bytes32);

Returns oracle role identifier.

minConfirmations

function minConfirmations() public view returns (uint256);

Returns minimal required confirmations to confirm the transfer.

State-Changing Functions

submitMany

function submitMany(
bytes32[] memory _submissionIds,
bytes[] memory _signatures
) external;

Confirms few transfer requests.

Parameter

Type

Description

_submissionIds

bytes32[] memory

Submission identifiers

_signatures

bytes[] memory

Oracles signatures.

submit

function submit(bytes32 _submissionId, bytes memory _signature)
external;

Confirms the transfer request.

Parameter

Type

Description

_submissionId

bytes32

Submission identifier

_signature

bytes memory

Oracles signature