@ignitionfi/fogo-stake-pool 1.0.2 → 1.1.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/codecs.d.ts +10 -0
- package/dist/index.browser.cjs.js +369 -208
- package/dist/index.browser.cjs.js.map +1 -1
- package/dist/index.browser.esm.js +369 -208
- package/dist/index.browser.esm.js.map +1 -1
- package/dist/index.cjs.js +369 -208
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +9 -7
- package/dist/index.esm.js +369 -208
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +403 -242
- package/dist/index.iife.js.map +1 -1
- package/dist/index.iife.min.js +1 -1
- package/dist/index.iife.min.js.map +1 -1
- package/dist/instructions.d.ts +31 -22
- package/dist/utils/stake.d.ts +19 -2
- package/package.json +1 -1
- package/src/codecs.ts +59 -6
- package/src/constants.ts +1 -1
- package/src/index.ts +79 -26
- package/src/instructions.ts +140 -67
- package/src/utils/stake.ts +133 -75
package/dist/codecs.d.ts
CHANGED
|
@@ -8,7 +8,17 @@ export interface Layout<T> {
|
|
|
8
8
|
getSpan: (b: Buffer, offset?: number) => number;
|
|
9
9
|
replicate: (name: string) => this;
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* Creates a u64 layout for data decoding (account layouts).
|
|
13
|
+
* Used in StakePoolLayout, ValidatorListLayout, etc.
|
|
14
|
+
*/
|
|
11
15
|
export declare function u64(property?: string): Layout<BN>;
|
|
16
|
+
/**
|
|
17
|
+
* Creates a u64 layout for instruction encoding.
|
|
18
|
+
* Properly handles BN values larger than Number.MAX_SAFE_INTEGER.
|
|
19
|
+
* Compatible with @solana/buffer-layout.struct().
|
|
20
|
+
*/
|
|
21
|
+
export declare function u64Instruction(property?: string): any;
|
|
12
22
|
export declare function publicKey(property?: string): Layout<PublicKey>;
|
|
13
23
|
export declare function option<T>(layout: Layout<T>, property?: string): Layout<T | null>;
|
|
14
24
|
export declare function bool(property?: string): Layout<boolean>;
|