@solana/kit 5.2.0-canary-20260107162407 → 5.3.0-canary-20260107190742
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.browser.cjs +12 -0
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.mjs +12 -1
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.development.js +13 -1
- package/dist/index.development.js.map +1 -1
- package/dist/index.native.mjs +12 -1
- package/dist/index.native.mjs.map +1 -1
- package/dist/index.node.cjs +12 -0
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.mjs +12 -1
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.production.min.js +5 -4
- package/dist/types/get-minimum-balance-for-rent-exemption.d.ts +15 -0
- package/dist/types/get-minimum-balance-for-rent-exemption.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +23 -23
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Lamports } from '@solana/rpc-types';
|
|
2
|
+
/**
|
|
3
|
+
* Calculates the minimum {@link Lamports | lamports} required to make an account rent exempt for a
|
|
4
|
+
* given data size, without performing an RPC call.
|
|
5
|
+
*
|
|
6
|
+
* Values are sourced from the on-chain rent parameters in the Solana runtime:
|
|
7
|
+
* https://github.com/anza-xyz/solana-sdk/blob/c07f692e41d757057c8700211a9300cdcd6d33b1/rent/src/lib.rs#L93-L97
|
|
8
|
+
*
|
|
9
|
+
* Note that this logic may change, or be incorrect depending on the cluster you are connected to.
|
|
10
|
+
* You can always use the RPC method `getMinimumBalanceForRentExemption` to get the current value.
|
|
11
|
+
*
|
|
12
|
+
* @param space The number of bytes of account data.
|
|
13
|
+
*/
|
|
14
|
+
export declare function getMinimumBalanceForRentExemption(space: bigint): Lamports;
|
|
15
|
+
//# sourceMappingURL=get-minimum-balance-for-rent-exemption.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-minimum-balance-for-rent-exemption.d.ts","sourceRoot":"","sources":["../../src/get-minimum-balance-for-rent-exemption.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD;;;;;;;;;;;GAWG;AACH,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ,CAWzE"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export * from '@solana/transactions';
|
|
|
27
27
|
export * from './airdrop';
|
|
28
28
|
export * from './decompile-transaction-message-fetching-lookup-tables';
|
|
29
29
|
export * from './fetch-lookup-tables';
|
|
30
|
+
export * from './get-minimum-balance-for-rent-exemption';
|
|
30
31
|
export * from './send-and-confirm-durable-nonce-transaction';
|
|
31
32
|
export * from './send-and-confirm-transaction';
|
|
32
33
|
export * from './send-transaction-without-confirming';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,cAAc,CAAC;AAC7B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,wDAAwD,CAAC;AACvE,cAAc,uBAAuB,CAAC;AACtC,cAAc,8CAA8C,CAAC;AAC7D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uCAAuC,CAAC;AAEtD,YAAY,EACR,UAAU,EACV,qBAAqB,EACrB,WAAW,EACX,eAAe,EACf,sBAAsB,GACzB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,cAAc,CAAC;AAC7B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,wDAAwD,CAAC;AACvE,cAAc,uBAAuB,CAAC;AACtC,cAAc,0CAA0C,CAAC;AACzD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uCAAuC,CAAC;AAEtD,YAAY,EACR,UAAU,EACV,qBAAqB,EACrB,WAAW,EACX,eAAe,EACf,sBAAsB,GACzB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solana/kit",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0-canary-20260107190742",
|
|
4
4
|
"description": "Solana Javascript API",
|
|
5
5
|
"homepage": "https://www.solanakit.com",
|
|
6
6
|
"exports": {
|
|
@@ -58,28 +58,28 @@
|
|
|
58
58
|
"maintained node versions"
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@solana/accounts": "5.
|
|
62
|
-
"@solana/addresses": "5.
|
|
63
|
-
"@solana/errors": "5.
|
|
64
|
-
"@solana/codecs": "5.
|
|
65
|
-
"@solana/functional": "5.
|
|
66
|
-
"@solana/instruction-plans": "5.
|
|
67
|
-
"@solana/
|
|
68
|
-
"@solana/
|
|
69
|
-
"@solana/
|
|
70
|
-
"@solana/
|
|
71
|
-
"@solana/
|
|
72
|
-
"@solana/
|
|
73
|
-
"@solana/rpc-
|
|
74
|
-
"@solana/rpc-
|
|
75
|
-
"@solana/rpc-
|
|
76
|
-
"@solana/
|
|
77
|
-
"@solana/rpc-
|
|
78
|
-
"@solana/
|
|
79
|
-
"@solana/
|
|
80
|
-
"@solana/
|
|
81
|
-
"@solana/transaction-messages": "5.
|
|
82
|
-
"@solana/transactions": "5.
|
|
61
|
+
"@solana/accounts": "5.3.0-canary-20260107190742",
|
|
62
|
+
"@solana/addresses": "5.3.0-canary-20260107190742",
|
|
63
|
+
"@solana/errors": "5.3.0-canary-20260107190742",
|
|
64
|
+
"@solana/codecs": "5.3.0-canary-20260107190742",
|
|
65
|
+
"@solana/functional": "5.3.0-canary-20260107190742",
|
|
66
|
+
"@solana/instruction-plans": "5.3.0-canary-20260107190742",
|
|
67
|
+
"@solana/offchain-messages": "5.3.0-canary-20260107190742",
|
|
68
|
+
"@solana/instructions": "5.3.0-canary-20260107190742",
|
|
69
|
+
"@solana/plugin-core": "5.3.0-canary-20260107190742",
|
|
70
|
+
"@solana/keys": "5.3.0-canary-20260107190742",
|
|
71
|
+
"@solana/rpc": "5.3.0-canary-20260107190742",
|
|
72
|
+
"@solana/programs": "5.3.0-canary-20260107190742",
|
|
73
|
+
"@solana/rpc-parsed-types": "5.3.0-canary-20260107190742",
|
|
74
|
+
"@solana/rpc-api": "5.3.0-canary-20260107190742",
|
|
75
|
+
"@solana/rpc-spec-types": "5.3.0-canary-20260107190742",
|
|
76
|
+
"@solana/rpc-subscriptions": "5.3.0-canary-20260107190742",
|
|
77
|
+
"@solana/rpc-types": "5.3.0-canary-20260107190742",
|
|
78
|
+
"@solana/signers": "5.3.0-canary-20260107190742",
|
|
79
|
+
"@solana/sysvars": "5.3.0-canary-20260107190742",
|
|
80
|
+
"@solana/transaction-confirmation": "5.3.0-canary-20260107190742",
|
|
81
|
+
"@solana/transaction-messages": "5.3.0-canary-20260107190742",
|
|
82
|
+
"@solana/transactions": "5.3.0-canary-20260107190742"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
85
|
"typescript": ">=5.9.3"
|