@gfxlabs/oku-chains 1.12.21 → 1.12.23
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/browser.js +265 -3
- package/dist/index-mjs.js +265 -6
- package/dist/index.js +265 -3
- package/dist/types/definitions/index.d.ts +1 -0
- package/dist/types/definitions/sepolia.d.ts +135 -0
- package/dist/types/index.d.ts +137 -9
- package/dist/types/non-evm/index.d.ts +2 -0
- package/dist/types/non-evm/solana.d.ts +85 -0
- package/dist/types/non-evm/zcash.d.ts +85 -0
- package/dist/types/spec/index.d.ts +4 -1
- package/package.json +1 -1
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export declare const solana: Readonly<{
|
|
2
|
+
caip2Namespace: "solana";
|
|
3
|
+
caip2Reference: "5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp";
|
|
4
|
+
internalName: "solana";
|
|
5
|
+
transactionType: "solana";
|
|
6
|
+
sortIndex: 1001;
|
|
7
|
+
launchTime: 1584368940;
|
|
8
|
+
blockTimeSeconds: 0.4;
|
|
9
|
+
deprecated: false;
|
|
10
|
+
logoUrl: "https://cms.oku.trade/cdn/public/chains/solana-logo.webp";
|
|
11
|
+
nativeLogoUrl: "https://cms.oku.trade/cdn/public/natives/sol.png";
|
|
12
|
+
blockAid: "solana";
|
|
13
|
+
estimatedSwapGas: 0;
|
|
14
|
+
estimatedBridgeGas: 0;
|
|
15
|
+
estimatedWrapGas: 0;
|
|
16
|
+
initCodeHash: "0x0000000000000000000000000000000000000000000000000000000000000000";
|
|
17
|
+
defaultPool: "0x0000000000000000000000000000000000000000";
|
|
18
|
+
defaultToken0: "0x0000000000000000000000000000000000000000";
|
|
19
|
+
defaultToken1: "0x0000000000000000000000000000000000000000";
|
|
20
|
+
tokenList: never[];
|
|
21
|
+
stables: never[];
|
|
22
|
+
watchlist: never[];
|
|
23
|
+
v4Watchlist: never[];
|
|
24
|
+
externalId: {
|
|
25
|
+
coingecko: string;
|
|
26
|
+
};
|
|
27
|
+
markets: {};
|
|
28
|
+
bridges: {};
|
|
29
|
+
oracles: {
|
|
30
|
+
coingecko: {
|
|
31
|
+
slug: string;
|
|
32
|
+
native: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
uniswap: {};
|
|
36
|
+
morpho: {};
|
|
37
|
+
token: {};
|
|
38
|
+
oku: {};
|
|
39
|
+
contracts: {
|
|
40
|
+
nftManager: {
|
|
41
|
+
address: "0x0000000000000000000000000000000000000000";
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
blockExplorers: {
|
|
45
|
+
readonly default: {
|
|
46
|
+
readonly name: "Solscan";
|
|
47
|
+
readonly url: "https://solscan.io";
|
|
48
|
+
readonly apiUrl: "https://public-api.solscan.io";
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
blockTime?: number | undefined | undefined;
|
|
52
|
+
ensTlds?: readonly string[] | undefined;
|
|
53
|
+
id: 0;
|
|
54
|
+
name: "Solana";
|
|
55
|
+
nativeCurrency: {
|
|
56
|
+
readonly name: "Solana";
|
|
57
|
+
readonly symbol: "SOL";
|
|
58
|
+
readonly decimals: 9;
|
|
59
|
+
};
|
|
60
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
61
|
+
rpcUrls: {
|
|
62
|
+
readonly default: {
|
|
63
|
+
readonly http: readonly ["https://api.mainnet-beta.solana.com"];
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
sourceId?: number | undefined | undefined;
|
|
67
|
+
testnet?: boolean | undefined | undefined;
|
|
68
|
+
custom?: Record<string, unknown> | undefined;
|
|
69
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
70
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
71
|
+
formatters?: undefined;
|
|
72
|
+
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
73
|
+
client: import("viem").Client;
|
|
74
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
75
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
76
|
+
client: import("viem").Client;
|
|
77
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
78
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
|
|
79
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
80
|
+
}] | undefined;
|
|
81
|
+
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
82
|
+
verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
|
|
83
|
+
} & {
|
|
84
|
+
caip2Namespace: string;
|
|
85
|
+
}>;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export declare const zcash: Readonly<{
|
|
2
|
+
caip2Namespace: "bip122";
|
|
3
|
+
caip2Reference: "00040fe8ec8471911baa1db1266ea15d";
|
|
4
|
+
internalName: "zcash";
|
|
5
|
+
transactionType: "zcash";
|
|
6
|
+
sortIndex: 1002;
|
|
7
|
+
launchTime: 1477641360;
|
|
8
|
+
blockTimeSeconds: 75;
|
|
9
|
+
deprecated: false;
|
|
10
|
+
logoUrl: "https://cms.oku.trade/cdn/public/chains/zcash-logo.webp";
|
|
11
|
+
nativeLogoUrl: "https://cms.oku.trade/cdn/public/natives/zec.png";
|
|
12
|
+
blockAid: "";
|
|
13
|
+
estimatedSwapGas: 0;
|
|
14
|
+
estimatedBridgeGas: 0;
|
|
15
|
+
estimatedWrapGas: 0;
|
|
16
|
+
initCodeHash: "0x0000000000000000000000000000000000000000000000000000000000000000";
|
|
17
|
+
defaultPool: "0x0000000000000000000000000000000000000000";
|
|
18
|
+
defaultToken0: "0x0000000000000000000000000000000000000000";
|
|
19
|
+
defaultToken1: "0x0000000000000000000000000000000000000000";
|
|
20
|
+
tokenList: never[];
|
|
21
|
+
stables: never[];
|
|
22
|
+
watchlist: never[];
|
|
23
|
+
v4Watchlist: never[];
|
|
24
|
+
externalId: {
|
|
25
|
+
coingecko: string;
|
|
26
|
+
};
|
|
27
|
+
markets: {};
|
|
28
|
+
bridges: {};
|
|
29
|
+
oracles: {
|
|
30
|
+
coingecko: {
|
|
31
|
+
slug: string;
|
|
32
|
+
native: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
uniswap: {};
|
|
36
|
+
morpho: {};
|
|
37
|
+
token: {};
|
|
38
|
+
oku: {};
|
|
39
|
+
contracts: {
|
|
40
|
+
nftManager: {
|
|
41
|
+
address: "0x0000000000000000000000000000000000000000";
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
blockExplorers: {
|
|
45
|
+
readonly default: {
|
|
46
|
+
readonly name: "Blockchair";
|
|
47
|
+
readonly url: "https://blockchair.com/zcash";
|
|
48
|
+
readonly apiUrl: "https://api.blockchair.com/zcash";
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
blockTime?: number | undefined | undefined;
|
|
52
|
+
ensTlds?: readonly string[] | undefined;
|
|
53
|
+
id: 0;
|
|
54
|
+
name: "Zcash";
|
|
55
|
+
nativeCurrency: {
|
|
56
|
+
readonly name: "Zcash";
|
|
57
|
+
readonly symbol: "ZEC";
|
|
58
|
+
readonly decimals: 8;
|
|
59
|
+
};
|
|
60
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
61
|
+
rpcUrls: {
|
|
62
|
+
readonly default: {
|
|
63
|
+
readonly http: readonly ["https://zec.rocks:443"];
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
sourceId?: number | undefined | undefined;
|
|
67
|
+
testnet?: boolean | undefined | undefined;
|
|
68
|
+
custom?: Record<string, unknown> | undefined;
|
|
69
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
70
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
71
|
+
formatters?: undefined;
|
|
72
|
+
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
73
|
+
client: import("viem").Client;
|
|
74
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
75
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
76
|
+
client: import("viem").Client;
|
|
77
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
78
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
|
|
79
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
80
|
+
}] | undefined;
|
|
81
|
+
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
82
|
+
verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
|
|
83
|
+
} & {
|
|
84
|
+
caip2Namespace: string;
|
|
85
|
+
}>;
|
|
@@ -252,7 +252,10 @@ export declare const NON_EVM_CHAIN_ID = 0;
|
|
|
252
252
|
export declare enum ChainType {
|
|
253
253
|
/** EVM chains (CAIP-2 namespace `eip155`). */
|
|
254
254
|
EVM = "eip155",
|
|
255
|
-
/**
|
|
255
|
+
/**
|
|
256
|
+
* Bitcoin and Bitcoin-derived chains, e.g. Zcash (CAIP-2 namespace
|
|
257
|
+
* `bip122`).
|
|
258
|
+
*/
|
|
256
259
|
Bitcoin = "bip122",
|
|
257
260
|
/** Solana (CAIP-2 namespace `solana`). */
|
|
258
261
|
Solana = "solana",
|