@solana/web3.js 1.72.0 → 1.73.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/lib/index.browser.cjs.js +4 -2
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +4 -2
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +4 -2
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +9 -0
- package/lib/index.esm.js +4 -2
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +4 -2
- package/lib/index.iife.js.map +1 -1
- package/lib/index.iife.min.js +1 -1
- package/lib/index.iife.min.js.map +1 -1
- package/lib/index.native.js +4 -2
- package/lib/index.native.js.map +1 -1
- package/package.json +5 -5
- package/src/connection.ts +11 -0
package/lib/index.d.ts
CHANGED
|
@@ -2322,6 +2322,8 @@ declare module '@solana/web3.js' {
|
|
|
2322
2322
|
amount: number;
|
|
2323
2323
|
/** post balance of the account in lamports */
|
|
2324
2324
|
postBalance: number;
|
|
2325
|
+
/** vote account commission when the reward was credited */
|
|
2326
|
+
commission?: number | null;
|
|
2325
2327
|
};
|
|
2326
2328
|
type InflationRate = {
|
|
2327
2329
|
/** total inflation */
|
|
@@ -2651,6 +2653,8 @@ declare module '@solana/web3.js' {
|
|
|
2651
2653
|
postBalance: number | null;
|
|
2652
2654
|
/** Type of reward received */
|
|
2653
2655
|
rewardType: string | null;
|
|
2656
|
+
/** Vote account commission when the reward was credited, only present for voting and staking rewards */
|
|
2657
|
+
commission?: number | null;
|
|
2654
2658
|
}>;
|
|
2655
2659
|
/** The unix timestamp of when the block was processed */
|
|
2656
2660
|
blockTime: number | null;
|
|
@@ -2692,6 +2696,8 @@ declare module '@solana/web3.js' {
|
|
|
2692
2696
|
postBalance: number | null;
|
|
2693
2697
|
/** Type of reward received */
|
|
2694
2698
|
rewardType: string | null;
|
|
2699
|
+
/** Vote account commission when the reward was credited, only present for voting and staking rewards */
|
|
2700
|
+
commission?: number | null;
|
|
2695
2701
|
}>;
|
|
2696
2702
|
/** The unix timestamp of when the block was processed */
|
|
2697
2703
|
blockTime: number | null;
|
|
@@ -2754,6 +2760,8 @@ declare module '@solana/web3.js' {
|
|
|
2754
2760
|
postBalance: number | null;
|
|
2755
2761
|
/** Type of reward received */
|
|
2756
2762
|
rewardType: string | null;
|
|
2763
|
+
/** Vote account commission when the reward was credited, only present for voting and staking rewards */
|
|
2764
|
+
commission?: number | null;
|
|
2757
2765
|
}>;
|
|
2758
2766
|
/** The unix timestamp of when the block was processed */
|
|
2759
2767
|
blockTime: number | null;
|
|
@@ -2806,6 +2814,7 @@ declare module '@solana/web3.js' {
|
|
|
2806
2814
|
lamports: number;
|
|
2807
2815
|
postBalance: number | null;
|
|
2808
2816
|
rewardType: string | null;
|
|
2817
|
+
commission?: number | null;
|
|
2809
2818
|
}>;
|
|
2810
2819
|
/** The unix timestamp of when the block was processed */
|
|
2811
2820
|
blockTime: number | null;
|
package/lib/index.esm.js
CHANGED
|
@@ -6213,7 +6213,8 @@ const GetInflationRewardResult = jsonRpcResult(array(nullable(type({
|
|
|
6213
6213
|
epoch: number(),
|
|
6214
6214
|
effectiveSlot: number(),
|
|
6215
6215
|
amount: number(),
|
|
6216
|
-
postBalance: number()
|
|
6216
|
+
postBalance: number(),
|
|
6217
|
+
commission: optional(nullable(number()))
|
|
6217
6218
|
}))));
|
|
6218
6219
|
|
|
6219
6220
|
/**
|
|
@@ -6918,7 +6919,8 @@ const RewardsResult = type({
|
|
|
6918
6919
|
pubkey: string(),
|
|
6919
6920
|
lamports: number(),
|
|
6920
6921
|
postBalance: nullable(number()),
|
|
6921
|
-
rewardType: nullable(string())
|
|
6922
|
+
rewardType: nullable(string()),
|
|
6923
|
+
commission: optional(nullable(number()))
|
|
6922
6924
|
});
|
|
6923
6925
|
/**
|
|
6924
6926
|
* Expected JSON RPC response for the "getBlock" message
|