@jpool/bond-sdk 0.10.3 → 0.10.4
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.js +2 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { utils, Program, AnchorProvider, BN } from '@coral-xyz/anchor';
|
|
2
2
|
import { TOKEN_PROGRAM_ID, ASSOCIATED_TOKEN_PROGRAM_ID, getAssociatedTokenAddressSync, ACCOUNT_SIZE, AccountLayout } from '@solana/spl-token';
|
|
3
3
|
import { PublicKey, Transaction, SystemProgram, LAMPORTS_PER_SOL } from '@solana/web3.js';
|
|
4
|
-
import bs58 from 'bs58';
|
|
5
4
|
|
|
6
5
|
var __create = Object.create;
|
|
7
6
|
var __defProp = Object.defineProperty;
|
|
@@ -4648,6 +4647,8 @@ var NodeWallet = class {
|
|
|
4648
4647
|
return this.payer.publicKey;
|
|
4649
4648
|
}
|
|
4650
4649
|
};
|
|
4650
|
+
|
|
4651
|
+
// src/utils/web3.ts
|
|
4651
4652
|
var SLOTS_PER_EPOCH_MAINNET = 432e3;
|
|
4652
4653
|
var SLOTS_PER_EPOCH_DEVNET = 4e5;
|
|
4653
4654
|
function slotToEpoch(slot, cluster) {
|
|
@@ -4656,6 +4657,7 @@ function slotToEpoch(slot, cluster) {
|
|
|
4656
4657
|
}
|
|
4657
4658
|
|
|
4658
4659
|
// src/history.ts
|
|
4660
|
+
var { bs58 } = utils.bytes;
|
|
4659
4661
|
var HistoryManager = class {
|
|
4660
4662
|
program;
|
|
4661
4663
|
connection;
|