@nexeraid/identity-schemas 2.12.0-dev → 2.13.0-dev
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/{customers.schema-cd456746.cjs.dev.js → customers.schema-15a7ff7d.cjs.dev.js} +1 -1
- package/dist/{customers.schema-febb8ae2.cjs.prod.js → customers.schema-661c6594.cjs.prod.js} +1 -1
- package/dist/{customers.schema-c77f9377.esm.js → customers.schema-9aa2c859.esm.js} +1 -1
- package/dist/declarations/src/blockchain/addresses.schema.d.ts +78 -0
- package/dist/declarations/src/blockchain/addresses.schema.d.ts.map +1 -0
- package/dist/declarations/src/blockchain/base.schema.d.ts +8 -0
- package/dist/declarations/src/blockchain/base.schema.d.ts.map +1 -0
- package/dist/declarations/src/blockchain/chains/all.schema.d.ts +65 -0
- package/dist/declarations/src/blockchain/chains/all.schema.d.ts.map +1 -0
- package/dist/declarations/src/blockchain/chains/cosmos.schema.d.ts +18 -0
- package/dist/declarations/src/blockchain/chains/cosmos.schema.d.ts.map +1 -0
- package/dist/declarations/src/blockchain/chains/evm.schema.d.ts +33 -0
- package/dist/declarations/src/blockchain/chains/evm.schema.d.ts.map +1 -0
- package/dist/declarations/src/blockchain/chains/index.d.ts +7 -0
- package/dist/declarations/src/blockchain/chains/index.d.ts.map +1 -0
- package/dist/declarations/src/blockchain/chains/polygon.schema.d.ts +5 -0
- package/dist/declarations/src/blockchain/chains/polygon.schema.d.ts.map +1 -0
- package/dist/declarations/src/blockchain/chains/starknet.schema.d.ts +17 -0
- package/dist/declarations/src/blockchain/chains/starknet.schema.d.ts.map +1 -0
- package/dist/declarations/src/blockchain/chains/tezos.schema.d.ts +18 -0
- package/dist/declarations/src/blockchain/chains/tezos.schema.d.ts.map +1 -0
- package/dist/declarations/src/blockchain/index.d.ts +7 -0
- package/dist/declarations/src/blockchain/index.d.ts.map +1 -0
- package/dist/declarations/src/blockchain/namespaces.schema.d.ts +24 -0
- package/dist/declarations/src/blockchain/namespaces.schema.d.ts.map +1 -0
- package/dist/declarations/src/blockchain/signatures.schema.d.ts +49 -0
- package/dist/declarations/src/blockchain/signatures.schema.d.ts.map +1 -0
- package/dist/declarations/src/blockchain/transaction.schema.d.ts +15 -0
- package/dist/declarations/src/blockchain/transaction.schema.d.ts.map +1 -0
- package/dist/declarations/src/config.schema.d.ts +0 -121
- package/dist/declarations/src/config.schema.d.ts.map +1 -1
- package/dist/declarations/src/identity/app-requests.schema.d.ts +16 -16
- package/dist/declarations/src/identity/host-requests.schema.d.ts +20 -20
- package/dist/declarations/src/identity/identity-api.schema.d.ts +2 -3
- package/dist/declarations/src/identity/identity-api.schema.d.ts.map +1 -1
- package/dist/declarations/src/identity/identity-v2.schema.d.ts +55 -56
- package/dist/declarations/src/identity/identity-v2.schema.d.ts.map +1 -1
- package/dist/declarations/src/identity/kyc.schema.d.ts +4 -4
- package/dist/declarations/src/identity/scenario.schema.d.ts +4 -4
- package/dist/declarations/src/identity/scenario.schema.d.ts.map +1 -1
- package/dist/declarations/src/identity/txAuthData.schema.d.ts +34 -34
- package/dist/declarations/src/identity/txAuthData.schema.d.ts.map +1 -1
- package/dist/declarations/src/index.d.ts +1 -1
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/declarations/src/nexeraSSID.schema.d.ts +21 -21
- package/dist/declarations/src/nexeraSSID.schema.d.ts.map +1 -1
- package/dist/declarations/src/providers/kyb-sessions.schema.d.ts +2 -2
- package/dist/declarations/src/providers/kyb-sessions.schema.d.ts.map +1 -1
- package/dist/declarations/src/providers/kyc-sessions.schema.d.ts +15 -15
- package/dist/declarations/src/providers/kyc-sessions.schema.d.ts.map +1 -1
- package/dist/declarations/src/providers/merkle-science/merkle-science.schema.d.ts +4 -4
- package/dist/declarations/src/providers/provider.schema.d.ts +414 -414
- package/dist/declarations/src/providers/scorechain/scorechain.schema.d.ts +14 -14
- package/dist/declarations/src/webhooks/scenario-webhook.schema.d.ts +1 -1
- package/dist/declarations/src/webhooks/send-verification-flow-webhook.schema.d.ts +20 -20
- package/dist/declarations/src/webhooks/svix.webhooks.schema.d.ts +108 -108
- package/dist/{frontend-utilities.schema-7f7addfe.cjs.dev.js → frontend-utilities.schema-5d184c4f.cjs.dev.js} +1 -1
- package/dist/{frontend-utilities.schema-31d5bec4.esm.js → frontend-utilities.schema-730f3456.esm.js} +1 -1
- package/dist/{frontend-utilities.schema-46767d1d.cjs.prod.js → frontend-utilities.schema-cc8ceb46.cjs.prod.js} +1 -1
- package/dist/{identity-api.schema-f3ba0b71.cjs.prod.js → identity-api.schema-37706ef2.cjs.prod.js} +201 -128
- package/dist/{identity-api.schema-2f759865.esm.js → identity-api.schema-58351f1d.esm.js} +184 -119
- package/dist/{identity-api.schema-d736140e.cjs.dev.js → identity-api.schema-de92d7dd.cjs.dev.js} +201 -128
- package/dist/nexeraid-identity-schemas.cjs.dev.js +21 -13
- package/dist/nexeraid-identity-schemas.cjs.prod.js +21 -13
- package/dist/nexeraid-identity-schemas.esm.js +4 -4
- package/dist/package.json +1 -1
- package/dist/{transaction.schema-0393003a.esm.js → transaction.schema-0ee693c4.esm.js} +1 -1
- package/dist/{transaction.schema-b2ad8256.cjs.prod.js → transaction.schema-477a98f8.cjs.prod.js} +1 -1
- package/dist/{transaction.schema-578785c4.cjs.dev.js → transaction.schema-89adc4fb.cjs.dev.js} +1 -1
- package/identity/dist/nexeraid-identity-schemas-identity.cjs.dev.js +1 -1
- package/identity/dist/nexeraid-identity-schemas-identity.cjs.prod.js +1 -1
- package/identity/dist/nexeraid-identity-schemas-identity.esm.js +1 -1
- package/package.json +1 -1
- package/providers/dist/nexeraid-identity-schemas-providers.cjs.dev.js +2 -2
- package/providers/dist/nexeraid-identity-schemas-providers.cjs.prod.js +2 -2
- package/providers/dist/nexeraid-identity-schemas-providers.esm.js +2 -2
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.dev.js +2 -2
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.prod.js +2 -2
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.esm.js +2 -2
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.dev.js +3 -3
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.prod.js +3 -3
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.esm.js +3 -3
- package/dist/declarations/src/blockchain.schema.d.ts +0 -143
- package/dist/declarations/src/blockchain.schema.d.ts.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var zod = require('zod');
|
|
4
|
-
var identityApi_schema = require('./identity-api.schema-
|
|
4
|
+
var identityApi_schema = require('./identity-api.schema-de92d7dd.cjs.dev.js');
|
|
5
5
|
|
|
6
6
|
// based on https://tech-doc.api.scorechain.com/
|
|
7
7
|
var ANALYSIS_TYPES = ["ASSIGNED", "INCOMING", "OUTGOING", "FULL"];
|
package/dist/{customers.schema-febb8ae2.cjs.prod.js → customers.schema-661c6594.cjs.prod.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var zod = require('zod');
|
|
4
|
-
var identityApi_schema = require('./identity-api.schema-
|
|
4
|
+
var identityApi_schema = require('./identity-api.schema-37706ef2.cjs.prod.js');
|
|
5
5
|
|
|
6
6
|
// based on https://tech-doc.api.scorechain.com/
|
|
7
7
|
var ANALYSIS_TYPES = ["ASSIGNED", "INCOMING", "OUTGOING", "FULL"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { _ as BlockchainAddress, D as AddressSchema, av as Alpha2Country, ap as UuidString, eV as _toConsumableArray, eX as _arrayWithHoles, eY as _unsupportedIterableToArray, eZ as _nonIterableRest, at as ISO3CountryCode, a2 as BlockchainNamespace, cg as SdkVerificationOutput, aL as CustomerStatus, e_ as _defineProperty, eM as ProofOfResidenceCredentialSubjectSchema, d8 as QrCodeLinkWithSchemaType, aM as BasicCustomerContactInformation, eS as CredentialType } from './identity-api.schema-58351f1d.esm.js';
|
|
3
3
|
|
|
4
4
|
// based on https://tech-doc.api.scorechain.com/
|
|
5
5
|
var ANALYSIS_TYPES = ["ASSIGNED", "INCOMING", "OUTGOING", "FULL"];
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { String0x } from "./base.schema.js";
|
|
3
|
+
/**
|
|
4
|
+
* EIP155
|
|
5
|
+
*/
|
|
6
|
+
export declare const isValidAddress: (address: string) => boolean;
|
|
7
|
+
export declare const PrivateKey: z.ZodEffects<z.ZodString, string, string>;
|
|
8
|
+
export type PrivateKey = String0x;
|
|
9
|
+
export declare const PublicKey: z.ZodString;
|
|
10
|
+
export type PublicKey = z.infer<typeof PublicKey>;
|
|
11
|
+
/**
|
|
12
|
+
* Note: it might be nice to use String0x as the base object instead of z.string(),
|
|
13
|
+
* but this causes update-api to fail with the following error:
|
|
14
|
+
* TRPCError: [query.kyc.sumsub.getJourneyData] -
|
|
15
|
+
* Input parser key: "userAddress" must be ZodString, ZodNumber, ZodBoolean, ZodBigInt or ZodDate
|
|
16
|
+
*/
|
|
17
|
+
export declare const AddressSchema: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>;
|
|
18
|
+
export type Address = z.infer<typeof AddressSchema>;
|
|
19
|
+
export declare const TxHash: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>;
|
|
20
|
+
export type TxHash = z.infer<typeof TxHash>;
|
|
21
|
+
export declare const shortBlockchainAddress: (address: BlockchainAddress) => string;
|
|
22
|
+
/**
|
|
23
|
+
* Aptos
|
|
24
|
+
*/
|
|
25
|
+
export declare const AptosAddress: z.ZodEffects<z.ZodString, string, string>;
|
|
26
|
+
export type AptosAddress = z.infer<typeof AptosAddress>;
|
|
27
|
+
/**
|
|
28
|
+
* Starknet
|
|
29
|
+
*/
|
|
30
|
+
export declare const StarknetAddress: z.ZodEffects<z.ZodString, string, string>;
|
|
31
|
+
export type StarknetAddress = z.infer<typeof StarknetAddress>;
|
|
32
|
+
/**
|
|
33
|
+
* Polkadot
|
|
34
|
+
*/
|
|
35
|
+
export declare const PolkadotAddress: z.ZodString;
|
|
36
|
+
export type PolkadotAddress = z.infer<typeof PolkadotAddress>;
|
|
37
|
+
/**
|
|
38
|
+
* Cosmos
|
|
39
|
+
*/
|
|
40
|
+
export declare const CosmosAddress: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `cosmos${string}`, string>;
|
|
41
|
+
export type CosmosAddress = z.infer<typeof CosmosAddress>;
|
|
42
|
+
/**
|
|
43
|
+
* Tezos
|
|
44
|
+
*/
|
|
45
|
+
export declare const TezosImplicitAddress: z.ZodEffects<z.ZodString, `tz${string}`, string>;
|
|
46
|
+
export type TezosImplicitAddress = z.infer<typeof TezosImplicitAddress>;
|
|
47
|
+
export declare const TezosContractAddress: z.ZodEffects<z.ZodString, `KT1${string}`, string>;
|
|
48
|
+
export type TezosContractAddress = z.infer<typeof TezosContractAddress>;
|
|
49
|
+
export declare const TezosAddress: z.ZodUnion<[z.ZodEffects<z.ZodString, `tz${string}`, string>, z.ZodEffects<z.ZodString, `KT1${string}`, string>]>;
|
|
50
|
+
export type TezosAddress = z.infer<typeof TezosAddress>;
|
|
51
|
+
/**
|
|
52
|
+
* Cardano
|
|
53
|
+
*/
|
|
54
|
+
export declare const CardanoAddress: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `addr${string}`, string>;
|
|
55
|
+
export type CardanoAddress = z.infer<typeof CardanoAddress>;
|
|
56
|
+
/**
|
|
57
|
+
* Bitcoin
|
|
58
|
+
*/
|
|
59
|
+
export declare const BitcoinP2PKHAddress: z.ZodEffects<z.ZodString, `1${string}`, string>;
|
|
60
|
+
export type BitcoinP2PKHAddress = z.infer<typeof BitcoinP2PKHAddress>;
|
|
61
|
+
export declare const BitcoinP2SHAddress: z.ZodEffects<z.ZodString, `3${string}`, string>;
|
|
62
|
+
export type BitcoinP2SHAddress = z.infer<typeof BitcoinP2SHAddress>;
|
|
63
|
+
export declare const BitcoinBech32Address: z.ZodEffects<z.ZodString, `bc1${string}`, string>;
|
|
64
|
+
export type BitcoinBech32Address = z.infer<typeof BitcoinBech32Address>;
|
|
65
|
+
export declare const BitcoinTestnetP2PKHAddress: z.ZodEffects<z.ZodString, `m${string}` | `n${string}`, string>;
|
|
66
|
+
export type BitcoinTestnetP2PKHAddress = z.infer<typeof BitcoinTestnetP2PKHAddress>;
|
|
67
|
+
export declare const BitcoinTestnetP2SHAddress: z.ZodEffects<z.ZodString, `2${string}`, string>;
|
|
68
|
+
export type BitcoinTestnetP2SHAddress = z.infer<typeof BitcoinTestnetP2SHAddress>;
|
|
69
|
+
export declare const BitcoinTestnetBech32Address: z.ZodEffects<z.ZodString, `tb1${string}`, string>;
|
|
70
|
+
export type BitcoinTestnetBech32Address = z.infer<typeof BitcoinTestnetBech32Address>;
|
|
71
|
+
export declare const BitcoinAddress: z.ZodUnion<[z.ZodEffects<z.ZodString, `1${string}`, string>, z.ZodEffects<z.ZodString, `3${string}`, string>, z.ZodEffects<z.ZodString, `bc1${string}`, string>, z.ZodEffects<z.ZodString, `m${string}` | `n${string}`, string>, z.ZodEffects<z.ZodString, `2${string}`, string>, z.ZodEffects<z.ZodString, `tb1${string}`, string>]>;
|
|
72
|
+
export type BitcoinAddress = z.infer<typeof BitcoinAddress>;
|
|
73
|
+
/**
|
|
74
|
+
* Chain agnostic schemas
|
|
75
|
+
*/
|
|
76
|
+
export declare const BlockchainAddress: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>, z.ZodUnion<[z.ZodEffects<z.ZodString, `tz${string}`, string>, z.ZodEffects<z.ZodString, `KT1${string}`, string>]>, z.ZodEffects<z.ZodString, string, string>, z.ZodString, z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `cosmos${string}`, string>, z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `addr${string}`, string>, z.ZodUnion<[z.ZodEffects<z.ZodString, `1${string}`, string>, z.ZodEffects<z.ZodString, `3${string}`, string>, z.ZodEffects<z.ZodString, `bc1${string}`, string>, z.ZodEffects<z.ZodString, `m${string}` | `n${string}`, string>, z.ZodEffects<z.ZodString, `2${string}`, string>, z.ZodEffects<z.ZodString, `tb1${string}`, string>]>]>;
|
|
77
|
+
export type BlockchainAddress = z.infer<typeof BlockchainAddress>;
|
|
78
|
+
//# sourceMappingURL=addresses.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addresses.schema.d.ts","sourceRoot":"../../../../src/blockchain","sources":["addresses.schema.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* EIP155
|
|
4
|
+
*/
|
|
5
|
+
export declare const String0x: z.ZodEffects<z.ZodString, string, string>;
|
|
6
|
+
export type String0x = z.infer<typeof String0x>;
|
|
7
|
+
export declare const HexadecimalSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
8
|
+
//# sourceMappingURL=base.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.schema.d.ts","sourceRoot":"../../../../src/blockchain","sources":["base.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,QAAQ,2CAKG,CAAC;AACzB,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEhD,eAAO,MAAM,iBAAiB,2CAI1B,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { NEXERA_COSMOS_CHAINS } from "./cosmos.schema.js";
|
|
3
|
+
import { NEXERA_EVM_CHAINS } from "./evm.schema.js";
|
|
4
|
+
import { NEXERA_TEZOS_CHAINS } from "./tezos.schema.js";
|
|
5
|
+
export declare const NEXERA_EVM_CHAIN_NAMES: {
|
|
6
|
+
readonly "1": "Ethereum Mainnet";
|
|
7
|
+
readonly "5": "Goerli";
|
|
8
|
+
readonly "11155111": "Sepolia";
|
|
9
|
+
readonly "137": "Polygon";
|
|
10
|
+
readonly "80002": "Polygon Amoy";
|
|
11
|
+
readonly "43114": "Avalanche";
|
|
12
|
+
readonly "43113": "Avalanche Fuji";
|
|
13
|
+
readonly "42161": "Arbitrum";
|
|
14
|
+
readonly "421614": "Arbitrum Sepolia";
|
|
15
|
+
readonly "8453": "Base";
|
|
16
|
+
readonly "84532": "Base Sepolia";
|
|
17
|
+
readonly "56": "BSC";
|
|
18
|
+
readonly "97": "BSC Testnet";
|
|
19
|
+
readonly "10": "Optimism";
|
|
20
|
+
readonly "11155420": "Optimism Sepolia";
|
|
21
|
+
readonly "1284": "Moonbeam";
|
|
22
|
+
readonly "1285": "Moonriver";
|
|
23
|
+
readonly NetXdQprcVkpaWU: "tezos-mainnet";
|
|
24
|
+
readonly NetXnHfVqm9iesp: "tezos-ghostnet";
|
|
25
|
+
readonly "cosmoshub-4": "cosmos-mainnet";
|
|
26
|
+
readonly "theta-testnet-001": "cosmos-testnet";
|
|
27
|
+
readonly "0x534e5f4d41494e": "starknet-mainnet";
|
|
28
|
+
readonly "0x534e5f5345504f4c4941": "starknet-sepolia";
|
|
29
|
+
readonly "420": "Optimism Goerli";
|
|
30
|
+
readonly "421613": "Arbitrum Goerli";
|
|
31
|
+
readonly "1291": "Swisstronik Testnet";
|
|
32
|
+
};
|
|
33
|
+
export declare const NEXERA_EVM_CHAIN_NAMES_LIST: ("BSC" | "Polygon" | "Optimism" | "Arbitrum" | "Moonbeam" | "Moonriver" | "Ethereum Mainnet" | "Goerli" | "Sepolia" | "Polygon Amoy" | "Avalanche" | "Avalanche Fuji" | "Arbitrum Sepolia" | "Base" | "Base Sepolia" | "BSC Testnet" | "Optimism Sepolia" | "tezos-mainnet" | "tezos-ghostnet" | "cosmos-mainnet" | "cosmos-testnet" | "starknet-mainnet" | "starknet-sepolia" | "Optimism Goerli" | "Arbitrum Goerli" | "Swisstronik Testnet")[];
|
|
34
|
+
export declare const NEXERA_CHAIN_IDS: {
|
|
35
|
+
readonly "1": 1;
|
|
36
|
+
readonly "5": 5;
|
|
37
|
+
readonly "137": 137;
|
|
38
|
+
readonly "80002": 80002;
|
|
39
|
+
readonly "43114": 43114;
|
|
40
|
+
readonly "43113": 43113;
|
|
41
|
+
readonly "42161": 42161;
|
|
42
|
+
readonly "421613": 421613;
|
|
43
|
+
readonly "421614": 421614;
|
|
44
|
+
readonly "11155111": 11155111;
|
|
45
|
+
readonly "8453": 8453;
|
|
46
|
+
readonly "84531": 84531;
|
|
47
|
+
readonly "84532": 84532;
|
|
48
|
+
readonly "56": 56;
|
|
49
|
+
readonly "97": 97;
|
|
50
|
+
readonly "1284": 1284;
|
|
51
|
+
readonly "1285": 1285;
|
|
52
|
+
readonly "10": 10;
|
|
53
|
+
readonly "420": 69;
|
|
54
|
+
readonly "11155420": 11155420;
|
|
55
|
+
readonly "1291": 1291;
|
|
56
|
+
readonly NetXdQprcVkpaWU: "NetXdQprcVkpaWU";
|
|
57
|
+
readonly NetXnHfVqm9iesp: "NetXnHfVqm9iesp";
|
|
58
|
+
readonly "cosmoshub-4": "cosmoshub-4";
|
|
59
|
+
readonly "theta-testnet-001": "theta-testnet-001";
|
|
60
|
+
readonly "0x534e5f4d41494e": "0x534e5f4d41494e";
|
|
61
|
+
readonly "0x534e5f5345504f4c4941": "0x534e5f5345504f4c4941";
|
|
62
|
+
};
|
|
63
|
+
export declare const BlockchainId: z.ZodUnion<[z.ZodEnum<[NEXERA_EVM_CHAINS.ETHEREUM, NEXERA_EVM_CHAINS.POLYGON, NEXERA_EVM_CHAINS.POLYGON_AMOY, NEXERA_EVM_CHAINS.AVALANCHE, NEXERA_EVM_CHAINS.AVALANCHE_FUJI, NEXERA_EVM_CHAINS.ARBITRUM, NEXERA_EVM_CHAINS.ARBITRUM_SEPOLIA, NEXERA_EVM_CHAINS.SEPOLIA, NEXERA_EVM_CHAINS.BASE, NEXERA_EVM_CHAINS.BASE_SEPOLIA, NEXERA_EVM_CHAINS.BNB, NEXERA_EVM_CHAINS.BNB_TESTNET, NEXERA_EVM_CHAINS.MOONBEAM, NEXERA_EVM_CHAINS.MOONRIVER, NEXERA_EVM_CHAINS.OPTIMISM, NEXERA_EVM_CHAINS.OPTIMISM_SEPOLIA, NEXERA_EVM_CHAINS.SWISSTRONIK_TESTNET]>, z.ZodEnum<[NEXERA_TEZOS_CHAINS.TEZOS, NEXERA_TEZOS_CHAINS.TEZOS_GHOSTNET]>, z.ZodEnum<[NEXERA_COSMOS_CHAINS.COSMOS, NEXERA_COSMOS_CHAINS.COSMOS_TESTNET]>, z.ZodEnum<["0x534e5f4d41494e", "0x534e5f5345504f4c4941"]>]>;
|
|
64
|
+
export type BlockchainId = z.infer<typeof BlockchainId>;
|
|
65
|
+
//# sourceMappingURL=all.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"all.schema.d.ts","sourceRoot":"../../../../../src/blockchain/chains","sources":["all.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAiB,oBAAoB,EAAE,2BAAwB;AACtE,OAAO,EAAc,iBAAiB,EAAE,wBAAqB;AAE7D,OAAO,EAAE,mBAAmB,EAAgB,0BAAuB;AAEnE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BzB,CAAC;AAEX,eAAO,MAAM,2BAA2B,mbAEvC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BnB,CAAC;AAMX,eAAO,MAAM,YAAY,gvBAKvB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare enum NEXERA_COSMOS_CHAINS {
|
|
3
|
+
COSMOS = "cosmoshub-4",
|
|
4
|
+
COSMOS_TESTNET = "theta-testnet-001"
|
|
5
|
+
}
|
|
6
|
+
export declare const COSMOS_CHAIN_NAMES: {
|
|
7
|
+
readonly "cosmoshub-4": "Cosmos Mainnet";
|
|
8
|
+
readonly "theta-testnet-001": "Cosmos Testnet";
|
|
9
|
+
};
|
|
10
|
+
export declare const COSMOS_CHAIN_NAMES_LIST: ("Cosmos Mainnet" | "Cosmos Testnet")[];
|
|
11
|
+
export declare const COSMOS_CHAIN_IDS: {
|
|
12
|
+
readonly "cosmoshub-4": "cosmoshub-4";
|
|
13
|
+
readonly "theta-testnet-001": "theta-testnet-001";
|
|
14
|
+
};
|
|
15
|
+
export declare const ACTIVE_COSMOS_CHAIN_IDS: readonly [NEXERA_COSMOS_CHAINS.COSMOS, NEXERA_COSMOS_CHAINS.COSMOS_TESTNET];
|
|
16
|
+
export declare const CosmosChainId: z.ZodEnum<[NEXERA_COSMOS_CHAINS.COSMOS, NEXERA_COSMOS_CHAINS.COSMOS_TESTNET]>;
|
|
17
|
+
export type CosmosChainId = z.infer<typeof CosmosChainId>;
|
|
18
|
+
//# sourceMappingURL=cosmos.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cosmos.schema.d.ts","sourceRoot":"../../../../../src/blockchain/chains","sources":["cosmos.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,oBAAY,oBAAoB;IAC9B,MAAM,gBAAgB;IACtB,cAAc,sBAAsB;CACrC;AAED,eAAO,MAAM,kBAAkB;;;CAGrB,CAAC;AAEX,eAAO,MAAM,uBAAuB,yCAAoC,CAAC;AAEzE,eAAO,MAAM,gBAAgB;;;CAGnB,CAAC;AAEX,eAAO,MAAM,uBAAuB,6EAG1B,CAAC;AAEX,eAAO,MAAM,aAAa,+EAEsC,CAAC;AAEjE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare enum NEXERA_EVM_CHAINS {
|
|
3
|
+
ETHEREUM = "1",
|
|
4
|
+
GOERLI = "5",
|
|
5
|
+
ARBITRUM = "42161",
|
|
6
|
+
ARBITRUM_GOERLI = "421613",
|
|
7
|
+
ARBITRUM_SEPOLIA = "421614",
|
|
8
|
+
OPTIMISM = "10",
|
|
9
|
+
OPTIMISM_GOERLI = "420",
|
|
10
|
+
OPTIMISM_SEPOLIA = "11155420",
|
|
11
|
+
AVALANCHE = "43114",
|
|
12
|
+
AVALANCHE_FUJI = "43113",
|
|
13
|
+
POLYGON = "137",
|
|
14
|
+
POLYGON_AMOY = "80002",
|
|
15
|
+
SEPOLIA = "11155111",
|
|
16
|
+
BASE = "8453",
|
|
17
|
+
BASE_GOERLI = "84531",
|
|
18
|
+
BASE_SEPOLIA = "84532",
|
|
19
|
+
MOONBEAM = "1284",
|
|
20
|
+
MOONRIVER = "1285",
|
|
21
|
+
BNB = "56",
|
|
22
|
+
BNB_TESTNET = "97",
|
|
23
|
+
SWISSTRONIK_TESTNET = "1291"
|
|
24
|
+
}
|
|
25
|
+
export declare const NEXERA_EVM_CHAINS_ID: readonly [NEXERA_EVM_CHAINS.ETHEREUM, NEXERA_EVM_CHAINS.GOERLI, NEXERA_EVM_CHAINS.ARBITRUM, NEXERA_EVM_CHAINS.ARBITRUM_GOERLI, NEXERA_EVM_CHAINS.ARBITRUM_SEPOLIA, NEXERA_EVM_CHAINS.OPTIMISM, NEXERA_EVM_CHAINS.OPTIMISM_GOERLI, NEXERA_EVM_CHAINS.OPTIMISM_SEPOLIA, NEXERA_EVM_CHAINS.AVALANCHE, NEXERA_EVM_CHAINS.AVALANCHE_FUJI, NEXERA_EVM_CHAINS.POLYGON, NEXERA_EVM_CHAINS.POLYGON_AMOY, NEXERA_EVM_CHAINS.SEPOLIA, NEXERA_EVM_CHAINS.BASE, NEXERA_EVM_CHAINS.BASE_GOERLI, NEXERA_EVM_CHAINS.BASE_SEPOLIA, NEXERA_EVM_CHAINS.MOONBEAM, NEXERA_EVM_CHAINS.MOONRIVER, NEXERA_EVM_CHAINS.BNB, NEXERA_EVM_CHAINS.BNB_TESTNET, NEXERA_EVM_CHAINS.SWISSTRONIK_TESTNET];
|
|
26
|
+
export declare const NexeraEvmChains: z.ZodEnum<[NEXERA_EVM_CHAINS.ETHEREUM, NEXERA_EVM_CHAINS.GOERLI, NEXERA_EVM_CHAINS.ARBITRUM, NEXERA_EVM_CHAINS.ARBITRUM_GOERLI, NEXERA_EVM_CHAINS.ARBITRUM_SEPOLIA, NEXERA_EVM_CHAINS.OPTIMISM, NEXERA_EVM_CHAINS.OPTIMISM_GOERLI, NEXERA_EVM_CHAINS.OPTIMISM_SEPOLIA, NEXERA_EVM_CHAINS.AVALANCHE, NEXERA_EVM_CHAINS.AVALANCHE_FUJI, NEXERA_EVM_CHAINS.POLYGON, NEXERA_EVM_CHAINS.POLYGON_AMOY, NEXERA_EVM_CHAINS.SEPOLIA, NEXERA_EVM_CHAINS.BASE, NEXERA_EVM_CHAINS.BASE_GOERLI, NEXERA_EVM_CHAINS.BASE_SEPOLIA, NEXERA_EVM_CHAINS.MOONBEAM, NEXERA_EVM_CHAINS.MOONRIVER, NEXERA_EVM_CHAINS.BNB, NEXERA_EVM_CHAINS.BNB_TESTNET, NEXERA_EVM_CHAINS.SWISSTRONIK_TESTNET]>;
|
|
27
|
+
export type NexeraEvmChains = z.infer<typeof NexeraEvmChains>;
|
|
28
|
+
export declare const EVM_BLOCK_TIME: Record<NEXERA_EVM_CHAINS, number>;
|
|
29
|
+
export declare const EVM_CHAINS_WITHOUT_DEDICATED_NODE_RPC: NEXERA_EVM_CHAINS[];
|
|
30
|
+
export declare const ACTIVE_EVM_CHAIN_VALUES: readonly [NEXERA_EVM_CHAINS.ETHEREUM, NEXERA_EVM_CHAINS.POLYGON, NEXERA_EVM_CHAINS.POLYGON_AMOY, NEXERA_EVM_CHAINS.AVALANCHE, NEXERA_EVM_CHAINS.AVALANCHE_FUJI, NEXERA_EVM_CHAINS.ARBITRUM, NEXERA_EVM_CHAINS.ARBITRUM_SEPOLIA, NEXERA_EVM_CHAINS.SEPOLIA, NEXERA_EVM_CHAINS.BASE, NEXERA_EVM_CHAINS.BASE_SEPOLIA, NEXERA_EVM_CHAINS.BNB, NEXERA_EVM_CHAINS.BNB_TESTNET, NEXERA_EVM_CHAINS.MOONBEAM, NEXERA_EVM_CHAINS.MOONRIVER, NEXERA_EVM_CHAINS.OPTIMISM, NEXERA_EVM_CHAINS.OPTIMISM_SEPOLIA, NEXERA_EVM_CHAINS.SWISSTRONIK_TESTNET];
|
|
31
|
+
export declare const EvmChainId: z.ZodEnum<[NEXERA_EVM_CHAINS.ETHEREUM, NEXERA_EVM_CHAINS.POLYGON, NEXERA_EVM_CHAINS.POLYGON_AMOY, NEXERA_EVM_CHAINS.AVALANCHE, NEXERA_EVM_CHAINS.AVALANCHE_FUJI, NEXERA_EVM_CHAINS.ARBITRUM, NEXERA_EVM_CHAINS.ARBITRUM_SEPOLIA, NEXERA_EVM_CHAINS.SEPOLIA, NEXERA_EVM_CHAINS.BASE, NEXERA_EVM_CHAINS.BASE_SEPOLIA, NEXERA_EVM_CHAINS.BNB, NEXERA_EVM_CHAINS.BNB_TESTNET, NEXERA_EVM_CHAINS.MOONBEAM, NEXERA_EVM_CHAINS.MOONRIVER, NEXERA_EVM_CHAINS.OPTIMISM, NEXERA_EVM_CHAINS.OPTIMISM_SEPOLIA, NEXERA_EVM_CHAINS.SWISSTRONIK_TESTNET]>;
|
|
32
|
+
export type EvmChainId = z.infer<typeof EvmChainId>;
|
|
33
|
+
//# sourceMappingURL=evm.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evm.schema.d.ts","sourceRoot":"../../../../../src/blockchain/chains","sources":["evm.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oBAAY,iBAAiB;IAC3B,QAAQ,MAAM;IACd,MAAM,MAAM;IACZ,QAAQ,UAAU;IAClB,eAAe,WAAW;IAC1B,gBAAgB,WAAW;IAC3B,QAAQ,OAAO;IACf,eAAe,QAAQ;IACvB,gBAAgB,aAAa;IAC7B,SAAS,UAAU;IACnB,cAAc,UAAU;IACxB,OAAO,QAAQ;IACf,YAAY,UAAU;IACtB,OAAO,aAAa;IACpB,IAAI,SAAS;IACb,WAAW,UAAU;IACrB,YAAY,UAAU;IACtB,QAAQ,SAAS;IACjB,SAAS,SAAS;IAClB,GAAG,OAAO;IACV,WAAW,OAAO;IAClB,mBAAmB,SAAS;CAC7B;AAED,eAAO,MAAM,oBAAoB,yoBAsBvB,CAAC;AAEX,eAAO,MAAM,eAAe,2oBAA+B,CAAC;AAC5D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAsB5D,CAAC;AAEF,eAAO,MAAM,qCAAqC,qBASjD,CAAC;AAEF,eAAO,MAAM,uBAAuB,0gBAkB1B,CAAC;AAEX,eAAO,MAAM,UAAU,4gBAIpB,CAAC;AACJ,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../src/blockchain/chains","sources":["index.ts"],"names":[],"mappings":"AAAA,gCAA6B;AAC7B,gCAA6B;AAC7B,mCAAgC;AAChC,kCAA+B;AAC/B,oCAAiC;AACjC,qCAAkC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const POLYGON_NETWORK_NAMES: readonly ["main", "amoy"];
|
|
3
|
+
export declare const PolygonNetworkNames: z.ZodEnum<["main", "amoy"]>;
|
|
4
|
+
export type PolygonNetworkNames = z.infer<typeof PolygonNetworkNames>;
|
|
5
|
+
//# sourceMappingURL=polygon.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polygon.schema.d.ts","sourceRoot":"../../../../../src/blockchain/chains","sources":["polygon.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,qBAAqB,2BAA4B,CAAC;AAC/D,eAAO,MAAM,mBAAmB,6BAAgC,CAAC;AACjE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare enum NEXERA_STARKNET_CHAINS {
|
|
3
|
+
STARKNET_MAIN = "0x534e5f4d41494e",
|
|
4
|
+
STARKNET_SEPOLIA = "0x534e5f5345504f4c4941"
|
|
5
|
+
}
|
|
6
|
+
export declare const NEXERA_STARKNET_CHAIN_NAMES: {
|
|
7
|
+
readonly STARKNET_MAIN: "Starknet Mainnet";
|
|
8
|
+
readonly STARKNET_SEPOLIA: "Starknet Sepolia";
|
|
9
|
+
};
|
|
10
|
+
export declare const NEXERA_STARKNET_CHAIN_IDS: {
|
|
11
|
+
readonly STARKNET_MAIN: "0x534e5f4d41494e";
|
|
12
|
+
readonly STARKNET_SEPOLIA: "0x534e5f5345504f4c4941";
|
|
13
|
+
};
|
|
14
|
+
export declare const NEXERA_ACTIVE_STARKNET_CHAIN_IDS: readonly ["0x534e5f4d41494e", "0x534e5f5345504f4c4941"];
|
|
15
|
+
export declare const StarknetChainId: z.ZodEnum<["0x534e5f4d41494e", "0x534e5f5345504f4c4941"]>;
|
|
16
|
+
export type StarknetChainId = z.infer<typeof StarknetChainId>;
|
|
17
|
+
//# sourceMappingURL=starknet.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"starknet.schema.d.ts","sourceRoot":"../../../../../src/blockchain/chains","sources":["starknet.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,oBAAY,sBAAsB;IAChC,aAAa,qBAAqB;IAClC,gBAAgB,2BAA2B;CAC5C;AAED,eAAO,MAAM,2BAA2B;;;CAG9B,CAAC;AAEX,eAAO,MAAM,yBAAyB;;;CAG5B,CAAC;AAEX,eAAO,MAAM,gCAAgC,yDAGnC,CAAC;AAEX,eAAO,MAAM,eAAe,2DAEoC,CAAC;AAEjE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare enum NEXERA_TEZOS_CHAINS {
|
|
3
|
+
TEZOS = "NetXdQprcVkpaWU",
|
|
4
|
+
TEZOS_GHOSTNET = "NetXnHfVqm9iesp"
|
|
5
|
+
}
|
|
6
|
+
export declare const NEXERA_TEZOS_CHAIN_NAMES: {
|
|
7
|
+
readonly NetXdQprcVkpaWU: "Tezos Mainnet";
|
|
8
|
+
readonly NetXnHfVqm9iesp: "Tezos Ghostnet";
|
|
9
|
+
};
|
|
10
|
+
export declare const NEXERA_TEZOS_CHAIN_NAMES_LIST: ("Tezos Mainnet" | "Tezos Ghostnet")[];
|
|
11
|
+
export declare const NEXERA_TEZOS_CHAIN_IDS: {
|
|
12
|
+
readonly NetXdQprcVkpaWU: "NetXdQprcVkpaWU";
|
|
13
|
+
readonly NetXnHfVqm9iesp: "NetXnHfVqm9iesp";
|
|
14
|
+
};
|
|
15
|
+
export declare const ACTIVE_TEZOS_CHAIN_IDS: readonly [NEXERA_TEZOS_CHAINS.TEZOS, NEXERA_TEZOS_CHAINS.TEZOS_GHOSTNET];
|
|
16
|
+
export declare const TezosChainId: z.ZodEnum<[NEXERA_TEZOS_CHAINS.TEZOS, NEXERA_TEZOS_CHAINS.TEZOS_GHOSTNET]>;
|
|
17
|
+
export type TezosChainId = z.infer<typeof TezosChainId>;
|
|
18
|
+
//# sourceMappingURL=tezos.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tezos.schema.d.ts","sourceRoot":"../../../../../src/blockchain/chains","sources":["tezos.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oBAAY,mBAAmB;IAC7B,KAAK,oBAAoB;IACzB,cAAc,oBAAoB;CACnC;AAKD,eAAO,MAAM,wBAAwB;;;CAG3B,CAAC;AAEX,eAAO,MAAM,6BAA6B,wCAEzC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;CAGzB,CAAC;AAEX,eAAO,MAAM,sBAAsB,0EAGzB,CAAC;AAEX,eAAO,MAAM,YAAY,4EAItB,CAAC;AACJ,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./chains/index.js";
|
|
2
|
+
export * from "./addresses.schema.js";
|
|
3
|
+
export * from "./base.schema.js";
|
|
4
|
+
export * from "./namespaces.schema.js";
|
|
5
|
+
export * from "./signatures.schema.js";
|
|
6
|
+
export * from "./transaction.schema.js";
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../src/blockchain","sources":["index.ts"],"names":[],"mappings":"AAAA,kCAAyB;AACzB,sCAAmC;AACnC,iCAA8B;AAC9B,uCAAoC;AACpC,uCAAoC;AACpC,wCAAqC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const BLOCKCHAIN_NAMESPACES: readonly ["tezos", "eip155", "aptos", "polkadot", "starknet", "cosmos", "solana", "cardano", "bitcoin"];
|
|
3
|
+
export declare const BlockchainNamespace: z.ZodEnum<["tezos", "eip155", "aptos", "polkadot", "starknet", "cosmos", "solana", "cardano", "bitcoin"]>;
|
|
4
|
+
export type BlockchainNamespace = z.infer<typeof BlockchainNamespace>;
|
|
5
|
+
export declare const SUPPORTED_BLOCKCHAIN_NAMESPACES_FOR_SIGNATURE_AUTH: readonly ["tezos", "eip155", "aptos", "polkadot", "starknet", "cosmos", "solana", "cardano"];
|
|
6
|
+
export declare const SupportedBlockchainNamespaceForSignatureAuth: z.ZodEnum<["tezos", "eip155", "aptos", "polkadot", "starknet", "cosmos", "solana", "cardano"]>;
|
|
7
|
+
export type SupportedBlockchainNamespaceForSignatureAuth = z.infer<typeof SupportedBlockchainNamespaceForSignatureAuth>;
|
|
8
|
+
export declare const BLOCKCHAIN_NAMESPACES_NAMES: {
|
|
9
|
+
readonly tezos: "Tezos";
|
|
10
|
+
readonly eip155: "EVM";
|
|
11
|
+
readonly aptos: "Aptos";
|
|
12
|
+
readonly polkadot: "Polkadot";
|
|
13
|
+
readonly starknet: "Starknet";
|
|
14
|
+
readonly cosmos: "Cosmos";
|
|
15
|
+
readonly solana: "Solana";
|
|
16
|
+
readonly cardano: "Cardano";
|
|
17
|
+
readonly bitcoin: "Bitcoin";
|
|
18
|
+
};
|
|
19
|
+
export declare const DISPLAYED_BLOCKCHAIN_NAMESPACES: readonly ["Tezos", "EVM", "Aptos", "Polkadot", "Starknet", "Cosmos", "Solana", "Cardano", "Bitcoin"];
|
|
20
|
+
export declare const DisplayedBlockchainNamespace: z.ZodEnum<["Tezos", "EVM", "Aptos", "Polkadot", "Starknet", "Cosmos", "Solana", "Cardano", "Bitcoin"]>;
|
|
21
|
+
export type DisplayedBlockchainNamespace = z.infer<typeof DisplayedBlockchainNamespace>;
|
|
22
|
+
export declare const BLOCKCHAIN_NAME_TO_NAMESPACE: Record<DisplayedBlockchainNamespace, BlockchainNamespace>;
|
|
23
|
+
export declare const BLOCKCHAIN_NAMESPACE_TO_NAME: Record<BlockchainNamespace, DisplayedBlockchainNamespace>;
|
|
24
|
+
//# sourceMappingURL=namespaces.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"namespaces.schema.d.ts","sourceRoot":"../../../../src/blockchain","sources":["namespaces.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB,yGAUxB,CAAC;AACX,eAAO,MAAM,mBAAmB,2GAAgC,CAAC;AACjE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACtE,eAAO,MAAM,kDAAkD,8FASrD,CAAC;AACX,eAAO,MAAM,4CAA4C,gGAExD,CAAC;AACF,MAAM,MAAM,4CAA4C,GAAG,CAAC,CAAC,KAAK,CAChE,OAAO,4CAA4C,CACpD,CAAC;AAGF,eAAO,MAAM,2BAA2B;;;;;;;;;;CAU9B,CAAC;AAEX,eAAO,MAAM,+BAA+B,sGAUlC,CAAC;AACX,eAAO,MAAM,4BAA4B,wGAExC,CAAC;AACF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,4BAA4B,CACpC,CAAC;AACF,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAC/C,4BAA4B,EAC5B,mBAAmB,CAWpB,CAAC;AACF,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAC/C,mBAAmB,EACnB,4BAA4B,CAW7B,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { String0x } from "./base.schema.js";
|
|
3
|
+
/**
|
|
4
|
+
* EIP155
|
|
5
|
+
*/
|
|
6
|
+
export declare const EIP155Signature: z.ZodEffects<z.ZodString, string, string>;
|
|
7
|
+
export type EIP155Signature = String0x;
|
|
8
|
+
/**
|
|
9
|
+
* Aptos
|
|
10
|
+
*/
|
|
11
|
+
export declare const AptosSignature: z.ZodString;
|
|
12
|
+
export type AptosSignature = z.infer<typeof AptosSignature>;
|
|
13
|
+
/**
|
|
14
|
+
* Starknet
|
|
15
|
+
*/
|
|
16
|
+
export declare const StarknetSignature: z.ZodEffects<z.ZodString, string, string>;
|
|
17
|
+
export type StarknetSignature = z.infer<typeof StarknetSignature>;
|
|
18
|
+
/**
|
|
19
|
+
* Polkadot
|
|
20
|
+
*/
|
|
21
|
+
export declare const PolkadotSignature: z.ZodEffects<z.ZodString, string, string>;
|
|
22
|
+
export type PolkadotSignature = z.infer<typeof PolkadotSignature>;
|
|
23
|
+
/**
|
|
24
|
+
* Cosmos
|
|
25
|
+
*/
|
|
26
|
+
export declare const CosmosSignature: z.ZodEffects<z.ZodString, string, string>;
|
|
27
|
+
export type CosmosSignature = z.infer<typeof CosmosSignature>;
|
|
28
|
+
/**
|
|
29
|
+
* Tezos
|
|
30
|
+
*/
|
|
31
|
+
export declare const EdSignature: z.ZodEffects<z.ZodString, `edsig${string}`, string>;
|
|
32
|
+
export type EdSignature = z.infer<typeof EdSignature>;
|
|
33
|
+
export declare const SpSignature: z.ZodEffects<z.ZodString, `spsig${string}`, string>;
|
|
34
|
+
export type SpSignature = z.infer<typeof SpSignature>;
|
|
35
|
+
export declare const P2Signature: z.ZodEffects<z.ZodString, `p2sig${string}`, string>;
|
|
36
|
+
export type P2Signature = z.infer<typeof P2Signature>;
|
|
37
|
+
export declare const TezosSignature: z.ZodUnion<[z.ZodEffects<z.ZodString, `edsig${string}`, string>, z.ZodEffects<z.ZodString, `spsig${string}`, string>, z.ZodEffects<z.ZodString, `p2sig${string}`, string>]>;
|
|
38
|
+
export type TezosSignature = z.infer<typeof TezosSignature>;
|
|
39
|
+
/**
|
|
40
|
+
* Cardano
|
|
41
|
+
*/
|
|
42
|
+
export declare const CardanoSignature: z.ZodEffects<z.ZodString, string, string>;
|
|
43
|
+
export type CardanoSignature = z.infer<typeof CardanoSignature>;
|
|
44
|
+
/**
|
|
45
|
+
* Chain agnostic schemas
|
|
46
|
+
*/
|
|
47
|
+
export declare const BlockchainSignature: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodUnion<[z.ZodEffects<z.ZodString, `edsig${string}`, string>, z.ZodEffects<z.ZodString, `spsig${string}`, string>, z.ZodEffects<z.ZodString, `p2sig${string}`, string>]>, z.ZodString, z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>]>;
|
|
48
|
+
export type BlockchainSignature = z.infer<typeof BlockchainSignature>;
|
|
49
|
+
//# sourceMappingURL=signatures.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signatures.schema.d.ts","sourceRoot":"../../../../src/blockchain","sources":["signatures.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAqB,QAAQ,EAAE,yBAAsB;AAE5D;;GAEG;AAEH,eAAO,MAAM,eAAe,2CAAW,CAAC;AACxC,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,cAAc,aAAa,CAAC;AACzC,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D;;GAEG;AAEH,eAAO,MAAM,iBAAiB,2CAAW,CAAC;AAC1C,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE;;GAEG;AAEH,eAAO,MAAM,iBAAiB,2CAAW,CAAC;AAC1C,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE;;GAEG;AAEH,eAAO,MAAM,eAAe,2CAAoB,CAAC;AACjD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D;;GAEG;AAEH,eAAO,MAAM,WAAW,qDAIpB,CAAC;AACL,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD,eAAO,MAAM,WAAW,qDAIpB,CAAC;AACL,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD,eAAO,MAAM,WAAW,qDAIpB,CAAC;AACL,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AACtD,eAAO,MAAM,cAAc,6KAAmD,CAAC;AAC/E,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D;;GAEG;AAEH,eAAO,MAAM,gBAAgB,2CAAoB,CAAC;AAClD,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE;;GAEG;AAEH,eAAO,MAAM,mBAAmB,+ZAQ9B,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { PrivateKey } from "./addresses.schema.js";
|
|
3
|
+
import { String0x } from "./base.schema.js";
|
|
4
|
+
/**
|
|
5
|
+
* EIP155
|
|
6
|
+
*/
|
|
7
|
+
export type TxData = PrivateKey;
|
|
8
|
+
export declare const FunctionCallData: z.ZodEffects<z.ZodString, string, string>;
|
|
9
|
+
export type FunctionCallData = String0x;
|
|
10
|
+
/**
|
|
11
|
+
* Tezos
|
|
12
|
+
*/
|
|
13
|
+
export declare const TezosEntrypointName: z.ZodEffects<z.ZodString, `%${string}`, string>;
|
|
14
|
+
export type TezosEntrypointName = z.infer<typeof TezosEntrypointName>;
|
|
15
|
+
//# sourceMappingURL=transaction.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transaction.schema.d.ts","sourceRoot":"../../../../src/blockchain","sources":["transaction.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,UAAU,EAAE,8BAA2B;AACrD,OAAO,EAAE,QAAQ,EAAE,yBAAsB;AAEzC;;GAEG;AAEH,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC;AAEhC,eAAO,MAAM,gBAAgB,2CAAW,CAAC;AACzC,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CAAC;AAExC;;GAEG;AAEH,eAAO,MAAM,mBAAmB,iDAKI,CAAC;AACrC,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -1,109 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
/**
|
|
3
|
-
* EIP155
|
|
4
|
-
*/
|
|
5
|
-
export declare const isValidAddress: (address: string) => boolean;
|
|
6
|
-
export declare const String0x: z.ZodEffects<z.ZodString, string, string>;
|
|
7
|
-
export type String0x = z.infer<typeof String0x>;
|
|
8
|
-
export type TxData = PrivateKey;
|
|
9
|
-
export declare const PrivateKey: z.ZodEffects<z.ZodString, string, string>;
|
|
10
|
-
export type PrivateKey = String0x;
|
|
11
|
-
export declare const PublicKey: z.ZodString;
|
|
12
|
-
export type PublicKey = z.infer<typeof PublicKey>;
|
|
13
|
-
/**
|
|
14
|
-
* Note: it might be nice to use String0x as the base object instead of z.string(),
|
|
15
|
-
* but this causes update-api to fail with the following error:
|
|
16
|
-
* TRPCError: [query.kyc.sumsub.getJourneyData] -
|
|
17
|
-
* Input parser key: "userAddress" must be ZodString, ZodNumber, ZodBoolean, ZodBigInt or ZodDate
|
|
18
|
-
*/
|
|
19
|
-
export declare const AddressSchema: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>;
|
|
20
|
-
export type Address = z.infer<typeof AddressSchema>;
|
|
21
|
-
export declare const TxHash: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>;
|
|
22
|
-
export type TxHash = z.infer<typeof TxHash>;
|
|
23
|
-
export declare const EIP155Signature: z.ZodEffects<z.ZodString, string, string>;
|
|
24
|
-
export type EIP155Signature = String0x;
|
|
25
|
-
export declare const FunctionCallData: z.ZodEffects<z.ZodString, string, string>;
|
|
26
|
-
export type FunctionCallData = String0x;
|
|
27
|
-
export declare const shortAddress: (address: BlockchainAddress) => BlockchainAddress;
|
|
28
|
-
/**
|
|
29
|
-
* Aptos
|
|
30
|
-
*/
|
|
31
|
-
export declare const AptosAddress: z.ZodEffects<z.ZodString, string, string>;
|
|
32
|
-
export type AptosAddress = z.infer<typeof AptosAddress>;
|
|
33
|
-
export declare const AptosSignature: z.ZodString;
|
|
34
|
-
export type AptosSignature = z.infer<typeof AptosSignature>;
|
|
35
|
-
/**
|
|
36
|
-
* Starknet
|
|
37
|
-
*/
|
|
38
|
-
export declare const StarknetAddress: z.ZodEffects<z.ZodString, string, string>;
|
|
39
|
-
export type StarknetAddress = z.infer<typeof StarknetAddress>;
|
|
40
|
-
export declare const StarknetSignature: z.ZodEffects<z.ZodString, string, string>;
|
|
41
|
-
export type StarknetSignature = z.infer<typeof StarknetSignature>;
|
|
42
|
-
/**
|
|
43
|
-
* Polkadot
|
|
44
|
-
*/
|
|
45
|
-
export declare const PolkadotAddress: z.ZodString;
|
|
46
|
-
export type PolkadotAddress = z.infer<typeof PolkadotAddress>;
|
|
47
|
-
export declare const PolkadotSignature: z.ZodEffects<z.ZodString, string, string>;
|
|
48
|
-
export type PolkadotSignature = z.infer<typeof PolkadotSignature>;
|
|
49
|
-
/**
|
|
50
|
-
* Cosmos
|
|
51
|
-
*/
|
|
52
|
-
export declare const CosmosAddress: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `cosmos${string}`, string>;
|
|
53
|
-
export type CosmosAddress = z.infer<typeof CosmosAddress>;
|
|
54
|
-
export declare const CosmosSignature: z.ZodEffects<z.ZodString, string, string>;
|
|
55
|
-
export type CosmosSignature = z.infer<typeof CosmosSignature>;
|
|
56
|
-
/**
|
|
57
|
-
* Tezos
|
|
58
|
-
*/
|
|
59
|
-
export declare const TezosImplicitAddress: z.ZodEffects<z.ZodString, `tz${string}`, string>;
|
|
60
|
-
export type TezosImplicitAddress = z.infer<typeof TezosImplicitAddress>;
|
|
61
|
-
export declare const TezosContractAddress: z.ZodEffects<z.ZodString, `KT1${string}`, string>;
|
|
62
|
-
export type TezosContractAddress = z.infer<typeof TezosContractAddress>;
|
|
63
|
-
export declare const TezosAddress: z.ZodUnion<[z.ZodEffects<z.ZodString, `tz${string}`, string>, z.ZodEffects<z.ZodString, `KT1${string}`, string>]>;
|
|
64
|
-
export type TezosAddress = z.infer<typeof TezosAddress>;
|
|
65
|
-
export declare const TezosEntrypointName: z.ZodEffects<z.ZodString, `%${string}`, string>;
|
|
66
|
-
export type TezosEntrypointName = z.infer<typeof TezosEntrypointName>;
|
|
67
|
-
export declare const EdSignature: z.ZodEffects<z.ZodString, `edsig${string}`, string>;
|
|
68
|
-
export type EdSignature = z.infer<typeof EdSignature>;
|
|
69
|
-
export declare const SpSignature: z.ZodEffects<z.ZodString, `spsig${string}`, string>;
|
|
70
|
-
export type SpSignature = z.infer<typeof SpSignature>;
|
|
71
|
-
export declare const P2Signature: z.ZodEffects<z.ZodString, `p2sig${string}`, string>;
|
|
72
|
-
export type P2Signature = z.infer<typeof P2Signature>;
|
|
73
|
-
export declare const TezosSignature: z.ZodUnion<[z.ZodEffects<z.ZodString, `edsig${string}`, string>, z.ZodEffects<z.ZodString, `spsig${string}`, string>, z.ZodEffects<z.ZodString, `p2sig${string}`, string>]>;
|
|
74
|
-
export type TezosSignature = z.infer<typeof TezosSignature>;
|
|
75
|
-
/**
|
|
76
|
-
* Cardano
|
|
77
|
-
*/
|
|
78
|
-
export declare const CardanoAddress: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `addr${string}`, string>;
|
|
79
|
-
export type CardanoAddress = z.infer<typeof CardanoAddress>;
|
|
80
|
-
export declare const CardanoSignature: z.ZodEffects<z.ZodString, string, string>;
|
|
81
|
-
export type CardanoSignature = z.infer<typeof CardanoSignature>;
|
|
82
|
-
/**
|
|
83
|
-
* Chain agnostic schemas
|
|
84
|
-
*/
|
|
85
|
-
export declare const BlockchainAddress: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>, z.ZodUnion<[z.ZodEffects<z.ZodString, `tz${string}`, string>, z.ZodEffects<z.ZodString, `KT1${string}`, string>]>, z.ZodEffects<z.ZodString, string, string>, z.ZodString, z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `cosmos${string}`, string>, z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `addr${string}`, string>]>;
|
|
86
|
-
export type BlockchainAddress = z.infer<typeof BlockchainAddress>;
|
|
87
|
-
export declare const BlockchainSignature: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodUnion<[z.ZodEffects<z.ZodString, `edsig${string}`, string>, z.ZodEffects<z.ZodString, `spsig${string}`, string>, z.ZodEffects<z.ZodString, `p2sig${string}`, string>]>, z.ZodString, z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>]>;
|
|
88
|
-
export type BlockchainSignature = z.infer<typeof BlockchainSignature>;
|
|
89
|
-
export declare const BLOCKCHAIN_NAMESPACES: readonly ["tezos", "eip155", "aptos", "polkadot", "starknet", "cosmos", "solana", "cardano"];
|
|
90
|
-
export declare const BlockchainNamespace: z.ZodEnum<["tezos", "eip155", "aptos", "polkadot", "starknet", "cosmos", "solana", "cardano"]>;
|
|
91
|
-
export type BlockchainNamespace = z.infer<typeof BlockchainNamespace>;
|
|
92
|
-
export declare const BLOCKCHAIN_NAMESPACES_NAMES: {
|
|
93
|
-
readonly tezos: "Tezos";
|
|
94
|
-
readonly eip155: "EVM";
|
|
95
|
-
readonly aptos: "Aptos";
|
|
96
|
-
readonly polkadot: "Polkadot";
|
|
97
|
-
readonly starknet: "Starknet";
|
|
98
|
-
readonly cosmos: "Cosmos";
|
|
99
|
-
readonly solana: "Solana";
|
|
100
|
-
readonly cardano: "Cardano";
|
|
101
|
-
};
|
|
102
|
-
export declare const DISPLAYED_LOCKCHAIN_NAMESPACES: readonly ["Tezos", "EVM", "Aptos", "Polkadot", "Starknet", "Cosmos", "Solana", "Cardano"];
|
|
103
|
-
export declare const DisplayedBlockchainNamespace: z.ZodEnum<["Tezos", "EVM", "Aptos", "Polkadot", "Starknet", "Cosmos", "Solana", "Cardano"]>;
|
|
104
|
-
export type DisplayedBlockchainNamespace = z.infer<typeof DisplayedBlockchainNamespace>;
|
|
105
|
-
export declare const BLOCKCHAIN_NAME_TO_NAMESPACE: Record<DisplayedBlockchainNamespace, BlockchainNamespace>;
|
|
106
|
-
export declare const BLOCKCHAIN_NAMESPACE_TO_NAME: Record<BlockchainNamespace, DisplayedBlockchainNamespace>;
|
|
107
2
|
export declare const ENVS: readonly ["cicd", "local", "test-dev-1", "test-dev-2", "test-dev-3", "dev", "stage", "prod"];
|
|
108
3
|
export declare const EnvironmentSchema: z.ZodEnum<["cicd", "local", "test-dev-1", "test-dev-2", "test-dev-3", "dev", "stage", "prod"]>;
|
|
109
4
|
export type Environment = z.infer<typeof EnvironmentSchema>;
|
|
@@ -111,22 +6,6 @@ export declare const UuidString: z.ZodString;
|
|
|
111
6
|
export type UuidString = z.infer<typeof UuidString>;
|
|
112
7
|
export declare const OtpCode: z.ZodString;
|
|
113
8
|
export type OtpCode = z.infer<typeof OtpCode>;
|
|
114
|
-
/**
|
|
115
|
-
* Zod parse without throwing an error if the value is invalid
|
|
116
|
-
* Rather, it returns a object with optional error and data fields
|
|
117
|
-
*
|
|
118
|
-
* @param schema
|
|
119
|
-
* @param value
|
|
120
|
-
* @constructor
|
|
121
|
-
*/
|
|
122
|
-
export declare function ZodParse<T>(schema: z.ZodSchema<T>, value: unknown): {
|
|
123
|
-
data: z.infer<typeof schema>;
|
|
124
|
-
error: undefined;
|
|
125
|
-
} | {
|
|
126
|
-
error: z.ZodError<unknown>;
|
|
127
|
-
data: undefined;
|
|
128
|
-
};
|
|
129
|
-
export declare const shortBlockchainAddress: (address: BlockchainAddress) => string;
|
|
130
9
|
/**
|
|
131
10
|
* All public services
|
|
132
11
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.schema.d.ts","sourceRoot":"../../../src","sources":["config.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB
|
|
1
|
+
{"version":3,"file":"config.schema.d.ts","sourceRoot":"../../../src","sources":["config.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,IAAI,8FASP,CAAC;AACX,eAAO,MAAM,iBAAiB,gGAAe,CAAC;AAC9C,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,UAAU,aAAoB,CAAC;AAC5C,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAEpD,eAAO,MAAM,OAAO,aAEmC,CAAC;AACxD,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC;AAE9C;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+B7B,CAAC;AAEX,eAAO,MAAM,SAAS,kFAUnB,CAAC"}
|