@wireio/stake 1.2.69 → 1.3.69
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/README.md +1 -1
- package/lib/stake.browser.js +51 -47
- package/lib/stake.browser.js.map +1 -1
- package/lib/stake.d.ts +97 -68
- package/lib/stake.js +51 -46
- package/lib/stake.js.map +1 -1
- package/lib/stake.m.js +51 -47
- package/lib/stake.m.js.map +1 -1
- package/package.json +1 -1
- package/src/networks/solana/clients/instaswap.client.ts +59 -47
package/lib/stake.m.js
CHANGED
|
@@ -19204,6 +19204,38 @@ class DistributionClient {
|
|
|
19204
19204
|
|
|
19205
19205
|
const commitment$1 = "confirmed";
|
|
19206
19206
|
const DEFAULT_SOLANA_EPOCH_CAP = 32;
|
|
19207
|
+
function buildSolanaInstaswapCrossChainAccounts(params) {
|
|
19208
|
+
const {
|
|
19209
|
+
user,
|
|
19210
|
+
accounts,
|
|
19211
|
+
liqsolCoreProgram,
|
|
19212
|
+
transferHookProgram,
|
|
19213
|
+
pendingAttestations
|
|
19214
|
+
} = params;
|
|
19215
|
+
return {
|
|
19216
|
+
user,
|
|
19217
|
+
globalState: accounts.globalState,
|
|
19218
|
+
liqsolMint: accounts.liqsolMint,
|
|
19219
|
+
distributionState: accounts.distributionState,
|
|
19220
|
+
userAta: accounts.userAta,
|
|
19221
|
+
senderUserRecord: accounts.userUserRecord,
|
|
19222
|
+
bridgeAuthority: accounts.bridgeAuthority,
|
|
19223
|
+
bridgeVaultAta: accounts.bridgeVaultAta,
|
|
19224
|
+
bridgeUserRecord: accounts.bridgeUserRecord,
|
|
19225
|
+
bridgeState: accounts.bridgeState,
|
|
19226
|
+
extraAccountMetaList: accounts.extraAccountMetaList,
|
|
19227
|
+
liqsolCoreProgram,
|
|
19228
|
+
transferHookProgram,
|
|
19229
|
+
bucketAuthority: accounts.bucketAuthority,
|
|
19230
|
+
bucketTokenAccount: accounts.bucketTokenAccount,
|
|
19231
|
+
bucketUserRecord: accounts.bucketUserRecord,
|
|
19232
|
+
tokenProgram: TOKEN_2022_PROGRAM_ID,
|
|
19233
|
+
systemProgram: SystemProgram.programId,
|
|
19234
|
+
globalConfig: accounts.globalConfig,
|
|
19235
|
+
oppEpochState: accounts.oppEpochState,
|
|
19236
|
+
pendingAttestations
|
|
19237
|
+
};
|
|
19238
|
+
}
|
|
19207
19239
|
class SolanaInstaswapClient {
|
|
19208
19240
|
constructor(provider, pgs, submitInstructions) {
|
|
19209
19241
|
this.provider = provider;
|
|
@@ -19232,29 +19264,15 @@ class SolanaInstaswapClient {
|
|
|
19232
19264
|
destinationChain,
|
|
19233
19265
|
destinationAddress,
|
|
19234
19266
|
minOut
|
|
19235
|
-
).accounts(
|
|
19236
|
-
|
|
19237
|
-
|
|
19238
|
-
|
|
19239
|
-
|
|
19240
|
-
|
|
19241
|
-
|
|
19242
|
-
|
|
19243
|
-
|
|
19244
|
-
poolUserRecord: accounts.liqsolPoolUserRecord,
|
|
19245
|
-
bridgeState: accounts.bridgeState,
|
|
19246
|
-
extraAccountMetaList: accounts.extraAccountMetaList,
|
|
19247
|
-
liqsolCoreProgram: this.program.programId,
|
|
19248
|
-
transferHookProgram: this.pgs.PROGRAM_IDS.TRANSFER_HOOK,
|
|
19249
|
-
bucketAuthority: accounts.bucketAuthority,
|
|
19250
|
-
bucketTokenAccount: accounts.bucketTokenAccount,
|
|
19251
|
-
bucketUserRecord: accounts.bucketUserRecord,
|
|
19252
|
-
tokenProgram: TOKEN_2022_PROGRAM_ID,
|
|
19253
|
-
systemProgram: SystemProgram.programId,
|
|
19254
|
-
globalConfig: accounts.globalConfig,
|
|
19255
|
-
oppEpochState: accounts.oppEpochState,
|
|
19256
|
-
pendingAttestations
|
|
19257
|
-
}).preInstructions([
|
|
19267
|
+
).accounts(
|
|
19268
|
+
buildSolanaInstaswapCrossChainAccounts({
|
|
19269
|
+
user,
|
|
19270
|
+
accounts,
|
|
19271
|
+
liqsolCoreProgram: this.program.programId,
|
|
19272
|
+
transferHookProgram: this.pgs.PROGRAM_IDS.TRANSFER_HOOK,
|
|
19273
|
+
pendingAttestations
|
|
19274
|
+
})
|
|
19275
|
+
).preInstructions([
|
|
19258
19276
|
ComputeBudgetProgram.setComputeUnitLimit({ units: 9e5 })
|
|
19259
19277
|
]).rpc()
|
|
19260
19278
|
);
|
|
@@ -19271,29 +19289,15 @@ class SolanaInstaswapClient {
|
|
|
19271
19289
|
destinationChain,
|
|
19272
19290
|
destinationAddress,
|
|
19273
19291
|
minOut
|
|
19274
|
-
).accounts(
|
|
19275
|
-
|
|
19276
|
-
|
|
19277
|
-
|
|
19278
|
-
|
|
19279
|
-
|
|
19280
|
-
|
|
19281
|
-
|
|
19282
|
-
|
|
19283
|
-
poolUserRecord: accounts.liqsolPoolUserRecord,
|
|
19284
|
-
bridgeState: accounts.bridgeState,
|
|
19285
|
-
extraAccountMetaList: accounts.extraAccountMetaList,
|
|
19286
|
-
liqsolCoreProgram: this.program.programId,
|
|
19287
|
-
transferHookProgram: this.pgs.PROGRAM_IDS.TRANSFER_HOOK,
|
|
19288
|
-
bucketAuthority: accounts.bucketAuthority,
|
|
19289
|
-
bucketTokenAccount: accounts.bucketTokenAccount,
|
|
19290
|
-
bucketUserRecord: accounts.bucketUserRecord,
|
|
19291
|
-
tokenProgram: TOKEN_2022_PROGRAM_ID,
|
|
19292
|
-
systemProgram: SystemProgram.programId,
|
|
19293
|
-
globalConfig: accounts.globalConfig,
|
|
19294
|
-
oppEpochState: accounts.oppEpochState,
|
|
19295
|
-
pendingAttestations
|
|
19296
|
-
}).preInstructions([
|
|
19292
|
+
).accounts(
|
|
19293
|
+
buildSolanaInstaswapCrossChainAccounts({
|
|
19294
|
+
user,
|
|
19295
|
+
accounts,
|
|
19296
|
+
liqsolCoreProgram: this.program.programId,
|
|
19297
|
+
transferHookProgram: this.pgs.PROGRAM_IDS.TRANSFER_HOOK,
|
|
19298
|
+
pendingAttestations
|
|
19299
|
+
})
|
|
19300
|
+
).preInstructions([
|
|
19297
19301
|
ComputeBudgetProgram.setComputeUnitLimit({ units: 9e5 })
|
|
19298
19302
|
]).rpc()
|
|
19299
19303
|
);
|
|
@@ -74113,5 +74117,5 @@ var types = /*#__PURE__*/Object.freeze({
|
|
|
74113
74117
|
__proto__: null
|
|
74114
74118
|
});
|
|
74115
74119
|
|
|
74116
|
-
export { ADDRESSES, ADDRESS_BOOK_BY_CHAIN, CHAINLINK_FEED, CHAINLINK_PROGRAM, CONTRACTS_BY_CHAIN, ConvertClient$1 as ConvertClient, DEFAULT_AVERAGE_PAY_RATE, DEFAULT_PAY_RATE_LOOKBACK, DistributionClient, EPHEMERAL_RENT_EXEMPTION, ERC1155Abi, ERC20Abi, ERC721Abi, types$1 as ETH, EthereumContractService, EthereumInstaswapClient, EthereumStakingClient, HOODI_ADDRESSES, INDEX_SCALE$1 as INDEX_SCALE, INITIAL_TRANCHE_SUPPLY, LAMPORTS_PER_SOL, LeaderboardClient, MAINNET_ADDRESSES, OutpostClient, PAY_RATE_SCALE_FACTOR, PDA_SEEDS, PROGRAM_IDS_BY_CHAIN, PurchaseAsset, ReceiptNFTKind, SCALE, types as SOL, SolanaInstaswapClient, SolanaStakingClient, Staker, SupportedEvmChainID, SupportedSolChainID, TokenClient, airdropSol, buildOutpostAccounts, buildSolanaTrancheLadder, buildSolanaTrancheSnapshot, ceilDiv, deriveEphemeralStakeAddress, generateRandomDepositAmount, generateTestKeypair, getEpochSnapshot, getErrorMessage, getProgramIds, lamportsToSol, msToEpochEnd, normalizeToBigInt, safeFetch, scheduledInstruction, sleep, solToLamports, toBigint, tokensToShares, waitForConfirmation, waitUntilSafeToExecuteFunction };
|
|
74120
|
+
export { ADDRESSES, ADDRESS_BOOK_BY_CHAIN, CHAINLINK_FEED, CHAINLINK_PROGRAM, CONTRACTS_BY_CHAIN, ConvertClient$1 as ConvertClient, DEFAULT_AVERAGE_PAY_RATE, DEFAULT_PAY_RATE_LOOKBACK, DistributionClient, EPHEMERAL_RENT_EXEMPTION, ERC1155Abi, ERC20Abi, ERC721Abi, types$1 as ETH, EthereumContractService, EthereumInstaswapClient, EthereumStakingClient, HOODI_ADDRESSES, INDEX_SCALE$1 as INDEX_SCALE, INITIAL_TRANCHE_SUPPLY, LAMPORTS_PER_SOL, LeaderboardClient, MAINNET_ADDRESSES, OutpostClient, PAY_RATE_SCALE_FACTOR, PDA_SEEDS, PROGRAM_IDS_BY_CHAIN, PurchaseAsset, ReceiptNFTKind, SCALE, types as SOL, SolanaInstaswapClient, SolanaStakingClient, Staker, SupportedEvmChainID, SupportedSolChainID, TokenClient, airdropSol, buildOutpostAccounts, buildSolanaInstaswapCrossChainAccounts, buildSolanaTrancheLadder, buildSolanaTrancheSnapshot, ceilDiv, deriveEphemeralStakeAddress, generateRandomDepositAmount, generateTestKeypair, getEpochSnapshot, getErrorMessage, getProgramIds, lamportsToSol, msToEpochEnd, normalizeToBigInt, safeFetch, scheduledInstruction, sleep, solToLamports, toBigint, tokensToShares, waitForConfirmation, waitUntilSafeToExecuteFunction };
|
|
74117
74121
|
//# sourceMappingURL=stake.m.js.map
|