The following readme describes all the functions and their parameters exposed by the pno
class of the K2 SDK. This sub-class contains all the important functions from the PNO registry and Lien contracts of the K2 Lending protocol.
Handle the case where delegated recipient is being adjusted to make sure no redelegations remain when lien is in force.
currentRecipient: Address of the current recipient
Transaction details if the transaction was successful.
Poke the PNO registry to allow it to check whether kNetwork is mapped to current SBP.
debtor: ETH address of the debtor
Transaction details if the transaction was successful.
SBP owner can call this function to spin up their own kNetwork which will take care of deploying a fund splitter.
defaultRewardToken: Address of the default reward token
Transaction details if the transaction was successful.
Allows the lien contract to ban a node operator in the event that a PNO has severely violated protocol rules.
sbpIndexId: SBP index in string
pno: Address of the PNO
Transaction details if the transaction was successful.
Allows the DAO to manage the global PNO inclusion list.
pno: Address of the PNO
enabled: Boolean value, true if enabled
Transaction details if the transaction was successful.
Allow a SBP owner to use a PNO from the global inclusion list in their kNetwork.
pno: Address of the PNO
Transaction details if the transaction was successful.
Allow a kNetwork to enable PNO gatekeeping for their network before and after network creation.
Transaction details if the transaction was successful.
Allow a kNetwork that has gatekeeping enabled to manage inclusion list for the opt in to work.
PNOs: Array of all PNO addresses enabled: Boolean value, true if enabled
Transaction details if the transaction was successful.
Lets the PNO to opt into node running for a kNetwork.
sbpIndexId: SBP index in string
Transaction details if the transaction was successful.
Lets the PNO to opt out of node running for a kNetwork.
sbpIndexId: SBP index in string
Transaction details if the transaction was successful.
Allow PNO to set their payout recipient across all kNetwork payout processing fund splitter contracts.
payoutRecipient: Address of the payout recipient
Transaction details if the transaction was successful.
Re-delegate K2 re-staked balance to a PNO using K2 LP balance.
pno: Address of the PNO
amount: Restaked balance to be re-delegated
Transaction details if the transaction was successful.
Remove the re-delegation given to a PNO by a K2 LP balance and obtain K2 LP back.
pno: Address of the PNO
amount: Re-delegated amount to be obtained back
Transaction details if the transaction was successful.
Re-delegate K2 re-staked balance to a PNO using K2 native delegation balance.
pno: Address of the PNO
amountToRedelegateInETH: Amount to be re-delegated in ETH
Transaction details if the transaction was successful.
Remove re-delegation from a PNO that was given from a native delegation K2 balance.
pno: Address of the PNO
amountToRedelegateInETH: Re-delegated amount to be obtained back
Transaction details if the transaction was successful.
Query function to get total re-delegations to PNO in ETH.
user: ETH address of the user
pno: Address of the PNO
Returns the total re-delegated amount in bigint.
Query function to get total re-delegations to PNO in ETH for the given timestamp.
user: ETH address of the user
pno: Address of the PNO
timestamp: The timestamp value in string
Returns the total re-delegated amount in bigint.
To check if the PNO is eligible to receive liquid re-delegations.
pno: Address of the PNO
Returns true if the PNO is eligible, else false.
Check the active re-delegations before allowing the node operator to remove their native delegation.
user: ETH address of the user.
Transaction details if the transaction was successful.
Allow a kNetwork to specify the public key of their PNO designated verifier for slashing.
designatedVerifier: Address of the PNO designated verifier
Transaction details if the transaction was successful.
Slash the given PNO.
kNetwork: Address of the kNetwork
reportIdentifier: Nonce for the report
pno: Address of the PNO
amount: The slash amount in string
designatedVerifierSignature: List of verifier signatures of the format SignatureECDSAT (defined in the K2-SDK) for the respective BLS public keys
deadline: Deadline for the validity of the signatures
liquidDelegators: Array of all the liquid delegators
Transaction details if the transaction was successful.
Poke the Lien to allow it to check whether kNetwork is mapped to current SBP.
debtor: ETH address of the debtor
Transaction details if the transaction was successful.
Check if the given report is valid.
kNetwork: Address of the kNetwork
reportIdentifier: Nonce for the report
pno: Address of the PNO
amount: The slash amount in string
designatedVerifierSignature: List of verifier signatures of the format SignatureECDSAT (defined in the K2-SDK) for the respective BLS public keys
deadline: Deadline for the validity of the signatures
Return true if the report is valid, else false.
Get the typed hash of the given report.
kNetwork: Address of the kNetwork
reportIdentifier: Nonce for the report
pno: Address of the PNO
amount: The slash amount in string
deadline: Deadline for the validity of the signatures
Returns the 32-byte hash of the report.
This function allows claiming K2 yield on undelegated balance for liquid delegations to kNetworks.
Transaction details if the transaction was successful.
This functions allows a user with no more liquid delegations to claim any locked kETH.
Transaction details if the transaction was successful.
The following readme describes all the functions and their parameters exposed by the pno
class of the K2 SDK. This sub-class contains all the important functions from the PNO registry and Lien contracts of the K2 Lending protocol.
Handle the case where delegated recipient is being adjusted to make sure no redelegations remain when lien is in force.
currentRecipient: Address of the current recipient
Transaction details if the transaction was successful.
Poke the PNO registry to allow it to check whether kNetwork is mapped to current SBP.
debtor: ETH address of the debtor
Transaction details if the transaction was successful.
SBP owner can call this function to spin up their own kNetwork which will take care of deploying a fund splitter.
defaultRewardToken: Address of the default reward token
Transaction details if the transaction was successful.
Allows the lien contract to ban a node operator in the event that a PNO has severely violated protocol rules.
sbpIndexId: SBP index in string
pno: Address of the PNO
Transaction details if the transaction was successful.
Allows the DAO to manage the global PNO inclusion list.
pno: Address of the PNO
enabled: Boolean value, true if enabled
Transaction details if the transaction was successful.
Allow a SBP owner to use a PNO from the global inclusion list in their kNetwork.
pno: Address of the PNO
Transaction details if the transaction was successful.
Allow a kNetwork to enable PNO gatekeeping for their network before and after network creation.
Transaction details if the transaction was successful.
Allow a kNetwork that has gatekeeping enabled to manage inclusion list for the opt in to work.
PNOs: Array of all PNO addresses enabled: Boolean value, true if enabled
Transaction details if the transaction was successful.
Lets the PNO to opt into node running for a kNetwork.
sbpIndexId: SBP index in string
Transaction details if the transaction was successful.
Lets the PNO to opt out of node running for a kNetwork.
sbpIndexId: SBP index in string
Transaction details if the transaction was successful.
Allow PNO to set their payout recipient across all kNetwork payout processing fund splitter contracts.
payoutRecipient: Address of the payout recipient
Transaction details if the transaction was successful.
Re-delegate K2 re-staked balance to a PNO using K2 LP balance.
pno: Address of the PNO
amount: Restaked balance to be re-delegated
Transaction details if the transaction was successful.
Remove the re-delegation given to a PNO by a K2 LP balance and obtain K2 LP back.
pno: Address of the PNO
amount: Re-delegated amount to be obtained back
Transaction details if the transaction was successful.
Re-delegate K2 re-staked balance to a PNO using K2 native delegation balance.
pno: Address of the PNO
amountToRedelegateInETH: Amount to be re-delegated in ETH
Transaction details if the transaction was successful.
Remove re-delegation from a PNO that was given from a native delegation K2 balance.
pno: Address of the PNO
amountToRedelegateInETH: Re-delegated amount to be obtained back
Transaction details if the transaction was successful.
Query function to get total re-delegations to PNO in ETH.
user: ETH address of the user
pno: Address of the PNO
Returns the total re-delegated amount in bigint.
Query function to get total re-delegations to PNO in ETH for the given timestamp.
user: ETH address of the user
pno: Address of the PNO
timestamp: The timestamp value in string
Returns the total re-delegated amount in bigint.
To check if the PNO is eligible to receive liquid re-delegations.
pno: Address of the PNO
Returns true if the PNO is eligible, else false.
Check the active re-delegations before allowing the node operator to remove their native delegation.
user: ETH address of the user.
Transaction details if the transaction was successful.
Allow a kNetwork to specify the public key of their PNO designated verifier for slashing.
designatedVerifier: Address of the PNO designated verifier
Transaction details if the transaction was successful.
Slash the given PNO.
kNetwork: Address of the kNetwork
reportIdentifier: Nonce for the report
pno: Address of the PNO
amount: The slash amount in string
designatedVerifierSignature: List of verifier signatures of the format SignatureECDSAT (defined in the K2-SDK) for the respective BLS public keys
deadline: Deadline for the validity of the signatures
liquidDelegators: Array of all the liquid delegators
Transaction details if the transaction was successful.
Poke the Lien to allow it to check whether kNetwork is mapped to current SBP.
debtor: ETH address of the debtor
Transaction details if the transaction was successful.
Check if the given report is valid.
kNetwork: Address of the kNetwork
reportIdentifier: Nonce for the report
pno: Address of the PNO
amount: The slash amount in string
designatedVerifierSignature: List of verifier signatures of the format SignatureECDSAT (defined in the K2-SDK) for the respective BLS public keys
deadline: Deadline for the validity of the signatures
Return true if the report is valid, else false.
Get the typed hash of the given report.
kNetwork: Address of the kNetwork
reportIdentifier: Nonce for the report
pno: Address of the PNO
amount: The slash amount in string
deadline: Deadline for the validity of the signatures
Returns the 32-byte hash of the report.
This function allows claiming K2 yield on undelegated balance for liquid delegations to kNetworks.
Transaction details if the transaction was successful.
This functions allows a user with no more liquid delegations to claim any locked kETH.
Transaction details if the transaction was successful.