LRTAddressCalculator

Git Source

Functions

getCoordinator

Calculates the address of the LRT coordinator.

function getCoordinator(address issuer, address token) internal pure returns (address);

Parameters

NameTypeDescription

issuer

address

The address of the LRT issuer.

token

address

The LRT contract address.

getAssetRegistry

Calculates the address of the LRT asset registry.

function getAssetRegistry(address issuer, address token) internal pure returns (address);

Parameters

NameTypeDescription

issuer

address

The address of the LRT issuer.

token

address

The LRT contract address.

getOperatorRegistry

Calculates the address of the LRT operator registry.

function getOperatorRegistry(address issuer, address token) internal pure returns (address);

Parameters

NameTypeDescription

issuer

address

The address of the LRT issuer.

token

address

The LRT contract address.

getAVSRegistry

Calculates the address of the LRT AVS registry.

function getAVSRegistry(address issuer, address token) internal pure returns (address);

Parameters

NameTypeDescription

issuer

address

The address of the LRT issuer.

token

address

The LRT contract address.

getDepositPool

Calculates the address of the LRT deposit pool.

function getDepositPool(address issuer, address token) internal pure returns (address);

Parameters

NameTypeDescription

issuer

address

The address of the LRT issuer.

token

address

The LRT contract address.

getWithdrawalQueue

Calculates the address of the LRT withdrawal queue.

function getWithdrawalQueue(address issuer, address token) internal pure returns (address);

Parameters

NameTypeDescription

issuer

address

The address of the LRT issuer.

token

address

The LRT contract address.

getRewardDistributor

Calculates the address of the LRT reward distributor.

function getRewardDistributor(address issuer, address token) internal pure returns (address);

Parameters

NameTypeDescription

issuer

address

The address of the LRT issuer.

token

address

The LRT contract address.

getOperatorDelegatorAddress

Calculates the address of an operator delegator.

function getOperatorDelegatorAddress(address operatorRegistry, uint8 operatorId) internal pure returns (address);

Parameters

NameTypeDescription

operatorRegistry

address

The operator registry address.

operatorId

uint8

The operator's ID.

getContractAddress

Calculates the address of a deployed contract using CREATE3, based on a computed salt (token & contract type), and the deployer's address.

function getContractAddress(address issuer, address token, ContractType contractType) internal pure returns (address);

Parameters

NameTypeDescription

issuer

address

The LRT issuer contract address.

token

address

The LRT contract address.

contractType

ContractType

The type of supporting contract.

computeSalt

Computes the salt for a supporting contract using the token address and contract type.

function computeSalt(address token, ContractType contractType) internal pure returns (bytes32);

Parameters

NameTypeDescription

token

address

The token address.

contractType

ContractType

The contract type.

computeOperatorSalt

Computes the salt for an operator delegator, which is the operator ID converted to bytes32.

function computeOperatorSalt(uint8 operatorId) internal pure returns (bytes32);

Parameters

NameTypeDescription

operatorId

uint8

The operator's ID.

Last updated