@solana/web3.js 2.0.0-preview.3.20240729084518.85edaed8d74048657046164bdb8124db04f5964a → 2.0.0-preview.3.20240729170031.d81069ab323c9c68c19e74dfdea125160cf1c27b
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.development.js +14 -14
- package/dist/index.development.js.map +1 -1
- package/dist/index.production.min.js +115 -115
- package/package.json +18 -18
@@ -3950,7 +3950,7 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
3950
3950
|
...config.headers ? normalizeHeaders2(config.headers) : void 0,
|
3951
3951
|
...{
|
3952
3952
|
// Keep these headers lowercase so they will override any user-supplied headers above.
|
3953
|
-
"solana-client": (_a = `js/${"2.0.0-preview.3.
|
3953
|
+
"solana-client": (_a = `js/${"2.0.0-preview.3.20240729170031.d81069ab323c9c68c19e74dfdea125160cf1c27b"}`) != null ? _a : "UNKNOWN"
|
3954
3954
|
}
|
3955
3955
|
}
|
3956
3956
|
}),
|
@@ -4930,26 +4930,26 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
4930
4930
|
assertIsLamports(putativeLamports);
|
4931
4931
|
return putativeLamports;
|
4932
4932
|
}
|
4933
|
-
function
|
4934
|
-
return
|
4933
|
+
function getDefaultLamportsEncoder() {
|
4934
|
+
return getLamportsEncoder(getMemoizedU64Encoder());
|
4935
4935
|
}
|
4936
|
-
function
|
4936
|
+
function getLamportsEncoder(innerEncoder) {
|
4937
4937
|
return innerEncoder;
|
4938
4938
|
}
|
4939
|
-
function
|
4940
|
-
return
|
4939
|
+
function getDefaultLamportsDecoder() {
|
4940
|
+
return getLamportsDecoder(getMemoizedU64Decoder());
|
4941
4941
|
}
|
4942
|
-
function
|
4942
|
+
function getLamportsDecoder(innerDecoder) {
|
4943
4943
|
return transformDecoder(
|
4944
4944
|
innerDecoder,
|
4945
4945
|
(value) => lamports(typeof value === "bigint" ? value : BigInt(value))
|
4946
4946
|
);
|
4947
4947
|
}
|
4948
|
-
function
|
4949
|
-
return combineCodec(
|
4948
|
+
function getDefaultLamportsCodec() {
|
4949
|
+
return combineCodec(getDefaultLamportsEncoder(), getDefaultLamportsDecoder());
|
4950
4950
|
}
|
4951
|
-
function
|
4952
|
-
return combineCodec(
|
4951
|
+
function getLamportsCodec(innerCodec) {
|
4952
|
+
return combineCodec(getLamportsEncoder(innerCodec), getLamportsDecoder(innerCodec));
|
4953
4953
|
}
|
4954
4954
|
function isStringifiedBigInt(putativeBigInt) {
|
4955
4955
|
try {
|
@@ -7321,6 +7321,9 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
7321
7321
|
exports.getDataEnumCodec = getDataEnumCodec;
|
7322
7322
|
exports.getDataEnumDecoder = getDataEnumDecoder;
|
7323
7323
|
exports.getDataEnumEncoder = getDataEnumEncoder;
|
7324
|
+
exports.getDefaultLamportsCodec = getDefaultLamportsCodec;
|
7325
|
+
exports.getDefaultLamportsDecoder = getDefaultLamportsDecoder;
|
7326
|
+
exports.getDefaultLamportsEncoder = getDefaultLamportsEncoder;
|
7324
7327
|
exports.getDiscriminatedUnionCodec = getDiscriminatedUnionCodec;
|
7325
7328
|
exports.getDiscriminatedUnionDecoder = getDiscriminatedUnionDecoder;
|
7326
7329
|
exports.getDiscriminatedUnionEncoder = getDiscriminatedUnionEncoder;
|
@@ -7356,11 +7359,8 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
7356
7359
|
exports.getI8Decoder = getI8Decoder;
|
7357
7360
|
exports.getI8Encoder = getI8Encoder;
|
7358
7361
|
exports.getLamportsCodec = getLamportsCodec;
|
7359
|
-
exports.getLamportsCodecFromCodec = getLamportsCodecFromCodec;
|
7360
7362
|
exports.getLamportsDecoder = getLamportsDecoder;
|
7361
|
-
exports.getLamportsDecoderFromDecoder = getLamportsDecoderFromDecoder;
|
7362
7363
|
exports.getLamportsEncoder = getLamportsEncoder;
|
7363
|
-
exports.getLamportsEncoderFromEncoder = getLamportsEncoderFromEncoder;
|
7364
7364
|
exports.getMapCodec = getMapCodec;
|
7365
7365
|
exports.getMapDecoder = getMapDecoder;
|
7366
7366
|
exports.getMapEncoder = getMapEncoder;
|