@solana/web3.js 1.47.3 → 1.47.4
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/README.md +4 -11
- package/lib/index.browser.cjs.js +7 -1
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +7 -1
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +7 -1
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +6 -0
- package/lib/index.esm.js +7 -1
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +7 -1
- 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 +10031 -0
- package/lib/index.native.js.map +1 -0
- package/package.json +3 -1
- package/src/__forks__/react-native/fetch-impl.ts +4 -0
- package/src/connection.ts +18 -2
- package/src/util/__forks__/react-native/url-impl.ts +2 -0
- package/src/util/{url.ts → makeWebsocketUrl.ts} +2 -0
- package/src/util/url-impl.ts +2 -0
package/lib/index.d.ts
CHANGED
|
@@ -885,11 +885,17 @@ declare module '@solana/web3.js' {
|
|
|
885
885
|
/** Optional rent epoch info for account */
|
|
886
886
|
rentEpoch?: number;
|
|
887
887
|
};
|
|
888
|
+
export type TransactionReturnDataEncoding = 'base64';
|
|
889
|
+
export type TransactionReturnData = {
|
|
890
|
+
programId: string;
|
|
891
|
+
data: [string, TransactionReturnDataEncoding];
|
|
892
|
+
};
|
|
888
893
|
export type SimulatedTransactionResponse = {
|
|
889
894
|
err: TransactionError | string | null;
|
|
890
895
|
logs: Array<string> | null;
|
|
891
896
|
accounts?: (SimulatedTransactionAccountInfo | null)[] | null;
|
|
892
897
|
unitsConsumed?: number;
|
|
898
|
+
returnData?: TransactionReturnData | null;
|
|
893
899
|
};
|
|
894
900
|
export type ParsedInnerInstruction = {
|
|
895
901
|
index: number;
|
package/lib/index.esm.js
CHANGED
|
@@ -4441,6 +4441,8 @@ var fastStableStringify = function(val) {
|
|
|
4441
4441
|
|
|
4442
4442
|
var fastStableStringify$1 = fastStableStringify;
|
|
4443
4443
|
|
|
4444
|
+
const URL = globalThis.URL;
|
|
4445
|
+
|
|
4444
4446
|
const DESTROY_TIMEOUT_MS = 5000;
|
|
4445
4447
|
class AgentManager {
|
|
4446
4448
|
static _newAgent(useHttps) {
|
|
@@ -4890,7 +4892,11 @@ const SimulatedTransactionResponseStruct = jsonRpcResultAndContext(type({
|
|
|
4890
4892
|
data: array(string()),
|
|
4891
4893
|
rentEpoch: optional(number())
|
|
4892
4894
|
}))))),
|
|
4893
|
-
unitsConsumed: optional(number())
|
|
4895
|
+
unitsConsumed: optional(number()),
|
|
4896
|
+
returnData: optional(nullable(type({
|
|
4897
|
+
programId: string(),
|
|
4898
|
+
data: tuple([string(), literal('base64')])
|
|
4899
|
+
})))
|
|
4894
4900
|
}));
|
|
4895
4901
|
|
|
4896
4902
|
/**
|