RedeemedHashes

Contract used to keep track of the retryable tickets (aka L1-to-L2 messages) that are manually redeemed by the Akash deployments.

Github repo here.

Open methods

getRedeemsPerTask

function getRedeemsPerTask(bytes32 taskId_) external view returns(bytes32[] memory);

Gets the L1 hashes of the transactions of a particular Account that were manually redeemed by an Akash deployment.

Parameters:

Name
Type
Description

taskId_

bytes32

Gelato task ID of the Account

Return values:

Type
Description

bytes32[]

Manually redeemed L1 hashes

getTotalRedemptions

function getTotalRedemptions() external view returns(bytes32[] memory);

Gets the L1 transaction hashes of all the manual redemptions ever done within this subsystem.

Return values:

Type
Description

bytes32[]

All L1 hashes ever manually redeemed

wasRedeemed

function wasRedeemed(bytes32 taskId_, bytes32 hash_) external view returns(bool);

Queries if a L1 retryable ticket was manually redeemed or not.

Parameters:

Name
Type
Description

taskId_

bytes32

Gelato task ID of the Account

hash_

bytes32

L1 transaction hash to query

Return values:

Type
Description

boolean

If the retryable ticket was manually redeemed or not

System methods

storeRedemption

function storeRedemption(bytes32 taskId_, bytes32 hash_) external onlyOwner;

Stores the information of an L1 retryable ticket that was manually redeemed.

Parameters:

Name
Type
Description

taskId_

bytes32

Gelato task ID of the Account

hash_

bytes32

L1 transaction hash that was manually redeemed

Last updated