starknet 6.9.0 → 6.10.1
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 +12 -0
- package/LICENSE +1 -1
- package/README.md +5 -9
- package/dist/account/default.cjs +655 -0
- package/dist/account/default.d.ts +67 -0
- package/dist/account/default.mjs +652 -0
- package/dist/account/index.cjs +27 -0
- package/dist/account/index.d.ts +2 -0
- package/dist/account/index.mjs +2 -0
- package/dist/account/interface.cjs +9 -0
- package/dist/account/interface.d.ts +301 -0
- package/dist/account/interface.mjs +3 -0
- package/dist/channel/index.cjs +27 -0
- package/dist/channel/index.d.ts +3 -0
- package/dist/channel/index.mjs +3 -0
- package/dist/channel/rpc_0_6.cjs +607 -0
- package/dist/channel/rpc_0_6.d.ts +78 -0
- package/dist/channel/rpc_0_6.mjs +543 -0
- package/dist/channel/rpc_0_7.cjs +619 -0
- package/dist/channel/rpc_0_7.d.ts +81 -0
- package/dist/channel/rpc_0_7.mjs +561 -0
- package/dist/constants.cjs +76 -0
- package/dist/constants.d.ts +70 -0
- package/dist/constants.mjs +60 -0
- package/dist/contract/contractFactory.cjs +93 -0
- package/dist/contract/contractFactory.d.ts +46 -0
- package/dist/contract/contractFactory.mjs +83 -0
- package/dist/contract/default.cjs +269 -0
- package/dist/contract/default.d.ts +58 -0
- package/dist/contract/default.mjs +254 -0
- package/dist/contract/index.cjs +38 -0
- package/dist/contract/index.d.ts +3 -0
- package/dist/contract/index.mjs +3 -0
- package/dist/contract/interface.cjs +13 -0
- package/dist/contract/interface.d.ts +128 -0
- package/dist/contract/interface.mjs +6 -0
- package/dist/index.cjs +267 -0
- package/dist/index.d.ts +45 -5991
- package/dist/index.global.js +728 -609
- package/dist/index.global.js.map +1 -1
- package/dist/index.mjs +39 -7320
- package/dist/provider/errors.cjs +50 -0
- package/dist/provider/errors.d.ts +16 -0
- package/dist/provider/errors.mjs +35 -0
- package/dist/provider/extensions/default.cjs +11 -0
- package/dist/provider/extensions/default.d.ts +6 -0
- package/dist/provider/extensions/default.mjs +5 -0
- package/dist/provider/extensions/starknetId.cjs +174 -0
- package/dist/provider/extensions/starknetId.d.ts +10 -0
- package/dist/provider/extensions/starknetId.mjs +230 -0
- package/dist/provider/index.cjs +56 -0
- package/dist/provider/index.d.ts +6 -0
- package/dist/provider/index.mjs +6 -0
- package/dist/provider/interface.cjs +8 -0
- package/dist/provider/interface.d.ts +261 -0
- package/dist/provider/interface.mjs +2 -0
- package/dist/provider/rpc.cjs +301 -0
- package/dist/provider/rpc.d.ts +115 -0
- package/dist/provider/rpc.mjs +302 -0
- package/dist/service/types.cjs +1 -0
- package/dist/service/types.d.ts +5 -0
- package/dist/service/types.mjs +0 -0
- package/dist/signer/default.cjs +105 -0
- package/dist/signer/default.d.ts +12 -0
- package/dist/signer/default.mjs +102 -0
- package/dist/signer/ethSigner.cjs +123 -0
- package/dist/signer/ethSigner.d.ts +25 -0
- package/dist/signer/ethSigner.mjs +140 -0
- package/dist/signer/index.cjs +38 -0
- package/dist/signer/index.d.ts +3 -0
- package/dist/signer/index.mjs +3 -0
- package/dist/signer/interface.cjs +8 -0
- package/dist/signer/interface.d.ts +115 -0
- package/dist/signer/interface.mjs +2 -0
- package/dist/types/account.cjs +1 -0
- package/dist/types/account.d.ts +79 -0
- package/dist/types/account.mjs +0 -0
- package/dist/types/api/index.cjs +30 -0
- package/dist/types/api/index.d.ts +4 -0
- package/dist/types/api/index.mjs +4 -0
- package/dist/types/api/jsonrpc/index.cjs +1 -0
- package/dist/types/api/jsonrpc/index.d.ts +21 -0
- package/dist/types/api/jsonrpc/index.mjs +0 -0
- package/dist/types/api/rpcspec_0_6/components.cjs +1 -0
- package/dist/types/api/rpcspec_0_6/components.d.ts +541 -0
- package/dist/types/api/rpcspec_0_6/components.mjs +0 -0
- package/dist/types/api/rpcspec_0_6/contract.cjs +1 -0
- package/dist/types/api/rpcspec_0_6/contract.d.ts +85 -0
- package/dist/types/api/rpcspec_0_6/contract.mjs +0 -0
- package/dist/types/api/rpcspec_0_6/errors.cjs +1 -0
- package/dist/types/api/rpcspec_0_6/errors.d.ts +128 -0
- package/dist/types/api/rpcspec_0_6/errors.mjs +0 -0
- package/dist/types/api/rpcspec_0_6/index.cjs +45 -0
- package/dist/types/api/rpcspec_0_6/index.d.ts +8 -0
- package/dist/types/api/rpcspec_0_6/index.mjs +5 -0
- package/dist/types/api/rpcspec_0_6/methods.cjs +1 -0
- package/dist/types/api/rpcspec_0_6/methods.d.ts +207 -0
- package/dist/types/api/rpcspec_0_6/methods.mjs +0 -0
- package/dist/types/api/rpcspec_0_6/nonspec.cjs +65 -0
- package/dist/types/api/rpcspec_0_6/nonspec.d.ts +147 -0
- package/dist/types/api/rpcspec_0_6/nonspec.mjs +59 -0
- package/dist/types/cairoEnum.cjs +1 -0
- package/dist/types/cairoEnum.d.ts +2 -0
- package/dist/types/cairoEnum.mjs +0 -0
- package/dist/types/calldata.cjs +27 -0
- package/dist/types/calldata.d.ts +23 -0
- package/dist/types/calldata.mjs +21 -0
- package/dist/types/contract.cjs +1 -0
- package/dist/types/contract.d.ts +27 -0
- package/dist/types/contract.mjs +0 -0
- package/dist/types/helpers/valuesType.cjs +1 -0
- package/dist/types/helpers/valuesType.d.ts +1 -0
- package/dist/types/helpers/valuesType.mjs +0 -0
- package/dist/types/index.cjs +121 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/index.mjs +10 -0
- package/dist/types/lib/contract/abi.cjs +1 -0
- package/dist/types/lib/contract/abi.d.ts +71 -0
- package/dist/types/lib/contract/abi.mjs +0 -0
- package/dist/types/lib/contract/index.cjs +50 -0
- package/dist/types/lib/contract/index.d.ts +26 -0
- package/dist/types/lib/contract/index.mjs +8 -0
- package/dist/types/lib/contract/legacy.cjs +1 -0
- package/dist/types/lib/contract/legacy.d.ts +33 -0
- package/dist/types/lib/contract/legacy.mjs +0 -0
- package/dist/types/lib/contract/sierra.cjs +1 -0
- package/dist/types/lib/contract/sierra.d.ts +52 -0
- package/dist/types/lib/contract/sierra.mjs +0 -0
- package/dist/types/lib/index.cjs +61 -0
- package/dist/types/lib/index.d.ts +259 -0
- package/dist/types/lib/index.mjs +36 -0
- package/dist/types/provider/configuration.cjs +1 -0
- package/dist/types/provider/configuration.d.ts +20 -0
- package/dist/types/provider/configuration.mjs +0 -0
- package/dist/types/provider/index.cjs +27 -0
- package/dist/types/provider/index.d.ts +2 -0
- package/dist/types/provider/index.mjs +2 -0
- package/dist/types/provider/response.cjs +30 -0
- package/dist/types/provider/response.d.ts +98 -0
- package/dist/types/provider/response.mjs +1 -0
- package/dist/types/provider/spec.cjs +1 -0
- package/dist/types/provider/spec.d.ts +49 -0
- package/dist/types/provider/spec.mjs +0 -0
- package/dist/types/signer.cjs +1 -0
- package/dist/types/signer.d.ts +49 -0
- package/dist/types/signer.mjs +0 -0
- package/dist/types/transactionReceipt.cjs +1 -0
- package/dist/types/transactionReceipt.d.ts +23 -0
- package/dist/types/transactionReceipt.mjs +0 -0
- package/dist/types/typedData.cjs +12 -0
- package/dist/types/typedData.d.ts +1 -0
- package/dist/types/typedData.mjs +3 -0
- package/dist/utils/address.cjs +44 -0
- package/dist/utils/address.d.ts +55 -0
- package/dist/utils/address.mjs +35 -0
- package/dist/utils/assert.cjs +11 -0
- package/dist/utils/assert.d.ts +12 -0
- package/dist/utils/assert.mjs +5 -0
- package/dist/utils/cairoDataTypes/felt.cjs +31 -0
- package/dist/utils/cairoDataTypes/felt.d.ts +6 -0
- package/dist/utils/cairoDataTypes/felt.mjs +27 -0
- package/dist/utils/cairoDataTypes/uint256.cjs +113 -0
- package/dist/utils/cairoDataTypes/uint256.d.ts +72 -0
- package/dist/utils/cairoDataTypes/uint256.mjs +103 -0
- package/dist/utils/cairoDataTypes/uint512.cjs +125 -0
- package/dist/utils/cairoDataTypes/uint512.d.ts +76 -0
- package/dist/utils/cairoDataTypes/uint512.mjs +123 -0
- package/dist/utils/calldata/byteArray.cjs +27 -0
- package/dist/utils/calldata/byteArray.d.ts +32 -0
- package/dist/utils/calldata/byteArray.mjs +20 -0
- package/dist/utils/calldata/cairo.cjs +114 -0
- package/dist/utils/calldata/cairo.d.ts +196 -0
- package/dist/utils/calldata/cairo.mjs +68 -0
- package/dist/utils/calldata/enum/CairoCustomEnum.cjs +55 -0
- package/dist/utils/calldata/enum/CairoCustomEnum.d.ts +38 -0
- package/dist/utils/calldata/enum/CairoCustomEnum.mjs +50 -0
- package/dist/utils/calldata/enum/CairoOption.cjs +55 -0
- package/dist/utils/calldata/enum/CairoOption.d.ts +37 -0
- package/dist/utils/calldata/enum/CairoOption.mjs +50 -0
- package/dist/utils/calldata/enum/CairoResult.cjs +54 -0
- package/dist/utils/calldata/enum/CairoResult.d.ts +36 -0
- package/dist/utils/calldata/enum/CairoResult.mjs +47 -0
- package/dist/utils/calldata/enum/index.cjs +38 -0
- package/dist/utils/calldata/enum/index.d.ts +3 -0
- package/dist/utils/calldata/enum/index.mjs +3 -0
- package/dist/utils/calldata/formatter.cjs +55 -0
- package/dist/utils/calldata/formatter.d.ts +9 -0
- package/dist/utils/calldata/formatter.mjs +58 -0
- package/dist/utils/calldata/index.cjs +272 -0
- package/dist/utils/calldata/index.d.ts +90 -0
- package/dist/utils/calldata/index.mjs +276 -0
- package/dist/utils/calldata/parser/index.cjs +29 -0
- package/dist/utils/calldata/parser/index.d.ts +5 -0
- package/dist/utils/calldata/parser/index.mjs +21 -0
- package/dist/utils/calldata/parser/interface.cjs +8 -0
- package/dist/utils/calldata/parser/interface.d.ts +20 -0
- package/dist/utils/calldata/parser/interface.mjs +2 -0
- package/dist/utils/calldata/parser/parser-0-1.1.0.cjs +38 -0
- package/dist/utils/calldata/parser/parser-0-1.1.0.d.ts +24 -0
- package/dist/utils/calldata/parser/parser-0-1.1.0.mjs +31 -0
- package/dist/utils/calldata/parser/parser-2.0.0.cjs +42 -0
- package/dist/utils/calldata/parser/parser-2.0.0.d.ts +23 -0
- package/dist/utils/calldata/parser/parser-2.0.0.mjs +37 -0
- package/dist/utils/calldata/propertyOrder.cjs +159 -0
- package/dist/utils/calldata/propertyOrder.d.ts +2 -0
- package/dist/utils/calldata/propertyOrder.mjs +189 -0
- package/dist/utils/calldata/requestParser.cjs +204 -0
- package/dist/utils/calldata/requestParser.d.ts +11 -0
- package/dist/utils/calldata/requestParser.mjs +231 -0
- package/dist/utils/calldata/responseParser.cjs +200 -0
- package/dist/utils/calldata/responseParser.d.ts +11 -0
- package/dist/utils/calldata/responseParser.mjs +201 -0
- package/dist/utils/calldata/tuple.cjs +106 -0
- package/dist/utils/calldata/tuple.d.ts +6 -0
- package/dist/utils/calldata/tuple.mjs +88 -0
- package/dist/utils/calldata/validate.cjs +241 -0
- package/dist/utils/calldata/validate.d.ts +6 -0
- package/dist/utils/calldata/validate.mjs +315 -0
- package/dist/utils/contract.cjs +40 -0
- package/dist/utils/contract.d.ts +37 -0
- package/dist/utils/contract.mjs +31 -0
- package/dist/utils/ec.cjs +12 -0
- package/dist/utils/ec.d.ts +2 -0
- package/dist/utils/ec.mjs +2 -0
- package/dist/utils/encode.cjs +78 -0
- package/dist/utils/encode.d.ts +207 -0
- package/dist/utils/encode.mjs +56 -0
- package/dist/utils/eth.cjs +22 -0
- package/dist/utils/eth.d.ts +22 -0
- package/dist/utils/eth.mjs +14 -0
- package/dist/utils/events/index.cjs +144 -0
- package/dist/utils/events/index.d.ts +84 -0
- package/dist/utils/events/index.mjs +136 -0
- package/dist/utils/fetchPonyfill.cjs +14 -0
- package/dist/utils/fetchPonyfill.d.ts +2 -0
- package/dist/utils/fetchPonyfill.mjs +5 -0
- package/dist/utils/hash/classHash.cjs +151 -0
- package/dist/utils/hash/classHash.d.ts +120 -0
- package/dist/utils/hash/classHash.mjs +168 -0
- package/dist/utils/hash/index.cjs +49 -0
- package/dist/utils/hash/index.d.ts +7 -0
- package/dist/utils/hash/index.mjs +4 -0
- package/dist/utils/hash/selector.cjs +37 -0
- package/dist/utils/hash/selector.d.ts +57 -0
- package/dist/utils/hash/selector.mjs +28 -0
- package/dist/utils/hash/transactionHash/index.cjs +38 -0
- package/dist/utils/hash/transactionHash/index.d.ts +81 -0
- package/dist/utils/hash/transactionHash/index.mjs +102 -0
- package/dist/utils/hash/transactionHash/v2.cjs +31 -0
- package/dist/utils/hash/transactionHash/v2.d.ts +34 -0
- package/dist/utils/hash/transactionHash/v2.mjs +57 -0
- package/dist/utils/hash/transactionHash/v3.cjs +45 -0
- package/dist/utils/hash/transactionHash/v3.d.ts +24 -0
- package/dist/utils/hash/transactionHash/v3.mjs +80 -0
- package/dist/utils/json.cjs +21 -0
- package/dist/utils/json.d.ts +50 -0
- package/dist/utils/json.mjs +10 -0
- package/dist/utils/merkle.cjs +118 -0
- package/dist/utils/merkle.d.ts +87 -0
- package/dist/utils/merkle.mjs +114 -0
- package/dist/utils/num.cjs +109 -0
- package/dist/utils/num.d.ts +283 -0
- package/dist/utils/num.mjs +86 -0
- package/dist/utils/provider.cjs +182 -0
- package/dist/utils/provider.d.ts +217 -0
- package/dist/utils/provider.mjs +158 -0
- package/dist/utils/responseParser/index.cjs +27 -0
- package/dist/utils/responseParser/index.d.ts +2 -0
- package/dist/utils/responseParser/index.mjs +2 -0
- package/dist/utils/responseParser/interface.cjs +8 -0
- package/dist/utils/responseParser/interface.d.ts +13 -0
- package/dist/utils/responseParser/interface.mjs +2 -0
- package/dist/utils/responseParser/rpc.cjs +83 -0
- package/dist/utils/responseParser/rpc.d.ts +19 -0
- package/dist/utils/responseParser/rpc.mjs +77 -0
- package/dist/utils/shortString.cjs +56 -0
- package/dist/utils/shortString.d.ts +116 -0
- package/dist/utils/shortString.mjs +39 -0
- package/dist/utils/stark.cjs +137 -0
- package/dist/utils/stark.d.ts +224 -0
- package/dist/utils/stark.mjs +109 -0
- package/dist/utils/starknetId.cjs +196 -0
- package/dist/utils/starknetId.d.ts +182 -0
- package/dist/utils/starknetId.mjs +185 -0
- package/dist/utils/transaction.cjs +115 -0
- package/dist/utils/transaction.d.ts +185 -0
- package/dist/utils/transaction.mjs +98 -0
- package/dist/utils/transactionReceipt.cjs +54 -0
- package/dist/utils/transactionReceipt.d.ts +33 -0
- package/dist/utils/transactionReceipt.mjs +49 -0
- package/dist/utils/typedData.cjs +285 -0
- package/dist/utils/typedData.d.ts +54 -0
- package/dist/utils/typedData.mjs +286 -0
- package/dist/utils/uint256.cjs +30 -0
- package/dist/utils/uint256.d.ts +45 -0
- package/dist/utils/uint256.mjs +11 -0
- package/dist/utils/url.cjs +35 -0
- package/dist/utils/url.d.ts +29 -0
- package/dist/utils/url.mjs +27 -0
- package/dist/wallet/account.cjs +115 -0
- package/dist/wallet/account.d.ts +31 -0
- package/dist/wallet/account.mjs +112 -0
- package/dist/wallet/connect.cjs +90 -0
- package/dist/wallet/connect.d.ts +82 -0
- package/dist/wallet/connect.mjs +64 -0
- package/dist/wallet/index.cjs +16 -0
- package/dist/wallet/index.d.ts +1 -0
- package/dist/wallet/index.mjs +1 -0
- package/dist/wallet/types.cjs +1 -0
- package/dist/wallet/types.d.ts +4 -0
- package/dist/wallet/types.mjs +0 -0
- package/package.json +13 -13
- package/dist/index.js +0 -7426
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ValidateType = exports.Uint = exports.Literal = void 0;
|
|
7
|
+
const ValidateType = exports.ValidateType = {
|
|
8
|
+
DEPLOY: "DEPLOY",
|
|
9
|
+
CALL: "CALL",
|
|
10
|
+
INVOKE: "INVOKE"
|
|
11
|
+
};
|
|
12
|
+
const Uint = exports.Uint = {
|
|
13
|
+
u8: "core::integer::u8",
|
|
14
|
+
u16: "core::integer::u16",
|
|
15
|
+
u32: "core::integer::u32",
|
|
16
|
+
u64: "core::integer::u64",
|
|
17
|
+
u128: "core::integer::u128",
|
|
18
|
+
u256: "core::integer::u256",
|
|
19
|
+
// This one is struct
|
|
20
|
+
u512: "core::integer::u512"
|
|
21
|
+
// This one is struct
|
|
22
|
+
};
|
|
23
|
+
const Literal = exports.Literal = {
|
|
24
|
+
ClassHash: "core::starknet::class_hash::ClassHash",
|
|
25
|
+
ContractAddress: "core::starknet::contract_address::ContractAddress",
|
|
26
|
+
Secp256k1Point: "core::starknet::secp256k1::Secp256k1Point"
|
|
27
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ValuesType } from './helpers/valuesType';
|
|
2
|
+
export declare const ValidateType: {
|
|
3
|
+
readonly DEPLOY: "DEPLOY";
|
|
4
|
+
readonly CALL: "CALL";
|
|
5
|
+
readonly INVOKE: "INVOKE";
|
|
6
|
+
};
|
|
7
|
+
export type ValidateType = ValuesType<typeof ValidateType>;
|
|
8
|
+
export declare const Uint: {
|
|
9
|
+
readonly u8: "core::integer::u8";
|
|
10
|
+
readonly u16: "core::integer::u16";
|
|
11
|
+
readonly u32: "core::integer::u32";
|
|
12
|
+
readonly u64: "core::integer::u64";
|
|
13
|
+
readonly u128: "core::integer::u128";
|
|
14
|
+
readonly u256: "core::integer::u256";
|
|
15
|
+
readonly u512: "core::integer::u512";
|
|
16
|
+
};
|
|
17
|
+
export type Uint = ValuesType<typeof Uint>;
|
|
18
|
+
export declare const Literal: {
|
|
19
|
+
readonly ClassHash: "core::starknet::class_hash::ClassHash";
|
|
20
|
+
readonly ContractAddress: "core::starknet::contract_address::ContractAddress";
|
|
21
|
+
readonly Secp256k1Point: "core::starknet::secp256k1::Secp256k1Point";
|
|
22
|
+
};
|
|
23
|
+
export type Literal = ValuesType<typeof Literal>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export const ValidateType = {
|
|
2
|
+
DEPLOY: "DEPLOY",
|
|
3
|
+
CALL: "CALL",
|
|
4
|
+
INVOKE: "INVOKE"
|
|
5
|
+
};
|
|
6
|
+
export const Uint = {
|
|
7
|
+
u8: "core::integer::u8",
|
|
8
|
+
u16: "core::integer::u16",
|
|
9
|
+
u32: "core::integer::u32",
|
|
10
|
+
u64: "core::integer::u64",
|
|
11
|
+
u128: "core::integer::u128",
|
|
12
|
+
u256: "core::integer::u256",
|
|
13
|
+
// This one is struct
|
|
14
|
+
u512: "core::integer::u512"
|
|
15
|
+
// This one is struct
|
|
16
|
+
};
|
|
17
|
+
export const Literal = {
|
|
18
|
+
ClassHash: "core::starknet::class_hash::ClassHash",
|
|
19
|
+
ContractAddress: "core::starknet::contract_address::ContractAddress",
|
|
20
|
+
Secp256k1Point: "core::starknet::secp256k1::Secp256k1Point"
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CairoEnum } from './cairoEnum';
|
|
2
|
+
import { BigNumberish, BlockIdentifier, Calldata, ParsedStruct, RawArgsArray, Signature } from './lib';
|
|
3
|
+
export type AsyncContractFunction<T = any> = (...args: ArgsOrCalldataWithOptions) => Promise<T>;
|
|
4
|
+
export type ContractFunction = (...args: ArgsOrCalldataWithOptions) => any;
|
|
5
|
+
export type Result = {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
} | Result[] | bigint | string | boolean | CairoEnum;
|
|
8
|
+
export type ArgsOrCalldata = RawArgsArray | [Calldata] | Calldata;
|
|
9
|
+
export type ArgsOrCalldataWithOptions = ArgsOrCalldata & ContractOptions;
|
|
10
|
+
export type ContractOptions = {
|
|
11
|
+
blockIdentifier?: BlockIdentifier;
|
|
12
|
+
parseRequest?: boolean;
|
|
13
|
+
parseResponse?: boolean;
|
|
14
|
+
formatResponse?: {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
};
|
|
17
|
+
maxFee?: BigNumberish;
|
|
18
|
+
nonce?: BigNumberish;
|
|
19
|
+
signature?: Signature;
|
|
20
|
+
addressSalt?: string;
|
|
21
|
+
};
|
|
22
|
+
export type CallOptions = Pick<ContractOptions, 'blockIdentifier' | 'parseRequest' | 'parseResponse' | 'formatResponse'>;
|
|
23
|
+
export type InvokeOptions = Pick<ContractOptions, 'maxFee' | 'nonce' | 'signature' | 'parseRequest'>;
|
|
24
|
+
export type ParsedEvent = {
|
|
25
|
+
[name: string]: ParsedStruct;
|
|
26
|
+
};
|
|
27
|
+
export type ParsedEvents = Array<ParsedEvent>;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ValuesType<T extends ReadonlyArray<any> | ArrayLike<any> | Record<any, any>> = T extends ReadonlyArray<any> ? T[number] : T extends ArrayLike<any> ? T[number] : T extends object ? T[keyof T] : never;
|
|
File without changes
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _exportNames = {
|
|
7
|
+
RPC: true
|
|
8
|
+
};
|
|
9
|
+
exports.RPC = void 0;
|
|
10
|
+
var _account = require("./account.cjs");
|
|
11
|
+
Object.keys(_account).forEach(function (key) {
|
|
12
|
+
if (key === "default" || key === "__esModule") return;
|
|
13
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
14
|
+
if (key in exports && exports[key] === _account[key]) return;
|
|
15
|
+
Object.defineProperty(exports, key, {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () {
|
|
18
|
+
return _account[key];
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
var _calldata = require("./calldata.cjs");
|
|
23
|
+
Object.keys(_calldata).forEach(function (key) {
|
|
24
|
+
if (key === "default" || key === "__esModule") return;
|
|
25
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
26
|
+
if (key in exports && exports[key] === _calldata[key]) return;
|
|
27
|
+
Object.defineProperty(exports, key, {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () {
|
|
30
|
+
return _calldata[key];
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
var _contract = require("./contract.cjs");
|
|
35
|
+
Object.keys(_contract).forEach(function (key) {
|
|
36
|
+
if (key === "default" || key === "__esModule") return;
|
|
37
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
38
|
+
if (key in exports && exports[key] === _contract[key]) return;
|
|
39
|
+
Object.defineProperty(exports, key, {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () {
|
|
42
|
+
return _contract[key];
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
var _lib = require("./lib/index.cjs");
|
|
47
|
+
Object.keys(_lib).forEach(function (key) {
|
|
48
|
+
if (key === "default" || key === "__esModule") return;
|
|
49
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
50
|
+
if (key in exports && exports[key] === _lib[key]) return;
|
|
51
|
+
Object.defineProperty(exports, key, {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () {
|
|
54
|
+
return _lib[key];
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
var _provider = require("./provider/index.cjs");
|
|
59
|
+
Object.keys(_provider).forEach(function (key) {
|
|
60
|
+
if (key === "default" || key === "__esModule") return;
|
|
61
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
62
|
+
if (key in exports && exports[key] === _provider[key]) return;
|
|
63
|
+
Object.defineProperty(exports, key, {
|
|
64
|
+
enumerable: true,
|
|
65
|
+
get: function () {
|
|
66
|
+
return _provider[key];
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
var _signer = require("./signer.cjs");
|
|
71
|
+
Object.keys(_signer).forEach(function (key) {
|
|
72
|
+
if (key === "default" || key === "__esModule") return;
|
|
73
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
74
|
+
if (key in exports && exports[key] === _signer[key]) return;
|
|
75
|
+
Object.defineProperty(exports, key, {
|
|
76
|
+
enumerable: true,
|
|
77
|
+
get: function () {
|
|
78
|
+
return _signer[key];
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
var _typedData = require("./typedData.cjs");
|
|
83
|
+
Object.keys(_typedData).forEach(function (key) {
|
|
84
|
+
if (key === "default" || key === "__esModule") return;
|
|
85
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
86
|
+
if (key in exports && exports[key] === _typedData[key]) return;
|
|
87
|
+
Object.defineProperty(exports, key, {
|
|
88
|
+
enumerable: true,
|
|
89
|
+
get: function () {
|
|
90
|
+
return _typedData[key];
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
var _cairoEnum = require("./cairoEnum.cjs");
|
|
95
|
+
Object.keys(_cairoEnum).forEach(function (key) {
|
|
96
|
+
if (key === "default" || key === "__esModule") return;
|
|
97
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
98
|
+
if (key in exports && exports[key] === _cairoEnum[key]) return;
|
|
99
|
+
Object.defineProperty(exports, key, {
|
|
100
|
+
enumerable: true,
|
|
101
|
+
get: function () {
|
|
102
|
+
return _cairoEnum[key];
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
var _transactionReceipt = require("./transactionReceipt.cjs");
|
|
107
|
+
Object.keys(_transactionReceipt).forEach(function (key) {
|
|
108
|
+
if (key === "default" || key === "__esModule") return;
|
|
109
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
110
|
+
if (key in exports && exports[key] === _transactionReceipt[key]) return;
|
|
111
|
+
Object.defineProperty(exports, key, {
|
|
112
|
+
enumerable: true,
|
|
113
|
+
get: function () {
|
|
114
|
+
return _transactionReceipt[key];
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
var _RPC = _interopRequireWildcard(require("./api/index.cjs"));
|
|
119
|
+
exports.RPC = _RPC;
|
|
120
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
121
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './account';
|
|
2
|
+
export * from './calldata';
|
|
3
|
+
export * from './contract';
|
|
4
|
+
export * from './lib';
|
|
5
|
+
export * from './provider';
|
|
6
|
+
export * from './signer';
|
|
7
|
+
export * from './typedData';
|
|
8
|
+
export * from './cairoEnum';
|
|
9
|
+
export * from './transactionReceipt';
|
|
10
|
+
export * as RPC from './api';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./account.mjs";
|
|
2
|
+
export * from "./calldata.mjs";
|
|
3
|
+
export * from "./contract.mjs";
|
|
4
|
+
export * from "./lib/index.mjs";
|
|
5
|
+
export * from "./provider/index.mjs";
|
|
6
|
+
export * from "./signer.mjs";
|
|
7
|
+
export * from "./typedData.mjs";
|
|
8
|
+
export * from "./cairoEnum.mjs";
|
|
9
|
+
export * from "./transactionReceipt.mjs";
|
|
10
|
+
export * as RPC from "./api/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { ENUM_EVENT, EVENT_FIELD, STRUCT_EVENT } from 'starknet-types-07';
|
|
2
|
+
/** ABI */
|
|
3
|
+
export type Abi = ReadonlyArray<FunctionAbi | AbiEvent | AbiStruct | InterfaceAbi | any>;
|
|
4
|
+
export type AbiEntry = {
|
|
5
|
+
name: string;
|
|
6
|
+
type: 'felt' | 'felt*' | string;
|
|
7
|
+
};
|
|
8
|
+
export type EventEntry = {
|
|
9
|
+
name: string;
|
|
10
|
+
type: 'felt' | 'felt*' | string;
|
|
11
|
+
kind: 'key' | 'data';
|
|
12
|
+
};
|
|
13
|
+
type FunctionAbiType = 'function' | 'l1_handler' | 'constructor';
|
|
14
|
+
export type FunctionAbi = {
|
|
15
|
+
inputs: AbiEntry[];
|
|
16
|
+
name: string;
|
|
17
|
+
outputs: AbiEntry[];
|
|
18
|
+
stateMutability?: 'view';
|
|
19
|
+
state_mutability?: string;
|
|
20
|
+
type: FunctionAbiType;
|
|
21
|
+
};
|
|
22
|
+
export type AbiStructs = {
|
|
23
|
+
[name: string]: AbiStruct;
|
|
24
|
+
};
|
|
25
|
+
export type AbiStruct = {
|
|
26
|
+
members: (AbiEntry & {
|
|
27
|
+
offset: number;
|
|
28
|
+
})[];
|
|
29
|
+
name: string;
|
|
30
|
+
size: number;
|
|
31
|
+
type: 'struct';
|
|
32
|
+
};
|
|
33
|
+
export type AbiInterfaces = {
|
|
34
|
+
[name: string]: InterfaceAbi;
|
|
35
|
+
};
|
|
36
|
+
export type InterfaceAbi = {
|
|
37
|
+
items: FunctionAbi[];
|
|
38
|
+
name: string;
|
|
39
|
+
type: 'interface';
|
|
40
|
+
};
|
|
41
|
+
export type AbiEnums = {
|
|
42
|
+
[name: string]: AbiEnum;
|
|
43
|
+
};
|
|
44
|
+
export type AbiEnum = {
|
|
45
|
+
variants: (AbiEntry & {
|
|
46
|
+
offset: number;
|
|
47
|
+
})[];
|
|
48
|
+
name: string;
|
|
49
|
+
size: number;
|
|
50
|
+
type: 'enum';
|
|
51
|
+
};
|
|
52
|
+
export type AbiEvents = {
|
|
53
|
+
[hash: string]: AbiEvent;
|
|
54
|
+
};
|
|
55
|
+
export type AbiEvent = CairoEvent | LegacyEvent;
|
|
56
|
+
export type CairoEvent = CairoEventDefinition | AbiEvents;
|
|
57
|
+
export type CairoEventDefinition = STRUCT_EVENT & {
|
|
58
|
+
name: string;
|
|
59
|
+
type: 'event';
|
|
60
|
+
};
|
|
61
|
+
export type CairoEventVariant = ENUM_EVENT & {
|
|
62
|
+
name: string;
|
|
63
|
+
type: string;
|
|
64
|
+
};
|
|
65
|
+
export type LegacyEvent = {
|
|
66
|
+
name: string;
|
|
67
|
+
type: 'event';
|
|
68
|
+
data: EVENT_FIELD[];
|
|
69
|
+
keys: EVENT_FIELD[];
|
|
70
|
+
};
|
|
71
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _exportNames = {
|
|
7
|
+
EntryPointType: true
|
|
8
|
+
};
|
|
9
|
+
exports.EntryPointType = void 0;
|
|
10
|
+
var _abi = require("./abi.cjs");
|
|
11
|
+
Object.keys(_abi).forEach(function (key) {
|
|
12
|
+
if (key === "default" || key === "__esModule") return;
|
|
13
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
14
|
+
if (key in exports && exports[key] === _abi[key]) return;
|
|
15
|
+
Object.defineProperty(exports, key, {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () {
|
|
18
|
+
return _abi[key];
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
var _legacy = require("./legacy.cjs");
|
|
23
|
+
Object.keys(_legacy).forEach(function (key) {
|
|
24
|
+
if (key === "default" || key === "__esModule") return;
|
|
25
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
26
|
+
if (key in exports && exports[key] === _legacy[key]) return;
|
|
27
|
+
Object.defineProperty(exports, key, {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () {
|
|
30
|
+
return _legacy[key];
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
var _sierra = require("./sierra.cjs");
|
|
35
|
+
Object.keys(_sierra).forEach(function (key) {
|
|
36
|
+
if (key === "default" || key === "__esModule") return;
|
|
37
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
38
|
+
if (key in exports && exports[key] === _sierra[key]) return;
|
|
39
|
+
Object.defineProperty(exports, key, {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () {
|
|
42
|
+
return _sierra[key];
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
const EntryPointType = exports.EntryPointType = {
|
|
47
|
+
EXTERNAL: "EXTERNAL",
|
|
48
|
+
L1_HANDLER: "L1_HANDLER",
|
|
49
|
+
CONSTRUCTOR: "CONSTRUCTOR"
|
|
50
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ValuesType } from '../../helpers/valuesType';
|
|
2
|
+
import { LegacyCompiledContract, LegacyContractClass } from './legacy';
|
|
3
|
+
import { CompiledSierra, SierraContractClass } from './sierra';
|
|
4
|
+
/**
|
|
5
|
+
* format produced after compressing compiled contract
|
|
6
|
+
*
|
|
7
|
+
* CompressedCompiledContract
|
|
8
|
+
*/
|
|
9
|
+
export type ContractClass = LegacyContractClass | SierraContractClass;
|
|
10
|
+
/**
|
|
11
|
+
* format produced after compile .cairo to .json
|
|
12
|
+
*/
|
|
13
|
+
export type CompiledContract = LegacyCompiledContract | CompiledSierra;
|
|
14
|
+
/**
|
|
15
|
+
* Compressed or decompressed Cairo0 or Cairo1 Contract
|
|
16
|
+
*/
|
|
17
|
+
export type CairoContract = ContractClass | CompiledContract;
|
|
18
|
+
export declare const EntryPointType: {
|
|
19
|
+
readonly EXTERNAL: "EXTERNAL";
|
|
20
|
+
readonly L1_HANDLER: "L1_HANDLER";
|
|
21
|
+
readonly CONSTRUCTOR: "CONSTRUCTOR";
|
|
22
|
+
};
|
|
23
|
+
export type EntryPointType = ValuesType<typeof EntryPointType>;
|
|
24
|
+
export * from './abi';
|
|
25
|
+
export * from './legacy';
|
|
26
|
+
export * from './sierra';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Abi } from './abi';
|
|
2
|
+
/** LEGACY CONTRACT */
|
|
3
|
+
/**
|
|
4
|
+
* format produced after compressing 'program' property
|
|
5
|
+
*/
|
|
6
|
+
export type LegacyContractClass = {
|
|
7
|
+
program: CompressedProgram;
|
|
8
|
+
entry_points_by_type: EntryPointsByType;
|
|
9
|
+
abi: Abi;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* format produced after compiling .cairo to .json
|
|
13
|
+
*/
|
|
14
|
+
export type LegacyCompiledContract = Omit<LegacyContractClass, 'program'> & {
|
|
15
|
+
program: Program;
|
|
16
|
+
};
|
|
17
|
+
/** SUBTYPES */
|
|
18
|
+
export type Builtins = string[];
|
|
19
|
+
export type CompressedProgram = string;
|
|
20
|
+
export type EntryPointsByType = {
|
|
21
|
+
CONSTRUCTOR: ContractEntryPointFields[];
|
|
22
|
+
EXTERNAL: ContractEntryPointFields[];
|
|
23
|
+
L1_HANDLER: ContractEntryPointFields[];
|
|
24
|
+
};
|
|
25
|
+
export type ContractEntryPointFields = {
|
|
26
|
+
selector: string;
|
|
27
|
+
offset: string | number;
|
|
28
|
+
builtins?: Builtins;
|
|
29
|
+
};
|
|
30
|
+
export interface Program extends Record<string, any> {
|
|
31
|
+
builtins: string[];
|
|
32
|
+
data: string[];
|
|
33
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Abi } from './abi';
|
|
2
|
+
import { EntryPointsByType } from './legacy';
|
|
3
|
+
/** SYSTEM TYPES */
|
|
4
|
+
export type CairoAssembly = {
|
|
5
|
+
prime: string;
|
|
6
|
+
compiler_version: string;
|
|
7
|
+
bytecode: ByteCode;
|
|
8
|
+
hints: any[];
|
|
9
|
+
pythonic_hints?: PythonicHints;
|
|
10
|
+
bytecode_segment_lengths?: number[];
|
|
11
|
+
entry_points_by_type: EntryPointsByType;
|
|
12
|
+
};
|
|
13
|
+
/** COMPILED CONTRACT */
|
|
14
|
+
/**
|
|
15
|
+
* format produced after starknet-compile .cairo to .json
|
|
16
|
+
*
|
|
17
|
+
* sierra_program is hex array
|
|
18
|
+
*/
|
|
19
|
+
export type CompiledSierra = {
|
|
20
|
+
sierra_program: ByteCode;
|
|
21
|
+
sierra_program_debug_info?: SierraProgramDebugInfo;
|
|
22
|
+
contract_class_version: string;
|
|
23
|
+
entry_points_by_type: SierraEntryPointsByType;
|
|
24
|
+
abi: Abi;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* format produced after compressing 'sierra_program', stringifies 'abi' property and omit sierra_program_debug_info
|
|
28
|
+
*
|
|
29
|
+
* CompressedCompiledSierra
|
|
30
|
+
*/
|
|
31
|
+
export type SierraContractClass = Omit<CompiledSierra, 'abi' | 'sierra_program_debug_info'> & {
|
|
32
|
+
sierra_program: string;
|
|
33
|
+
abi: string;
|
|
34
|
+
};
|
|
35
|
+
export type CompiledSierraCasm = CairoAssembly;
|
|
36
|
+
/** SUBTYPES */
|
|
37
|
+
export type ByteCode = string[];
|
|
38
|
+
export type PythonicHints = [number, string[]][];
|
|
39
|
+
export type SierraProgramDebugInfo = {
|
|
40
|
+
type_names: [number, string][];
|
|
41
|
+
libfunc_names: [number, string][];
|
|
42
|
+
user_func_names: [number, string][];
|
|
43
|
+
};
|
|
44
|
+
export type SierraEntryPointsByType = {
|
|
45
|
+
CONSTRUCTOR: SierraContractEntryPointFields[];
|
|
46
|
+
EXTERNAL: SierraContractEntryPointFields[];
|
|
47
|
+
L1_HANDLER: SierraContractEntryPointFields[];
|
|
48
|
+
};
|
|
49
|
+
export type SierraContractEntryPointFields = {
|
|
50
|
+
selector: string;
|
|
51
|
+
function_idx: number;
|
|
52
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _exportNames = {
|
|
7
|
+
TransactionType: true,
|
|
8
|
+
TransactionStatus: true,
|
|
9
|
+
TransactionFinalityStatus: true,
|
|
10
|
+
TransactionExecutionStatus: true,
|
|
11
|
+
BlockStatus: true,
|
|
12
|
+
BlockTag: true
|
|
13
|
+
};
|
|
14
|
+
exports.TransactionType = exports.TransactionStatus = exports.TransactionFinalityStatus = exports.TransactionExecutionStatus = exports.BlockTag = exports.BlockStatus = void 0;
|
|
15
|
+
var _contract = require("./contract/index.cjs");
|
|
16
|
+
Object.keys(_contract).forEach(function (key) {
|
|
17
|
+
if (key === "default" || key === "__esModule") return;
|
|
18
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
19
|
+
if (key in exports && exports[key] === _contract[key]) return;
|
|
20
|
+
Object.defineProperty(exports, key, {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () {
|
|
23
|
+
return _contract[key];
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
const TransactionType = exports.TransactionType = {
|
|
28
|
+
DECLARE: "DECLARE",
|
|
29
|
+
DEPLOY: "DEPLOY",
|
|
30
|
+
DEPLOY_ACCOUNT: "DEPLOY_ACCOUNT",
|
|
31
|
+
INVOKE: "INVOKE_FUNCTION"
|
|
32
|
+
};
|
|
33
|
+
const TransactionStatus = exports.TransactionStatus = {
|
|
34
|
+
NOT_RECEIVED: "NOT_RECEIVED",
|
|
35
|
+
RECEIVED: "RECEIVED",
|
|
36
|
+
ACCEPTED_ON_L2: "ACCEPTED_ON_L2",
|
|
37
|
+
ACCEPTED_ON_L1: "ACCEPTED_ON_L1",
|
|
38
|
+
REJECTED: "REJECTED",
|
|
39
|
+
REVERTED: "REVERTED"
|
|
40
|
+
};
|
|
41
|
+
const TransactionFinalityStatus = exports.TransactionFinalityStatus = {
|
|
42
|
+
NOT_RECEIVED: "NOT_RECEIVED",
|
|
43
|
+
RECEIVED: "RECEIVED",
|
|
44
|
+
ACCEPTED_ON_L2: "ACCEPTED_ON_L2",
|
|
45
|
+
ACCEPTED_ON_L1: "ACCEPTED_ON_L1"
|
|
46
|
+
};
|
|
47
|
+
const TransactionExecutionStatus = exports.TransactionExecutionStatus = {
|
|
48
|
+
REJECTED: "REJECTED",
|
|
49
|
+
REVERTED: "REVERTED",
|
|
50
|
+
SUCCEEDED: "SUCCEEDED"
|
|
51
|
+
};
|
|
52
|
+
const BlockStatus = exports.BlockStatus = {
|
|
53
|
+
PENDING: "PENDING",
|
|
54
|
+
ACCEPTED_ON_L1: "ACCEPTED_ON_L1",
|
|
55
|
+
ACCEPTED_ON_L2: "ACCEPTED_ON_L2",
|
|
56
|
+
REJECTED: "REJECTED"
|
|
57
|
+
};
|
|
58
|
+
const BlockTag = exports.BlockTag = {
|
|
59
|
+
PENDING: "pending",
|
|
60
|
+
LATEST: "latest"
|
|
61
|
+
};
|