outsmart 2.0.0-alpha.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/LICENSE +21 -0
- package/README.md +568 -0
- package/dist/cli.d.ts +44 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +1251 -0
- package/dist/cli.js.map +1 -0
- package/dist/dex/byreal-clmm.d.ts +16 -0
- package/dist/dex/byreal-clmm.d.ts.map +1 -0
- package/dist/dex/byreal-clmm.js +39 -0
- package/dist/dex/byreal-clmm.js.map +1 -0
- package/dist/dex/dflow.d.ts +27 -0
- package/dist/dex/dflow.d.ts.map +1 -0
- package/dist/dex/dflow.js +200 -0
- package/dist/dex/dflow.js.map +1 -0
- package/dist/dex/fusion-amm.d.ts +44 -0
- package/dist/dex/fusion-amm.d.ts.map +1 -0
- package/dist/dex/fusion-amm.js +546 -0
- package/dist/dex/fusion-amm.js.map +1 -0
- package/dist/dex/futarchy-amm.d.ts +32 -0
- package/dist/dex/futarchy-amm.d.ts.map +1 -0
- package/dist/dex/futarchy-amm.js +443 -0
- package/dist/dex/futarchy-amm.js.map +1 -0
- package/dist/dex/futarchy-idl.d.ts +2568 -0
- package/dist/dex/futarchy-idl.d.ts.map +1 -0
- package/dist/dex/futarchy-idl.js +2570 -0
- package/dist/dex/futarchy-idl.js.map +1 -0
- package/dist/dex/futarchy-launchpad.d.ts +68 -0
- package/dist/dex/futarchy-launchpad.d.ts.map +1 -0
- package/dist/dex/futarchy-launchpad.js +377 -0
- package/dist/dex/futarchy-launchpad.js.map +1 -0
- package/dist/dex/index.d.ts +88 -0
- package/dist/dex/index.d.ts.map +1 -0
- package/dist/dex/index.js +159 -0
- package/dist/dex/index.js.map +1 -0
- package/dist/dex/jupiter-ultra.d.ts +27 -0
- package/dist/dex/jupiter-ultra.d.ts.map +1 -0
- package/dist/dex/jupiter-ultra.js +369 -0
- package/dist/dex/jupiter-ultra.js.map +1 -0
- package/dist/dex/meteora-damm-v1.d.ts +36 -0
- package/dist/dex/meteora-damm-v1.d.ts.map +1 -0
- package/dist/dex/meteora-damm-v1.js +314 -0
- package/dist/dex/meteora-damm-v1.js.map +1 -0
- package/dist/dex/meteora-damm-v2.d.ts +103 -0
- package/dist/dex/meteora-damm-v2.d.ts.map +1 -0
- package/dist/dex/meteora-damm-v2.js +1146 -0
- package/dist/dex/meteora-damm-v2.js.map +1 -0
- package/dist/dex/meteora-dbc.d.ts +38 -0
- package/dist/dex/meteora-dbc.d.ts.map +1 -0
- package/dist/dex/meteora-dbc.js +374 -0
- package/dist/dex/meteora-dbc.js.map +1 -0
- package/dist/dex/meteora-dlmm.d.ts +79 -0
- package/dist/dex/meteora-dlmm.d.ts.map +1 -0
- package/dist/dex/meteora-dlmm.js +735 -0
- package/dist/dex/meteora-dlmm.js.map +1 -0
- package/dist/dex/orca.d.ts +31 -0
- package/dist/dex/orca.d.ts.map +1 -0
- package/dist/dex/orca.js +536 -0
- package/dist/dex/orca.js.map +1 -0
- package/dist/dex/pancakeswap-clmm.d.ts +16 -0
- package/dist/dex/pancakeswap-clmm.d.ts.map +1 -0
- package/dist/dex/pancakeswap-clmm.js +39 -0
- package/dist/dex/pancakeswap-clmm.js.map +1 -0
- package/dist/dex/pumpfun-amm.d.ts +46 -0
- package/dist/dex/pumpfun-amm.d.ts.map +1 -0
- package/dist/dex/pumpfun-amm.js +692 -0
- package/dist/dex/pumpfun-amm.js.map +1 -0
- package/dist/dex/pumpfun.d.ts +41 -0
- package/dist/dex/pumpfun.d.ts.map +1 -0
- package/dist/dex/pumpfun.js +555 -0
- package/dist/dex/pumpfun.js.map +1 -0
- package/dist/dex/raydium-amm-v4.d.ts +11 -0
- package/dist/dex/raydium-amm-v4.d.ts.map +1 -0
- package/dist/dex/raydium-amm-v4.js +649 -0
- package/dist/dex/raydium-amm-v4.js.map +1 -0
- package/dist/dex/raydium-clmm.d.ts +12 -0
- package/dist/dex/raydium-clmm.d.ts.map +1 -0
- package/dist/dex/raydium-clmm.js +675 -0
- package/dist/dex/raydium-clmm.js.map +1 -0
- package/dist/dex/raydium-cpmm.d.ts +10 -0
- package/dist/dex/raydium-cpmm.d.ts.map +1 -0
- package/dist/dex/raydium-cpmm.js +613 -0
- package/dist/dex/raydium-cpmm.js.map +1 -0
- package/dist/dex/raydium-launchlab.d.ts +12 -0
- package/dist/dex/raydium-launchlab.d.ts.map +1 -0
- package/dist/dex/raydium-launchlab.js +530 -0
- package/dist/dex/raydium-launchlab.js.map +1 -0
- package/dist/dex/shared/clmm-base.d.ts +58 -0
- package/dist/dex/shared/clmm-base.d.ts.map +1 -0
- package/dist/dex/shared/clmm-base.js +891 -0
- package/dist/dex/shared/clmm-base.js.map +1 -0
- package/dist/dex/types.d.ts +601 -0
- package/dist/dex/types.d.ts.map +1 -0
- package/dist/dex/types.js +137 -0
- package/dist/dex/types.js.map +1 -0
- package/dist/dexscreener/index.d.ts +2 -0
- package/dist/dexscreener/index.d.ts.map +1 -0
- package/dist/dexscreener/index.js +18 -0
- package/dist/dexscreener/index.js.map +1 -0
- package/dist/dexscreener/info.d.ts +22 -0
- package/dist/dexscreener/info.d.ts.map +1 -0
- package/dist/dexscreener/info.js +104 -0
- package/dist/dexscreener/info.js.map +1 -0
- package/dist/helpers/check_balance.d.ts +10 -0
- package/dist/helpers/check_balance.d.ts.map +1 -0
- package/dist/helpers/check_balance.js +34 -0
- package/dist/helpers/check_balance.js.map +1 -0
- package/dist/helpers/config.d.ts +51 -0
- package/dist/helpers/config.d.ts.map +1 -0
- package/dist/helpers/config.js +118 -0
- package/dist/helpers/config.js.map +1 -0
- package/dist/helpers/index.d.ts +8 -0
- package/dist/helpers/index.d.ts.map +1 -0
- package/dist/helpers/index.js +29 -0
- package/dist/helpers/index.js.map +1 -0
- package/dist/helpers/logger.d.ts +27 -0
- package/dist/helpers/logger.d.ts.map +1 -0
- package/dist/helpers/logger.js +39 -0
- package/dist/helpers/logger.js.map +1 -0
- package/dist/helpers/token-2022.d.ts +32 -0
- package/dist/helpers/token-2022.d.ts.map +1 -0
- package/dist/helpers/token-2022.js +48 -0
- package/dist/helpers/token-2022.js.map +1 -0
- package/dist/helpers/unwrap_sol.d.ts +2 -0
- package/dist/helpers/unwrap_sol.d.ts.map +1 -0
- package/dist/helpers/unwrap_sol.js +67 -0
- package/dist/helpers/unwrap_sol.js.map +1 -0
- package/dist/helpers/util.d.ts +698 -0
- package/dist/helpers/util.d.ts.map +1 -0
- package/dist/helpers/util.js +181 -0
- package/dist/helpers/util.js.map +1 -0
- package/dist/helpers/utils.d.ts +10 -0
- package/dist/helpers/utils.d.ts.map +1 -0
- package/dist/helpers/utils.js +97 -0
- package/dist/helpers/utils.js.map +1 -0
- package/dist/helpers/wrap_sol.d.ts +3 -0
- package/dist/helpers/wrap_sol.d.ts.map +1 -0
- package/dist/helpers/wrap_sol.js +88 -0
- package/dist/helpers/wrap_sol.js.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +32 -0
- package/dist/index.js.map +1 -0
- package/dist/transactions/bloXroute_tips_tx_executor.d.ts +4 -0
- package/dist/transactions/bloXroute_tips_tx_executor.d.ts.map +1 -0
- package/dist/transactions/bloXroute_tips_tx_executor.js +70 -0
- package/dist/transactions/bloXroute_tips_tx_executor.js.map +1 -0
- package/dist/transactions/index.d.ts +6 -0
- package/dist/transactions/index.d.ts.map +1 -0
- package/dist/transactions/index.js +30 -0
- package/dist/transactions/index.js.map +1 -0
- package/dist/transactions/jito_tips_tx_executor.d.ts +15 -0
- package/dist/transactions/jito_tips_tx_executor.d.ts.map +1 -0
- package/dist/transactions/jito_tips_tx_executor.js +99 -0
- package/dist/transactions/jito_tips_tx_executor.js.map +1 -0
- package/dist/transactions/landing/index.d.ts +30 -0
- package/dist/transactions/landing/index.d.ts.map +1 -0
- package/dist/transactions/landing/index.js +60 -0
- package/dist/transactions/landing/index.js.map +1 -0
- package/dist/transactions/landing/nonce-manager.d.ts +116 -0
- package/dist/transactions/landing/nonce-manager.d.ts.map +1 -0
- package/dist/transactions/landing/nonce-manager.js +393 -0
- package/dist/transactions/landing/nonce-manager.js.map +1 -0
- package/dist/transactions/landing/orchestrator.d.ts +104 -0
- package/dist/transactions/landing/orchestrator.d.ts.map +1 -0
- package/dist/transactions/landing/orchestrator.js +329 -0
- package/dist/transactions/landing/orchestrator.js.map +1 -0
- package/dist/transactions/landing/providers/astralane.d.ts +12 -0
- package/dist/transactions/landing/providers/astralane.d.ts.map +1 -0
- package/dist/transactions/landing/providers/astralane.js +132 -0
- package/dist/transactions/landing/providers/astralane.js.map +1 -0
- package/dist/transactions/landing/providers/blockrazor.d.ts +11 -0
- package/dist/transactions/landing/providers/blockrazor.d.ts.map +1 -0
- package/dist/transactions/landing/providers/blockrazor.js +134 -0
- package/dist/transactions/landing/providers/blockrazor.js.map +1 -0
- package/dist/transactions/landing/providers/bloxroute.d.ts +12 -0
- package/dist/transactions/landing/providers/bloxroute.d.ts.map +1 -0
- package/dist/transactions/landing/providers/bloxroute.js +102 -0
- package/dist/transactions/landing/providers/bloxroute.js.map +1 -0
- package/dist/transactions/landing/providers/flashblock.d.ts +10 -0
- package/dist/transactions/landing/providers/flashblock.d.ts.map +1 -0
- package/dist/transactions/landing/providers/flashblock.js +102 -0
- package/dist/transactions/landing/providers/flashblock.js.map +1 -0
- package/dist/transactions/landing/providers/helius-sender.d.ts +11 -0
- package/dist/transactions/landing/providers/helius-sender.d.ts.map +1 -0
- package/dist/transactions/landing/providers/helius-sender.js +101 -0
- package/dist/transactions/landing/providers/helius-sender.js.map +1 -0
- package/dist/transactions/landing/providers/jito.d.ts +16 -0
- package/dist/transactions/landing/providers/jito.d.ts.map +1 -0
- package/dist/transactions/landing/providers/jito.js +110 -0
- package/dist/transactions/landing/providers/jito.js.map +1 -0
- package/dist/transactions/landing/providers/nextblock.d.ts +11 -0
- package/dist/transactions/landing/providers/nextblock.d.ts.map +1 -0
- package/dist/transactions/landing/providers/nextblock.js +109 -0
- package/dist/transactions/landing/providers/nextblock.js.map +1 -0
- package/dist/transactions/landing/providers/node1.d.ts +11 -0
- package/dist/transactions/landing/providers/node1.d.ts.map +1 -0
- package/dist/transactions/landing/providers/node1.js +101 -0
- package/dist/transactions/landing/providers/node1.js.map +1 -0
- package/dist/transactions/landing/providers/nozomi.d.ts +11 -0
- package/dist/transactions/landing/providers/nozomi.d.ts.map +1 -0
- package/dist/transactions/landing/providers/nozomi.js +124 -0
- package/dist/transactions/landing/providers/nozomi.js.map +1 -0
- package/dist/transactions/landing/providers/soyas.d.ts +16 -0
- package/dist/transactions/landing/providers/soyas.d.ts.map +1 -0
- package/dist/transactions/landing/providers/soyas.js +192 -0
- package/dist/transactions/landing/providers/soyas.js.map +1 -0
- package/dist/transactions/landing/providers/stellium.d.ts +11 -0
- package/dist/transactions/landing/providers/stellium.d.ts.map +1 -0
- package/dist/transactions/landing/providers/stellium.js +102 -0
- package/dist/transactions/landing/providers/stellium.js.map +1 -0
- package/dist/transactions/landing/providers/zero-slot.d.ts +10 -0
- package/dist/transactions/landing/providers/zero-slot.d.ts.map +1 -0
- package/dist/transactions/landing/providers/zero-slot.js +92 -0
- package/dist/transactions/landing/providers/zero-slot.js.map +1 -0
- package/dist/transactions/landing/tip-accounts.d.ts +22 -0
- package/dist/transactions/landing/tip-accounts.d.ts.map +1 -0
- package/dist/transactions/landing/tip-accounts.js +140 -0
- package/dist/transactions/landing/tip-accounts.js.map +1 -0
- package/dist/transactions/landing/types.d.ts +98 -0
- package/dist/transactions/landing/types.d.ts.map +1 -0
- package/dist/transactions/landing/types.js +30 -0
- package/dist/transactions/landing/types.js.map +1 -0
- package/dist/transactions/nozomi/tx-submission.d.ts +14 -0
- package/dist/transactions/nozomi/tx-submission.d.ts.map +1 -0
- package/dist/transactions/nozomi/tx-submission.js +107 -0
- package/dist/transactions/nozomi/tx-submission.js.map +1 -0
- package/dist/transactions/send-rpc.d.ts +54 -0
- package/dist/transactions/send-rpc.d.ts.map +1 -0
- package/dist/transactions/send-rpc.js +126 -0
- package/dist/transactions/send-rpc.js.map +1 -0
- package/dist/transactions/simple_tx_executor.d.ts +10 -0
- package/dist/transactions/simple_tx_executor.d.ts.map +1 -0
- package/dist/transactions/simple_tx_executor.js +33 -0
- package/dist/transactions/simple_tx_executor.js.map +1 -0
- package/package.json +112 -0
|
@@ -0,0 +1,698 @@
|
|
|
1
|
+
import { PublicKey, VersionedTransaction, Keypair } from "@solana/web3.js";
|
|
2
|
+
import { Connection } from "@solana/web3.js";
|
|
3
|
+
/**
|
|
4
|
+
* Retrieves the metadata of a token based on its address.
|
|
5
|
+
*/
|
|
6
|
+
export declare function getTokenMetadata(address: string): Promise<{
|
|
7
|
+
tokenName: string | undefined;
|
|
8
|
+
tokenSymbol: string | undefined;
|
|
9
|
+
}>;
|
|
10
|
+
/**
|
|
11
|
+
* Sends multiple transactions to the Solana blockchain.
|
|
12
|
+
*/
|
|
13
|
+
export declare function sendTx(connection: Connection, payer: Keypair, txs: (VersionedTransaction | any)[], options?: {
|
|
14
|
+
skipPreflight?: boolean;
|
|
15
|
+
maxRetries?: number;
|
|
16
|
+
}): Promise<string[]>;
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves the token account associated with a wallet.
|
|
19
|
+
*/
|
|
20
|
+
export declare function getWalletTokenAccount(localconnection: Connection, localwallet: PublicKey): Promise<{
|
|
21
|
+
pubkey: PublicKey;
|
|
22
|
+
programId: PublicKey;
|
|
23
|
+
accountInfo: {
|
|
24
|
+
owner: PublicKey;
|
|
25
|
+
state: number;
|
|
26
|
+
mint: PublicKey;
|
|
27
|
+
amount: {
|
|
28
|
+
copy(dest: import("bn.js")): void;
|
|
29
|
+
clone(): import("bn.js");
|
|
30
|
+
toString(base?: number | "hex", length?: number): string;
|
|
31
|
+
toNumber(): number;
|
|
32
|
+
toJSON(): string;
|
|
33
|
+
toArray(endian?: import("bn.js").Endianness, length?: number): number[];
|
|
34
|
+
toArrayLike(ArrayType: typeof Buffer, endian?: import("bn.js").Endianness, length?: number): Buffer;
|
|
35
|
+
toArrayLike(ArrayType: any[], endian?: import("bn.js").Endianness, length?: number): any[];
|
|
36
|
+
toBuffer(endian?: import("bn.js").Endianness, length?: number): Buffer;
|
|
37
|
+
bitLength(): number;
|
|
38
|
+
zeroBits(): number;
|
|
39
|
+
byteLength(): number;
|
|
40
|
+
isNeg(): boolean;
|
|
41
|
+
isEven(): boolean;
|
|
42
|
+
isOdd(): boolean;
|
|
43
|
+
isZero(): boolean;
|
|
44
|
+
cmp(b: import("bn.js")): -1 | 0 | 1;
|
|
45
|
+
ucmp(b: import("bn.js")): -1 | 0 | 1;
|
|
46
|
+
cmpn(b: number): -1 | 0 | 1;
|
|
47
|
+
lt(b: import("bn.js")): boolean;
|
|
48
|
+
ltn(b: number): boolean;
|
|
49
|
+
lte(b: import("bn.js")): boolean;
|
|
50
|
+
lten(b: number): boolean;
|
|
51
|
+
gt(b: import("bn.js")): boolean;
|
|
52
|
+
gtn(b: number): boolean;
|
|
53
|
+
gte(b: import("bn.js")): boolean;
|
|
54
|
+
gten(b: number): boolean;
|
|
55
|
+
eq(b: import("bn.js")): boolean;
|
|
56
|
+
eqn(b: number): boolean;
|
|
57
|
+
toTwos(width: number): import("bn.js");
|
|
58
|
+
fromTwos(width: number): import("bn.js");
|
|
59
|
+
neg(): import("bn.js");
|
|
60
|
+
ineg(): import("bn.js");
|
|
61
|
+
abs(): import("bn.js");
|
|
62
|
+
iabs(): import("bn.js");
|
|
63
|
+
add(b: import("bn.js")): import("bn.js");
|
|
64
|
+
iadd(b: import("bn.js")): import("bn.js");
|
|
65
|
+
addn(b: number): import("bn.js");
|
|
66
|
+
iaddn(b: number): import("bn.js");
|
|
67
|
+
sub(b: import("bn.js")): import("bn.js");
|
|
68
|
+
isub(b: import("bn.js")): import("bn.js");
|
|
69
|
+
subn(b: number): import("bn.js");
|
|
70
|
+
isubn(b: number): import("bn.js");
|
|
71
|
+
mul(b: import("bn.js")): import("bn.js");
|
|
72
|
+
imul(b: import("bn.js")): import("bn.js");
|
|
73
|
+
muln(b: number): import("bn.js");
|
|
74
|
+
imuln(b: number): import("bn.js");
|
|
75
|
+
sqr(): import("bn.js");
|
|
76
|
+
isqr(): import("bn.js");
|
|
77
|
+
pow(b: import("bn.js")): import("bn.js");
|
|
78
|
+
div(b: import("bn.js")): import("bn.js");
|
|
79
|
+
divn(b: number): import("bn.js");
|
|
80
|
+
idivn(b: number): import("bn.js");
|
|
81
|
+
divmod(b: import("bn.js"), mode?: "div" | "mod", positive?: boolean): {
|
|
82
|
+
div: import("bn.js");
|
|
83
|
+
mod: import("bn.js");
|
|
84
|
+
};
|
|
85
|
+
mod(b: import("bn.js")): import("bn.js");
|
|
86
|
+
umod(b: import("bn.js")): import("bn.js");
|
|
87
|
+
modn(b: number): number;
|
|
88
|
+
modrn(b: number): number;
|
|
89
|
+
divRound(b: import("bn.js")): import("bn.js");
|
|
90
|
+
or(b: import("bn.js")): import("bn.js");
|
|
91
|
+
ior(b: import("bn.js")): import("bn.js");
|
|
92
|
+
uor(b: import("bn.js")): import("bn.js");
|
|
93
|
+
iuor(b: import("bn.js")): import("bn.js");
|
|
94
|
+
and(b: import("bn.js")): import("bn.js");
|
|
95
|
+
iand(b: import("bn.js")): import("bn.js");
|
|
96
|
+
uand(b: import("bn.js")): import("bn.js");
|
|
97
|
+
iuand(b: import("bn.js")): import("bn.js");
|
|
98
|
+
andln(b: number): import("bn.js");
|
|
99
|
+
xor(b: import("bn.js")): import("bn.js");
|
|
100
|
+
ixor(b: import("bn.js")): import("bn.js");
|
|
101
|
+
uxor(b: import("bn.js")): import("bn.js");
|
|
102
|
+
iuxor(b: import("bn.js")): import("bn.js");
|
|
103
|
+
setn(b: number, value: boolean | 0 | 1): import("bn.js");
|
|
104
|
+
shln(b: number): import("bn.js");
|
|
105
|
+
ishln(b: number): import("bn.js");
|
|
106
|
+
ushln(b: number): import("bn.js");
|
|
107
|
+
iushln(b: number): import("bn.js");
|
|
108
|
+
shrn(b: number): import("bn.js");
|
|
109
|
+
ishrn(b: number): import("bn.js");
|
|
110
|
+
ushrn(b: number): import("bn.js");
|
|
111
|
+
iushrn(b: number): import("bn.js");
|
|
112
|
+
testn(b: number): boolean;
|
|
113
|
+
maskn(b: number): import("bn.js");
|
|
114
|
+
imaskn(b: number): import("bn.js");
|
|
115
|
+
bincn(b: number): import("bn.js");
|
|
116
|
+
notn(w: number): import("bn.js");
|
|
117
|
+
inotn(w: number): import("bn.js");
|
|
118
|
+
gcd(b: import("bn.js")): import("bn.js");
|
|
119
|
+
egcd(b: import("bn.js")): {
|
|
120
|
+
a: import("bn.js");
|
|
121
|
+
b: import("bn.js");
|
|
122
|
+
gcd: import("bn.js");
|
|
123
|
+
};
|
|
124
|
+
invm(b: import("bn.js")): import("bn.js");
|
|
125
|
+
toRed(reductionContext: import("bn.js").ReductionContext): {
|
|
126
|
+
fromRed(): import("bn.js");
|
|
127
|
+
redAdd(b: /*elided*/ any): /*elided*/ any;
|
|
128
|
+
redIAdd(b: /*elided*/ any): /*elided*/ any;
|
|
129
|
+
redSub(b: /*elided*/ any): /*elided*/ any;
|
|
130
|
+
redISub(b: /*elided*/ any): /*elided*/ any;
|
|
131
|
+
redShl(num: number): /*elided*/ any;
|
|
132
|
+
redMul(b: /*elided*/ any): /*elided*/ any;
|
|
133
|
+
redIMul(b: /*elided*/ any): /*elided*/ any;
|
|
134
|
+
redSqr(): /*elided*/ any;
|
|
135
|
+
redISqr(): /*elided*/ any;
|
|
136
|
+
redSqrt(): /*elided*/ any;
|
|
137
|
+
redInvm(): /*elided*/ any;
|
|
138
|
+
redNeg(): /*elided*/ any;
|
|
139
|
+
redPow(b: import("bn.js")): /*elided*/ any;
|
|
140
|
+
copy(dest: import("bn.js")): void;
|
|
141
|
+
clone(): import("bn.js");
|
|
142
|
+
toString(base?: number | "hex", length?: number): string;
|
|
143
|
+
toNumber(): number;
|
|
144
|
+
toJSON(): string;
|
|
145
|
+
toArray(endian?: import("bn.js").Endianness, length?: number): number[];
|
|
146
|
+
toArrayLike(ArrayType: typeof Buffer, endian?: import("bn.js").Endianness, length?: number): Buffer;
|
|
147
|
+
toArrayLike(ArrayType: any[], endian?: import("bn.js").Endianness, length?: number): any[];
|
|
148
|
+
toBuffer(endian?: import("bn.js").Endianness, length?: number): Buffer;
|
|
149
|
+
bitLength(): number;
|
|
150
|
+
zeroBits(): number;
|
|
151
|
+
byteLength(): number;
|
|
152
|
+
isNeg(): boolean;
|
|
153
|
+
isEven(): boolean;
|
|
154
|
+
isOdd(): boolean;
|
|
155
|
+
isZero(): boolean;
|
|
156
|
+
cmp(b: import("bn.js")): -1 | 0 | 1;
|
|
157
|
+
ucmp(b: import("bn.js")): -1 | 0 | 1;
|
|
158
|
+
cmpn(b: number): -1 | 0 | 1;
|
|
159
|
+
lt(b: import("bn.js")): boolean;
|
|
160
|
+
ltn(b: number): boolean;
|
|
161
|
+
lte(b: import("bn.js")): boolean;
|
|
162
|
+
lten(b: number): boolean;
|
|
163
|
+
gt(b: import("bn.js")): boolean;
|
|
164
|
+
gtn(b: number): boolean;
|
|
165
|
+
gte(b: import("bn.js")): boolean;
|
|
166
|
+
gten(b: number): boolean;
|
|
167
|
+
eq(b: import("bn.js")): boolean;
|
|
168
|
+
eqn(b: number): boolean;
|
|
169
|
+
toTwos(width: number): import("bn.js");
|
|
170
|
+
fromTwos(width: number): import("bn.js");
|
|
171
|
+
neg(): import("bn.js");
|
|
172
|
+
ineg(): import("bn.js");
|
|
173
|
+
abs(): import("bn.js");
|
|
174
|
+
iabs(): import("bn.js");
|
|
175
|
+
add(b: import("bn.js")): import("bn.js");
|
|
176
|
+
iadd(b: import("bn.js")): import("bn.js");
|
|
177
|
+
addn(b: number): import("bn.js");
|
|
178
|
+
iaddn(b: number): import("bn.js");
|
|
179
|
+
sub(b: import("bn.js")): import("bn.js");
|
|
180
|
+
isub(b: import("bn.js")): import("bn.js");
|
|
181
|
+
subn(b: number): import("bn.js");
|
|
182
|
+
isubn(b: number): import("bn.js");
|
|
183
|
+
mul(b: import("bn.js")): import("bn.js");
|
|
184
|
+
imul(b: import("bn.js")): import("bn.js");
|
|
185
|
+
muln(b: number): import("bn.js");
|
|
186
|
+
imuln(b: number): import("bn.js");
|
|
187
|
+
sqr(): import("bn.js");
|
|
188
|
+
isqr(): import("bn.js");
|
|
189
|
+
pow(b: import("bn.js")): import("bn.js");
|
|
190
|
+
div(b: import("bn.js")): import("bn.js");
|
|
191
|
+
divn(b: number): import("bn.js");
|
|
192
|
+
idivn(b: number): import("bn.js");
|
|
193
|
+
divmod(b: import("bn.js"), mode?: "div" | "mod", positive?: boolean): {
|
|
194
|
+
div: import("bn.js");
|
|
195
|
+
mod: import("bn.js");
|
|
196
|
+
};
|
|
197
|
+
mod(b: import("bn.js")): import("bn.js");
|
|
198
|
+
umod(b: import("bn.js")): import("bn.js");
|
|
199
|
+
modn(b: number): number;
|
|
200
|
+
modrn(b: number): number;
|
|
201
|
+
divRound(b: import("bn.js")): import("bn.js");
|
|
202
|
+
or(b: import("bn.js")): import("bn.js");
|
|
203
|
+
ior(b: import("bn.js")): import("bn.js");
|
|
204
|
+
uor(b: import("bn.js")): import("bn.js");
|
|
205
|
+
iuor(b: import("bn.js")): import("bn.js");
|
|
206
|
+
and(b: import("bn.js")): import("bn.js");
|
|
207
|
+
iand(b: import("bn.js")): import("bn.js");
|
|
208
|
+
uand(b: import("bn.js")): import("bn.js");
|
|
209
|
+
iuand(b: import("bn.js")): import("bn.js");
|
|
210
|
+
andln(b: number): import("bn.js");
|
|
211
|
+
xor(b: import("bn.js")): import("bn.js");
|
|
212
|
+
ixor(b: import("bn.js")): import("bn.js");
|
|
213
|
+
uxor(b: import("bn.js")): import("bn.js");
|
|
214
|
+
iuxor(b: import("bn.js")): import("bn.js");
|
|
215
|
+
setn(b: number, value: boolean | 0 | 1): import("bn.js");
|
|
216
|
+
shln(b: number): import("bn.js");
|
|
217
|
+
ishln(b: number): import("bn.js");
|
|
218
|
+
ushln(b: number): import("bn.js");
|
|
219
|
+
iushln(b: number): import("bn.js");
|
|
220
|
+
shrn(b: number): import("bn.js");
|
|
221
|
+
ishrn(b: number): import("bn.js");
|
|
222
|
+
ushrn(b: number): import("bn.js");
|
|
223
|
+
iushrn(b: number): import("bn.js");
|
|
224
|
+
testn(b: number): boolean;
|
|
225
|
+
maskn(b: number): import("bn.js");
|
|
226
|
+
imaskn(b: number): import("bn.js");
|
|
227
|
+
bincn(b: number): import("bn.js");
|
|
228
|
+
notn(w: number): import("bn.js");
|
|
229
|
+
inotn(w: number): import("bn.js");
|
|
230
|
+
gcd(b: import("bn.js")): import("bn.js");
|
|
231
|
+
egcd(b: import("bn.js")): {
|
|
232
|
+
a: import("bn.js");
|
|
233
|
+
b: import("bn.js");
|
|
234
|
+
gcd: import("bn.js");
|
|
235
|
+
};
|
|
236
|
+
invm(b: import("bn.js")): import("bn.js");
|
|
237
|
+
toRed(reductionContext: import("bn.js").ReductionContext): /*elided*/ any;
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
delegateOption: number;
|
|
241
|
+
delegate: PublicKey;
|
|
242
|
+
isNativeOption: number;
|
|
243
|
+
isNative: {
|
|
244
|
+
copy(dest: import("bn.js")): void;
|
|
245
|
+
clone(): import("bn.js");
|
|
246
|
+
toString(base?: number | "hex", length?: number): string;
|
|
247
|
+
toNumber(): number;
|
|
248
|
+
toJSON(): string;
|
|
249
|
+
toArray(endian?: import("bn.js").Endianness, length?: number): number[];
|
|
250
|
+
toArrayLike(ArrayType: typeof Buffer, endian?: import("bn.js").Endianness, length?: number): Buffer;
|
|
251
|
+
toArrayLike(ArrayType: any[], endian?: import("bn.js").Endianness, length?: number): any[];
|
|
252
|
+
toBuffer(endian?: import("bn.js").Endianness, length?: number): Buffer;
|
|
253
|
+
bitLength(): number;
|
|
254
|
+
zeroBits(): number;
|
|
255
|
+
byteLength(): number;
|
|
256
|
+
isNeg(): boolean;
|
|
257
|
+
isEven(): boolean;
|
|
258
|
+
isOdd(): boolean;
|
|
259
|
+
isZero(): boolean;
|
|
260
|
+
cmp(b: import("bn.js")): -1 | 0 | 1;
|
|
261
|
+
ucmp(b: import("bn.js")): -1 | 0 | 1;
|
|
262
|
+
cmpn(b: number): -1 | 0 | 1;
|
|
263
|
+
lt(b: import("bn.js")): boolean;
|
|
264
|
+
ltn(b: number): boolean;
|
|
265
|
+
lte(b: import("bn.js")): boolean;
|
|
266
|
+
lten(b: number): boolean;
|
|
267
|
+
gt(b: import("bn.js")): boolean;
|
|
268
|
+
gtn(b: number): boolean;
|
|
269
|
+
gte(b: import("bn.js")): boolean;
|
|
270
|
+
gten(b: number): boolean;
|
|
271
|
+
eq(b: import("bn.js")): boolean;
|
|
272
|
+
eqn(b: number): boolean;
|
|
273
|
+
toTwos(width: number): import("bn.js");
|
|
274
|
+
fromTwos(width: number): import("bn.js");
|
|
275
|
+
neg(): import("bn.js");
|
|
276
|
+
ineg(): import("bn.js");
|
|
277
|
+
abs(): import("bn.js");
|
|
278
|
+
iabs(): import("bn.js");
|
|
279
|
+
add(b: import("bn.js")): import("bn.js");
|
|
280
|
+
iadd(b: import("bn.js")): import("bn.js");
|
|
281
|
+
addn(b: number): import("bn.js");
|
|
282
|
+
iaddn(b: number): import("bn.js");
|
|
283
|
+
sub(b: import("bn.js")): import("bn.js");
|
|
284
|
+
isub(b: import("bn.js")): import("bn.js");
|
|
285
|
+
subn(b: number): import("bn.js");
|
|
286
|
+
isubn(b: number): import("bn.js");
|
|
287
|
+
mul(b: import("bn.js")): import("bn.js");
|
|
288
|
+
imul(b: import("bn.js")): import("bn.js");
|
|
289
|
+
muln(b: number): import("bn.js");
|
|
290
|
+
imuln(b: number): import("bn.js");
|
|
291
|
+
sqr(): import("bn.js");
|
|
292
|
+
isqr(): import("bn.js");
|
|
293
|
+
pow(b: import("bn.js")): import("bn.js");
|
|
294
|
+
div(b: import("bn.js")): import("bn.js");
|
|
295
|
+
divn(b: number): import("bn.js");
|
|
296
|
+
idivn(b: number): import("bn.js");
|
|
297
|
+
divmod(b: import("bn.js"), mode?: "div" | "mod", positive?: boolean): {
|
|
298
|
+
div: import("bn.js");
|
|
299
|
+
mod: import("bn.js");
|
|
300
|
+
};
|
|
301
|
+
mod(b: import("bn.js")): import("bn.js");
|
|
302
|
+
umod(b: import("bn.js")): import("bn.js");
|
|
303
|
+
modn(b: number): number;
|
|
304
|
+
modrn(b: number): number;
|
|
305
|
+
divRound(b: import("bn.js")): import("bn.js");
|
|
306
|
+
or(b: import("bn.js")): import("bn.js");
|
|
307
|
+
ior(b: import("bn.js")): import("bn.js");
|
|
308
|
+
uor(b: import("bn.js")): import("bn.js");
|
|
309
|
+
iuor(b: import("bn.js")): import("bn.js");
|
|
310
|
+
and(b: import("bn.js")): import("bn.js");
|
|
311
|
+
iand(b: import("bn.js")): import("bn.js");
|
|
312
|
+
uand(b: import("bn.js")): import("bn.js");
|
|
313
|
+
iuand(b: import("bn.js")): import("bn.js");
|
|
314
|
+
andln(b: number): import("bn.js");
|
|
315
|
+
xor(b: import("bn.js")): import("bn.js");
|
|
316
|
+
ixor(b: import("bn.js")): import("bn.js");
|
|
317
|
+
uxor(b: import("bn.js")): import("bn.js");
|
|
318
|
+
iuxor(b: import("bn.js")): import("bn.js");
|
|
319
|
+
setn(b: number, value: boolean | 0 | 1): import("bn.js");
|
|
320
|
+
shln(b: number): import("bn.js");
|
|
321
|
+
ishln(b: number): import("bn.js");
|
|
322
|
+
ushln(b: number): import("bn.js");
|
|
323
|
+
iushln(b: number): import("bn.js");
|
|
324
|
+
shrn(b: number): import("bn.js");
|
|
325
|
+
ishrn(b: number): import("bn.js");
|
|
326
|
+
ushrn(b: number): import("bn.js");
|
|
327
|
+
iushrn(b: number): import("bn.js");
|
|
328
|
+
testn(b: number): boolean;
|
|
329
|
+
maskn(b: number): import("bn.js");
|
|
330
|
+
imaskn(b: number): import("bn.js");
|
|
331
|
+
bincn(b: number): import("bn.js");
|
|
332
|
+
notn(w: number): import("bn.js");
|
|
333
|
+
inotn(w: number): import("bn.js");
|
|
334
|
+
gcd(b: import("bn.js")): import("bn.js");
|
|
335
|
+
egcd(b: import("bn.js")): {
|
|
336
|
+
a: import("bn.js");
|
|
337
|
+
b: import("bn.js");
|
|
338
|
+
gcd: import("bn.js");
|
|
339
|
+
};
|
|
340
|
+
invm(b: import("bn.js")): import("bn.js");
|
|
341
|
+
toRed(reductionContext: import("bn.js").ReductionContext): {
|
|
342
|
+
fromRed(): import("bn.js");
|
|
343
|
+
redAdd(b: /*elided*/ any): /*elided*/ any;
|
|
344
|
+
redIAdd(b: /*elided*/ any): /*elided*/ any;
|
|
345
|
+
redSub(b: /*elided*/ any): /*elided*/ any;
|
|
346
|
+
redISub(b: /*elided*/ any): /*elided*/ any;
|
|
347
|
+
redShl(num: number): /*elided*/ any;
|
|
348
|
+
redMul(b: /*elided*/ any): /*elided*/ any;
|
|
349
|
+
redIMul(b: /*elided*/ any): /*elided*/ any;
|
|
350
|
+
redSqr(): /*elided*/ any;
|
|
351
|
+
redISqr(): /*elided*/ any;
|
|
352
|
+
redSqrt(): /*elided*/ any;
|
|
353
|
+
redInvm(): /*elided*/ any;
|
|
354
|
+
redNeg(): /*elided*/ any;
|
|
355
|
+
redPow(b: import("bn.js")): /*elided*/ any;
|
|
356
|
+
copy(dest: import("bn.js")): void;
|
|
357
|
+
clone(): import("bn.js");
|
|
358
|
+
toString(base?: number | "hex", length?: number): string;
|
|
359
|
+
toNumber(): number;
|
|
360
|
+
toJSON(): string;
|
|
361
|
+
toArray(endian?: import("bn.js").Endianness, length?: number): number[];
|
|
362
|
+
toArrayLike(ArrayType: typeof Buffer, endian?: import("bn.js").Endianness, length?: number): Buffer;
|
|
363
|
+
toArrayLike(ArrayType: any[], endian?: import("bn.js").Endianness, length?: number): any[];
|
|
364
|
+
toBuffer(endian?: import("bn.js").Endianness, length?: number): Buffer;
|
|
365
|
+
bitLength(): number;
|
|
366
|
+
zeroBits(): number;
|
|
367
|
+
byteLength(): number;
|
|
368
|
+
isNeg(): boolean;
|
|
369
|
+
isEven(): boolean;
|
|
370
|
+
isOdd(): boolean;
|
|
371
|
+
isZero(): boolean;
|
|
372
|
+
cmp(b: import("bn.js")): -1 | 0 | 1;
|
|
373
|
+
ucmp(b: import("bn.js")): -1 | 0 | 1;
|
|
374
|
+
cmpn(b: number): -1 | 0 | 1;
|
|
375
|
+
lt(b: import("bn.js")): boolean;
|
|
376
|
+
ltn(b: number): boolean;
|
|
377
|
+
lte(b: import("bn.js")): boolean;
|
|
378
|
+
lten(b: number): boolean;
|
|
379
|
+
gt(b: import("bn.js")): boolean;
|
|
380
|
+
gtn(b: number): boolean;
|
|
381
|
+
gte(b: import("bn.js")): boolean;
|
|
382
|
+
gten(b: number): boolean;
|
|
383
|
+
eq(b: import("bn.js")): boolean;
|
|
384
|
+
eqn(b: number): boolean;
|
|
385
|
+
toTwos(width: number): import("bn.js");
|
|
386
|
+
fromTwos(width: number): import("bn.js");
|
|
387
|
+
neg(): import("bn.js");
|
|
388
|
+
ineg(): import("bn.js");
|
|
389
|
+
abs(): import("bn.js");
|
|
390
|
+
iabs(): import("bn.js");
|
|
391
|
+
add(b: import("bn.js")): import("bn.js");
|
|
392
|
+
iadd(b: import("bn.js")): import("bn.js");
|
|
393
|
+
addn(b: number): import("bn.js");
|
|
394
|
+
iaddn(b: number): import("bn.js");
|
|
395
|
+
sub(b: import("bn.js")): import("bn.js");
|
|
396
|
+
isub(b: import("bn.js")): import("bn.js");
|
|
397
|
+
subn(b: number): import("bn.js");
|
|
398
|
+
isubn(b: number): import("bn.js");
|
|
399
|
+
mul(b: import("bn.js")): import("bn.js");
|
|
400
|
+
imul(b: import("bn.js")): import("bn.js");
|
|
401
|
+
muln(b: number): import("bn.js");
|
|
402
|
+
imuln(b: number): import("bn.js");
|
|
403
|
+
sqr(): import("bn.js");
|
|
404
|
+
isqr(): import("bn.js");
|
|
405
|
+
pow(b: import("bn.js")): import("bn.js");
|
|
406
|
+
div(b: import("bn.js")): import("bn.js");
|
|
407
|
+
divn(b: number): import("bn.js");
|
|
408
|
+
idivn(b: number): import("bn.js");
|
|
409
|
+
divmod(b: import("bn.js"), mode?: "div" | "mod", positive?: boolean): {
|
|
410
|
+
div: import("bn.js");
|
|
411
|
+
mod: import("bn.js");
|
|
412
|
+
};
|
|
413
|
+
mod(b: import("bn.js")): import("bn.js");
|
|
414
|
+
umod(b: import("bn.js")): import("bn.js");
|
|
415
|
+
modn(b: number): number;
|
|
416
|
+
modrn(b: number): number;
|
|
417
|
+
divRound(b: import("bn.js")): import("bn.js");
|
|
418
|
+
or(b: import("bn.js")): import("bn.js");
|
|
419
|
+
ior(b: import("bn.js")): import("bn.js");
|
|
420
|
+
uor(b: import("bn.js")): import("bn.js");
|
|
421
|
+
iuor(b: import("bn.js")): import("bn.js");
|
|
422
|
+
and(b: import("bn.js")): import("bn.js");
|
|
423
|
+
iand(b: import("bn.js")): import("bn.js");
|
|
424
|
+
uand(b: import("bn.js")): import("bn.js");
|
|
425
|
+
iuand(b: import("bn.js")): import("bn.js");
|
|
426
|
+
andln(b: number): import("bn.js");
|
|
427
|
+
xor(b: import("bn.js")): import("bn.js");
|
|
428
|
+
ixor(b: import("bn.js")): import("bn.js");
|
|
429
|
+
uxor(b: import("bn.js")): import("bn.js");
|
|
430
|
+
iuxor(b: import("bn.js")): import("bn.js");
|
|
431
|
+
setn(b: number, value: boolean | 0 | 1): import("bn.js");
|
|
432
|
+
shln(b: number): import("bn.js");
|
|
433
|
+
ishln(b: number): import("bn.js");
|
|
434
|
+
ushln(b: number): import("bn.js");
|
|
435
|
+
iushln(b: number): import("bn.js");
|
|
436
|
+
shrn(b: number): import("bn.js");
|
|
437
|
+
ishrn(b: number): import("bn.js");
|
|
438
|
+
ushrn(b: number): import("bn.js");
|
|
439
|
+
iushrn(b: number): import("bn.js");
|
|
440
|
+
testn(b: number): boolean;
|
|
441
|
+
maskn(b: number): import("bn.js");
|
|
442
|
+
imaskn(b: number): import("bn.js");
|
|
443
|
+
bincn(b: number): import("bn.js");
|
|
444
|
+
notn(w: number): import("bn.js");
|
|
445
|
+
inotn(w: number): import("bn.js");
|
|
446
|
+
gcd(b: import("bn.js")): import("bn.js");
|
|
447
|
+
egcd(b: import("bn.js")): {
|
|
448
|
+
a: import("bn.js");
|
|
449
|
+
b: import("bn.js");
|
|
450
|
+
gcd: import("bn.js");
|
|
451
|
+
};
|
|
452
|
+
invm(b: import("bn.js")): import("bn.js");
|
|
453
|
+
toRed(reductionContext: import("bn.js").ReductionContext): /*elided*/ any;
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
delegatedAmount: {
|
|
457
|
+
copy(dest: import("bn.js")): void;
|
|
458
|
+
clone(): import("bn.js");
|
|
459
|
+
toString(base?: number | "hex", length?: number): string;
|
|
460
|
+
toNumber(): number;
|
|
461
|
+
toJSON(): string;
|
|
462
|
+
toArray(endian?: import("bn.js").Endianness, length?: number): number[];
|
|
463
|
+
toArrayLike(ArrayType: typeof Buffer, endian?: import("bn.js").Endianness, length?: number): Buffer;
|
|
464
|
+
toArrayLike(ArrayType: any[], endian?: import("bn.js").Endianness, length?: number): any[];
|
|
465
|
+
toBuffer(endian?: import("bn.js").Endianness, length?: number): Buffer;
|
|
466
|
+
bitLength(): number;
|
|
467
|
+
zeroBits(): number;
|
|
468
|
+
byteLength(): number;
|
|
469
|
+
isNeg(): boolean;
|
|
470
|
+
isEven(): boolean;
|
|
471
|
+
isOdd(): boolean;
|
|
472
|
+
isZero(): boolean;
|
|
473
|
+
cmp(b: import("bn.js")): -1 | 0 | 1;
|
|
474
|
+
ucmp(b: import("bn.js")): -1 | 0 | 1;
|
|
475
|
+
cmpn(b: number): -1 | 0 | 1;
|
|
476
|
+
lt(b: import("bn.js")): boolean;
|
|
477
|
+
ltn(b: number): boolean;
|
|
478
|
+
lte(b: import("bn.js")): boolean;
|
|
479
|
+
lten(b: number): boolean;
|
|
480
|
+
gt(b: import("bn.js")): boolean;
|
|
481
|
+
gtn(b: number): boolean;
|
|
482
|
+
gte(b: import("bn.js")): boolean;
|
|
483
|
+
gten(b: number): boolean;
|
|
484
|
+
eq(b: import("bn.js")): boolean;
|
|
485
|
+
eqn(b: number): boolean;
|
|
486
|
+
toTwos(width: number): import("bn.js");
|
|
487
|
+
fromTwos(width: number): import("bn.js");
|
|
488
|
+
neg(): import("bn.js");
|
|
489
|
+
ineg(): import("bn.js");
|
|
490
|
+
abs(): import("bn.js");
|
|
491
|
+
iabs(): import("bn.js");
|
|
492
|
+
add(b: import("bn.js")): import("bn.js");
|
|
493
|
+
iadd(b: import("bn.js")): import("bn.js");
|
|
494
|
+
addn(b: number): import("bn.js");
|
|
495
|
+
iaddn(b: number): import("bn.js");
|
|
496
|
+
sub(b: import("bn.js")): import("bn.js");
|
|
497
|
+
isub(b: import("bn.js")): import("bn.js");
|
|
498
|
+
subn(b: number): import("bn.js");
|
|
499
|
+
isubn(b: number): import("bn.js");
|
|
500
|
+
mul(b: import("bn.js")): import("bn.js");
|
|
501
|
+
imul(b: import("bn.js")): import("bn.js");
|
|
502
|
+
muln(b: number): import("bn.js");
|
|
503
|
+
imuln(b: number): import("bn.js");
|
|
504
|
+
sqr(): import("bn.js");
|
|
505
|
+
isqr(): import("bn.js");
|
|
506
|
+
pow(b: import("bn.js")): import("bn.js");
|
|
507
|
+
div(b: import("bn.js")): import("bn.js");
|
|
508
|
+
divn(b: number): import("bn.js");
|
|
509
|
+
idivn(b: number): import("bn.js");
|
|
510
|
+
divmod(b: import("bn.js"), mode?: "div" | "mod", positive?: boolean): {
|
|
511
|
+
div: import("bn.js");
|
|
512
|
+
mod: import("bn.js");
|
|
513
|
+
};
|
|
514
|
+
mod(b: import("bn.js")): import("bn.js");
|
|
515
|
+
umod(b: import("bn.js")): import("bn.js");
|
|
516
|
+
modn(b: number): number;
|
|
517
|
+
modrn(b: number): number;
|
|
518
|
+
divRound(b: import("bn.js")): import("bn.js");
|
|
519
|
+
or(b: import("bn.js")): import("bn.js");
|
|
520
|
+
ior(b: import("bn.js")): import("bn.js");
|
|
521
|
+
uor(b: import("bn.js")): import("bn.js");
|
|
522
|
+
iuor(b: import("bn.js")): import("bn.js");
|
|
523
|
+
and(b: import("bn.js")): import("bn.js");
|
|
524
|
+
iand(b: import("bn.js")): import("bn.js");
|
|
525
|
+
uand(b: import("bn.js")): import("bn.js");
|
|
526
|
+
iuand(b: import("bn.js")): import("bn.js");
|
|
527
|
+
andln(b: number): import("bn.js");
|
|
528
|
+
xor(b: import("bn.js")): import("bn.js");
|
|
529
|
+
ixor(b: import("bn.js")): import("bn.js");
|
|
530
|
+
uxor(b: import("bn.js")): import("bn.js");
|
|
531
|
+
iuxor(b: import("bn.js")): import("bn.js");
|
|
532
|
+
setn(b: number, value: boolean | 0 | 1): import("bn.js");
|
|
533
|
+
shln(b: number): import("bn.js");
|
|
534
|
+
ishln(b: number): import("bn.js");
|
|
535
|
+
ushln(b: number): import("bn.js");
|
|
536
|
+
iushln(b: number): import("bn.js");
|
|
537
|
+
shrn(b: number): import("bn.js");
|
|
538
|
+
ishrn(b: number): import("bn.js");
|
|
539
|
+
ushrn(b: number): import("bn.js");
|
|
540
|
+
iushrn(b: number): import("bn.js");
|
|
541
|
+
testn(b: number): boolean;
|
|
542
|
+
maskn(b: number): import("bn.js");
|
|
543
|
+
imaskn(b: number): import("bn.js");
|
|
544
|
+
bincn(b: number): import("bn.js");
|
|
545
|
+
notn(w: number): import("bn.js");
|
|
546
|
+
inotn(w: number): import("bn.js");
|
|
547
|
+
gcd(b: import("bn.js")): import("bn.js");
|
|
548
|
+
egcd(b: import("bn.js")): {
|
|
549
|
+
a: import("bn.js");
|
|
550
|
+
b: import("bn.js");
|
|
551
|
+
gcd: import("bn.js");
|
|
552
|
+
};
|
|
553
|
+
invm(b: import("bn.js")): import("bn.js");
|
|
554
|
+
toRed(reductionContext: import("bn.js").ReductionContext): {
|
|
555
|
+
fromRed(): import("bn.js");
|
|
556
|
+
redAdd(b: /*elided*/ any): /*elided*/ any;
|
|
557
|
+
redIAdd(b: /*elided*/ any): /*elided*/ any;
|
|
558
|
+
redSub(b: /*elided*/ any): /*elided*/ any;
|
|
559
|
+
redISub(b: /*elided*/ any): /*elided*/ any;
|
|
560
|
+
redShl(num: number): /*elided*/ any;
|
|
561
|
+
redMul(b: /*elided*/ any): /*elided*/ any;
|
|
562
|
+
redIMul(b: /*elided*/ any): /*elided*/ any;
|
|
563
|
+
redSqr(): /*elided*/ any;
|
|
564
|
+
redISqr(): /*elided*/ any;
|
|
565
|
+
redSqrt(): /*elided*/ any;
|
|
566
|
+
redInvm(): /*elided*/ any;
|
|
567
|
+
redNeg(): /*elided*/ any;
|
|
568
|
+
redPow(b: import("bn.js")): /*elided*/ any;
|
|
569
|
+
copy(dest: import("bn.js")): void;
|
|
570
|
+
clone(): import("bn.js");
|
|
571
|
+
toString(base?: number | "hex", length?: number): string;
|
|
572
|
+
toNumber(): number;
|
|
573
|
+
toJSON(): string;
|
|
574
|
+
toArray(endian?: import("bn.js").Endianness, length?: number): number[];
|
|
575
|
+
toArrayLike(ArrayType: typeof Buffer, endian?: import("bn.js").Endianness, length?: number): Buffer;
|
|
576
|
+
toArrayLike(ArrayType: any[], endian?: import("bn.js").Endianness, length?: number): any[];
|
|
577
|
+
toBuffer(endian?: import("bn.js").Endianness, length?: number): Buffer;
|
|
578
|
+
bitLength(): number;
|
|
579
|
+
zeroBits(): number;
|
|
580
|
+
byteLength(): number;
|
|
581
|
+
isNeg(): boolean;
|
|
582
|
+
isEven(): boolean;
|
|
583
|
+
isOdd(): boolean;
|
|
584
|
+
isZero(): boolean;
|
|
585
|
+
cmp(b: import("bn.js")): -1 | 0 | 1;
|
|
586
|
+
ucmp(b: import("bn.js")): -1 | 0 | 1;
|
|
587
|
+
cmpn(b: number): -1 | 0 | 1;
|
|
588
|
+
lt(b: import("bn.js")): boolean;
|
|
589
|
+
ltn(b: number): boolean;
|
|
590
|
+
lte(b: import("bn.js")): boolean;
|
|
591
|
+
lten(b: number): boolean;
|
|
592
|
+
gt(b: import("bn.js")): boolean;
|
|
593
|
+
gtn(b: number): boolean;
|
|
594
|
+
gte(b: import("bn.js")): boolean;
|
|
595
|
+
gten(b: number): boolean;
|
|
596
|
+
eq(b: import("bn.js")): boolean;
|
|
597
|
+
eqn(b: number): boolean;
|
|
598
|
+
toTwos(width: number): import("bn.js");
|
|
599
|
+
fromTwos(width: number): import("bn.js");
|
|
600
|
+
neg(): import("bn.js");
|
|
601
|
+
ineg(): import("bn.js");
|
|
602
|
+
abs(): import("bn.js");
|
|
603
|
+
iabs(): import("bn.js");
|
|
604
|
+
add(b: import("bn.js")): import("bn.js");
|
|
605
|
+
iadd(b: import("bn.js")): import("bn.js");
|
|
606
|
+
addn(b: number): import("bn.js");
|
|
607
|
+
iaddn(b: number): import("bn.js");
|
|
608
|
+
sub(b: import("bn.js")): import("bn.js");
|
|
609
|
+
isub(b: import("bn.js")): import("bn.js");
|
|
610
|
+
subn(b: number): import("bn.js");
|
|
611
|
+
isubn(b: number): import("bn.js");
|
|
612
|
+
mul(b: import("bn.js")): import("bn.js");
|
|
613
|
+
imul(b: import("bn.js")): import("bn.js");
|
|
614
|
+
muln(b: number): import("bn.js");
|
|
615
|
+
imuln(b: number): import("bn.js");
|
|
616
|
+
sqr(): import("bn.js");
|
|
617
|
+
isqr(): import("bn.js");
|
|
618
|
+
pow(b: import("bn.js")): import("bn.js");
|
|
619
|
+
div(b: import("bn.js")): import("bn.js");
|
|
620
|
+
divn(b: number): import("bn.js");
|
|
621
|
+
idivn(b: number): import("bn.js");
|
|
622
|
+
divmod(b: import("bn.js"), mode?: "div" | "mod", positive?: boolean): {
|
|
623
|
+
div: import("bn.js");
|
|
624
|
+
mod: import("bn.js");
|
|
625
|
+
};
|
|
626
|
+
mod(b: import("bn.js")): import("bn.js");
|
|
627
|
+
umod(b: import("bn.js")): import("bn.js");
|
|
628
|
+
modn(b: number): number;
|
|
629
|
+
modrn(b: number): number;
|
|
630
|
+
divRound(b: import("bn.js")): import("bn.js");
|
|
631
|
+
or(b: import("bn.js")): import("bn.js");
|
|
632
|
+
ior(b: import("bn.js")): import("bn.js");
|
|
633
|
+
uor(b: import("bn.js")): import("bn.js");
|
|
634
|
+
iuor(b: import("bn.js")): import("bn.js");
|
|
635
|
+
and(b: import("bn.js")): import("bn.js");
|
|
636
|
+
iand(b: import("bn.js")): import("bn.js");
|
|
637
|
+
uand(b: import("bn.js")): import("bn.js");
|
|
638
|
+
iuand(b: import("bn.js")): import("bn.js");
|
|
639
|
+
andln(b: number): import("bn.js");
|
|
640
|
+
xor(b: import("bn.js")): import("bn.js");
|
|
641
|
+
ixor(b: import("bn.js")): import("bn.js");
|
|
642
|
+
uxor(b: import("bn.js")): import("bn.js");
|
|
643
|
+
iuxor(b: import("bn.js")): import("bn.js");
|
|
644
|
+
setn(b: number, value: boolean | 0 | 1): import("bn.js");
|
|
645
|
+
shln(b: number): import("bn.js");
|
|
646
|
+
ishln(b: number): import("bn.js");
|
|
647
|
+
ushln(b: number): import("bn.js");
|
|
648
|
+
iushln(b: number): import("bn.js");
|
|
649
|
+
shrn(b: number): import("bn.js");
|
|
650
|
+
ishrn(b: number): import("bn.js");
|
|
651
|
+
ushrn(b: number): import("bn.js");
|
|
652
|
+
iushrn(b: number): import("bn.js");
|
|
653
|
+
testn(b: number): boolean;
|
|
654
|
+
maskn(b: number): import("bn.js");
|
|
655
|
+
imaskn(b: number): import("bn.js");
|
|
656
|
+
bincn(b: number): import("bn.js");
|
|
657
|
+
notn(w: number): import("bn.js");
|
|
658
|
+
inotn(w: number): import("bn.js");
|
|
659
|
+
gcd(b: import("bn.js")): import("bn.js");
|
|
660
|
+
egcd(b: import("bn.js")): {
|
|
661
|
+
a: import("bn.js");
|
|
662
|
+
b: import("bn.js");
|
|
663
|
+
gcd: import("bn.js");
|
|
664
|
+
};
|
|
665
|
+
invm(b: import("bn.js")): import("bn.js");
|
|
666
|
+
toRed(reductionContext: import("bn.js").ReductionContext): /*elided*/ any;
|
|
667
|
+
};
|
|
668
|
+
};
|
|
669
|
+
closeAuthorityOption: number;
|
|
670
|
+
closeAuthority: PublicKey;
|
|
671
|
+
};
|
|
672
|
+
}[]>;
|
|
673
|
+
/**
|
|
674
|
+
* Builds and sends a transaction with configurable compute budget.
|
|
675
|
+
*/
|
|
676
|
+
export declare function buildAndSendTx(innerSimpleV0Transaction: any[], options?: {
|
|
677
|
+
skipPreflight?: boolean;
|
|
678
|
+
maxRetries?: number;
|
|
679
|
+
}, computeUnits?: number, priorityFeeMicroLamports?: number): Promise<string[] | undefined>;
|
|
680
|
+
/**
|
|
681
|
+
* Sleeps for a specified amount of time.
|
|
682
|
+
*/
|
|
683
|
+
export declare function sleepTime(ms: number): Promise<void>;
|
|
684
|
+
/**
|
|
685
|
+
* Loads or creates a Solana keypair from a file.
|
|
686
|
+
*/
|
|
687
|
+
export declare function loadOrCreateKeypair_wallet(filepath: string): Promise<Keypair>;
|
|
688
|
+
export declare function isBlockhashExpired(lastValidBlockHeight: number): Promise<boolean>;
|
|
689
|
+
export declare const sleep: (ms: number) => Promise<void>;
|
|
690
|
+
/**
|
|
691
|
+
* Polls transaction status until confirmed or blockhash expires.
|
|
692
|
+
*/
|
|
693
|
+
export declare function checkTx(txId: string): Promise<boolean>;
|
|
694
|
+
/**
|
|
695
|
+
* Gets the decimals for a given SPL token mint.
|
|
696
|
+
*/
|
|
697
|
+
export declare function getDecimals(mintAddress: PublicKey): Promise<number>;
|
|
698
|
+
//# sourceMappingURL=util.d.ts.map
|