aftermath-ts-sdk 1.3.28 → 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/dist/index.d.ts +16828 -5
- package/dist/index.js +22695 -19
- package/dist/index.js.map +1 -0
- package/package.json +69 -60
- package/dist/general/apiHelpers/dynamicFieldsApiHelpers.d.ts +0 -41
- package/dist/general/apiHelpers/dynamicFieldsApiHelpers.d.ts.map +0 -1
- package/dist/general/apiHelpers/dynamicFieldsApiHelpers.js +0 -110
- package/dist/general/apiHelpers/eventsApiHelpers.d.ts +0 -43
- package/dist/general/apiHelpers/eventsApiHelpers.d.ts.map +0 -1
- package/dist/general/apiHelpers/eventsApiHelpers.js +0 -170
- package/dist/general/apiHelpers/inspectionsApiHelpers.d.ts +0 -28
- package/dist/general/apiHelpers/inspectionsApiHelpers.d.ts.map +0 -1
- package/dist/general/apiHelpers/inspectionsApiHelpers.js +0 -58
- package/dist/general/apiHelpers/objectsApiHelpers.d.ts +0 -77
- package/dist/general/apiHelpers/objectsApiHelpers.d.ts.map +0 -1
- package/dist/general/apiHelpers/objectsApiHelpers.js +0 -197
- package/dist/general/apiHelpers/transactionsApiHelpers.d.ts +0 -50
- package/dist/general/apiHelpers/transactionsApiHelpers.d.ts.map +0 -1
- package/dist/general/apiHelpers/transactionsApiHelpers.js +0 -256
- package/dist/general/dynamicGas/dynamicGas.d.ts +0 -48
- package/dist/general/dynamicGas/dynamicGas.d.ts.map +0 -1
- package/dist/general/dynamicGas/dynamicGas.js +0 -69
- package/dist/general/dynamicGas/dynamicGasTypes.d.ts +0 -37
- package/dist/general/dynamicGas/dynamicGasTypes.d.ts.map +0 -1
- package/dist/general/dynamicGas/dynamicGasTypes.js +0 -2
- package/dist/general/nfts/nftsApi.d.ts +0 -35
- package/dist/general/nfts/nftsApi.d.ts.map +0 -1
- package/dist/general/nfts/nftsApi.js +0 -124
- package/dist/general/nfts/nftsApiCasting.d.ts +0 -11
- package/dist/general/nfts/nftsApiCasting.d.ts.map +0 -1
- package/dist/general/nfts/nftsApiCasting.js +0 -115
- package/dist/general/nfts/nftsTypes.d.ts +0 -31
- package/dist/general/nfts/nftsTypes.d.ts.map +0 -1
- package/dist/general/nfts/nftsTypes.js +0 -2
- package/dist/general/priceFeeds/priceFeeds.d.ts +0 -3
- package/dist/general/priceFeeds/priceFeeds.d.ts.map +0 -1
- package/dist/general/priceFeeds/priceFeeds.js +0 -26
- package/dist/general/priceFeeds/priceFeedsApi.d.ts +0 -3
- package/dist/general/priceFeeds/priceFeedsApi.d.ts.map +0 -1
- package/dist/general/priceFeeds/priceFeedsApi.js +0 -33
- package/dist/general/priceFeeds/priceFeedsTypes.d.ts +0 -3
- package/dist/general/priceFeeds/priceFeedsTypes.d.ts.map +0 -1
- package/dist/general/priceFeeds/priceFeedsTypes.js +0 -7
- package/dist/general/prices/coinGeckoTypes.d.ts +0 -16
- package/dist/general/prices/coinGeckoTypes.d.ts.map +0 -1
- package/dist/general/prices/coinGeckoTypes.js +0 -2
- package/dist/general/prices/prices.d.ts +0 -92
- package/dist/general/prices/prices.d.ts.map +0 -1
- package/dist/general/prices/prices.js +0 -124
- package/dist/general/providers/aftermath.d.ts +0 -200
- package/dist/general/providers/aftermath.d.ts.map +0 -1
- package/dist/general/providers/aftermath.js +0 -258
- package/dist/general/providers/aftermathApi.d.ts +0 -197
- package/dist/general/providers/aftermathApi.d.ts.map +0 -1
- package/dist/general/providers/aftermathApi.js +0 -255
- package/dist/general/providers/index.d.ts +0 -3
- package/dist/general/providers/index.d.ts.map +0 -1
- package/dist/general/providers/index.js +0 -18
- package/dist/general/types/castingTypes.d.ts +0 -51
- package/dist/general/types/castingTypes.d.ts.map +0 -1
- package/dist/general/types/castingTypes.js +0 -8
- package/dist/general/types/configTypes.d.ts +0 -187
- package/dist/general/types/configTypes.d.ts.map +0 -1
- package/dist/general/types/configTypes.js +0 -2
- package/dist/general/types/generalTypes.d.ts +0 -349
- package/dist/general/types/generalTypes.d.ts.map +0 -1
- package/dist/general/types/generalTypes.js +0 -2
- package/dist/general/types/index.d.ts +0 -7
- package/dist/general/types/index.d.ts.map +0 -1
- package/dist/general/types/index.js +0 -22
- package/dist/general/types/moveErrorsInterface.d.ts +0 -6
- package/dist/general/types/moveErrorsInterface.d.ts.map +0 -1
- package/dist/general/types/moveErrorsInterface.js +0 -2
- package/dist/general/types/suiTypes.d.ts +0 -2
- package/dist/general/types/suiTypes.d.ts.map +0 -1
- package/dist/general/types/suiTypes.js +0 -5
- package/dist/general/utils/caller.d.ts +0 -58
- package/dist/general/utils/caller.d.ts.map +0 -1
- package/dist/general/utils/caller.js +0 -231
- package/dist/general/utils/casting.d.ts +0 -212
- package/dist/general/utils/casting.d.ts.map +0 -1
- package/dist/general/utils/casting.js +0 -273
- package/dist/general/utils/fixedUtils.d.ts +0 -109
- package/dist/general/utils/fixedUtils.d.ts.map +0 -1
- package/dist/general/utils/fixedUtils.js +0 -100
- package/dist/general/utils/helpers.d.ts +0 -408
- package/dist/general/utils/helpers.d.ts.map +0 -1
- package/dist/general/utils/helpers.js +0 -725
- package/dist/general/utils/iFixedUtils.d.ts +0 -78
- package/dist/general/utils/iFixedUtils.d.ts.map +0 -1
- package/dist/general/utils/iFixedUtils.js +0 -109
- package/dist/general/utils/index.d.ts +0 -3
- package/dist/general/utils/index.d.ts.map +0 -1
- package/dist/general/utils/index.js +0 -18
- package/dist/general/wallet/wallet.d.ts +0 -89
- package/dist/general/wallet/wallet.d.ts.map +0 -1
- package/dist/general/wallet/wallet.js +0 -120
- package/dist/general/wallet/walletApi.d.ts +0 -20
- package/dist/general/wallet/walletApi.d.ts.map +0 -1
- package/dist/general/wallet/walletApi.js +0 -66
- package/dist/index.d.ts.map +0 -1
- package/dist/packages/auth/auth.d.ts +0 -135
- package/dist/packages/auth/auth.d.ts.map +0 -1
- package/dist/packages/auth/auth.js +0 -289
- package/dist/packages/auth/authTypes.d.ts +0 -102
- package/dist/packages/auth/authTypes.d.ts.map +0 -1
- package/dist/packages/auth/authTypes.js +0 -2
- package/dist/packages/auth/index.d.ts +0 -2
- package/dist/packages/auth/index.d.ts.map +0 -1
- package/dist/packages/auth/index.js +0 -17
- package/dist/packages/coin/api/coinApi.d.ts +0 -33
- package/dist/packages/coin/api/coinApi.d.ts.map +0 -1
- package/dist/packages/coin/api/coinApi.js +0 -167
- package/dist/packages/coin/coin.d.ts +0 -320
- package/dist/packages/coin/coin.d.ts.map +0 -1
- package/dist/packages/coin/coin.js +0 -467
- package/dist/packages/coin/coinTypes.d.ts +0 -139
- package/dist/packages/coin/coinTypes.d.ts.map +0 -1
- package/dist/packages/coin/coinTypes.js +0 -2
- package/dist/packages/coin/index.d.ts +0 -2
- package/dist/packages/coin/index.d.ts.map +0 -1
- package/dist/packages/coin/index.js +0 -17
- package/dist/packages/dca/api/dcaApi.d.ts +0 -26
- package/dist/packages/dca/api/dcaApi.d.ts.map +0 -1
- package/dist/packages/dca/api/dcaApi.js +0 -60
- package/dist/packages/dca/dca.d.ts +0 -174
- package/dist/packages/dca/dca.d.ts.map +0 -1
- package/dist/packages/dca/dca.js +0 -230
- package/dist/packages/dca/dcaTypes.d.ts +0 -319
- package/dist/packages/dca/dcaTypes.d.ts.map +0 -1
- package/dist/packages/dca/dcaTypes.js +0 -2
- package/dist/packages/dca/index.d.ts +0 -2
- package/dist/packages/dca/index.d.ts.map +0 -1
- package/dist/packages/dca/index.js +0 -17
- package/dist/packages/farms/api/farmsApi.d.ts +0 -996
- package/dist/packages/farms/api/farmsApi.d.ts.map +0 -1
- package/dist/packages/farms/api/farmsApi.js +0 -1826
- package/dist/packages/farms/api/farmsApiCasting.d.ts +0 -39
- package/dist/packages/farms/api/farmsApiCasting.d.ts.map +0 -1
- package/dist/packages/farms/api/farmsApiCasting.js +0 -427
- package/dist/packages/farms/api/farmsApiCastingTypes.d.ts +0 -235
- package/dist/packages/farms/api/farmsApiCastingTypes.d.ts.map +0 -1
- package/dist/packages/farms/api/farmsApiCastingTypes.js +0 -2
- package/dist/packages/farms/farms.d.ts +0 -221
- package/dist/packages/farms/farms.d.ts.map +0 -1
- package/dist/packages/farms/farms.js +0 -302
- package/dist/packages/farms/farmsStakedPosition.d.ts +0 -229
- package/dist/packages/farms/farmsStakedPosition.d.ts.map +0 -1
- package/dist/packages/farms/farmsStakedPosition.js +0 -473
- package/dist/packages/farms/farmsStakingPool.d.ts +0 -285
- package/dist/packages/farms/farmsStakingPool.d.ts.map +0 -1
- package/dist/packages/farms/farmsStakingPool.js +0 -488
- package/dist/packages/farms/farmsTypes.d.ts +0 -571
- package/dist/packages/farms/farmsTypes.d.ts.map +0 -1
- package/dist/packages/farms/farmsTypes.js +0 -49
- package/dist/packages/farms/index.d.ts +0 -4
- package/dist/packages/farms/index.d.ts.map +0 -1
- package/dist/packages/farms/index.js +0 -19
- package/dist/packages/faucet/api/faucetApi.d.ts +0 -37
- package/dist/packages/faucet/api/faucetApi.d.ts.map +0 -1
- package/dist/packages/faucet/api/faucetApi.js +0 -145
- package/dist/packages/faucet/api/faucetApiCasting.d.ts +0 -7
- package/dist/packages/faucet/api/faucetApiCasting.d.ts.map +0 -1
- package/dist/packages/faucet/api/faucetApiCasting.js +0 -33
- package/dist/packages/faucet/api/faucetApiCastingTypes.d.ts +0 -10
- package/dist/packages/faucet/api/faucetApiCastingTypes.d.ts.map +0 -1
- package/dist/packages/faucet/api/faucetApiCastingTypes.js +0 -2
- package/dist/packages/faucet/faucet.d.ts +0 -16
- package/dist/packages/faucet/faucet.d.ts.map +0 -1
- package/dist/packages/faucet/faucet.js +0 -64
- package/dist/packages/faucet/faucetTypes.d.ts +0 -20
- package/dist/packages/faucet/faucetTypes.d.ts.map +0 -1
- package/dist/packages/faucet/faucetTypes.js +0 -2
- package/dist/packages/faucet/index.d.ts +0 -2
- package/dist/packages/faucet/index.d.ts.map +0 -1
- package/dist/packages/faucet/index.js +0 -17
- package/dist/packages/index.d.ts +0 -14
- package/dist/packages/index.d.ts.map +0 -1
- package/dist/packages/index.js +0 -29
- package/dist/packages/leveragedStaking/api/leveragedStakingApi.d.ts +0 -202
- package/dist/packages/leveragedStaking/api/leveragedStakingApi.d.ts.map +0 -1
- package/dist/packages/leveragedStaking/api/leveragedStakingApi.js +0 -1104
- package/dist/packages/leveragedStaking/api/leveragedStakingApiCasting.d.ts +0 -12
- package/dist/packages/leveragedStaking/api/leveragedStakingApiCasting.d.ts.map +0 -1
- package/dist/packages/leveragedStaking/api/leveragedStakingApiCasting.js +0 -69
- package/dist/packages/leveragedStaking/api/leveragedStakingApiCastingTypes.d.ts +0 -39
- package/dist/packages/leveragedStaking/api/leveragedStakingApiCastingTypes.d.ts.map +0 -1
- package/dist/packages/leveragedStaking/api/leveragedStakingApiCastingTypes.js +0 -2
- package/dist/packages/leveragedStaking/index.d.ts +0 -2
- package/dist/packages/leveragedStaking/index.d.ts.map +0 -1
- package/dist/packages/leveragedStaking/index.js +0 -17
- package/dist/packages/leveragedStaking/leveragedStaking.d.ts +0 -68
- package/dist/packages/leveragedStaking/leveragedStaking.d.ts.map +0 -1
- package/dist/packages/leveragedStaking/leveragedStaking.js +0 -154
- package/dist/packages/leveragedStaking/leveragedStakingTypes.d.ts +0 -48
- package/dist/packages/leveragedStaking/leveragedStakingTypes.d.ts.map +0 -1
- package/dist/packages/leveragedStaking/leveragedStakingTypes.js +0 -16
- package/dist/packages/limitOrders/api/limitOrdersApi.d.ts +0 -12
- package/dist/packages/limitOrders/api/limitOrdersApi.d.ts.map +0 -1
- package/dist/packages/limitOrders/api/limitOrdersApi.js +0 -25
- package/dist/packages/limitOrders/index.d.ts +0 -2
- package/dist/packages/limitOrders/index.d.ts.map +0 -1
- package/dist/packages/limitOrders/index.js +0 -17
- package/dist/packages/limitOrders/limitOrders.d.ts +0 -143
- package/dist/packages/limitOrders/limitOrders.d.ts.map +0 -1
- package/dist/packages/limitOrders/limitOrders.js +0 -190
- package/dist/packages/limitOrders/limitOrdersTypes.d.ts +0 -211
- package/dist/packages/limitOrders/limitOrdersTypes.d.ts.map +0 -1
- package/dist/packages/limitOrders/limitOrdersTypes.js +0 -2
- package/dist/packages/multisig/api/multisigApi.d.ts +0 -10
- package/dist/packages/multisig/api/multisigApi.d.ts.map +0 -1
- package/dist/packages/multisig/api/multisigApi.js +0 -39
- package/dist/packages/multisig/index.d.ts +0 -2
- package/dist/packages/multisig/index.d.ts.map +0 -1
- package/dist/packages/multisig/index.js +0 -17
- package/dist/packages/multisig/multisig.d.ts +0 -46
- package/dist/packages/multisig/multisig.d.ts.map +0 -1
- package/dist/packages/multisig/multisig.js +0 -65
- package/dist/packages/multisig/multisigTypes.d.ts +0 -26
- package/dist/packages/multisig/multisigTypes.d.ts.map +0 -1
- package/dist/packages/multisig/multisigTypes.js +0 -2
- package/dist/packages/nftAmm/api/nftAmmApi.d.ts +0 -93
- package/dist/packages/nftAmm/api/nftAmmApi.d.ts.map +0 -1
- package/dist/packages/nftAmm/api/nftAmmApi.js +0 -250
- package/dist/packages/nftAmm/api/nftAmmApiCasting.d.ts +0 -6
- package/dist/packages/nftAmm/api/nftAmmApiCasting.d.ts.map +0 -1
- package/dist/packages/nftAmm/api/nftAmmApiCasting.js +0 -43
- package/dist/packages/nftAmm/api/nftAmmApiCastingTypes.d.ts +0 -10
- package/dist/packages/nftAmm/api/nftAmmApiCastingTypes.d.ts.map +0 -1
- package/dist/packages/nftAmm/api/nftAmmApiCastingTypes.js +0 -2
- package/dist/packages/nftAmm/index.d.ts +0 -2
- package/dist/packages/nftAmm/index.d.ts.map +0 -1
- package/dist/packages/nftAmm/index.js +0 -17
- package/dist/packages/nftAmm/nftAmm.d.ts +0 -18
- package/dist/packages/nftAmm/nftAmm.d.ts.map +0 -1
- package/dist/packages/nftAmm/nftAmm.js +0 -73
- package/dist/packages/nftAmm/nftAmmMarket.d.ts +0 -54
- package/dist/packages/nftAmm/nftAmmMarket.d.ts.map +0 -1
- package/dist/packages/nftAmm/nftAmmMarket.js +0 -154
- package/dist/packages/nftAmm/nftAmmTypes.d.ts +0 -51
- package/dist/packages/nftAmm/nftAmmTypes.d.ts.map +0 -1
- package/dist/packages/nftAmm/nftAmmTypes.js +0 -2
- package/dist/packages/perpetuals/api/perpetualsApi.d.ts +0 -44
- package/dist/packages/perpetuals/api/perpetualsApi.d.ts.map +0 -1
- package/dist/packages/perpetuals/api/perpetualsApi.js +0 -1420
- package/dist/packages/perpetuals/api/perpetualsApiCasting.d.ts +0 -27
- package/dist/packages/perpetuals/api/perpetualsApiCasting.d.ts.map +0 -1
- package/dist/packages/perpetuals/api/perpetualsApiCasting.js +0 -463
- package/dist/packages/perpetuals/index.d.ts +0 -5
- package/dist/packages/perpetuals/index.d.ts.map +0 -1
- package/dist/packages/perpetuals/index.js +0 -20
- package/dist/packages/perpetuals/perpetuals.d.ts +0 -860
- package/dist/packages/perpetuals/perpetuals.d.ts.map +0 -1
- package/dist/packages/perpetuals/perpetuals.js +0 -1102
- package/dist/packages/perpetuals/perpetualsAccount.d.ts +0 -780
- package/dist/packages/perpetuals/perpetualsAccount.d.ts.map +0 -1
- package/dist/packages/perpetuals/perpetualsAccount.js +0 -1406
- package/dist/packages/perpetuals/perpetualsCastingTypes.d.ts +0 -170
- package/dist/packages/perpetuals/perpetualsCastingTypes.d.ts.map +0 -1
- package/dist/packages/perpetuals/perpetualsCastingTypes.js +0 -2
- package/dist/packages/perpetuals/perpetualsMarket.d.ts +0 -360
- package/dist/packages/perpetuals/perpetualsMarket.d.ts.map +0 -1
- package/dist/packages/perpetuals/perpetualsMarket.js +0 -475
- package/dist/packages/perpetuals/perpetualsTypes.d.ts +0 -2968
- package/dist/packages/perpetuals/perpetualsTypes.d.ts.map +0 -1
- package/dist/packages/perpetuals/perpetualsTypes.js +0 -165
- package/dist/packages/perpetuals/perpetualsVault.d.ts +0 -438
- package/dist/packages/perpetuals/perpetualsVault.d.ts.map +0 -1
- package/dist/packages/perpetuals/perpetualsVault.js +0 -601
- package/dist/packages/perpetuals/utils/index.d.ts +0 -2
- package/dist/packages/perpetuals/utils/index.d.ts.map +0 -1
- package/dist/packages/perpetuals/utils/index.js +0 -17
- package/dist/packages/perpetuals/utils/perpetualsOrderUtils.d.ts +0 -12
- package/dist/packages/perpetuals/utils/perpetualsOrderUtils.d.ts.map +0 -1
- package/dist/packages/perpetuals/utils/perpetualsOrderUtils.js +0 -60
- package/dist/packages/pools/api/poolsApi.d.ts +0 -342
- package/dist/packages/pools/api/poolsApi.d.ts.map +0 -1
- package/dist/packages/pools/api/poolsApi.js +0 -857
- package/dist/packages/pools/api/poolsApiCasting.d.ts +0 -13
- package/dist/packages/pools/api/poolsApiCasting.d.ts.map +0 -1
- package/dist/packages/pools/api/poolsApiCasting.js +0 -91
- package/dist/packages/pools/api/poolsApiCastingTypes.d.ts +0 -64
- package/dist/packages/pools/api/poolsApiCastingTypes.d.ts.map +0 -1
- package/dist/packages/pools/api/poolsApiCastingTypes.js +0 -2
- package/dist/packages/pools/index.d.ts +0 -3
- package/dist/packages/pools/index.d.ts.map +0 -1
- package/dist/packages/pools/index.js +0 -18
- package/dist/packages/pools/pool.d.ts +0 -459
- package/dist/packages/pools/pool.d.ts.map +0 -1
- package/dist/packages/pools/pool.js +0 -647
- package/dist/packages/pools/pools.d.ts +0 -405
- package/dist/packages/pools/pools.d.ts.map +0 -1
- package/dist/packages/pools/pools.js +0 -533
- package/dist/packages/pools/poolsTypes.d.ts +0 -469
- package/dist/packages/pools/poolsTypes.d.ts.map +0 -1
- package/dist/packages/pools/poolsTypes.js +0 -2
- package/dist/packages/pools/utils/cmmmCalculations.d.ts +0 -42
- package/dist/packages/pools/utils/cmmmCalculations.d.ts.map +0 -1
- package/dist/packages/pools/utils/cmmmCalculations.js +0 -1380
- package/dist/packages/referralVault/api/referralVaultApi.d.ts +0 -39
- package/dist/packages/referralVault/api/referralVaultApi.d.ts.map +0 -1
- package/dist/packages/referralVault/api/referralVaultApi.js +0 -125
- package/dist/packages/referralVault/index.d.ts +0 -2
- package/dist/packages/referralVault/index.d.ts.map +0 -1
- package/dist/packages/referralVault/index.js +0 -17
- package/dist/packages/referralVault/referralVault.d.ts +0 -47
- package/dist/packages/referralVault/referralVault.d.ts.map +0 -1
- package/dist/packages/referralVault/referralVault.js +0 -71
- package/dist/packages/referralVault/referralVaultTypes.d.ts +0 -2
- package/dist/packages/referralVault/referralVaultTypes.d.ts.map +0 -1
- package/dist/packages/referralVault/referralVaultTypes.js +0 -2
- package/dist/packages/referrals/index.d.ts +0 -2
- package/dist/packages/referrals/index.d.ts.map +0 -1
- package/dist/packages/referrals/index.js +0 -17
- package/dist/packages/referrals/referrals.d.ts +0 -27
- package/dist/packages/referrals/referrals.d.ts.map +0 -1
- package/dist/packages/referrals/referrals.js +0 -95
- package/dist/packages/referrals/referralsTypes.d.ts +0 -166
- package/dist/packages/referrals/referralsTypes.d.ts.map +0 -1
- package/dist/packages/referrals/referralsTypes.js +0 -2
- package/dist/packages/rewards/index.d.ts +0 -2
- package/dist/packages/rewards/index.d.ts.map +0 -1
- package/dist/packages/rewards/index.js +0 -17
- package/dist/packages/rewards/rewards.d.ts +0 -21
- package/dist/packages/rewards/rewards.d.ts.map +0 -1
- package/dist/packages/rewards/rewards.js +0 -65
- package/dist/packages/rewards/rewardsTypes.d.ts +0 -169
- package/dist/packages/rewards/rewardsTypes.d.ts.map +0 -1
- package/dist/packages/rewards/rewardsTypes.js +0 -2
- package/dist/packages/router/api/routerApi.d.ts +0 -35
- package/dist/packages/router/api/routerApi.d.ts.map +0 -1
- package/dist/packages/router/api/routerApi.js +0 -88
- package/dist/packages/router/api/routerApiCasting.d.ts +0 -6
- package/dist/packages/router/api/routerApiCasting.d.ts.map +0 -1
- package/dist/packages/router/api/routerApiCasting.js +0 -22
- package/dist/packages/router/api/routerApiCastingTypes.d.ts +0 -12
- package/dist/packages/router/api/routerApiCastingTypes.d.ts.map +0 -1
- package/dist/packages/router/api/routerApiCastingTypes.js +0 -2
- package/dist/packages/router/index.d.ts +0 -2
- package/dist/packages/router/index.d.ts.map +0 -1
- package/dist/packages/router/index.js +0 -17
- package/dist/packages/router/router.d.ts +0 -224
- package/dist/packages/router/router.d.ts.map +0 -1
- package/dist/packages/router/router.js +0 -283
- package/dist/packages/router/routerTypes.d.ts +0 -300
- package/dist/packages/router/routerTypes.d.ts.map +0 -1
- package/dist/packages/router/routerTypes.js +0 -2
- package/dist/packages/staking/api/stakingApi.d.ts +0 -129
- package/dist/packages/staking/api/stakingApi.d.ts.map +0 -1
- package/dist/packages/staking/api/stakingApi.js +0 -487
- package/dist/packages/staking/api/stakingApiCasting.d.ts +0 -11
- package/dist/packages/staking/api/stakingApiCasting.d.ts.map +0 -1
- package/dist/packages/staking/api/stakingApiCasting.js +0 -87
- package/dist/packages/staking/api/stakingApiCastingTypes.d.ts +0 -97
- package/dist/packages/staking/api/stakingApiCastingTypes.d.ts.map +0 -1
- package/dist/packages/staking/api/stakingApiCastingTypes.js +0 -2
- package/dist/packages/staking/index.d.ts +0 -2
- package/dist/packages/staking/index.d.ts.map +0 -1
- package/dist/packages/staking/index.js +0 -17
- package/dist/packages/staking/staking.d.ts +0 -385
- package/dist/packages/staking/staking.d.ts.map +0 -1
- package/dist/packages/staking/staking.js +0 -501
- package/dist/packages/staking/stakingTypes.d.ts +0 -575
- package/dist/packages/staking/stakingTypes.d.ts.map +0 -1
- package/dist/packages/staking/stakingTypes.js +0 -45
- package/dist/packages/sui/api/suiApi.d.ts +0 -21
- package/dist/packages/sui/api/suiApi.d.ts.map +0 -1
- package/dist/packages/sui/api/suiApi.js +0 -46
- package/dist/packages/sui/index.d.ts +0 -2
- package/dist/packages/sui/index.d.ts.map +0 -1
- package/dist/packages/sui/index.js +0 -17
- package/dist/packages/sui/sui.d.ts +0 -53
- package/dist/packages/sui/sui.d.ts.map +0 -1
- package/dist/packages/sui/sui.js +0 -77
- package/dist/packages/suiFrens/api/suiFrensApi.d.ts +0 -204
- package/dist/packages/suiFrens/api/suiFrensApi.d.ts.map +0 -1
- package/dist/packages/suiFrens/api/suiFrensApi.js +0 -756
- package/dist/packages/suiFrens/api/suiFrensApiCasting.d.ts +0 -21
- package/dist/packages/suiFrens/api/suiFrensApiCasting.d.ts.map +0 -1
- package/dist/packages/suiFrens/api/suiFrensApiCasting.js +0 -181
- package/dist/packages/suiFrens/api/suiFrensApiCastingTypes.d.ts +0 -77
- package/dist/packages/suiFrens/api/suiFrensApiCastingTypes.d.ts.map +0 -1
- package/dist/packages/suiFrens/api/suiFrensApiCastingTypes.js +0 -2
- package/dist/packages/suiFrens/index.d.ts +0 -4
- package/dist/packages/suiFrens/index.d.ts.map +0 -1
- package/dist/packages/suiFrens/index.js +0 -19
- package/dist/packages/suiFrens/stakedSuiFren.d.ts +0 -31
- package/dist/packages/suiFrens/stakedSuiFren.d.ts.map +0 -1
- package/dist/packages/suiFrens/stakedSuiFren.js +0 -90
- package/dist/packages/suiFrens/suiFren.d.ts +0 -32
- package/dist/packages/suiFrens/suiFren.d.ts.map +0 -1
- package/dist/packages/suiFrens/suiFren.js +0 -150
- package/dist/packages/suiFrens/suiFrens.d.ts +0 -56
- package/dist/packages/suiFrens/suiFrens.d.ts.map +0 -1
- package/dist/packages/suiFrens/suiFrens.js +0 -218
- package/dist/packages/suiFrens/suiFrensTypes.d.ts +0 -148
- package/dist/packages/suiFrens/suiFrensTypes.d.ts.map +0 -1
- package/dist/packages/suiFrens/suiFrensTypes.js +0 -8
- package/dist/packages/userData/index.d.ts +0 -2
- package/dist/packages/userData/index.d.ts.map +0 -1
- package/dist/packages/userData/index.js +0 -17
- package/dist/packages/userData/userData.d.ts +0 -89
- package/dist/packages/userData/userData.d.ts.map +0 -1
- package/dist/packages/userData/userData.js +0 -119
- package/dist/packages/userData/userDataTypes.d.ts +0 -29
- package/dist/packages/userData/userDataTypes.d.ts.map +0 -1
- package/dist/packages/userData/userDataTypes.js +0 -2
- package/dist/types.d.ts +0 -15
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -31
|
@@ -1,996 +0,0 @@
|
|
|
1
|
-
import { AftermathApi } from "../../../general/providers/aftermathApi";
|
|
2
|
-
import { AnyObjectType, FarmsAddresses, Timestamp, CoinType, ApiFarmsStakeBody, ApiHarvestFarmsRewardsBody, ApiFarmsDepositPrincipalBody, Balance, ApiFarmsUnstakeBody, FarmsLockEnforcement, FarmsMultiplier, ApiFarmsCreateStakingPoolBody, ApiFarmsTopUpStakingPoolRewardsBody, ApiFarmsInitializeStakingPoolRewardBody, StakingPoolOwnerCapObject, ApiFarmsOwnedStakingPoolOwnerCapsBody, ApiFarmsIncreaseStakingPoolRewardsEmissionsBody, PartialFarmsStakedPositionObject, StakingPoolOneTimeAdminCapObject, FarmOwnerOrOneTimeAdminCap, ObjectId, SuiAddress, ApiFarmsCreateStakingPoolBodyV1, ApiFarmsStakeBodyV1 } from "../../../types";
|
|
3
|
-
import { TransactionArgument, Transaction } from "@mysten/sui/transactions";
|
|
4
|
-
import { MoveErrors, MoveErrorsInterface } from "../../../general/types/moveErrorsInterface";
|
|
5
|
-
export declare class FarmsApi implements MoveErrorsInterface {
|
|
6
|
-
private readonly Provider;
|
|
7
|
-
private static readonly constants;
|
|
8
|
-
readonly addresses: FarmsAddresses;
|
|
9
|
-
readonly objectTypes: {
|
|
10
|
-
stakedPositionV1: AnyObjectType;
|
|
11
|
-
stakingPoolOwnerCapV1: AnyObjectType;
|
|
12
|
-
stakingPoolOneTimeAdminCapV1: AnyObjectType;
|
|
13
|
-
stakedPositionV2: AnyObjectType;
|
|
14
|
-
stakingPoolOwnerCapV2: AnyObjectType;
|
|
15
|
-
stakingPoolOneTimeAdminCapV2: AnyObjectType;
|
|
16
|
-
};
|
|
17
|
-
readonly eventTypes: {
|
|
18
|
-
createdVaultV1: AnyObjectType;
|
|
19
|
-
initializedRewardV1: AnyObjectType;
|
|
20
|
-
addedRewardV1: AnyObjectType;
|
|
21
|
-
increasedEmissionsV1: AnyObjectType;
|
|
22
|
-
stakedV1: AnyObjectType;
|
|
23
|
-
stakedRelaxedV1: AnyObjectType;
|
|
24
|
-
lockedV1: AnyObjectType;
|
|
25
|
-
unlockedV1: AnyObjectType;
|
|
26
|
-
depositedPrincipalV1: AnyObjectType;
|
|
27
|
-
withdrewPrincipalV1: AnyObjectType;
|
|
28
|
-
harvestedRewardsV1: AnyObjectType;
|
|
29
|
-
createdVaultV2: AnyObjectType;
|
|
30
|
-
initializedRewardV2: AnyObjectType;
|
|
31
|
-
addedRewardV2: AnyObjectType;
|
|
32
|
-
updatedEmissionsV2: AnyObjectType;
|
|
33
|
-
stakedV2: AnyObjectType;
|
|
34
|
-
lockedV2: AnyObjectType;
|
|
35
|
-
unlockedV2: AnyObjectType;
|
|
36
|
-
depositedPrincipalV2: AnyObjectType;
|
|
37
|
-
withdrewPrincipalV2: AnyObjectType;
|
|
38
|
-
harvestedRewardsV2: AnyObjectType;
|
|
39
|
-
};
|
|
40
|
-
readonly moveErrors: MoveErrors;
|
|
41
|
-
/**
|
|
42
|
-
* Constructor for FarmsApi
|
|
43
|
-
* @param Provider The AftermathApi provider instance
|
|
44
|
-
* @throws Error if not all required addresses have been set in provider
|
|
45
|
-
*/
|
|
46
|
-
constructor(Provider: AftermathApi);
|
|
47
|
-
/**
|
|
48
|
-
* @deprecated Use the new API method in Farms class instead.
|
|
49
|
-
* Fetches the owner caps for staking pools owned by a specific wallet address
|
|
50
|
-
* @param inputs Object containing wallet address
|
|
51
|
-
* @returns Array of StakingPoolOwnerCapObject
|
|
52
|
-
*/
|
|
53
|
-
fetchOwnedStakingPoolOwnerCaps: (inputs: ApiFarmsOwnedStakingPoolOwnerCapsBody) => Promise<StakingPoolOwnerCapObject[]>;
|
|
54
|
-
/**
|
|
55
|
-
* @deprecated Use the new API method in Farms class instead.
|
|
56
|
-
* Fetches the one-time admin caps for staking pools owned by a specific wallet address
|
|
57
|
-
* @param inputs Object containing wallet address
|
|
58
|
-
* @returns Array of StakingPoolOneTimeAdminCapObject
|
|
59
|
-
*/
|
|
60
|
-
fetchOwnedStakingPoolOneTimeAdminCaps: (inputs: ApiFarmsOwnedStakingPoolOwnerCapsBody) => Promise<StakingPoolOneTimeAdminCapObject[]>;
|
|
61
|
-
/**
|
|
62
|
-
* @deprecated Use `getOwnedStakedPositions` method in Farms class instead.
|
|
63
|
-
* Fetches partial staked positions owned by a specific wallet address
|
|
64
|
-
* @param inputs Object containing wallet address
|
|
65
|
-
* @returns Array of PartialFarmsStakedPositionObject
|
|
66
|
-
*/
|
|
67
|
-
fetchOwnedPartialStakedPositions: (inputs: {
|
|
68
|
-
walletAddress: SuiAddress;
|
|
69
|
-
}) => Promise<PartialFarmsStakedPositionObject[]>;
|
|
70
|
-
/**
|
|
71
|
-
* @deprecated use stakeTxV2 instead
|
|
72
|
-
* Creates a transaction to stake coins in a staking pool (original version)
|
|
73
|
-
* @param inputs Staking parameters including transaction, pool ID, coin ID, lock duration, and coin type
|
|
74
|
-
* @returns Transaction object argument for StakedPosition
|
|
75
|
-
*/
|
|
76
|
-
stakeTxV1: (inputs: {
|
|
77
|
-
tx: Transaction;
|
|
78
|
-
stakingPoolId: ObjectId;
|
|
79
|
-
stakeCoinId: ObjectId | TransactionArgument;
|
|
80
|
-
lockDurationMs: Timestamp;
|
|
81
|
-
stakeCoinType: CoinType;
|
|
82
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
83
|
-
/**
|
|
84
|
-
* Creates a transaction to stake coins in a staking pool
|
|
85
|
-
* @param inputs Staking parameters including transaction, pool ID, coin ID, lock duration, lock enforcement, and coin type
|
|
86
|
-
* @returns Transaction object argument for StakedPosition
|
|
87
|
-
*/
|
|
88
|
-
stakeTxV2: (inputs: {
|
|
89
|
-
tx: Transaction;
|
|
90
|
-
stakingPoolId: ObjectId;
|
|
91
|
-
stakeCoinId: ObjectId | TransactionArgument;
|
|
92
|
-
lockDurationMs: Timestamp;
|
|
93
|
-
lockEnforcement: FarmsLockEnforcement;
|
|
94
|
-
stakeCoinType: CoinType;
|
|
95
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
96
|
-
/**
|
|
97
|
-
* @deprecated use depositPrincipalTxV2 instead
|
|
98
|
-
* Creates a transaction to deposit additional principal to a staked position (original version)
|
|
99
|
-
* @param inputs Deposit parameters including transaction, position ID, pool ID, coin ID, and coin type
|
|
100
|
-
* @returns Transaction command to deposit principal
|
|
101
|
-
*/
|
|
102
|
-
depositPrincipalTxV1: (inputs: {
|
|
103
|
-
tx: Transaction;
|
|
104
|
-
stakedPositionId: ObjectId;
|
|
105
|
-
stakingPoolId: ObjectId;
|
|
106
|
-
stakeCoinId: ObjectId | TransactionArgument;
|
|
107
|
-
stakeCoinType: CoinType;
|
|
108
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
109
|
-
/**
|
|
110
|
-
* Creates a transaction to deposit additional principal to a staked position
|
|
111
|
-
* @param inputs Deposit parameters including transaction, position ID, pool ID, coin ID, and coin type
|
|
112
|
-
* @returns Transaction command to deposit principal
|
|
113
|
-
*/
|
|
114
|
-
depositPrincipalTxV2: (inputs: {
|
|
115
|
-
tx: Transaction;
|
|
116
|
-
stakedPositionId: ObjectId;
|
|
117
|
-
stakingPoolId: ObjectId;
|
|
118
|
-
stakeCoinId: ObjectId | TransactionArgument;
|
|
119
|
-
stakeCoinType: CoinType;
|
|
120
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
121
|
-
/**
|
|
122
|
-
* @deprecated use withdrawPrincipalTxV2 instead
|
|
123
|
-
* Creates a transaction to withdraw principal from a staked position (original version)
|
|
124
|
-
* @param inputs Withdrawal parameters including transaction, position ID, pool ID, amount, and coin type
|
|
125
|
-
* @returns Transaction object argument for the withdrawn Coin
|
|
126
|
-
*/
|
|
127
|
-
withdrawPrincipalTxV1: (inputs: {
|
|
128
|
-
tx: Transaction;
|
|
129
|
-
stakedPositionId: ObjectId;
|
|
130
|
-
stakingPoolId: ObjectId;
|
|
131
|
-
withdrawAmount: Balance;
|
|
132
|
-
stakeCoinType: CoinType;
|
|
133
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
134
|
-
/**
|
|
135
|
-
* Creates a transaction to withdraw principal from a staked position
|
|
136
|
-
* @param inputs Withdrawal parameters including transaction, position ID, pool ID, amount, and coin type
|
|
137
|
-
* @returns Transaction object argument for the withdrawn Coin
|
|
138
|
-
*/
|
|
139
|
-
withdrawPrincipalTxV2: (inputs: {
|
|
140
|
-
tx: Transaction;
|
|
141
|
-
stakedPositionId: ObjectId;
|
|
142
|
-
stakingPoolId: ObjectId;
|
|
143
|
-
withdrawAmount: Balance;
|
|
144
|
-
stakeCoinType: CoinType;
|
|
145
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
146
|
-
/**
|
|
147
|
-
* @deprecated use destroyStakedPositionTxV2 instead
|
|
148
|
-
* Creates a transaction to destroy a staked position (original version)
|
|
149
|
-
* @param inputs Destroy parameters including transaction, position ID, pool ID, and coin type
|
|
150
|
-
* @returns Transaction command to destroy the position
|
|
151
|
-
*/
|
|
152
|
-
destroyStakedPositionTxV1: (inputs: {
|
|
153
|
-
tx: Transaction;
|
|
154
|
-
stakedPositionId: ObjectId;
|
|
155
|
-
stakingPoolId: ObjectId;
|
|
156
|
-
stakeCoinType: CoinType;
|
|
157
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
158
|
-
/**
|
|
159
|
-
* Creates a transaction to destroy a staked position
|
|
160
|
-
* @param inputs Destroy parameters including transaction, position ID, and coin type
|
|
161
|
-
* @returns Transaction command to destroy the position
|
|
162
|
-
*/
|
|
163
|
-
destroyStakedPositionTxV2: (inputs: {
|
|
164
|
-
tx: Transaction;
|
|
165
|
-
stakedPositionId: ObjectId;
|
|
166
|
-
stakeCoinType: CoinType;
|
|
167
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
168
|
-
/**
|
|
169
|
-
* @deprecated use updatePositionTxV2 instead
|
|
170
|
-
* Creates a transaction to update a staked position, recalculating rewards (original version)
|
|
171
|
-
* @param inputs Update parameters including transaction, position ID, pool ID, and coin type
|
|
172
|
-
* @returns Transaction command to update the position
|
|
173
|
-
*/
|
|
174
|
-
updatePositionTxV1: (inputs: {
|
|
175
|
-
tx: Transaction;
|
|
176
|
-
stakedPositionId: ObjectId;
|
|
177
|
-
stakingPoolId: ObjectId;
|
|
178
|
-
stakeCoinType: CoinType;
|
|
179
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
180
|
-
/**
|
|
181
|
-
* Creates a transaction to update a staked position, recalculating rewards
|
|
182
|
-
* @param inputs Update parameters including transaction, position ID, pool ID, and coin type
|
|
183
|
-
* @returns Transaction command to update the position
|
|
184
|
-
*/
|
|
185
|
-
updatePositionTxV2: (inputs: {
|
|
186
|
-
tx: Transaction;
|
|
187
|
-
stakedPositionId: ObjectId;
|
|
188
|
-
stakingPoolId: ObjectId;
|
|
189
|
-
stakeCoinType: CoinType;
|
|
190
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
191
|
-
/**
|
|
192
|
-
* @deprecated use lockTxV2 instead
|
|
193
|
-
* Creates a transaction to lock a staked position for a specific duration (original version)
|
|
194
|
-
* @param inputs Lock parameters including transaction, position ID, pool ID, lock duration, and coin type
|
|
195
|
-
* @returns Transaction command to lock the position
|
|
196
|
-
*/
|
|
197
|
-
lockTxV1: (inputs: {
|
|
198
|
-
tx: Transaction;
|
|
199
|
-
stakedPositionId: ObjectId;
|
|
200
|
-
stakingPoolId: ObjectId;
|
|
201
|
-
lockDurationMs: Timestamp;
|
|
202
|
-
stakeCoinType: CoinType;
|
|
203
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
204
|
-
/**
|
|
205
|
-
* Creates a transaction to lock a staked position for a specific duration
|
|
206
|
-
* @param inputs Lock parameters including transaction, position ID, pool ID, lock duration, and coin type
|
|
207
|
-
* @returns Transaction command to lock the position
|
|
208
|
-
*/
|
|
209
|
-
lockTxV2: (inputs: {
|
|
210
|
-
tx: Transaction;
|
|
211
|
-
stakedPositionId: ObjectId;
|
|
212
|
-
stakingPoolId: ObjectId;
|
|
213
|
-
lockDurationMs: Timestamp;
|
|
214
|
-
stakeCoinType: CoinType;
|
|
215
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
216
|
-
/**
|
|
217
|
-
* @deprecated use renewLockTxV2 instead
|
|
218
|
-
* Creates a transaction to renew the lock on a staked position (original version)
|
|
219
|
-
* @param inputs Renew lock parameters including transaction, position ID, pool ID, and coin type
|
|
220
|
-
* @returns Transaction command to renew the lock
|
|
221
|
-
*/
|
|
222
|
-
renewLockTxV1: (inputs: {
|
|
223
|
-
tx: Transaction;
|
|
224
|
-
stakedPositionId: ObjectId;
|
|
225
|
-
stakingPoolId: ObjectId;
|
|
226
|
-
stakeCoinType: CoinType;
|
|
227
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
228
|
-
/**
|
|
229
|
-
* Creates a transaction to renew the lock on a staked position
|
|
230
|
-
* @param inputs Renew lock parameters including transaction, position ID, pool ID, and coin type
|
|
231
|
-
* @returns Transaction command to renew the lock
|
|
232
|
-
*/
|
|
233
|
-
renewLockTxV2: (inputs: {
|
|
234
|
-
tx: Transaction;
|
|
235
|
-
stakedPositionId: ObjectId;
|
|
236
|
-
stakingPoolId: ObjectId;
|
|
237
|
-
stakeCoinType: CoinType;
|
|
238
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
239
|
-
/**
|
|
240
|
-
* @deprecated use unlockTxV2 instead
|
|
241
|
-
* Creates a transaction to unlock a staked position (original version)
|
|
242
|
-
* @param inputs Unlock parameters including transaction, position ID, pool ID, and coin type
|
|
243
|
-
* @returns Transaction command to unlock the position
|
|
244
|
-
*/
|
|
245
|
-
unlockTxV1: (inputs: {
|
|
246
|
-
tx: Transaction;
|
|
247
|
-
stakedPositionId: ObjectId;
|
|
248
|
-
stakingPoolId: ObjectId;
|
|
249
|
-
stakeCoinType: CoinType;
|
|
250
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
251
|
-
/**
|
|
252
|
-
* Creates a transaction to unlock a staked position
|
|
253
|
-
* @param inputs Unlock parameters including transaction, position ID, pool ID, and coin type
|
|
254
|
-
* @returns Transaction command to unlock the position
|
|
255
|
-
*/
|
|
256
|
-
unlockTxV2: (inputs: {
|
|
257
|
-
tx: Transaction;
|
|
258
|
-
stakedPositionId: ObjectId;
|
|
259
|
-
stakingPoolId: ObjectId;
|
|
260
|
-
stakeCoinType: CoinType;
|
|
261
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
262
|
-
/**
|
|
263
|
-
* @deprecated use beginHarvestTxV2 instead
|
|
264
|
-
* Creates a transaction to begin the reward harvesting process (original version)
|
|
265
|
-
* @param inputs Begin harvest parameters including transaction, pool ID, and coin type
|
|
266
|
-
* @returns Transaction object argument for the harvest metadata
|
|
267
|
-
*/
|
|
268
|
-
beginHarvestTxV1: (inputs: {
|
|
269
|
-
tx: Transaction;
|
|
270
|
-
stakingPoolId: ObjectId;
|
|
271
|
-
stakeCoinType: CoinType;
|
|
272
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
273
|
-
/**
|
|
274
|
-
* Creates a transaction to begin the reward harvesting process
|
|
275
|
-
* @param inputs Begin harvest parameters including transaction, position ID, pool ID, and coin type
|
|
276
|
-
* @returns Transaction object argument for the harvest cap
|
|
277
|
-
*/
|
|
278
|
-
beginHarvestTxV2: (inputs: {
|
|
279
|
-
tx: Transaction;
|
|
280
|
-
stakedPositionId: ObjectId;
|
|
281
|
-
stakingPoolId: ObjectId;
|
|
282
|
-
stakeCoinType: CoinType;
|
|
283
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
284
|
-
/**
|
|
285
|
-
* @deprecated use harvestRewardsTxV2 instead
|
|
286
|
-
* Creates a transaction to harvest rewards from a staked position (original version)
|
|
287
|
-
* @param inputs Harvest parameters including transaction, position ID, pool ID, harvest metadata, stake coin type, and reward coin type
|
|
288
|
-
* @returns Transaction object argument for the harvested rewards
|
|
289
|
-
*/
|
|
290
|
-
harvestRewardsTxV1: (inputs: {
|
|
291
|
-
tx: Transaction;
|
|
292
|
-
stakedPositionId: ObjectId;
|
|
293
|
-
stakingPoolId: ObjectId;
|
|
294
|
-
harvestedRewardsEventMetadataId: ObjectId | TransactionArgument;
|
|
295
|
-
stakeCoinType: CoinType;
|
|
296
|
-
rewardCoinType: CoinType;
|
|
297
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
298
|
-
/**
|
|
299
|
-
* Creates a transaction to harvest rewards from a staked position
|
|
300
|
-
* @param inputs Harvest parameters including transaction, harvest cap, position ID, pool ID, stake coin type, and reward coin type
|
|
301
|
-
* @returns Transaction object argument for the harvested rewards
|
|
302
|
-
*/
|
|
303
|
-
harvestRewardsTxV2: (inputs: {
|
|
304
|
-
tx: Transaction;
|
|
305
|
-
harvestRewardsCap: ObjectId | TransactionArgument;
|
|
306
|
-
stakedPositionId: ObjectId;
|
|
307
|
-
stakingPoolId: ObjectId;
|
|
308
|
-
stakeCoinType: CoinType;
|
|
309
|
-
rewardCoinType: CoinType;
|
|
310
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
311
|
-
/**
|
|
312
|
-
* @deprecated use endHarvestTxV2 instead
|
|
313
|
-
* Creates a transaction to end the reward harvesting process (original version)
|
|
314
|
-
* @param inputs End harvest parameters including transaction and harvest metadata
|
|
315
|
-
* @returns Transaction command to end the harvest
|
|
316
|
-
*/
|
|
317
|
-
endHarvestTxV1: (inputs: {
|
|
318
|
-
tx: Transaction;
|
|
319
|
-
harvestedRewardsEventMetadataId: ObjectId | TransactionArgument;
|
|
320
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
321
|
-
/**
|
|
322
|
-
* Creates a transaction to end the reward harvesting process
|
|
323
|
-
* @param inputs End harvest parameters including transaction and harvest cap
|
|
324
|
-
* @returns Transaction command to end the harvest
|
|
325
|
-
*/
|
|
326
|
-
endHarvestTxV2: (inputs: {
|
|
327
|
-
tx: Transaction;
|
|
328
|
-
harvestRewardsCap: ObjectId | TransactionArgument;
|
|
329
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
330
|
-
/**
|
|
331
|
-
* @deprecated use newStakingPoolTxV2 instead
|
|
332
|
-
* Creates a transaction for the deprecated version of staking pool creation
|
|
333
|
-
* @param inputs Pool creation parameters including transaction, lock enforcement, durations, multiplier, stake amount, and coin type
|
|
334
|
-
* @returns Transaction objects for the vault and owner cap
|
|
335
|
-
*/
|
|
336
|
-
newStakingPoolTxV1: (inputs: {
|
|
337
|
-
tx: Transaction;
|
|
338
|
-
lockEnforcement: FarmsLockEnforcement;
|
|
339
|
-
minLockDurationMs: Timestamp;
|
|
340
|
-
maxLockDurationMs: Timestamp;
|
|
341
|
-
maxLockMultiplier: FarmsMultiplier;
|
|
342
|
-
minStakeAmount: Balance;
|
|
343
|
-
stakeCoinType: CoinType;
|
|
344
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
345
|
-
/**
|
|
346
|
-
* Creates a transaction for the current version of staking pool creation
|
|
347
|
-
* @param inputs Pool creation parameters including transaction, lock enforcements array, durations, multiplier, stake amount, and coin type
|
|
348
|
-
* @returns Transaction objects for the vault and authority cap
|
|
349
|
-
*/
|
|
350
|
-
newStakingPoolTxV2: (inputs: {
|
|
351
|
-
tx: Transaction;
|
|
352
|
-
lockEnforcements: FarmsLockEnforcement[];
|
|
353
|
-
minLockDurationMs: Timestamp;
|
|
354
|
-
maxLockDurationMs: Timestamp;
|
|
355
|
-
maxLockMultiplier: FarmsMultiplier;
|
|
356
|
-
minStakeAmount: Balance;
|
|
357
|
-
stakeCoinType: CoinType;
|
|
358
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
359
|
-
/**
|
|
360
|
-
* @deprecated use shareStakingPoolTxV2 instead
|
|
361
|
-
* Creates a transaction to share a staking pool, making it public
|
|
362
|
-
* @param inputs Share pool parameters including transaction, pool ID, and coin type
|
|
363
|
-
* @returns Transaction command to share the pool
|
|
364
|
-
*/
|
|
365
|
-
shareStakingPoolTxV1: (inputs: {
|
|
366
|
-
tx: Transaction;
|
|
367
|
-
stakingPoolId: ObjectId | TransactionArgument;
|
|
368
|
-
stakeCoinType: CoinType;
|
|
369
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
370
|
-
/**
|
|
371
|
-
* Creates a transaction to share a staking pool, making it public
|
|
372
|
-
* @param inputs Share pool parameters including transaction, pool ID, and coin type
|
|
373
|
-
* @returns Transaction command to share the pool
|
|
374
|
-
*/
|
|
375
|
-
shareStakingPoolTxV2: (inputs: {
|
|
376
|
-
tx: Transaction;
|
|
377
|
-
stakingPoolId: ObjectId | TransactionArgument;
|
|
378
|
-
stakeCoinType: CoinType;
|
|
379
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
380
|
-
/**
|
|
381
|
-
* @deprecated use transferOwnerCapTxV2 instead
|
|
382
|
-
* Creates a transaction to transfer ownership of a staking pool
|
|
383
|
-
* @param inputs Transfer parameters including transaction, owner cap ID, and recipient address
|
|
384
|
-
* @returns Transaction command to transfer the owner cap
|
|
385
|
-
*/
|
|
386
|
-
transferOwnerCapTxV1: (inputs: {
|
|
387
|
-
tx: Transaction;
|
|
388
|
-
ownerCapId: ObjectId | TransactionArgument;
|
|
389
|
-
recipientAddress: SuiAddress;
|
|
390
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
391
|
-
/**
|
|
392
|
-
* @deprecated use grantOneTimeAdminCapTxV2 instead
|
|
393
|
-
* Creates a transaction to grant a one-time admin capability for a staking pool (original version)
|
|
394
|
-
* @param inputs Grant parameters including transaction, owner cap ID, recipient address, and reward coin type
|
|
395
|
-
* @returns Transaction command to grant the one-time admin cap
|
|
396
|
-
*/
|
|
397
|
-
grantOneTimeAdminCapTxV1: (inputs: {
|
|
398
|
-
tx: Transaction;
|
|
399
|
-
ownerCapId: ObjectId | TransactionArgument;
|
|
400
|
-
recipientAddress: SuiAddress;
|
|
401
|
-
rewardCoinType: CoinType;
|
|
402
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
403
|
-
/**
|
|
404
|
-
* Creates a transaction to grant a one-time admin capability for a staking pool
|
|
405
|
-
* @param inputs Grant parameters including transaction, owner cap ID, recipient address, and reward coin type
|
|
406
|
-
* @returns Transaction command to grant the one-time admin cap
|
|
407
|
-
*/
|
|
408
|
-
grantOneTimeAdminCapTxV2: (inputs: {
|
|
409
|
-
tx: Transaction;
|
|
410
|
-
ownerCapId: ObjectId | TransactionArgument;
|
|
411
|
-
recipientAddress: SuiAddress;
|
|
412
|
-
rewardCoinType: CoinType;
|
|
413
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
414
|
-
/**
|
|
415
|
-
* @deprecated use initializeStakingPoolRewardTxV2 instead
|
|
416
|
-
* Creates a transaction to initialize rewards for a staking pool (original version)
|
|
417
|
-
* @param inputs Initialize reward parameters including transaction, pool ID, reward coin ID, emission parameters, stake coin type, and reward coin type
|
|
418
|
-
* @returns Transaction command to initialize the reward
|
|
419
|
-
*/
|
|
420
|
-
initializeStakingPoolRewardTxV1: (inputs: {
|
|
421
|
-
tx: Transaction;
|
|
422
|
-
stakingPoolId: ObjectId;
|
|
423
|
-
rewardCoinId: ObjectId | TransactionArgument;
|
|
424
|
-
emissionScheduleMs: Timestamp;
|
|
425
|
-
emissionRate: bigint;
|
|
426
|
-
emissionDelayTimestampMs: Timestamp;
|
|
427
|
-
stakeCoinType: CoinType;
|
|
428
|
-
rewardCoinType: CoinType;
|
|
429
|
-
} & FarmOwnerOrOneTimeAdminCap) => import("@mysten/sui/transactions").TransactionResult;
|
|
430
|
-
/**
|
|
431
|
-
* Creates a transaction to initialize rewards for a staking pool
|
|
432
|
-
* @param inputs Initialize reward parameters including transaction, pool ID, reward coin ID, emission parameters, stake coin type, and reward coin type
|
|
433
|
-
* @returns Transaction command to initialize the reward
|
|
434
|
-
*/
|
|
435
|
-
initializeStakingPoolRewardTxV2: (inputs: {
|
|
436
|
-
tx: Transaction;
|
|
437
|
-
stakingPoolId: ObjectId;
|
|
438
|
-
rewardCoinId: ObjectId | TransactionArgument;
|
|
439
|
-
emissionScheduleMs: Timestamp;
|
|
440
|
-
emissionRate: bigint;
|
|
441
|
-
emissionDelayTimestampMs: Timestamp;
|
|
442
|
-
stakeCoinType: CoinType;
|
|
443
|
-
rewardCoinType: CoinType;
|
|
444
|
-
} & FarmOwnerOrOneTimeAdminCap) => import("@mysten/sui/transactions").TransactionResult;
|
|
445
|
-
/**
|
|
446
|
-
* @deprecated use topUpStakingPoolRewardTxV2 instead
|
|
447
|
-
* Creates a transaction to add more rewards to a staking pool (original version)
|
|
448
|
-
* @param inputs Top up parameters including transaction, pool ID, reward coin ID, stake coin type, and reward coin type
|
|
449
|
-
* @returns Transaction command to add rewards
|
|
450
|
-
*/
|
|
451
|
-
topUpStakingPoolRewardTxV1: (inputs: {
|
|
452
|
-
tx: Transaction;
|
|
453
|
-
stakingPoolId: ObjectId;
|
|
454
|
-
rewardCoinId: ObjectId | TransactionArgument;
|
|
455
|
-
stakeCoinType: CoinType;
|
|
456
|
-
rewardCoinType: CoinType;
|
|
457
|
-
} & FarmOwnerOrOneTimeAdminCap) => import("@mysten/sui/transactions").TransactionResult;
|
|
458
|
-
/**
|
|
459
|
-
* Creates a transaction to add more rewards to a staking pool
|
|
460
|
-
* @param inputs Top up parameters including transaction, pool ID, reward coin ID, stake coin type, and reward coin type
|
|
461
|
-
* @returns Transaction command to add rewards
|
|
462
|
-
*/
|
|
463
|
-
topUpStakingPoolRewardTxV2: (inputs: {
|
|
464
|
-
tx: Transaction;
|
|
465
|
-
stakingPoolId: ObjectId;
|
|
466
|
-
rewardCoinId: ObjectId | TransactionArgument;
|
|
467
|
-
stakeCoinType: CoinType;
|
|
468
|
-
rewardCoinType: CoinType;
|
|
469
|
-
} & FarmOwnerOrOneTimeAdminCap) => import("@mysten/sui/transactions").TransactionResult;
|
|
470
|
-
/**
|
|
471
|
-
* @deprecated use increaseStakingPoolRewardEmissionsTxV2 instead
|
|
472
|
-
* Creates a transaction to increase the emission rate for a staking pool reward (original version)
|
|
473
|
-
* @param inputs Increase emissions parameters including transaction, owner cap ID, pool ID, emission parameters, stake coin type, and reward coin type
|
|
474
|
-
* @returns Transaction command to update emissions
|
|
475
|
-
*/
|
|
476
|
-
increaseStakingPoolRewardEmissionsTxV1: (inputs: {
|
|
477
|
-
tx: Transaction;
|
|
478
|
-
ownerCapId: ObjectId;
|
|
479
|
-
stakingPoolId: ObjectId;
|
|
480
|
-
emissionScheduleMs: Timestamp;
|
|
481
|
-
emissionRate: bigint;
|
|
482
|
-
stakeCoinType: CoinType;
|
|
483
|
-
rewardCoinType: CoinType;
|
|
484
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
485
|
-
/**
|
|
486
|
-
* Creates a transaction to increase the emission rate for a staking pool reward
|
|
487
|
-
* @param inputs Increase emissions parameters including transaction, owner cap ID, pool ID, emission parameters, stake coin type, and reward coin type
|
|
488
|
-
* @returns Transaction command to update emissions
|
|
489
|
-
*/
|
|
490
|
-
increaseStakingPoolRewardEmissionsTxV2: (inputs: {
|
|
491
|
-
tx: Transaction;
|
|
492
|
-
ownerCapId: ObjectId;
|
|
493
|
-
stakingPoolId: ObjectId;
|
|
494
|
-
emissionScheduleMs: Timestamp;
|
|
495
|
-
emissionRate: bigint;
|
|
496
|
-
stakeCoinType: CoinType;
|
|
497
|
-
rewardCoinType: CoinType;
|
|
498
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
499
|
-
/**
|
|
500
|
-
* @deprecated use setStakingPoolMinStakeAmountTxV2 instead
|
|
501
|
-
* Creates a transaction to set the minimum stake amount for a staking pool (original version)
|
|
502
|
-
* @param inputs Min stake amount parameters including transaction, owner cap ID, pool ID, minimum amount, and stake coin type
|
|
503
|
-
* @returns Transaction command to set the minimum stake amount
|
|
504
|
-
*/
|
|
505
|
-
setStakingPoolMinStakeAmountTxV1: (inputs: {
|
|
506
|
-
tx: Transaction;
|
|
507
|
-
ownerCapId: ObjectId;
|
|
508
|
-
stakingPoolId: ObjectId;
|
|
509
|
-
minStakeAmount: bigint;
|
|
510
|
-
stakeCoinType: CoinType;
|
|
511
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
512
|
-
/**
|
|
513
|
-
* Creates a transaction to set the minimum stake amount for a staking pool
|
|
514
|
-
* @param inputs Min stake amount parameters including transaction, owner cap ID, pool ID, minimum amount, and stake coin type
|
|
515
|
-
* @returns Transaction command to set the minimum stake amount
|
|
516
|
-
*/
|
|
517
|
-
setStakingPoolMinStakeAmountTxV2: (inputs: {
|
|
518
|
-
tx: Transaction;
|
|
519
|
-
ownerCapId: ObjectId;
|
|
520
|
-
stakingPoolId: ObjectId;
|
|
521
|
-
minStakeAmount: bigint;
|
|
522
|
-
stakeCoinType: CoinType;
|
|
523
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
524
|
-
/**
|
|
525
|
-
* Creates a Move call (V1) to **remove undistributed reward coins** from a staking pool.
|
|
526
|
-
* Only callable by the pool **owner** (validated via `ownerCapId`). This does not claw back
|
|
527
|
-
* rewards already accrued/claimed by stakers—only reduces the remaining reward balance
|
|
528
|
-
* for the specified `rewardCoinType`.
|
|
529
|
-
*
|
|
530
|
-
* @param inputs Transaction assembly parameters
|
|
531
|
-
* @param inputs.tx Transaction instance to append the command to
|
|
532
|
-
* @param inputs.ownerCapId OwnerCap object ID authorizing the removal
|
|
533
|
-
* @param inputs.stakingPoolId The staking pool (vault) object ID
|
|
534
|
-
* @param inputs.rewardAmount Amount to remove (base units, encoded as u64)
|
|
535
|
-
* @param inputs.stakeCoinType Stake coin type argument for the vault module
|
|
536
|
-
* @param inputs.rewardCoinType Reward coin type to be removed
|
|
537
|
-
* @returns The transaction command added to `tx`
|
|
538
|
-
*/
|
|
539
|
-
removeStakingPoolRewardTxV1: (inputs: {
|
|
540
|
-
tx: Transaction;
|
|
541
|
-
ownerCapId: ObjectId;
|
|
542
|
-
stakingPoolId: ObjectId;
|
|
543
|
-
rewardAmount: Balance;
|
|
544
|
-
stakeCoinType: CoinType;
|
|
545
|
-
rewardCoinType: CoinType;
|
|
546
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
547
|
-
/**
|
|
548
|
-
* Creates a Move call (V2) to **remove undistributed reward coins** from a staking pool.
|
|
549
|
-
* Only callable by the pool **owner** (validated via `ownerCapId`). Includes the protocol
|
|
550
|
-
* `version` object as required by V2 modules.
|
|
551
|
-
*
|
|
552
|
-
* @param inputs Transaction assembly parameters
|
|
553
|
-
* @param inputs.tx Transaction instance to append the command to
|
|
554
|
-
* @param inputs.ownerCapId OwnerCap object ID authorizing the removal
|
|
555
|
-
* @param inputs.stakingPoolId The staking pool (vault) object ID
|
|
556
|
-
* @param inputs.rewardAmount Amount to remove (base units, encoded as u64)
|
|
557
|
-
* @param inputs.stakeCoinType Stake coin type argument for the vault module
|
|
558
|
-
* @param inputs.rewardCoinType Reward coin type to be removed
|
|
559
|
-
* @returns The transaction command added to `tx`
|
|
560
|
-
*/
|
|
561
|
-
removeStakingPoolRewardTxV2: (inputs: {
|
|
562
|
-
tx: Transaction;
|
|
563
|
-
ownerCapId: ObjectId;
|
|
564
|
-
stakingPoolId: ObjectId;
|
|
565
|
-
rewardAmount: Balance;
|
|
566
|
-
stakeCoinType: CoinType;
|
|
567
|
-
rewardCoinType: CoinType;
|
|
568
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
569
|
-
/**
|
|
570
|
-
* Creates a transaction to check if a staking pool is unlocked
|
|
571
|
-
* @param inputs Check parameters including transaction, pool ID, and coin type
|
|
572
|
-
* @returns Transaction object argument for the boolean result
|
|
573
|
-
*/
|
|
574
|
-
isVaultUnlockedTxV1: (inputs: {
|
|
575
|
-
tx: Transaction;
|
|
576
|
-
stakingPoolId: ObjectId;
|
|
577
|
-
stakeCoinType: CoinType;
|
|
578
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
579
|
-
/**
|
|
580
|
-
* Creates a transaction to get the remaining rewards for a staking pool
|
|
581
|
-
* @param inputs Remaining rewards parameters including transaction, pool ID, and coin type
|
|
582
|
-
* @returns Transaction object argument for the vector of remaining rewards
|
|
583
|
-
*/
|
|
584
|
-
remainingRewardsTxV1: (inputs: {
|
|
585
|
-
tx: Transaction;
|
|
586
|
-
stakingPoolId: ObjectId;
|
|
587
|
-
stakeCoinType: CoinType;
|
|
588
|
-
}) => import("@mysten/sui/transactions").TransactionResult;
|
|
589
|
-
/**
|
|
590
|
-
* @deprecated use fetchBuildStakeTxV2 instead
|
|
591
|
-
* Builds a complete transaction for staking coins
|
|
592
|
-
* @param inputs Staking parameters including wallet address, lock enforcement, stake amount, pool ID, lock duration, and coin type
|
|
593
|
-
* @returns Complete transaction ready for signing and execution
|
|
594
|
-
*/
|
|
595
|
-
fetchBuildStakeTxV1: (inputs: ApiFarmsStakeBodyV1) => Promise<Transaction>;
|
|
596
|
-
/**
|
|
597
|
-
* Builds a complete transaction for staking coins
|
|
598
|
-
* @param inputs Staking parameters including wallet address, lock enforcement, stake amount, pool ID, lock duration, and coin type
|
|
599
|
-
* @returns Complete transaction ready for signing and execution
|
|
600
|
-
*/
|
|
601
|
-
fetchBuildStakeTxV2: (inputs: ApiFarmsStakeBody) => Promise<Transaction>;
|
|
602
|
-
/**
|
|
603
|
-
* @deprecated use fetchBuildDepositPrincipalTxV2 instead
|
|
604
|
-
* Builds a complete transaction for depositing additional principal to a staked position
|
|
605
|
-
* @param inputs Deposit parameters including wallet address, position ID, pool ID, deposit amount, and coin type
|
|
606
|
-
* @returns Complete transaction ready for signing and execution
|
|
607
|
-
*/
|
|
608
|
-
fetchBuildDepositPrincipalTxV1: (inputs: ApiFarmsDepositPrincipalBody) => Promise<Transaction>;
|
|
609
|
-
/**
|
|
610
|
-
* Builds a complete transaction for depositing additional principal to a staked position
|
|
611
|
-
* @param inputs Deposit parameters including wallet address, position ID, pool ID, deposit amount, and coin type
|
|
612
|
-
* @returns Complete transaction ready for signing and execution
|
|
613
|
-
*/
|
|
614
|
-
fetchBuildDepositPrincipalTxV2: (inputs: ApiFarmsDepositPrincipalBody) => Promise<Transaction>;
|
|
615
|
-
/**
|
|
616
|
-
* @deprecated use buildWithdrawPrincipalTxV2 instead
|
|
617
|
-
* Builds a complete transaction for withdrawing principal from a staked position
|
|
618
|
-
* @param inputs Withdraw parameters including wallet address, position ID, pool ID, withdraw amount, and coin type
|
|
619
|
-
* @returns Complete transaction ready for signing and execution
|
|
620
|
-
*/
|
|
621
|
-
buildWithdrawPrincipalTxV1: (inputs: {
|
|
622
|
-
stakedPositionId: ObjectId;
|
|
623
|
-
stakingPoolId: ObjectId;
|
|
624
|
-
withdrawAmount: Balance;
|
|
625
|
-
stakeCoinType: CoinType;
|
|
626
|
-
walletAddress: SuiAddress;
|
|
627
|
-
}) => Transaction;
|
|
628
|
-
/**
|
|
629
|
-
* Builds a complete transaction for withdrawing principal from a staked position
|
|
630
|
-
* @param inputs Withdraw parameters including wallet address, position ID, pool ID, withdraw amount, and coin type
|
|
631
|
-
* @returns Complete transaction ready for signing and execution
|
|
632
|
-
*/
|
|
633
|
-
buildWithdrawPrincipalTxV2: (inputs: {
|
|
634
|
-
stakedPositionId: ObjectId;
|
|
635
|
-
stakingPoolId: ObjectId;
|
|
636
|
-
withdrawAmount: Balance;
|
|
637
|
-
stakeCoinType: CoinType;
|
|
638
|
-
walletAddress: SuiAddress;
|
|
639
|
-
}) => Transaction;
|
|
640
|
-
/**
|
|
641
|
-
* @deprecated use buildUnstakeTxV2 instead
|
|
642
|
-
* Builds a complete transaction for unstaking (withdrawing and destroying a position)
|
|
643
|
-
* @param inputs Unstake parameters including wallet address, position ID, pool ID, reward coin types, and coin type
|
|
644
|
-
* @returns Complete transaction ready for signing and execution
|
|
645
|
-
*/
|
|
646
|
-
buildUnstakeTxV1: (inputs: ApiFarmsUnstakeBody) => Transaction;
|
|
647
|
-
/**
|
|
648
|
-
* Builds a complete transaction for unstaking (withdrawing and destroying a position)
|
|
649
|
-
* @param inputs Unstake parameters including wallet address, position ID, pool ID, reward coin types, and coin type
|
|
650
|
-
* @returns Complete transaction ready for signing and execution
|
|
651
|
-
*/
|
|
652
|
-
buildUnstakeTxV2: (inputs: ApiFarmsUnstakeBody) => Transaction;
|
|
653
|
-
/**
|
|
654
|
-
* @deprecated use buildUpdatePositionTxV2 instead
|
|
655
|
-
* Builds a transaction for updating a staked position
|
|
656
|
-
* @param parameters for updatePositionTx
|
|
657
|
-
* @returns Complete transaction ready for signing and execution
|
|
658
|
-
*/
|
|
659
|
-
buildUpdatePositionTxV1: (inputs: {
|
|
660
|
-
walletAddress: SuiAddress;
|
|
661
|
-
} & Omit<{
|
|
662
|
-
tx: Transaction;
|
|
663
|
-
stakedPositionId: ObjectId;
|
|
664
|
-
stakingPoolId: ObjectId;
|
|
665
|
-
stakeCoinType: CoinType;
|
|
666
|
-
}, "tx">) => Transaction;
|
|
667
|
-
/**
|
|
668
|
-
* Builds a transaction for updating a staked position
|
|
669
|
-
* @param parameters for updatePositionTx
|
|
670
|
-
* @returns Complete transaction ready for signing and execution
|
|
671
|
-
*/
|
|
672
|
-
buildUpdatePositionTx2: (inputs: {
|
|
673
|
-
walletAddress: SuiAddress;
|
|
674
|
-
} & Omit<{
|
|
675
|
-
tx: Transaction;
|
|
676
|
-
stakedPositionId: ObjectId;
|
|
677
|
-
stakingPoolId: ObjectId;
|
|
678
|
-
stakeCoinType: CoinType;
|
|
679
|
-
}, "tx">) => Transaction;
|
|
680
|
-
/**
|
|
681
|
-
* @deprecated use buildLockTxV2 instead
|
|
682
|
-
* Builds a transaction for locking a staked position
|
|
683
|
-
* @param parameters for lockTx
|
|
684
|
-
* @returns Complete transaction ready for signing and execution
|
|
685
|
-
*/
|
|
686
|
-
buildLockTxV1: (inputs: {
|
|
687
|
-
walletAddress: SuiAddress;
|
|
688
|
-
} & Omit<{
|
|
689
|
-
tx: Transaction;
|
|
690
|
-
stakedPositionId: ObjectId;
|
|
691
|
-
stakingPoolId: ObjectId;
|
|
692
|
-
lockDurationMs: Timestamp;
|
|
693
|
-
stakeCoinType: CoinType;
|
|
694
|
-
}, "tx">) => Transaction;
|
|
695
|
-
/**
|
|
696
|
-
* Builds a transaction for locking a staked position
|
|
697
|
-
* @param parameters for lockTx
|
|
698
|
-
* @returns Complete transaction ready for signing and execution
|
|
699
|
-
*/
|
|
700
|
-
buildLockTxV2: (inputs: {
|
|
701
|
-
walletAddress: SuiAddress;
|
|
702
|
-
} & Omit<{
|
|
703
|
-
tx: Transaction;
|
|
704
|
-
stakedPositionId: ObjectId;
|
|
705
|
-
stakingPoolId: ObjectId;
|
|
706
|
-
lockDurationMs: Timestamp;
|
|
707
|
-
stakeCoinType: CoinType;
|
|
708
|
-
}, "tx">) => Transaction;
|
|
709
|
-
/**
|
|
710
|
-
* @deprecated use buildRenewLockTxV2 instead
|
|
711
|
-
* Builds a transaction for renewing the lock on a staked position
|
|
712
|
-
* @param parameters for renewLockTx
|
|
713
|
-
* @returns Complete transaction ready for signing and execution
|
|
714
|
-
*/
|
|
715
|
-
buildRenewLockTxV1: (inputs: {
|
|
716
|
-
walletAddress: SuiAddress;
|
|
717
|
-
} & Omit<{
|
|
718
|
-
tx: Transaction;
|
|
719
|
-
stakedPositionId: ObjectId;
|
|
720
|
-
stakingPoolId: ObjectId;
|
|
721
|
-
stakeCoinType: CoinType;
|
|
722
|
-
}, "tx">) => Transaction;
|
|
723
|
-
/**
|
|
724
|
-
* Builds a transaction for renewing the lock on a staked position
|
|
725
|
-
* @param parameters for renewLockTx
|
|
726
|
-
* @returns Complete transaction ready for signing and execution
|
|
727
|
-
*/
|
|
728
|
-
buildRenewLockTxV2: (inputs: {
|
|
729
|
-
walletAddress: SuiAddress;
|
|
730
|
-
} & Omit<{
|
|
731
|
-
tx: Transaction;
|
|
732
|
-
stakedPositionId: ObjectId;
|
|
733
|
-
stakingPoolId: ObjectId;
|
|
734
|
-
stakeCoinType: CoinType;
|
|
735
|
-
}, "tx">) => Transaction;
|
|
736
|
-
/**
|
|
737
|
-
* @deprecated use buildUnlockTxV2 instead
|
|
738
|
-
* Builds a transaction for unlocking a staked position
|
|
739
|
-
* @param parameters for unlockTx
|
|
740
|
-
* @returns Complete transaction ready for signing and execution
|
|
741
|
-
*/
|
|
742
|
-
buildUnlockTxV1: (inputs: {
|
|
743
|
-
walletAddress: SuiAddress;
|
|
744
|
-
} & Omit<{
|
|
745
|
-
tx: Transaction;
|
|
746
|
-
stakedPositionId: ObjectId;
|
|
747
|
-
stakingPoolId: ObjectId;
|
|
748
|
-
stakeCoinType: CoinType;
|
|
749
|
-
}, "tx">) => Transaction;
|
|
750
|
-
/**
|
|
751
|
-
* Builds a transaction for unlocking a staked position
|
|
752
|
-
* @param parameters for unlockTx
|
|
753
|
-
* @returns Complete transaction ready for signing and execution
|
|
754
|
-
*/
|
|
755
|
-
buildUnlockTxV2: (inputs: {
|
|
756
|
-
walletAddress: SuiAddress;
|
|
757
|
-
} & Omit<{
|
|
758
|
-
tx: Transaction;
|
|
759
|
-
stakedPositionId: ObjectId;
|
|
760
|
-
stakingPoolId: ObjectId;
|
|
761
|
-
stakeCoinType: CoinType;
|
|
762
|
-
}, "tx">) => Transaction;
|
|
763
|
-
/**
|
|
764
|
-
* @deprecated use buildHarvestRewardsTxV2 instead
|
|
765
|
-
* Builds a complete transaction for harvesting rewards from staked positions
|
|
766
|
-
* @param inputs Harvest parameters including wallet address, position IDs, pool ID, reward coin types, and optional claim as AfSui flag
|
|
767
|
-
* @returns Complete transaction ready for signing and execution
|
|
768
|
-
*/
|
|
769
|
-
buildHarvestRewardsTxV1: (inputs: ApiHarvestFarmsRewardsBody & {
|
|
770
|
-
tx?: Transaction;
|
|
771
|
-
}) => Transaction;
|
|
772
|
-
/**
|
|
773
|
-
* Builds a complete transaction for harvesting rewards from staked positions
|
|
774
|
-
* @param inputs Harvest parameters including wallet address, position IDs, pool ID, reward coin types, and optional claim as AfSui flag
|
|
775
|
-
* @returns Complete transaction ready for signing and execution
|
|
776
|
-
*/
|
|
777
|
-
buildHarvestRewardsTxV2: (inputs: ApiHarvestFarmsRewardsBody & {
|
|
778
|
-
tx?: Transaction;
|
|
779
|
-
}) => Transaction;
|
|
780
|
-
/**
|
|
781
|
-
* @deprecated use buildCreateStakingPoolTxV2 instead
|
|
782
|
-
* Builds a complete transaction for creating a new staking pool
|
|
783
|
-
* @param inputs Pool creation parameters including wallet address, lock enforcements, durations, multiplier, stake amount, and coin type
|
|
784
|
-
* @returns Complete transaction ready for signing and execution
|
|
785
|
-
*/
|
|
786
|
-
buildCreateStakingPoolTxV1: (inputs: ApiFarmsCreateStakingPoolBodyV1) => Transaction;
|
|
787
|
-
/**
|
|
788
|
-
* Builds a complete transaction for creating a new staking pool
|
|
789
|
-
* @param inputs Pool creation parameters including wallet address, lock enforcements, durations, multiplier, stake amount, and coin type
|
|
790
|
-
* @returns Complete transaction ready for signing and execution
|
|
791
|
-
*/
|
|
792
|
-
buildCreateStakingPoolTxV2: (inputs: ApiFarmsCreateStakingPoolBody) => Transaction;
|
|
793
|
-
/**
|
|
794
|
-
* @deprecated use fetchBuildInitializeStakingPoolRewardTxV2 instead
|
|
795
|
-
* Builds a complete transaction for initializing rewards for a staking pool
|
|
796
|
-
* @param inputs Initialize rewards parameters including wallet address, owner cap ID, pool ID, reward amount, emission parameters, stake coin type, and reward coin type
|
|
797
|
-
* @returns Complete transaction ready for signing and execution
|
|
798
|
-
*/
|
|
799
|
-
fetchBuildInitializeStakingPoolRewardTxV1: (inputs: ApiFarmsInitializeStakingPoolRewardBody) => Promise<Transaction>;
|
|
800
|
-
/**
|
|
801
|
-
* Builds a complete transaction for initializing rewards for a staking pool
|
|
802
|
-
* @param inputs Initialize rewards parameters including wallet address, owner cap ID, pool ID, reward amount, emission parameters, stake coin type, and reward coin type
|
|
803
|
-
* @returns Complete transaction ready for signing and execution
|
|
804
|
-
*/
|
|
805
|
-
fetchBuildInitializeStakingPoolRewardTxV2: (inputs: ApiFarmsInitializeStakingPoolRewardBody) => Promise<Transaction>;
|
|
806
|
-
/**
|
|
807
|
-
* @deprecated use fetchBuildTopUpStakingPoolRewardsTxV2 instead
|
|
808
|
-
* Builds a complete transaction for adding more rewards to a staking pool
|
|
809
|
-
* @param inputs Top up rewards parameters including wallet address, owner cap ID, pool ID, rewards array with amounts and coin types, and stake coin type
|
|
810
|
-
* @returns Complete transaction ready for signing and execution
|
|
811
|
-
*/
|
|
812
|
-
fetchBuildTopUpStakingPoolRewardsTxV1: (inputs: ApiFarmsTopUpStakingPoolRewardsBody) => Promise<Transaction>;
|
|
813
|
-
/**
|
|
814
|
-
* Builds a complete transaction for adding more rewards to a staking pool
|
|
815
|
-
* @param inputs Top up rewards parameters including wallet address, owner cap ID, pool ID, rewards array with amounts and coin types, and stake coin type
|
|
816
|
-
* @returns Complete transaction ready for signing and execution
|
|
817
|
-
*/
|
|
818
|
-
fetchBuildTopUpStakingPoolRewardsTxV2: (inputs: ApiFarmsTopUpStakingPoolRewardsBody) => Promise<Transaction>;
|
|
819
|
-
/**
|
|
820
|
-
* @deprecated use buildIncreaseStakingPoolRewardsEmissionsTxV2 instead
|
|
821
|
-
* Builds a complete transaction for increasing the emission rate of rewards for a staking pool
|
|
822
|
-
* @param inputs Increase emissions parameters including wallet address, owner cap ID, pool ID, rewards array with emission parameters and coin types, and stake coin type
|
|
823
|
-
* @returns Complete transaction ready for signing and execution
|
|
824
|
-
*/
|
|
825
|
-
buildIncreaseStakingPoolRewardsEmissionsTxV1: (inputs: ApiFarmsIncreaseStakingPoolRewardsEmissionsBody) => Transaction;
|
|
826
|
-
/**
|
|
827
|
-
* Builds a complete transaction for increasing the emission rate of rewards for a staking pool
|
|
828
|
-
* @param inputs Increase emissions parameters including wallet address, owner cap ID, pool ID, rewards array with emission parameters and coin types, and stake coin type
|
|
829
|
-
* @returns Complete transaction ready for signing and execution
|
|
830
|
-
*/
|
|
831
|
-
buildIncreaseStakingPoolRewardsEmissionsTxV2: (inputs: ApiFarmsIncreaseStakingPoolRewardsEmissionsBody) => Transaction;
|
|
832
|
-
/**
|
|
833
|
-
* @deprecated use buildSetStakingPoolMinStakeAmountTxV2 instead
|
|
834
|
-
* Builds a transaction for setting the minimum stake amount for a staking pool
|
|
835
|
-
* @param parameters for setStakingPoolMinStakeAmountTx
|
|
836
|
-
* @returns Complete transaction ready for signing and execution
|
|
837
|
-
*/
|
|
838
|
-
buildSetStakingPoolMinStakeAmountTxV1: (inputs: {
|
|
839
|
-
walletAddress: SuiAddress;
|
|
840
|
-
} & Omit<{
|
|
841
|
-
tx: Transaction;
|
|
842
|
-
ownerCapId: ObjectId;
|
|
843
|
-
stakingPoolId: ObjectId;
|
|
844
|
-
minStakeAmount: bigint;
|
|
845
|
-
stakeCoinType: CoinType;
|
|
846
|
-
}, "tx">) => Transaction;
|
|
847
|
-
/**
|
|
848
|
-
* Builds a transaction for setting the minimum stake amount for a staking pool
|
|
849
|
-
* @param parameters for setStakingPoolMinStakeAmountTx
|
|
850
|
-
* @returns Complete transaction ready for signing and execution
|
|
851
|
-
*/
|
|
852
|
-
buildSetStakingPoolMinStakeAmountTxV2: (inputs: {
|
|
853
|
-
walletAddress: SuiAddress;
|
|
854
|
-
} & Omit<{
|
|
855
|
-
tx: Transaction;
|
|
856
|
-
ownerCapId: ObjectId;
|
|
857
|
-
stakingPoolId: ObjectId;
|
|
858
|
-
minStakeAmount: bigint;
|
|
859
|
-
stakeCoinType: CoinType;
|
|
860
|
-
}, "tx">) => Transaction;
|
|
861
|
-
/**
|
|
862
|
-
* Builds a transaction for **removing undistributed reward coins** from a staking pool (V1).
|
|
863
|
-
* Requires the pool **OwnerCap**. The removal is specific to a `rewardCoinType`.
|
|
864
|
-
*
|
|
865
|
-
* @param parameters Inputs accepted by `removeStakingPoolRewardTxV1`
|
|
866
|
-
* @returns Complete transaction ready for signing and execution
|
|
867
|
-
*/
|
|
868
|
-
buildRemoveStakingPoolRewardTxV1: (inputs: {
|
|
869
|
-
rewards: {
|
|
870
|
-
rewardCoinType: CoinType;
|
|
871
|
-
rewardAmount: Balance;
|
|
872
|
-
}[];
|
|
873
|
-
ownerCapId: ObjectId;
|
|
874
|
-
stakingPoolId: ObjectId;
|
|
875
|
-
stakeCoinType: CoinType;
|
|
876
|
-
walletAddress: SuiAddress;
|
|
877
|
-
}) => Transaction;
|
|
878
|
-
/**
|
|
879
|
-
* Builds a transaction for **removing undistributed reward coins** from a staking pool (V2).
|
|
880
|
-
* Requires the pool **OwnerCap** and includes the on-chain **version object**.
|
|
881
|
-
*
|
|
882
|
-
* @param parameters Inputs accepted by `removeStakingPoolRewardTxV2`
|
|
883
|
-
* @returns Complete transaction ready for signing and execution
|
|
884
|
-
*/
|
|
885
|
-
buildRemoveStakingPoolRewardTxV2: (inputs: {
|
|
886
|
-
rewards: {
|
|
887
|
-
rewardCoinType: CoinType;
|
|
888
|
-
rewardAmount: Balance;
|
|
889
|
-
}[];
|
|
890
|
-
ownerCapId: ObjectId;
|
|
891
|
-
stakingPoolId: ObjectId;
|
|
892
|
-
stakeCoinType: CoinType;
|
|
893
|
-
walletAddress: SuiAddress;
|
|
894
|
-
}) => Transaction;
|
|
895
|
-
/**
|
|
896
|
-
* @deprecated use buildGrantOneTimeAdminCapTxV2 instead
|
|
897
|
-
* Builds a transaction for granting a one-time admin capability for a staking pool
|
|
898
|
-
* @param parameters for grantOneTimeAdminCapTx
|
|
899
|
-
* @returns Complete transaction ready for signing and execution
|
|
900
|
-
*/
|
|
901
|
-
buildGrantOneTimeAdminCapTxV1: (inputs: {
|
|
902
|
-
walletAddress: SuiAddress;
|
|
903
|
-
} & Omit<{
|
|
904
|
-
tx: Transaction;
|
|
905
|
-
ownerCapId: ObjectId | TransactionArgument;
|
|
906
|
-
recipientAddress: SuiAddress;
|
|
907
|
-
rewardCoinType: CoinType;
|
|
908
|
-
}, "tx">) => Transaction;
|
|
909
|
-
/**
|
|
910
|
-
* Builds a transaction for granting a one-time admin capability for a staking pool
|
|
911
|
-
* @param parameters for grantOneTimeAdminCapTx
|
|
912
|
-
* @returns Complete transaction ready for signing and execution
|
|
913
|
-
*/
|
|
914
|
-
buildGrantOneTimeAdminCapTxV2: (inputs: {
|
|
915
|
-
walletAddress: SuiAddress;
|
|
916
|
-
} & Omit<{
|
|
917
|
-
tx: Transaction;
|
|
918
|
-
ownerCapId: ObjectId | TransactionArgument;
|
|
919
|
-
recipientAddress: SuiAddress;
|
|
920
|
-
rewardCoinType: CoinType;
|
|
921
|
-
}, "tx">) => Transaction;
|
|
922
|
-
private eventWrapperType;
|
|
923
|
-
/**
|
|
924
|
-
* Creates the event type for vault creation events
|
|
925
|
-
* @returns Fully qualified event type string
|
|
926
|
-
*/
|
|
927
|
-
private createdVaultEventType;
|
|
928
|
-
/**
|
|
929
|
-
* Creates the event type for reward initialization events
|
|
930
|
-
* @returns Fully qualified event type string
|
|
931
|
-
*/
|
|
932
|
-
private initializedRewardEventType;
|
|
933
|
-
/**
|
|
934
|
-
* Creates the event type for reward addition events
|
|
935
|
-
* @returns Fully qualified event type string
|
|
936
|
-
*/
|
|
937
|
-
private addedRewardEventType;
|
|
938
|
-
/**
|
|
939
|
-
* Creates the event type for emission increase events
|
|
940
|
-
* @returns Fully qualified event type string
|
|
941
|
-
*/
|
|
942
|
-
private increasedEmissionsEventType;
|
|
943
|
-
/**
|
|
944
|
-
* Creates the event type for emission update events
|
|
945
|
-
* @returns Fully qualified event type string
|
|
946
|
-
*/
|
|
947
|
-
private updatedEmissionsEventType;
|
|
948
|
-
/**
|
|
949
|
-
* Creates the event type for strict staking events
|
|
950
|
-
* @returns Fully qualified event type string
|
|
951
|
-
*/
|
|
952
|
-
private stakedEventType;
|
|
953
|
-
/**
|
|
954
|
-
* Creates the event type for relaxed staking events
|
|
955
|
-
* @returns Fully qualified event type string
|
|
956
|
-
*/
|
|
957
|
-
private stakedRelaxedEventType;
|
|
958
|
-
/**
|
|
959
|
-
* Creates the event type for position locking events
|
|
960
|
-
* @returns Fully qualified event type string
|
|
961
|
-
*/
|
|
962
|
-
private lockedEventType;
|
|
963
|
-
/**
|
|
964
|
-
* Creates the event type for position unlocking events
|
|
965
|
-
* @returns Fully qualified event type string
|
|
966
|
-
*/
|
|
967
|
-
private unlockedEventType;
|
|
968
|
-
/**
|
|
969
|
-
* Creates the event type for principal deposit events
|
|
970
|
-
* @returns Fully qualified event type string
|
|
971
|
-
*/
|
|
972
|
-
private depositedPrincipalEventType;
|
|
973
|
-
/**
|
|
974
|
-
* Creates the event type for principal withdrawal events
|
|
975
|
-
* @returns Fully qualified event type string
|
|
976
|
-
*/
|
|
977
|
-
private withdrewPrincipalEventType;
|
|
978
|
-
/**
|
|
979
|
-
* Creates the event type for reward harvesting events
|
|
980
|
-
* @returns Fully qualified event type string
|
|
981
|
-
*/
|
|
982
|
-
private harvestedRewardsEventType;
|
|
983
|
-
/**
|
|
984
|
-
* Checks if the input contains a one-time admin cap ID
|
|
985
|
-
* @param inputs FarmOwnerOrOneTimeAdminCap object
|
|
986
|
-
* @returns True if the input contains a one-time admin cap ID
|
|
987
|
-
*/
|
|
988
|
-
private static isFarmOneTimeAdminCapId;
|
|
989
|
-
/**
|
|
990
|
-
* Gets the appropriate cap ID from the input
|
|
991
|
-
* @param inputs FarmOwnerOrOneTimeAdminCap object
|
|
992
|
-
* @returns Either the owner cap ID or one-time admin cap ID
|
|
993
|
-
*/
|
|
994
|
-
private static farmCapId;
|
|
995
|
-
}
|
|
996
|
-
//# sourceMappingURL=farmsApi.d.ts.map
|