strike-staking
UnofficialPreliminary, reverse-engineered version published by the tx3 team for testing and exploration. It is not endorsed by the original protocol authors. Do not use in mainnet. • v0.1.0
About this Protocol
STRIKE token staking with ADA rewards on Cardano
Parties
The participants involved in this protocol's transactions.
NameDescription
stakerThe user interacting with the protocol.
stakingscriptThe deployed staking script (address set per network profile).
Environment
Configuration values required to execute this protocol's transactions.
NameDescriptionType
mint_policy_idPolicy ID of the credential NFTs minted/burned on stake/unstake./$defs/Bytes
staking_asset_nameAsset name of the STRIKE token being staked./$defs/Bytes
staking_policy_idPolicy ID of the STRIKE token being staked./$defs/Bytes
strike_script_refReference UTxO carrying the Strike script (serves both SPEND and MINT)./$defs/UtxoRef
tracker_asset_nameAsset name of the tracker token shared by all stakers in this deployment./$defs/Bytes
Transactions
The transactions defined in this protocol, with their parameters, inputs, and outputs.
stake
Open a new staking position: lock STRIKE and mint the tracker + owner credential NFTs.
Diagram
Parameters
NameTypeDescription
amountIntQuantity of STRIKE tokens to stake.
owner_pkhBytesStaker's payment key hash (required signer and owner NFT asset name).
staked_atIntPOSIX timestamp in milliseconds recorded in the stake datum (caller-provided).
Inputs
NamePartyRedeemer
paymentstakerwallet
Outputs
PartyDatumOptional
stakingscriptyesno
stakernono
add_stake
Top up an existing stake position with additional STRIKE while keeping the datum.
Diagram
Parameters
NameTypeDescription
additional_amountIntExtra STRIKE tokens to add to the position.
owner_pkhBytesStaker's payment key hash (required signer).
staking_utxoUtxoRefUTxO reference of the existing stake position to top up.
Inputs
NamePartyRedeemer
current_stake—script
paymentstakerwallet
Outputs
PartyDatumOptional
stakingscriptyesno
stakernono
withdraw_stake
Close a stake position: reclaim STRIKE plus accrued ADA rewards and burn both credential NFTs.
Diagram
Parameters
NameTypeDescription
owner_pkhBytesStaker's payment key hash (required signer).
staking_utxoUtxoRefUTxO reference of the stake position being closed.
Inputs
NamePartyRedeemer
current_stake—script
paymentstakerwallet
Outputs
PartyDatumOptional
stakernono
Profiles
Pre-configured sets of environment and party values for different deployment targets.
mainnet
KeyValueType
stakingscriptaddr1z9yh4zcqs4gh78ysvh8nqp40fsnxg49nn3h6x25az9k8tms6409492020k6xml8uvwn34wrexagjh5fsk5xk96jyxk2qf3a7kjparty
mint_policy_id497a8b0085517f1c9065cf3006af4c266454b39c6fa32a9d116c75eeenv
staking_asset_name535452494b45env
staking_policy_idf13ac4d66b3ee19a6aa0f2a22298737bd907cc95121662fc971b5275env
strike_script_ref486c6c010d1518b1e032d2a288483fba55cee4f054b6e97f4e7eadeccb173768#0env
tracker_asset_name535452494b45env