BuildapireferenceITangleAdmin

ITangleAdmin

Source: https://github.com/tangle-network/tnt-core/blob/main/src/interfaces/ITangle.sol

ITangleAdmin

Admin functions for Tangle protocol

Functions

setStaking

function setStaking(address staking) external

Set the staking module

Parameters
NameTypeDescription
stakingaddressThe IStaking implementation

setTreasury

function setTreasury(address treasury) external

Set the protocol treasury

Parameters
NameTypeDescription
treasuryaddressThe treasury address

setPaymentSplit

function setPaymentSplit(struct Types.PaymentSplit split) external

Set the payment split configuration

Parameters
NameTypeDescription
splitstruct Types.PaymentSplitThe new split configuration

paymentSplit

function paymentSplit() external view returns (uint16 developerBps, uint16 protocolBps, uint16 operatorBps, uint16 stakerBps)

Get the current payment split

pause

function pause() external

Pause the protocol

unpause

function unpause() external

Unpause the protocol

treasury

function treasury() external view returns (address payable)

Get the configured treasury

setMetricsRecorder

function setMetricsRecorder(address recorder) external

Set the metrics recorder (optional)

metricsRecorder

function metricsRecorder() external view returns (address)

Get the metrics recorder address

setOperatorStatusRegistry

function setOperatorStatusRegistry(address registry) external

Set operator status registry

operatorStatusRegistry

function operatorStatusRegistry() external view returns (address)

Get operator status registry

setServiceFeeDistributor

function setServiceFeeDistributor(address distributor) external

Configure service fee distributor

serviceFeeDistributor

function serviceFeeDistributor() external view returns (address)

Get service fee distributor

setPriceOracle

function setPriceOracle(address oracle) external

Configure price oracle

priceOracle

function priceOracle() external view returns (address)

Get price oracle

setMBSMRegistry

function setMBSMRegistry(address registry) external

Configure Master Blueprint Service Manager registry

mbsmRegistry

function mbsmRegistry() external view returns (address)

Get Master Blueprint Service Manager registry

maxBlueprintsPerOperator

function maxBlueprintsPerOperator() external view returns (uint32)

Get max blueprints per operator

setMaxBlueprintsPerOperator

function setMaxBlueprintsPerOperator(uint32 newMax) external

Set max blueprints per operator

tntToken

function tntToken() external view returns (address)

Get TNT token address

setTntToken

function setTntToken(address token) external

Set TNT token address

rewardVaults

function rewardVaults() external view returns (address)

Get reward vaults address

setRewardVaults

function setRewardVaults(address vaults) external

Set reward vaults address

defaultTntMinExposureBps

function defaultTntMinExposureBps() external view returns (uint16)

Get default TNT min exposure bps

setDefaultTntMinExposureBps

function setDefaultTntMinExposureBps(uint16 minExposureBps) external

Set default TNT min exposure bps

tntPaymentDiscountBps

function tntPaymentDiscountBps() external view returns (uint16)

Get TNT payment discount bps

setTntPaymentDiscountBps

function setTntPaymentDiscountBps(uint16 discountBps) external

Set TNT payment discount bps