WhiteLightVerifier

Transfer verifier for chains with high fees

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

State-Changing Functions

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

setMinConfirmations

function setMinConfirmations(uint256 _minConfirmations) external;

Sets minimal required confirmations to confirm the transfer.

Parameter

Type

Description

_minConfirmations

uint256

Minimal required confirmations

addOracle

function addOracle(address _oracle) external;

Add new oracle.

Parameter

Type

Description

_oracle

address

Oracle's address

function removeOracle(address _oracle) external;

Remove oracle.

Parameter

Type

Description

_oracle

address

Oracle's address

‚Äč