starknet 10.7.6 → 10.8.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/CHANGELOG.md +10 -0
- package/dist/index.d.ts +111 -103
- package/dist/index.global.js +34 -31
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +34 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +33 -19
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.global.js
CHANGED
|
@@ -91,7 +91,7 @@ var starknet = (() => {
|
|
|
91
91
|
ETransactionExecutionStatus: () => ETransactionExecutionStatus3,
|
|
92
92
|
ETransactionStatus: () => ETransactionStatus3,
|
|
93
93
|
ETransactionVersion: () => ETransactionVersion5,
|
|
94
|
-
ETransactionVersion2: () =>
|
|
94
|
+
ETransactionVersion2: () => ETransactionVersion22,
|
|
95
95
|
ETransactionVersion3: () => ETransactionVersion33,
|
|
96
96
|
ETxnResponseFlag: () => ETxnResponseFlag2,
|
|
97
97
|
EntryPointType: () => EntryPointType,
|
|
@@ -116,11 +116,12 @@ var starknet = (() => {
|
|
|
116
116
|
RPC: () => api_exports3,
|
|
117
117
|
RPC0102: () => rpc_0_10_2_exports,
|
|
118
118
|
RPC0103: () => rpc_0_10_3_exports,
|
|
119
|
+
RPC0104: () => rpc_0_10_4_exports,
|
|
119
120
|
RPC09: () => rpc_0_9_0_exports,
|
|
120
121
|
RPCResponseParser: () => RPCResponseParser,
|
|
121
122
|
ReceiptTx: () => ReceiptTx,
|
|
122
123
|
ResponseParser: () => ResponseParser,
|
|
123
|
-
RpcChannel: () =>
|
|
124
|
+
RpcChannel: () => RpcChannel4,
|
|
124
125
|
RpcError: () => RpcError,
|
|
125
126
|
RpcProvider: () => RpcProvider,
|
|
126
127
|
Signer: () => Signer,
|
|
@@ -288,7 +289,6 @@ var starknet = (() => {
|
|
|
288
289
|
ETransactionStatus: () => ETransactionStatus2,
|
|
289
290
|
ETransactionType: () => ETransactionType2,
|
|
290
291
|
ETransactionVersion: () => ETransactionVersion4,
|
|
291
|
-
ETransactionVersion2: () => ETransactionVersion22,
|
|
292
292
|
ETransactionVersion3: () => ETransactionVersion32,
|
|
293
293
|
ETxnResponseFlag: () => ETxnResponseFlag,
|
|
294
294
|
EVENT_ABI_TYPE: () => EVENT_ABI_TYPE2,
|
|
@@ -299,7 +299,7 @@ var starknet = (() => {
|
|
|
299
299
|
PRICE_UNIT_WEI: () => PRICE_UNIT_WEI2,
|
|
300
300
|
PROVING_API: () => proving_api_exports,
|
|
301
301
|
Permission: () => Permission2,
|
|
302
|
-
|
|
302
|
+
RPCSPEC0104: () => esm_exports2,
|
|
303
303
|
RPCSPEC09: () => esm_exports,
|
|
304
304
|
STATE_MUTABILITY_EXTERNAL: () => STATE_MUTABILITY_EXTERNAL2,
|
|
305
305
|
STATE_MUTABILITY_VIEW: () => STATE_MUTABILITY_VIEW2,
|
|
@@ -567,7 +567,7 @@ var starknet = (() => {
|
|
|
567
567
|
// node_modules/@starknet-io/starknet-types-09/dist/esm/snip-29/index.js
|
|
568
568
|
var snip_29_exports = {};
|
|
569
569
|
|
|
570
|
-
// node_modules/@starknet-io/starknet-types-
|
|
570
|
+
// node_modules/@starknet-io/starknet-types-0104/dist/esm/index.js
|
|
571
571
|
var esm_exports2 = {};
|
|
572
572
|
__export(esm_exports2, {
|
|
573
573
|
ABI_TYPE_CONSTRUCTOR: () => ABI_TYPE_CONSTRUCTOR2,
|
|
@@ -590,7 +590,6 @@ var starknet = (() => {
|
|
|
590
590
|
ETransactionStatus: () => ETransactionStatus2,
|
|
591
591
|
ETransactionType: () => ETransactionType2,
|
|
592
592
|
ETransactionVersion: () => ETransactionVersion4,
|
|
593
|
-
ETransactionVersion2: () => ETransactionVersion22,
|
|
594
593
|
ETransactionVersion3: () => ETransactionVersion32,
|
|
595
594
|
ETxnResponseFlag: () => ETxnResponseFlag,
|
|
596
595
|
EVENT_ABI_TYPE: () => EVENT_ABI_TYPE2,
|
|
@@ -620,7 +619,7 @@ var starknet = (() => {
|
|
|
620
619
|
WALLET_API: () => wallet_api_exports2
|
|
621
620
|
});
|
|
622
621
|
|
|
623
|
-
// node_modules/@starknet-io/starknet-types-
|
|
622
|
+
// node_modules/@starknet-io/starknet-types-0104/dist/esm/api/index.js
|
|
624
623
|
var api_exports2 = {};
|
|
625
624
|
__export(api_exports2, {
|
|
626
625
|
ABI_TYPE_CONSTRUCTOR: () => ABI_TYPE_CONSTRUCTOR2,
|
|
@@ -642,7 +641,6 @@ var starknet = (() => {
|
|
|
642
641
|
ETransactionStatus: () => ETransactionStatus2,
|
|
643
642
|
ETransactionType: () => ETransactionType2,
|
|
644
643
|
ETransactionVersion: () => ETransactionVersion4,
|
|
645
|
-
ETransactionVersion2: () => ETransactionVersion22,
|
|
646
644
|
ETransactionVersion3: () => ETransactionVersion32,
|
|
647
645
|
ETxnResponseFlag: () => ETxnResponseFlag,
|
|
648
646
|
EVENT_ABI_TYPE: () => EVENT_ABI_TYPE2,
|
|
@@ -667,7 +665,7 @@ var starknet = (() => {
|
|
|
667
665
|
TXN_TYPE_L1_HANDLER: () => TXN_TYPE_L1_HANDLER2
|
|
668
666
|
});
|
|
669
667
|
|
|
670
|
-
// node_modules/@starknet-io/starknet-types-
|
|
668
|
+
// node_modules/@starknet-io/starknet-types-0104/dist/esm/api/constants.js
|
|
671
669
|
var STATUS_ACCEPTED_ON_L22 = "ACCEPTED_ON_L2";
|
|
672
670
|
var STATUS_ACCEPTED_ON_L12 = "ACCEPTED_ON_L1";
|
|
673
671
|
var STATUS_SUCCEEDED2 = "SUCCEEDED";
|
|
@@ -795,41 +793,33 @@ var starknet = (() => {
|
|
|
795
793
|
F2: "0x100000000000000000000000000000002",
|
|
796
794
|
F3: "0x100000000000000000000000000000003"
|
|
797
795
|
};
|
|
798
|
-
var ETransactionVersion22 = {
|
|
799
|
-
V0: ETransactionVersion4.V0,
|
|
800
|
-
V1: ETransactionVersion4.V1,
|
|
801
|
-
V2: ETransactionVersion4.V2,
|
|
802
|
-
F0: ETransactionVersion4.F0,
|
|
803
|
-
F1: ETransactionVersion4.F1,
|
|
804
|
-
F2: ETransactionVersion4.F2
|
|
805
|
-
};
|
|
806
796
|
var ETransactionVersion32 = {
|
|
807
797
|
V3: ETransactionVersion4.V3,
|
|
808
798
|
F3: ETransactionVersion4.F3
|
|
809
799
|
};
|
|
810
800
|
|
|
811
|
-
// node_modules/@starknet-io/starknet-types-
|
|
801
|
+
// node_modules/@starknet-io/starknet-types-0104/dist/esm/api/contract.js
|
|
812
802
|
var contract_exports2 = {};
|
|
813
803
|
|
|
814
|
-
// node_modules/@starknet-io/starknet-types-
|
|
804
|
+
// node_modules/@starknet-io/starknet-types-0104/dist/esm/snip-29/index.js
|
|
815
805
|
var snip_29_exports2 = {};
|
|
816
806
|
|
|
817
|
-
// node_modules/@starknet-io/starknet-types-
|
|
807
|
+
// node_modules/@starknet-io/starknet-types-0104/dist/esm/proving-api/index.js
|
|
818
808
|
var proving_api_exports = {};
|
|
819
809
|
|
|
820
|
-
// node_modules/@starknet-io/starknet-types-
|
|
810
|
+
// node_modules/@starknet-io/starknet-types-0104/dist/esm/wallet-api/index.js
|
|
821
811
|
var wallet_api_exports2 = {};
|
|
822
812
|
__export(wallet_api_exports2, {
|
|
823
813
|
Permission: () => Permission2,
|
|
824
814
|
TypedDataRevision: () => TypedDataRevision2
|
|
825
815
|
});
|
|
826
816
|
|
|
827
|
-
// node_modules/@starknet-io/starknet-types-
|
|
817
|
+
// node_modules/@starknet-io/starknet-types-0104/dist/esm/wallet-api/constants.js
|
|
828
818
|
var Permission2 = {
|
|
829
819
|
ACCOUNTS: "accounts"
|
|
830
820
|
};
|
|
831
821
|
|
|
832
|
-
// node_modules/@starknet-io/starknet-types-
|
|
822
|
+
// node_modules/@starknet-io/starknet-types-0104/dist/esm/wallet-api/typedData.js
|
|
833
823
|
var TypedDataRevision2 = {
|
|
834
824
|
ACTIVE: "1",
|
|
835
825
|
LEGACY: "0"
|
|
@@ -837,7 +827,7 @@ var starknet = (() => {
|
|
|
837
827
|
|
|
838
828
|
// src/provider/types/spec.type.ts
|
|
839
829
|
var { ETransactionVersion: ETransactionVersion5 } = esm_exports;
|
|
840
|
-
var { ETransactionVersion2:
|
|
830
|
+
var { ETransactionVersion2: ETransactionVersion22 } = esm_exports;
|
|
841
831
|
var { ETransactionVersion3: ETransactionVersion33 } = esm_exports;
|
|
842
832
|
var { EDataAvailabilityMode: EDataAvailabilityMode3 } = esm_exports2;
|
|
843
833
|
var { EDAMode: EDAMode3 } = esm_exports2;
|
|
@@ -1269,10 +1259,12 @@ var starknet = (() => {
|
|
|
1269
1259
|
"0.10.0": "0.10.0",
|
|
1270
1260
|
"0.10.2": "0.10.2",
|
|
1271
1261
|
"0.10.3": "0.10.3",
|
|
1262
|
+
"0.10.4": "0.10.4",
|
|
1272
1263
|
v0_9_0: "0.9.0",
|
|
1273
1264
|
v0_10_0: "0.10.0",
|
|
1274
1265
|
v0_10_2: "0.10.2",
|
|
1275
|
-
v0_10_3: "0.10.3"
|
|
1266
|
+
v0_10_3: "0.10.3",
|
|
1267
|
+
v0_10_4: "0.10.4"
|
|
1276
1268
|
};
|
|
1277
1269
|
var DEFAULT_GLOBAL_CONFIG = {
|
|
1278
1270
|
rpcVersion: "0.10.0",
|
|
@@ -11821,7 +11813,7 @@ ${indent}}` : "}";
|
|
|
11821
11813
|
F2: "0x100000000000000000000000000000002",
|
|
11822
11814
|
F3: "0x100000000000000000000000000000003"
|
|
11823
11815
|
};
|
|
11824
|
-
var
|
|
11816
|
+
var ETransactionVersion23 = {
|
|
11825
11817
|
V0: ETransactionVersion6.V0,
|
|
11826
11818
|
V1: ETransactionVersion6.V1,
|
|
11827
11819
|
V2: ETransactionVersion6.V2,
|
|
@@ -12463,6 +12455,16 @@ ${indent}}` : "}";
|
|
|
12463
12455
|
channelSpecVersion = _SupportedRpcVersion.v0_10_3;
|
|
12464
12456
|
};
|
|
12465
12457
|
|
|
12458
|
+
// src/channel/rpc_0_10_4.ts
|
|
12459
|
+
var rpc_0_10_4_exports = {};
|
|
12460
|
+
__export(rpc_0_10_4_exports, {
|
|
12461
|
+
RpcChannel: () => RpcChannel4
|
|
12462
|
+
});
|
|
12463
|
+
var RpcChannel4 = class extends RpcChannel3 {
|
|
12464
|
+
id = "RPC0.10.4";
|
|
12465
|
+
channelSpecVersion = _SupportedRpcVersion.v0_10_4;
|
|
12466
|
+
};
|
|
12467
|
+
|
|
12466
12468
|
// src/utils/eventEmitter.ts
|
|
12467
12469
|
var EventEmitter = class {
|
|
12468
12470
|
listeners = {};
|
|
@@ -14920,12 +14922,12 @@ ${indent}}` : "}";
|
|
|
14920
14922
|
if (isVersion("0.9", options.specVersion)) {
|
|
14921
14923
|
this.channel = new rpc_0_9_0_exports.RpcChannel({ ...options, waitMode: false });
|
|
14922
14924
|
} else if (isVersion("0.10", options.specVersion)) {
|
|
14923
|
-
this.channel = new
|
|
14925
|
+
this.channel = new rpc_0_10_4_exports.RpcChannel({ ...options, waitMode: false });
|
|
14924
14926
|
} else throw new Error(`unsupported channel for spec version: ${options.specVersion}`);
|
|
14925
14927
|
} else if (isVersion("0.9", config.get("rpcVersion"))) {
|
|
14926
14928
|
this.channel = new rpc_0_9_0_exports.RpcChannel({ ...options, waitMode: false });
|
|
14927
14929
|
} else if (isVersion("0.10", config.get("rpcVersion"))) {
|
|
14928
|
-
this.channel = new
|
|
14930
|
+
this.channel = new rpc_0_10_4_exports.RpcChannel({ ...options, waitMode: false });
|
|
14929
14931
|
} else throw new Error("unable to define spec version for channel");
|
|
14930
14932
|
this.responseParser = new RPCResponseParser(options?.resourceBoundsOverhead);
|
|
14931
14933
|
const plugins = options?.plugins === false ? [] : options?.plugins ?? defaultPlugins;
|
|
@@ -14949,13 +14951,14 @@ ${indent}}` : "}";
|
|
|
14949
14951
|
if (isVersion("0.9", specVersion)) {
|
|
14950
14952
|
return new this({
|
|
14951
14953
|
...optionsOrProvider,
|
|
14952
|
-
specVersion
|
|
14954
|
+
specVersion
|
|
14953
14955
|
});
|
|
14954
14956
|
}
|
|
14955
14957
|
if (isVersion("0.10", specVersion)) {
|
|
14956
14958
|
return new this({
|
|
14957
14959
|
...optionsOrProvider,
|
|
14958
|
-
|
|
14960
|
+
// forward the version the node reports, not the newest revision the SDK implements
|
|
14961
|
+
specVersion
|
|
14959
14962
|
});
|
|
14960
14963
|
}
|
|
14961
14964
|
throw new LibraryError(
|
|
@@ -16395,7 +16398,7 @@ ${indent}}` : "}";
|
|
|
16395
16398
|
encodeCall(call) {
|
|
16396
16399
|
const toBuf = this.convertBnToLedger(call.contractAddress);
|
|
16397
16400
|
const selectorBuf = hexToBytes2(addAddressPadding(getSelector(call.entrypoint)));
|
|
16398
|
-
let calldataBuf
|
|
16401
|
+
let calldataBuf;
|
|
16399
16402
|
if (call.calldata) {
|
|
16400
16403
|
const compiledCalldata = CallData.compile(call.calldata);
|
|
16401
16404
|
const calldataSizeBuf = this.convertBnToLedger(compiledCalldata.length);
|