@wireio/stake 1.0.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/stake.browser.js +13027 -6773
- package/lib/stake.browser.js.map +1 -1
- package/lib/stake.d.ts +7627 -646
- package/lib/stake.js +13406 -7147
- package/lib/stake.js.map +1 -1
- package/lib/stake.m.js +13027 -6773
- package/lib/stake.m.js.map +1 -1
- package/package.json +4 -3
- package/src/assets/solana/mainnet/idl/liqsol_core.json +6166 -0
- package/src/assets/solana/mainnet/idl/liqsol_token.json +183 -0
- package/src/assets/solana/mainnet/idl/transfer_hook.json +197 -0
- package/src/assets/solana/mainnet/idl/validator_leaderboard.json +574 -0
- package/src/assets/solana/mainnet/types/liqsol_core.ts +6172 -0
- package/src/assets/solana/mainnet/types/liqsol_token.ts +189 -0
- package/src/assets/solana/mainnet/types/transfer_hook.ts +203 -0
- package/src/assets/solana/mainnet/types/validator_leaderboard.ts +580 -0
- package/src/networks/ethereum/clients/convert.client.ts +30 -1
- package/src/networks/ethereum/clients/opp.client.ts +20 -21
- package/src/networks/ethereum/clients/receipt.client.ts +89 -4
- package/src/networks/ethereum/clients/stake.client.ts +1 -0
- package/src/networks/ethereum/contract.ts +260 -222
- package/src/networks/ethereum/ethereum.ts +121 -104
- package/src/networks/ethereum/types.ts +17 -2
- package/src/networks/solana/clients/deposit.client.ts +294 -65
- package/src/networks/solana/clients/distribution.client.ts +13 -18
- package/src/networks/solana/clients/leaderboard.client.ts +9 -11
- package/src/networks/solana/clients/outpost.client.ts +11 -10
- package/src/networks/solana/clients/token.client.ts +11 -13
- package/src/networks/solana/constants.ts +44 -285
- package/src/networks/solana/program.ts +365 -26
- package/src/networks/solana/solana.ts +213 -69
- package/src/networks/solana/types.ts +4 -4
- package/src/networks/solana/utils.ts +16 -301
- package/src/staker.ts +11 -2
- package/src/types.ts +19 -6
- /package/src/assets/ethereum/{ABI → mainnet}/common/Base58.sol/Base58.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/common/Base58.sol/Base58.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/common/OpenZepArtifacts.sol/__Dummy_OZ_UUPS__.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/common/OpenZepArtifacts.sol/__Dummy_OZ_UUPS__.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/common/RestrictedCallers.sol/RestrictedCallers.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/common/RestrictedCallers.sol/RestrictedCallers.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/common/iodata.sol/iodata.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/common/iodata.sol/iodata.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/common/iodata_util.sol/iodata_util.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/common/iodata_util.sol/iodata_util.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/common/sysio_data.sol/sysio_data.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/common/sysio_data.sol/sysio_data.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/common/sysio_errors.sol/sysio_errors.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/common/sysio_errors.sol/sysio_errors.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/common/sysio_merkle.sol/sysio_merkle.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/common/sysio_merkle.sol/sysio_merkle.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/common/sysio_name.sol/sysio_name.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/common/sysio_name.sol/sysio_name.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/common/sysio_pubkey.sol/sysio_pubkey.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/common/sysio_pubkey.sol/sysio_pubkey.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/common/sysio_read.sol/sysio_read.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/common/sysio_read.sol/sysio_read.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/common/sysio_tester.sol/SysioTester.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/common/sysio_tester.sol/SysioTester.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/common/sysio_verify.sol/sysio_verify.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/common/sysio_verify.sol/sysio_verify.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/common/sysio_write.sol/sysio_write.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/common/sysio_write.sol/sysio_write.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/BeaconState.sol/BeaconState.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/BeaconState.sol/BeaconState.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/DepositManager.sol/DepositManager.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/DepositManager.sol/DepositManager.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/LiqEthAuthority.sol/LiqEthAuthority.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/LiqEthAuthority.sol/LiqEthAuthority.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/LiqEthCommon.sol/IAccounting.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/LiqEthCommon.sol/IAccounting.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/LiqEthCommon.sol/IDepositContract.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/LiqEthCommon.sol/IDepositContract.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/LiqEthCommon.sol/IDepositManager.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/LiqEthCommon.sol/IDepositManager.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/LiqEthCommon.sol/ILiqEthUpgradeable.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/LiqEthCommon.sol/ILiqEthUpgradeable.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/LiqEthCommon.sol/IRewardsERC20.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/LiqEthCommon.sol/IRewardsERC20.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/LiqEthCommon.sol/IRewardsERC20Pausable.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/LiqEthCommon.sol/IRewardsERC20Pausable.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/LiqEthCommon.sol/IStakingModule.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/LiqEthCommon.sol/IStakingModule.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/LiqEthCommon.sol/IValidatorBalanceVerifier.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/LiqEthCommon.sol/IValidatorBalanceVerifier.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/LiqEthCommon.sol/IWithdrawalRecord.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/LiqEthCommon.sol/IWithdrawalRecord.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/LiqEthCommon.sol/LiqEthCommon.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/LiqEthCommon.sol/LiqEthCommon.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/LiqEthManaged.sol/LiqEthManaged.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/LiqEthManaged.sol/LiqEthManaged.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/RewardsERC20.sol/RewardsERC20Upgradeable.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/RewardsERC20.sol/RewardsERC20Upgradeable.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/RewardsERC20Pausable.sol/RewardsERC20PausableUpgradeable.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/RewardsERC20Pausable.sol/RewardsERC20PausableUpgradeable.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/Yield.sol/YieldOracle.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/Yield.sol/YieldOracle.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/accounting.sol/Accounting.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/accounting.sol/Accounting.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/liqEth.sol/LiqEthToken.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/liqEth.sol/LiqEthToken.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/stakingModule.sol/StakingModule.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/stakingModule.sol/StakingModule.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/withdrawalQueue.sol/WithdrawalQueue.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/withdrawalQueue.sol/WithdrawalQueue.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/withdrawalVault.sol/Uint64BE.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/withdrawalVault.sol/Uint64BE.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/withdrawalVault.sol/WithdrawalVault.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/liqEth/withdrawalVault.sol/WithdrawalVault.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/Aggregator.sol/Aggregator.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/BAR.sol/BAR.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/BAR.sol/BAR.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/Depositor.sol/Depositor.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/Depositor.sol/Depositor.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/EthUsdPriceConsumer.sol/AggregatorV3Interface.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/EthUsdPriceConsumer.sol/AggregatorV3Interface.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/EthUsdPriceConsumer.sol/EthUsdPriceConsumer.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/EthUsdPriceConsumer.sol/EthUsdPriceConsumer.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OPP.sol/OPP.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OPP.sol/OPP.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OPPCommon.sol/IOPP.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OPPCommon.sol/IOPP.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OPPCommon.sol/IOPPEndpoint.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OPPCommon.sol/IOPPEndpoint.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OPPCommon.sol/IOPPInbound.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OPPCommon.sol/IOPPInbound.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OPPCommon.sol/IOPPReceiver.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OPPCommon.sol/IOPPReceiver.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OPPCommon.sol/IOPPSender.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OPPCommon.sol/IOPPSender.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OPPCommon.sol/OPPCommon.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OPPCommon.sol/OPPCommon.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OPPEndpoint.sol/OPPEndpoint.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OPPEndpoint.sol/OPPEndpoint.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OPPEndpointManaged.sol/OPPEndpointManaged.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OPPEndpointManaged.sol/OPPEndpointManaged.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OPPEndpointOwnable.sol/OPPEndpointOwnable.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OPPEndpointOwnable.sol/OPPEndpointOwnable.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OPPErrors.sol/OPPErrors.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OPPErrors.sol/OPPErrors.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OPPInbound.sol/OPPInbound.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OPPInbound.sol/OPPInbound.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OPPReceiver.sol/OPPReceiver.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OPPReceiver.sol/OPPReceiver.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OPPSender.sol/OPPSender.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OPPSender.sol/OPPSender.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OutpostErrors.sol/OutpostErrors.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OutpostErrors.sol/OutpostErrors.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OutpostManaged.sol/OutpostManaged.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OutpostManaged.sol/OutpostManaged.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OutpostManager.sol/OutpostManager.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OutpostManager.sol/OutpostManager.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OutpostManagerAuthority.sol/OutpostManagerAuthority.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OutpostManagerAuthority.sol/OutpostManagerAuthority.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OutpostManagerCommon.sol/IOutpostManager.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OutpostManagerCommon.sol/IOutpostManager.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OutpostManagerCommon.sol/IOutpostUpgradeable.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OutpostManagerCommon.sol/IOutpostUpgradeable.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OutpostManagerCommon.sol/OutpostManagerCommon.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OutpostManagerCommon.sol/OutpostManagerCommon.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OutpostOwnable.sol/OutpostOwnable.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/OutpostOwnable.sol/OutpostOwnable.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/Pool.sol/Pool.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/Pool.sol/Pool.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/Pretoken.sol/Pretoken.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/Pretoken.sol/Pretoken.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/ReceiptNFT.sol/ReceiptNFT.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/ReceiptNFT.sol/ReceiptNFT.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/interfaces/IPretoken.sol/IPretoken.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/interfaces/IPretoken.sol/IPretoken.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/interfaces/IWarrant.sol/IWarrant.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/interfaces/IWarrant.sol/IWarrant.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/token/ERC721EthEquivalentVotesUpgradeable.sol/ERC721EthEquivalentVotesUpgradeable.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/token/ERC721EthEquivalentVotesUpgradeable.sol/ERC721EthEquivalentVotesUpgradeable.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/token/IERC721EthEquivalent.sol/IERC721EthEquivalent.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/outpost/token/IERC721EthEquivalent.sol/IERC721EthEquivalent.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/token/ERC1155Token.sol/ERC1155Token.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/token/ERC1155Token.sol/ERC1155Token.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/token/ERC20Token.sol/ERC20Token.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/token/ERC20Token.sol/ERC20Token.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/token/ERC721Token.sol/ERC721Token.dbg.json +0 -0
- /package/src/assets/ethereum/{ABI → mainnet}/token/ERC721Token.sol/ERC721Token.json +0 -0
- /package/src/assets/solana/{idl → devnet/idl}/liqsol_core.json +0 -0
- /package/src/assets/solana/{idl → devnet/idl}/liqsol_token.json +0 -0
- /package/src/assets/solana/{idl → devnet/idl}/transfer_hook.json +0 -0
- /package/src/assets/solana/{idl → devnet/idl}/validator_leaderboard.json +0 -0
- /package/src/assets/solana/{types → devnet/types}/liqsol_core.ts +0 -0
- /package/src/assets/solana/{types → devnet/types}/liqsol_token.ts +0 -0
- /package/src/assets/solana/{types → devnet/types}/transfer_hook.ts +0 -0
- /package/src/assets/solana/{types → devnet/types}/validator_leaderboard.ts +0 -0
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
{
|
|
2
|
+
"address": "5MRFSLCkXPEzfR6gkcZCVttq9g83mMUHyTZ85Z3TSpvU",
|
|
3
|
+
"metadata": {
|
|
4
|
+
"name": "liqsol_token",
|
|
5
|
+
"version": "0.1.0",
|
|
6
|
+
"spec": "0.1.0",
|
|
7
|
+
"description": "Liquidity Staking Token Program"
|
|
8
|
+
},
|
|
9
|
+
"instructions": [
|
|
10
|
+
{
|
|
11
|
+
"name": "create_mint_account",
|
|
12
|
+
"discriminator": [
|
|
13
|
+
76,
|
|
14
|
+
184,
|
|
15
|
+
50,
|
|
16
|
+
62,
|
|
17
|
+
162,
|
|
18
|
+
141,
|
|
19
|
+
47,
|
|
20
|
+
103
|
|
21
|
+
],
|
|
22
|
+
"accounts": [
|
|
23
|
+
{
|
|
24
|
+
"name": "payer",
|
|
25
|
+
"writable": true,
|
|
26
|
+
"signer": true
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "mint_authority"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "receiver"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "mint",
|
|
36
|
+
"docs": [
|
|
37
|
+
"The mint PDA - deterministic address for liqSOL token"
|
|
38
|
+
],
|
|
39
|
+
"writable": true
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "mint_token_account",
|
|
43
|
+
"writable": true
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "system_program"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "associated_token_program"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "token_program"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"args": [
|
|
56
|
+
{
|
|
57
|
+
"name": "args",
|
|
58
|
+
"type": {
|
|
59
|
+
"defined": {
|
|
60
|
+
"name": "CreateMintAccountArgs"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "mint_for_authorized_program",
|
|
68
|
+
"discriminator": [
|
|
69
|
+
116,
|
|
70
|
+
208,
|
|
71
|
+
64,
|
|
72
|
+
189,
|
|
73
|
+
2,
|
|
74
|
+
60,
|
|
75
|
+
50,
|
|
76
|
+
41
|
|
77
|
+
],
|
|
78
|
+
"accounts": [
|
|
79
|
+
{
|
|
80
|
+
"name": "mint",
|
|
81
|
+
"writable": true
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "recipient_token_account",
|
|
85
|
+
"writable": true
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "program_authority",
|
|
89
|
+
"docs": [
|
|
90
|
+
"The calling program's authority PDA that proves authorization to mint"
|
|
91
|
+
],
|
|
92
|
+
"writable": true,
|
|
93
|
+
"signer": true
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "mint_authority"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "instructions"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "token_program"
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
"args": [
|
|
106
|
+
{
|
|
107
|
+
"name": "args",
|
|
108
|
+
"type": {
|
|
109
|
+
"defined": {
|
|
110
|
+
"name": "MintTokenArgs"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"errors": [
|
|
118
|
+
{
|
|
119
|
+
"code": 6000,
|
|
120
|
+
"name": "InvalidMintAuthority",
|
|
121
|
+
"msg": "Invalid mint authority"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"code": 6001,
|
|
125
|
+
"name": "UnauthorizedProgram",
|
|
126
|
+
"msg": "Unauthorized program attempting to mint"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"code": 6002,
|
|
130
|
+
"name": "CannotDetermineCallingProgram",
|
|
131
|
+
"msg": "Cannot determine calling program"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"code": 6003,
|
|
135
|
+
"name": "DirectCallNotAllowed",
|
|
136
|
+
"msg": "Direct calls not allowed, must be called via CPI"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"code": 6004,
|
|
140
|
+
"name": "InvalidProgramId",
|
|
141
|
+
"msg": "Invalid program ID"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"code": 6005,
|
|
145
|
+
"name": "UnauthorizedAuthority",
|
|
146
|
+
"msg": "Unauthorized authority PDA"
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"types": [
|
|
150
|
+
{
|
|
151
|
+
"name": "CreateMintAccountArgs",
|
|
152
|
+
"type": {
|
|
153
|
+
"kind": "struct",
|
|
154
|
+
"fields": [
|
|
155
|
+
{
|
|
156
|
+
"name": "name",
|
|
157
|
+
"type": "string"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"name": "symbol",
|
|
161
|
+
"type": "string"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"name": "uri",
|
|
165
|
+
"type": "string"
|
|
166
|
+
}
|
|
167
|
+
]
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "MintTokenArgs",
|
|
172
|
+
"type": {
|
|
173
|
+
"kind": "struct",
|
|
174
|
+
"fields": [
|
|
175
|
+
{
|
|
176
|
+
"name": "amount",
|
|
177
|
+
"type": "u64"
|
|
178
|
+
}
|
|
179
|
+
]
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
]
|
|
183
|
+
}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
{
|
|
2
|
+
"address": "HbBpH9opFW9gcYVanHLweKuHhWQ8P3Kcc1mbpAx1vojz",
|
|
3
|
+
"metadata": {
|
|
4
|
+
"name": "transfer_hook",
|
|
5
|
+
"version": "0.1.0",
|
|
6
|
+
"spec": "0.1.0",
|
|
7
|
+
"description": "Created with Anchor"
|
|
8
|
+
},
|
|
9
|
+
"instructions": [
|
|
10
|
+
{
|
|
11
|
+
"name": "initialize_extra_account_meta_list",
|
|
12
|
+
"discriminator": [
|
|
13
|
+
43,
|
|
14
|
+
34,
|
|
15
|
+
13,
|
|
16
|
+
49,
|
|
17
|
+
167,
|
|
18
|
+
88,
|
|
19
|
+
235,
|
|
20
|
+
235
|
|
21
|
+
],
|
|
22
|
+
"accounts": [
|
|
23
|
+
{
|
|
24
|
+
"name": "payer",
|
|
25
|
+
"writable": true,
|
|
26
|
+
"signer": true
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "extra_account_meta_list",
|
|
30
|
+
"writable": true
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "mint"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "system_program"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "liqsol_core"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"args": []
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "transfer_hook",
|
|
46
|
+
"discriminator": [
|
|
47
|
+
105,
|
|
48
|
+
37,
|
|
49
|
+
101,
|
|
50
|
+
197,
|
|
51
|
+
75,
|
|
52
|
+
251,
|
|
53
|
+
102,
|
|
54
|
+
26
|
|
55
|
+
],
|
|
56
|
+
"accounts": [
|
|
57
|
+
{
|
|
58
|
+
"name": "source_token"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "mint"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "destination_token"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "authority"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "extra_account_meta_list"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "liqsol_core"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "sender_user_record",
|
|
77
|
+
"writable": true
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "receiver_user_record",
|
|
81
|
+
"writable": true
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "distribution_state",
|
|
85
|
+
"writable": true
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "bucket_token_account"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"args": [
|
|
92
|
+
{
|
|
93
|
+
"name": "amount",
|
|
94
|
+
"type": "u64"
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"accounts": [
|
|
100
|
+
{
|
|
101
|
+
"name": "DistributionState",
|
|
102
|
+
"discriminator": [
|
|
103
|
+
7,
|
|
104
|
+
25,
|
|
105
|
+
94,
|
|
106
|
+
15,
|
|
107
|
+
208,
|
|
108
|
+
170,
|
|
109
|
+
4,
|
|
110
|
+
103
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"errors": [
|
|
115
|
+
{
|
|
116
|
+
"code": 6000,
|
|
117
|
+
"name": "AmountTooBig"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"code": 6001,
|
|
121
|
+
"name": "IsNotCurrentlyTransferring"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"code": 6002,
|
|
125
|
+
"name": "TlvAccountResolutionError"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"code": 6003,
|
|
129
|
+
"name": "CannotTransferToBucket",
|
|
130
|
+
"msg": "Cannot transfer liqSOL directly to bucket - only protocol minting is allowed"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"types": [
|
|
134
|
+
{
|
|
135
|
+
"name": "DistributionState",
|
|
136
|
+
"type": {
|
|
137
|
+
"kind": "struct",
|
|
138
|
+
"fields": [
|
|
139
|
+
{
|
|
140
|
+
"name": "liqsol_mint",
|
|
141
|
+
"type": "pubkey"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "current_index",
|
|
145
|
+
"type": "u64"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"name": "total_shares",
|
|
149
|
+
"docs": [
|
|
150
|
+
"Sum of all user shares across the system"
|
|
151
|
+
],
|
|
152
|
+
"type": "u64"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "last_bucket_balance",
|
|
156
|
+
"docs": [
|
|
157
|
+
"Last observed bucket balance used for incremental index updates"
|
|
158
|
+
],
|
|
159
|
+
"type": "u64"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"name": "bump",
|
|
163
|
+
"type": "u8"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"name": "bucket_bump",
|
|
167
|
+
"docs": [
|
|
168
|
+
"Cached bucket authority bump to avoid repeated find_program_address calls"
|
|
169
|
+
],
|
|
170
|
+
"type": "u8"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "pool_bump",
|
|
174
|
+
"docs": [
|
|
175
|
+
"Cached pool authority bump to avoid repeated find_program_address calls"
|
|
176
|
+
],
|
|
177
|
+
"type": "u8"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"name": "bucket_authority",
|
|
181
|
+
"docs": [
|
|
182
|
+
"Cached bucket authority pubkey for transfer-hook optimization"
|
|
183
|
+
],
|
|
184
|
+
"type": "pubkey"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"name": "pool_authority",
|
|
188
|
+
"docs": [
|
|
189
|
+
"Cached pool authority pubkey for transfer-hook optimization"
|
|
190
|
+
],
|
|
191
|
+
"type": "pubkey"
|
|
192
|
+
}
|
|
193
|
+
]
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
]
|
|
197
|
+
}
|