@circle-fin/usdckit 0.23.1 → 0.24.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/dist/cjs/actions/index.d.ts +1 -1
- package/dist/cjs/chains/ARC_TESTNET.d.ts +2 -2
- package/dist/cjs/chains/ARC_TESTNET.js +3 -36
- package/dist/cjs/chains/BASE.d.ts +6 -6
- package/dist/cjs/chains/BASE_SEPOLIA.d.ts +6 -6
- package/dist/cjs/chains/ETH_SEPOLIA.d.ts +1 -1
- package/dist/cjs/chains/MATIC.d.ts +1 -1
- package/dist/cjs/chains/MONAD.d.ts +184 -0
- package/dist/cjs/chains/MONAD.js +24 -0
- package/dist/cjs/chains/MONAD_TESTNET.d.ts +178 -0
- package/dist/cjs/chains/MONAD_TESTNET.js +24 -0
- package/dist/cjs/chains/NEAR.d.ts +1 -1
- package/dist/cjs/chains/NEAR_TESTNET.d.ts +1 -1
- package/dist/cjs/chains/OP.d.ts +6 -6
- package/dist/cjs/chains/OP_SEPOLIA.d.ts +6 -6
- package/dist/cjs/chains/UNI.d.ts +7 -7
- package/dist/cjs/chains/UNI_SEPOLIA.d.ts +7 -7
- package/dist/cjs/chains/index.d.ts +4 -2
- package/dist/cjs/chains/index.js +5 -1
- package/dist/cjs/chains/index.test.js +2 -0
- package/dist/cjs/chains.d.ts +2 -0
- package/dist/cjs/chains.js +12 -0
- package/dist/cjs/client.d.ts +1 -1
- package/dist/cjs/extractChain.d.ts +405 -45
- package/dist/cjs/extractChain.test.js +4 -0
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/metadata.js +1 -1
- package/dist/cjs/providers/circle-wallets/actions/createAccount.d.ts +402 -42
- package/dist/cjs/providers/circle-wallets/actions/createAccount.js +0 -3
- package/dist/cjs/providers/circle-wallets/actions/getAccounts.d.ts +402 -42
- package/dist/cjs/providers/circle-wallets/index.d.ts +643 -106
- package/dist/cjs/providers/circle-wallets/index.js +3 -0
- package/dist/cjs/providers/circle-wallets/transports/index.js +0 -1
- package/dist/cjs/providers/cross-chain-transfer-protocol/chains/BASE.d.ts +6 -6
- package/dist/cjs/providers/cross-chain-transfer-protocol/chains/BASE_SEPOLIA.d.ts +6 -6
- package/dist/cjs/providers/cross-chain-transfer-protocol/chains/ETH_SEPOLIA.d.ts +1 -1
- package/dist/cjs/providers/cross-chain-transfer-protocol/chains/MATIC.d.ts +1 -1
- package/dist/cjs/providers/cross-chain-transfer-protocol/chains/OP.d.ts +6 -6
- package/dist/cjs/providers/cross-chain-transfer-protocol/chains/OP_SEPOLIA.d.ts +6 -6
- package/dist/cjs/providers/cross-chain-transfer-protocol/chains/UNI.d.ts +7 -7
- package/dist/cjs/providers/cross-chain-transfer-protocol/chains/UNI_SEPOLIA.d.ts +7 -7
- package/dist/cjs/providers/cross-chain-transfer-protocol/index.d.ts +40 -40
- package/dist/cjs/providers/uniswap/chains/BASE.d.ts +6 -6
- package/dist/cjs/providers/uniswap/chains/BASE_SEPOLIA.d.ts +6 -6
- package/dist/cjs/providers/uniswap/chains/ETH_SEPOLIA.d.ts +1 -1
- package/dist/cjs/providers/uniswap/chains/MATIC.d.ts +1 -1
- package/dist/cjs/providers/uniswap/chains/OP.d.ts +6 -6
- package/dist/cjs/providers/uniswap/chains/OP_SEPOLIA.d.ts +6 -6
- package/dist/cjs/providers/uniswap/chains/UNI.d.ts +7 -7
- package/dist/cjs/providers/uniswap/chains/UNI_SEPOLIA.d.ts +7 -7
- package/dist/cjs/providers/uniswap/index.d.ts +40 -40
- package/dist/cjs/utils/createConfig.d.ts +1 -1
- package/dist/cjs/utils/createCustomWalletClient.d.ts +1 -1
- package/dist/cjs/utils/getChainContractByAddress.d.ts +1 -1
- package/dist/cjs/utils/getClient.d.ts +26 -0
- package/dist/cjs/utils/getContract.d.ts +8 -8
- package/dist/esm/actions/index.d.ts +1 -1
- package/dist/esm/chains/ARC_TESTNET.d.ts +2 -2
- package/dist/esm/chains/ARC_TESTNET.js +1 -34
- package/dist/esm/chains/BASE.d.ts +6 -6
- package/dist/esm/chains/BASE_SEPOLIA.d.ts +6 -6
- package/dist/esm/chains/ETH_SEPOLIA.d.ts +1 -1
- package/dist/esm/chains/MATIC.d.ts +1 -1
- package/dist/esm/chains/MONAD.d.ts +184 -0
- package/dist/esm/chains/MONAD.js +21 -0
- package/dist/esm/chains/MONAD_TESTNET.d.ts +178 -0
- package/dist/esm/chains/MONAD_TESTNET.js +21 -0
- package/dist/esm/chains/NEAR.d.ts +1 -1
- package/dist/esm/chains/NEAR_TESTNET.d.ts +1 -1
- package/dist/esm/chains/OP.d.ts +6 -6
- package/dist/esm/chains/OP_SEPOLIA.d.ts +6 -6
- package/dist/esm/chains/UNI.d.ts +7 -7
- package/dist/esm/chains/UNI_SEPOLIA.d.ts +7 -7
- package/dist/esm/chains/index.d.ts +4 -2
- package/dist/esm/chains/index.js +3 -1
- package/dist/esm/chains/index.test.js +2 -0
- package/dist/esm/chains.d.ts +2 -0
- package/dist/esm/chains.js +11 -0
- package/dist/esm/client.d.ts +1 -1
- package/dist/esm/extractChain.d.ts +405 -45
- package/dist/esm/extractChain.test.js +6 -2
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/metadata.js +1 -1
- package/dist/esm/package.json +1 -0
- package/dist/esm/providers/circle-wallets/actions/createAccount.d.ts +402 -42
- package/dist/esm/providers/circle-wallets/actions/createAccount.js +0 -3
- package/dist/esm/providers/circle-wallets/actions/getAccounts.d.ts +402 -42
- package/dist/esm/providers/circle-wallets/index.d.ts +643 -106
- package/dist/esm/providers/circle-wallets/index.js +4 -1
- package/dist/esm/providers/circle-wallets/transports/index.js +0 -1
- package/dist/esm/providers/cross-chain-transfer-protocol/chains/BASE.d.ts +6 -6
- package/dist/esm/providers/cross-chain-transfer-protocol/chains/BASE_SEPOLIA.d.ts +6 -6
- package/dist/esm/providers/cross-chain-transfer-protocol/chains/ETH_SEPOLIA.d.ts +1 -1
- package/dist/esm/providers/cross-chain-transfer-protocol/chains/MATIC.d.ts +1 -1
- package/dist/esm/providers/cross-chain-transfer-protocol/chains/OP.d.ts +6 -6
- package/dist/esm/providers/cross-chain-transfer-protocol/chains/OP_SEPOLIA.d.ts +6 -6
- package/dist/esm/providers/cross-chain-transfer-protocol/chains/UNI.d.ts +7 -7
- package/dist/esm/providers/cross-chain-transfer-protocol/chains/UNI_SEPOLIA.d.ts +7 -7
- package/dist/esm/providers/cross-chain-transfer-protocol/index.d.ts +40 -40
- package/dist/esm/providers/uniswap/chains/BASE.d.ts +6 -6
- package/dist/esm/providers/uniswap/chains/BASE_SEPOLIA.d.ts +6 -6
- package/dist/esm/providers/uniswap/chains/ETH_SEPOLIA.d.ts +1 -1
- package/dist/esm/providers/uniswap/chains/MATIC.d.ts +1 -1
- package/dist/esm/providers/uniswap/chains/OP.d.ts +6 -6
- package/dist/esm/providers/uniswap/chains/OP_SEPOLIA.d.ts +6 -6
- package/dist/esm/providers/uniswap/chains/UNI.d.ts +7 -7
- package/dist/esm/providers/uniswap/chains/UNI_SEPOLIA.d.ts +7 -7
- package/dist/esm/providers/uniswap/index.d.ts +40 -40
- package/dist/esm/utils/createConfig.d.ts +1 -1
- package/dist/esm/utils/createCustomWalletClient.d.ts +1 -1
- package/dist/esm/utils/getChainContractByAddress.d.ts +1 -1
- package/dist/esm/utils/getClient.d.ts +26 -0
- package/dist/esm/utils/getContract.d.ts +8 -8
- package/package.json +17 -6
|
@@ -63,6 +63,13 @@ export declare function getClient(client: Client & {
|
|
|
63
63
|
Method: "eth_estimateGas";
|
|
64
64
|
Parameters: [transaction: import("viem").RpcTransactionRequest] | [transaction: import("viem").RpcTransactionRequest, block: import("viem").RpcBlockNumber | import("viem").BlockTag] | [transaction: import("viem").RpcTransactionRequest, block: import("viem").RpcBlockNumber | import("viem").BlockTag, stateOverride: import("viem").RpcStateOverride];
|
|
65
65
|
ReturnType: import("viem").Quantity;
|
|
66
|
+
}, {
|
|
67
|
+
Method: "eth_fillTransaction";
|
|
68
|
+
Parameters: [transaction: import("viem").RpcTransactionRequest];
|
|
69
|
+
ReturnType: {
|
|
70
|
+
raw: import("viem").Hex;
|
|
71
|
+
tx: import("viem").RpcTransaction;
|
|
72
|
+
};
|
|
66
73
|
}, {
|
|
67
74
|
Method: "eth_feeHistory";
|
|
68
75
|
Parameters: [blockCount: import("viem").Quantity, newestBlock: import("viem").RpcBlockNumber | import("viem").BlockTag, rewardPercentiles: number[] | undefined];
|
|
@@ -138,6 +145,10 @@ export declare function getClient(client: Client & {
|
|
|
138
145
|
Method: "eth_getTransactionByHash";
|
|
139
146
|
Parameters: [hash: import("viem").Hash];
|
|
140
147
|
ReturnType: import("viem").RpcTransaction | null;
|
|
148
|
+
}, {
|
|
149
|
+
Method: "eth_getTransactionBySenderAndNonce";
|
|
150
|
+
Parameters: [sender: import("viem").Address, nonce: import("viem").Quantity];
|
|
151
|
+
ReturnType: import("viem").RpcTransaction | null;
|
|
141
152
|
}, {
|
|
142
153
|
Method: "eth_getTransactionCount";
|
|
143
154
|
Parameters: [address: import("viem").Address, block: import("viem").RpcBlockNumber | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
@@ -191,6 +202,10 @@ export declare function getClient(client: Client & {
|
|
|
191
202
|
Method: "eth_sendRawTransaction";
|
|
192
203
|
Parameters: [signedTransaction: import("viem").Hex];
|
|
193
204
|
ReturnType: import("viem").Hash;
|
|
205
|
+
}, {
|
|
206
|
+
Method: "eth_sendRawTransactionSync";
|
|
207
|
+
Parameters: [signedTransaction: import("viem").Hex] | [signedTransaction: import("viem").Hex, timeout: import("viem").Hex];
|
|
208
|
+
ReturnType: import("viem").RpcTransactionReceipt;
|
|
194
209
|
}, {
|
|
195
210
|
Method: "eth_simulateV1";
|
|
196
211
|
Parameters: [{
|
|
@@ -232,6 +247,13 @@ export declare function getClient(client: Client & {
|
|
|
232
247
|
Method: "eth_estimateGas";
|
|
233
248
|
Parameters: [transaction: import("viem").RpcTransactionRequest] | [transaction: import("viem").RpcTransactionRequest, block: import("viem").RpcBlockNumber | import("viem").BlockTag] | [transaction: import("viem").RpcTransactionRequest, block: import("viem").RpcBlockNumber | import("viem").BlockTag, stateOverride: import("viem").RpcStateOverride];
|
|
234
249
|
ReturnType: import("viem").Quantity;
|
|
250
|
+
}, {
|
|
251
|
+
Method: "eth_fillTransaction";
|
|
252
|
+
Parameters: [transaction: import("viem").RpcTransactionRequest];
|
|
253
|
+
ReturnType: {
|
|
254
|
+
raw: import("viem").Hex;
|
|
255
|
+
tx: import("viem").RpcTransaction;
|
|
256
|
+
};
|
|
235
257
|
}, {
|
|
236
258
|
Method: "eth_requestAccounts";
|
|
237
259
|
Parameters?: undefined;
|
|
@@ -244,6 +266,10 @@ export declare function getClient(client: Client & {
|
|
|
244
266
|
Method: "eth_sendRawTransaction";
|
|
245
267
|
Parameters: [signedTransaction: import("viem").Hex];
|
|
246
268
|
ReturnType: import("viem").Hash;
|
|
269
|
+
}, {
|
|
270
|
+
Method: "eth_sendRawTransactionSync";
|
|
271
|
+
Parameters: [signedTransaction: import("viem").Hex] | [signedTransaction: import("viem").Hex, timeout: import("viem").Hex];
|
|
272
|
+
ReturnType: import("viem").RpcTransactionReceipt;
|
|
247
273
|
}, {
|
|
248
274
|
Method: "eth_sign";
|
|
249
275
|
Parameters: [address: import("viem").Address, data: import("viem").Hex];
|
|
@@ -53,8 +53,8 @@ export declare function getContract(params: GetContractInput): {
|
|
|
53
53
|
};
|
|
54
54
|
getEvents: {
|
|
55
55
|
[x: string]: (...parameters: [options?: {
|
|
56
|
-
strict?: boolean | undefined;
|
|
57
56
|
blockHash?: `0x${string}` | undefined;
|
|
57
|
+
strict?: boolean | undefined;
|
|
58
58
|
fromBlock?: bigint | import("viem").BlockTag | undefined;
|
|
59
59
|
toBlock?: bigint | import("viem").BlockTag | undefined;
|
|
60
60
|
} | undefined] | [args?: readonly unknown[] | {
|
|
@@ -71,8 +71,8 @@ export declare function getContract(params: GetContractInput): {
|
|
|
71
71
|
batch?: undefined;
|
|
72
72
|
pollingInterval?: undefined;
|
|
73
73
|
} | undefined, options?: {
|
|
74
|
-
strict?: boolean | undefined;
|
|
75
74
|
blockHash?: `0x${string}` | undefined;
|
|
75
|
+
strict?: boolean | undefined;
|
|
76
76
|
fromBlock?: bigint | import("viem").BlockTag | undefined;
|
|
77
77
|
toBlock?: bigint | import("viem").BlockTag | undefined;
|
|
78
78
|
} | undefined]) => Promise<import("viem").GetContractEventsReturnType<Abi, string>>;
|
|
@@ -150,8 +150,8 @@ export declare function getContract(params: GetContractInput): {
|
|
|
150
150
|
};
|
|
151
151
|
getEvents: {
|
|
152
152
|
[x: string]: (...parameters: [options?: {
|
|
153
|
-
strict?: boolean | undefined;
|
|
154
153
|
blockHash?: `0x${string}` | undefined;
|
|
154
|
+
strict?: boolean | undefined;
|
|
155
155
|
fromBlock?: bigint | import("viem").BlockTag | undefined;
|
|
156
156
|
toBlock?: bigint | import("viem").BlockTag | undefined;
|
|
157
157
|
} | undefined] | [args?: readonly unknown[] | {
|
|
@@ -168,8 +168,8 @@ export declare function getContract(params: GetContractInput): {
|
|
|
168
168
|
batch?: undefined;
|
|
169
169
|
pollingInterval?: undefined;
|
|
170
170
|
} | undefined, options?: {
|
|
171
|
-
strict?: boolean | undefined;
|
|
172
171
|
blockHash?: `0x${string}` | undefined;
|
|
172
|
+
strict?: boolean | undefined;
|
|
173
173
|
fromBlock?: bigint | import("viem").BlockTag | undefined;
|
|
174
174
|
toBlock?: bigint | import("viem").BlockTag | undefined;
|
|
175
175
|
} | undefined]) => Promise<import("viem").GetContractEventsReturnType<Abi, string>>;
|
|
@@ -250,8 +250,8 @@ export declare function getContract(params: GetContractInput): {
|
|
|
250
250
|
};
|
|
251
251
|
getEvents: {
|
|
252
252
|
[x: string]: (...parameters: [options?: {
|
|
253
|
-
strict?: boolean | undefined;
|
|
254
253
|
blockHash?: `0x${string}` | undefined;
|
|
254
|
+
strict?: boolean | undefined;
|
|
255
255
|
fromBlock?: bigint | import("viem").BlockTag | undefined;
|
|
256
256
|
toBlock?: bigint | import("viem").BlockTag | undefined;
|
|
257
257
|
} | undefined] | [args?: readonly unknown[] | {
|
|
@@ -268,8 +268,8 @@ export declare function getContract(params: GetContractInput): {
|
|
|
268
268
|
batch?: undefined;
|
|
269
269
|
pollingInterval?: undefined;
|
|
270
270
|
} | undefined, options?: {
|
|
271
|
-
strict?: boolean | undefined;
|
|
272
271
|
blockHash?: `0x${string}` | undefined;
|
|
272
|
+
strict?: boolean | undefined;
|
|
273
273
|
fromBlock?: bigint | import("viem").BlockTag | undefined;
|
|
274
274
|
toBlock?: bigint | import("viem").BlockTag | undefined;
|
|
275
275
|
} | undefined]) => Promise<import("viem").GetContractEventsReturnType<Abi, string>>;
|
|
@@ -347,8 +347,8 @@ export declare function getContract(params: GetContractInput): {
|
|
|
347
347
|
};
|
|
348
348
|
getEvents: {
|
|
349
349
|
[x: string]: (...parameters: [options?: {
|
|
350
|
-
strict?: boolean | undefined;
|
|
351
350
|
blockHash?: `0x${string}` | undefined;
|
|
351
|
+
strict?: boolean | undefined;
|
|
352
352
|
fromBlock?: bigint | import("viem").BlockTag | undefined;
|
|
353
353
|
toBlock?: bigint | import("viem").BlockTag | undefined;
|
|
354
354
|
} | undefined] | [args?: readonly unknown[] | {
|
|
@@ -365,8 +365,8 @@ export declare function getContract(params: GetContractInput): {
|
|
|
365
365
|
batch?: undefined;
|
|
366
366
|
pollingInterval?: undefined;
|
|
367
367
|
} | undefined, options?: {
|
|
368
|
-
strict?: boolean | undefined;
|
|
369
368
|
blockHash?: `0x${string}` | undefined;
|
|
369
|
+
strict?: boolean | undefined;
|
|
370
370
|
fromBlock?: bigint | import("viem").BlockTag | undefined;
|
|
371
371
|
toBlock?: bigint | import("viem").BlockTag | undefined;
|
|
372
372
|
} | undefined]) => Promise<import("viem").GetContractEventsReturnType<Abi, string>>;
|
|
@@ -6,7 +6,7 @@ import { signEIP2612Permit } from './signEIP2612Permit.js';
|
|
|
6
6
|
import { swapExactIn } from './swapExactIn.js';
|
|
7
7
|
import { sweep } from './sweep.js';
|
|
8
8
|
import { transfer } from './transfer.js';
|
|
9
|
-
import type { Chain } from '../chains
|
|
9
|
+
import type { Chain } from '../chains.js';
|
|
10
10
|
import type { Account } from '../types.js';
|
|
11
11
|
import type { GenerateTransferLinkParams } from './generateTransferLink.js';
|
|
12
12
|
import type { GetSwapExactInQuoteParams } from './getSwapExactInQuote.js';
|
|
@@ -173,8 +173,8 @@ export declare const chain: {
|
|
|
173
173
|
testnet: true;
|
|
174
174
|
custom?: Record<string, unknown> | undefined;
|
|
175
175
|
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
176
|
-
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable
|
|
176
|
+
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable<bigint, number>> | undefined;
|
|
177
177
|
readonly blockchainId: "ARC-TESTNET";
|
|
178
178
|
readonly blockchainVm: "EVM";
|
|
179
|
-
readonly formatters?: undefined;
|
|
179
|
+
readonly formatters?: undefined | undefined;
|
|
180
180
|
};
|
|
@@ -9,40 +9,7 @@
|
|
|
9
9
|
// of this source code or any related proprietary information is strictly
|
|
10
10
|
// prohibited without the express written permission of Circle Internet Group, Inc.
|
|
11
11
|
import { defineChain, erc20Abi } from 'viem';
|
|
12
|
-
|
|
13
|
-
const arcTestnet = /*#__PURE__*/ defineChain({
|
|
14
|
-
id: 5042002,
|
|
15
|
-
name: 'Arc Testnet',
|
|
16
|
-
nativeCurrency: {
|
|
17
|
-
name: 'USDC',
|
|
18
|
-
symbol: 'USDC',
|
|
19
|
-
decimals: 18,
|
|
20
|
-
},
|
|
21
|
-
rpcUrls: {
|
|
22
|
-
default: {
|
|
23
|
-
http: [
|
|
24
|
-
'https://rpc.testnet.arc.network',
|
|
25
|
-
'https://rpc.quicknode.testnet.arc.network',
|
|
26
|
-
'https://rpc.blockdaemon.testnet.arc.network',
|
|
27
|
-
],
|
|
28
|
-
webSocket: ['wss://rpc.testnet.arc.network', 'wss://rpc.quicknode.testnet.arc.network'],
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
blockExplorers: {
|
|
32
|
-
default: {
|
|
33
|
-
name: 'ArcScan',
|
|
34
|
-
url: 'https://testnet.arcscan.app',
|
|
35
|
-
apiUrl: 'https://testnet.arcscan.app/api',
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
contracts: {
|
|
39
|
-
multicall3: {
|
|
40
|
-
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
41
|
-
blockCreated: 0,
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
testnet: true,
|
|
45
|
-
});
|
|
12
|
+
import { arcTestnet } from 'viem/chains';
|
|
46
13
|
export const chain = defineChain({
|
|
47
14
|
...arcTestnet,
|
|
48
15
|
blockchainId: 'ARC-TESTNET',
|
|
@@ -356,7 +356,7 @@ export declare const chain: {
|
|
|
356
356
|
formatters: {
|
|
357
357
|
readonly block: {
|
|
358
358
|
exclude: [] | undefined;
|
|
359
|
-
format: (args: import("viem/chains").OpStackRpcBlock) => {
|
|
359
|
+
format: (args: import("viem/chains").OpStackRpcBlock, action?: string | undefined) => {
|
|
360
360
|
baseFeePerGas: bigint | null;
|
|
361
361
|
blobGasUsed: bigint;
|
|
362
362
|
difficulty: bigint;
|
|
@@ -389,7 +389,7 @@ export declare const chain: {
|
|
|
389
389
|
};
|
|
390
390
|
readonly transaction: {
|
|
391
391
|
exclude: [] | undefined;
|
|
392
|
-
format: (args: import("viem/chains").OpStackRpcTransaction) => ({
|
|
392
|
+
format: (args: import("viem/chains").OpStackRpcTransaction, action?: string | undefined) => ({
|
|
393
393
|
blockHash: `0x${string}` | null;
|
|
394
394
|
blockNumber: bigint | null;
|
|
395
395
|
from: import("viem").Address;
|
|
@@ -417,16 +417,16 @@ export declare const chain: {
|
|
|
417
417
|
r: import("viem").Hex;
|
|
418
418
|
s: import("viem").Hex;
|
|
419
419
|
v: bigint;
|
|
420
|
+
value: bigint;
|
|
421
|
+
gas: bigint;
|
|
420
422
|
to: import("viem").Address | null;
|
|
421
423
|
from: import("viem").Address;
|
|
422
|
-
gas: bigint;
|
|
423
424
|
nonce: number;
|
|
424
|
-
value: bigint;
|
|
425
425
|
blockHash: `0x${string}` | null;
|
|
426
426
|
blockNumber: bigint | null;
|
|
427
|
+
transactionIndex: number | null;
|
|
427
428
|
hash: import("viem").Hash;
|
|
428
429
|
input: import("viem").Hex;
|
|
429
|
-
transactionIndex: number | null;
|
|
430
430
|
typeHex: import("viem").Hex | null;
|
|
431
431
|
accessList?: undefined | undefined;
|
|
432
432
|
authorizationList?: undefined | undefined;
|
|
@@ -558,7 +558,7 @@ export declare const chain: {
|
|
|
558
558
|
};
|
|
559
559
|
readonly transactionReceipt: {
|
|
560
560
|
exclude: [] | undefined;
|
|
561
|
-
format: (args: import("viem/chains").OpStackRpcTransactionReceipt) => {
|
|
561
|
+
format: (args: import("viem/chains").OpStackRpcTransactionReceipt, action?: string | undefined) => {
|
|
562
562
|
blobGasPrice?: bigint | undefined;
|
|
563
563
|
blobGasUsed?: bigint | undefined;
|
|
564
564
|
blockHash: import("viem").Hash;
|
|
@@ -356,7 +356,7 @@ export declare const chain: {
|
|
|
356
356
|
formatters: {
|
|
357
357
|
readonly block: {
|
|
358
358
|
exclude: [] | undefined;
|
|
359
|
-
format: (args: import("viem/chains").OpStackRpcBlock) => {
|
|
359
|
+
format: (args: import("viem/chains").OpStackRpcBlock, action?: string | undefined) => {
|
|
360
360
|
baseFeePerGas: bigint | null;
|
|
361
361
|
blobGasUsed: bigint;
|
|
362
362
|
difficulty: bigint;
|
|
@@ -389,7 +389,7 @@ export declare const chain: {
|
|
|
389
389
|
};
|
|
390
390
|
readonly transaction: {
|
|
391
391
|
exclude: [] | undefined;
|
|
392
|
-
format: (args: import("viem/chains").OpStackRpcTransaction) => ({
|
|
392
|
+
format: (args: import("viem/chains").OpStackRpcTransaction, action?: string | undefined) => ({
|
|
393
393
|
blockHash: `0x${string}` | null;
|
|
394
394
|
blockNumber: bigint | null;
|
|
395
395
|
from: import("viem").Address;
|
|
@@ -417,16 +417,16 @@ export declare const chain: {
|
|
|
417
417
|
r: import("viem").Hex;
|
|
418
418
|
s: import("viem").Hex;
|
|
419
419
|
v: bigint;
|
|
420
|
+
value: bigint;
|
|
421
|
+
gas: bigint;
|
|
420
422
|
to: import("viem").Address | null;
|
|
421
423
|
from: import("viem").Address;
|
|
422
|
-
gas: bigint;
|
|
423
424
|
nonce: number;
|
|
424
|
-
value: bigint;
|
|
425
425
|
blockHash: `0x${string}` | null;
|
|
426
426
|
blockNumber: bigint | null;
|
|
427
|
+
transactionIndex: number | null;
|
|
427
428
|
hash: import("viem").Hash;
|
|
428
429
|
input: import("viem").Hex;
|
|
429
|
-
transactionIndex: number | null;
|
|
430
430
|
typeHex: import("viem").Hex | null;
|
|
431
431
|
accessList?: undefined | undefined;
|
|
432
432
|
authorizationList?: undefined | undefined;
|
|
@@ -558,7 +558,7 @@ export declare const chain: {
|
|
|
558
558
|
};
|
|
559
559
|
readonly transactionReceipt: {
|
|
560
560
|
exclude: [] | undefined;
|
|
561
|
-
format: (args: import("viem/chains").OpStackRpcTransactionReceipt) => {
|
|
561
|
+
format: (args: import("viem/chains").OpStackRpcTransactionReceipt, action?: string | undefined) => {
|
|
562
562
|
blobGasPrice?: bigint | undefined;
|
|
563
563
|
blobGasUsed?: bigint | undefined;
|
|
564
564
|
blockHash: import("viem").Hash;
|
|
@@ -310,7 +310,7 @@ export declare const chain: {
|
|
|
310
310
|
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
311
311
|
rpcUrls: {
|
|
312
312
|
readonly default: {
|
|
313
|
-
readonly http: readonly ["https://
|
|
313
|
+
readonly http: readonly ["https://11155111.rpc.thirdweb.com"];
|
|
314
314
|
};
|
|
315
315
|
};
|
|
316
316
|
sourceId?: number | undefined | undefined;
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
export declare const chain: {
|
|
2
|
+
blockExplorers: {
|
|
3
|
+
readonly default: {
|
|
4
|
+
readonly name: "MonadVision";
|
|
5
|
+
readonly url: "https://monadvision.com";
|
|
6
|
+
};
|
|
7
|
+
readonly monadscan: {
|
|
8
|
+
readonly name: "Monadscan";
|
|
9
|
+
readonly url: "https://monadscan.com";
|
|
10
|
+
readonly apiUrl: "https://api.monadscan.com/api";
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
blockTime: 400;
|
|
14
|
+
contracts: {
|
|
15
|
+
readonly USDC: {
|
|
16
|
+
readonly address: "0x754704Bc059F8C67012fEd69BC8A327a5aafb603";
|
|
17
|
+
readonly abi: readonly [{
|
|
18
|
+
readonly type: "event";
|
|
19
|
+
readonly name: "Approval";
|
|
20
|
+
readonly inputs: readonly [{
|
|
21
|
+
readonly indexed: true;
|
|
22
|
+
readonly name: "owner";
|
|
23
|
+
readonly type: "address";
|
|
24
|
+
}, {
|
|
25
|
+
readonly indexed: true;
|
|
26
|
+
readonly name: "spender";
|
|
27
|
+
readonly type: "address";
|
|
28
|
+
}, {
|
|
29
|
+
readonly indexed: false;
|
|
30
|
+
readonly name: "value";
|
|
31
|
+
readonly type: "uint256";
|
|
32
|
+
}];
|
|
33
|
+
}, {
|
|
34
|
+
readonly type: "event";
|
|
35
|
+
readonly name: "Transfer";
|
|
36
|
+
readonly inputs: readonly [{
|
|
37
|
+
readonly indexed: true;
|
|
38
|
+
readonly name: "from";
|
|
39
|
+
readonly type: "address";
|
|
40
|
+
}, {
|
|
41
|
+
readonly indexed: true;
|
|
42
|
+
readonly name: "to";
|
|
43
|
+
readonly type: "address";
|
|
44
|
+
}, {
|
|
45
|
+
readonly indexed: false;
|
|
46
|
+
readonly name: "value";
|
|
47
|
+
readonly type: "uint256";
|
|
48
|
+
}];
|
|
49
|
+
}, {
|
|
50
|
+
readonly type: "function";
|
|
51
|
+
readonly name: "allowance";
|
|
52
|
+
readonly stateMutability: "view";
|
|
53
|
+
readonly inputs: readonly [{
|
|
54
|
+
readonly name: "owner";
|
|
55
|
+
readonly type: "address";
|
|
56
|
+
}, {
|
|
57
|
+
readonly name: "spender";
|
|
58
|
+
readonly type: "address";
|
|
59
|
+
}];
|
|
60
|
+
readonly outputs: readonly [{
|
|
61
|
+
readonly type: "uint256";
|
|
62
|
+
}];
|
|
63
|
+
}, {
|
|
64
|
+
readonly type: "function";
|
|
65
|
+
readonly name: "approve";
|
|
66
|
+
readonly stateMutability: "nonpayable";
|
|
67
|
+
readonly inputs: readonly [{
|
|
68
|
+
readonly name: "spender";
|
|
69
|
+
readonly type: "address";
|
|
70
|
+
}, {
|
|
71
|
+
readonly name: "amount";
|
|
72
|
+
readonly type: "uint256";
|
|
73
|
+
}];
|
|
74
|
+
readonly outputs: readonly [{
|
|
75
|
+
readonly type: "bool";
|
|
76
|
+
}];
|
|
77
|
+
}, {
|
|
78
|
+
readonly type: "function";
|
|
79
|
+
readonly name: "balanceOf";
|
|
80
|
+
readonly stateMutability: "view";
|
|
81
|
+
readonly inputs: readonly [{
|
|
82
|
+
readonly name: "account";
|
|
83
|
+
readonly type: "address";
|
|
84
|
+
}];
|
|
85
|
+
readonly outputs: readonly [{
|
|
86
|
+
readonly type: "uint256";
|
|
87
|
+
}];
|
|
88
|
+
}, {
|
|
89
|
+
readonly type: "function";
|
|
90
|
+
readonly name: "decimals";
|
|
91
|
+
readonly stateMutability: "view";
|
|
92
|
+
readonly inputs: readonly [];
|
|
93
|
+
readonly outputs: readonly [{
|
|
94
|
+
readonly type: "uint8";
|
|
95
|
+
}];
|
|
96
|
+
}, {
|
|
97
|
+
readonly type: "function";
|
|
98
|
+
readonly name: "name";
|
|
99
|
+
readonly stateMutability: "view";
|
|
100
|
+
readonly inputs: readonly [];
|
|
101
|
+
readonly outputs: readonly [{
|
|
102
|
+
readonly type: "string";
|
|
103
|
+
}];
|
|
104
|
+
}, {
|
|
105
|
+
readonly type: "function";
|
|
106
|
+
readonly name: "symbol";
|
|
107
|
+
readonly stateMutability: "view";
|
|
108
|
+
readonly inputs: readonly [];
|
|
109
|
+
readonly outputs: readonly [{
|
|
110
|
+
readonly type: "string";
|
|
111
|
+
}];
|
|
112
|
+
}, {
|
|
113
|
+
readonly type: "function";
|
|
114
|
+
readonly name: "totalSupply";
|
|
115
|
+
readonly stateMutability: "view";
|
|
116
|
+
readonly inputs: readonly [];
|
|
117
|
+
readonly outputs: readonly [{
|
|
118
|
+
readonly type: "uint256";
|
|
119
|
+
}];
|
|
120
|
+
}, {
|
|
121
|
+
readonly type: "function";
|
|
122
|
+
readonly name: "transfer";
|
|
123
|
+
readonly stateMutability: "nonpayable";
|
|
124
|
+
readonly inputs: readonly [{
|
|
125
|
+
readonly name: "recipient";
|
|
126
|
+
readonly type: "address";
|
|
127
|
+
}, {
|
|
128
|
+
readonly name: "amount";
|
|
129
|
+
readonly type: "uint256";
|
|
130
|
+
}];
|
|
131
|
+
readonly outputs: readonly [{
|
|
132
|
+
readonly type: "bool";
|
|
133
|
+
}];
|
|
134
|
+
}, {
|
|
135
|
+
readonly type: "function";
|
|
136
|
+
readonly name: "transferFrom";
|
|
137
|
+
readonly stateMutability: "nonpayable";
|
|
138
|
+
readonly inputs: readonly [{
|
|
139
|
+
readonly name: "sender";
|
|
140
|
+
readonly type: "address";
|
|
141
|
+
}, {
|
|
142
|
+
readonly name: "recipient";
|
|
143
|
+
readonly type: "address";
|
|
144
|
+
}, {
|
|
145
|
+
readonly name: "amount";
|
|
146
|
+
readonly type: "uint256";
|
|
147
|
+
}];
|
|
148
|
+
readonly outputs: readonly [{
|
|
149
|
+
readonly type: "bool";
|
|
150
|
+
}];
|
|
151
|
+
}];
|
|
152
|
+
readonly read: {
|
|
153
|
+
readonly decimals: () => 6;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
readonly multicall3: {
|
|
157
|
+
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
158
|
+
readonly blockCreated: 9248132;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
ensTlds?: readonly string[] | undefined;
|
|
162
|
+
id: 143;
|
|
163
|
+
name: "Monad";
|
|
164
|
+
nativeCurrency: {
|
|
165
|
+
readonly name: "Monad";
|
|
166
|
+
readonly symbol: "MON";
|
|
167
|
+
readonly decimals: 18;
|
|
168
|
+
};
|
|
169
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
170
|
+
rpcUrls: {
|
|
171
|
+
readonly default: {
|
|
172
|
+
readonly http: readonly ["https://rpc.monad.xyz", "https://rpc1.monad.xyz"];
|
|
173
|
+
readonly webSocket: readonly ["wss://rpc.monad.xyz", "wss://rpc1.monad.xyz"];
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
sourceId?: number | undefined | undefined;
|
|
177
|
+
testnet: false;
|
|
178
|
+
custom?: Record<string, unknown> | undefined;
|
|
179
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
180
|
+
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable<bigint, number>> | undefined;
|
|
181
|
+
readonly blockchainId: "MONAD";
|
|
182
|
+
readonly blockchainVm: "EVM";
|
|
183
|
+
readonly formatters?: undefined | undefined;
|
|
184
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Copyright (c) 2025, Circle Internet Group, Inc.
|
|
2
|
+
// All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
// Circle Internet Group, Inc. CONFIDENTIAL
|
|
5
|
+
//
|
|
6
|
+
// This file includes unpublished proprietary source code of Circle Internet
|
|
7
|
+
// Group, Inc. The copyright notice above does not
|
|
8
|
+
// evidence any actual or intended publication of such source code. Disclosure
|
|
9
|
+
// of this source code or any related proprietary information is strictly
|
|
10
|
+
// prohibited without the express written permission of Circle Internet Group, Inc.
|
|
11
|
+
import { defineChain, erc20Abi } from 'viem';
|
|
12
|
+
import { monad } from 'viem/chains';
|
|
13
|
+
export const chain = defineChain({
|
|
14
|
+
...monad,
|
|
15
|
+
blockchainId: 'MONAD',
|
|
16
|
+
blockchainVm: 'EVM',
|
|
17
|
+
contracts: {
|
|
18
|
+
...monad.contracts,
|
|
19
|
+
USDC: { address: '0x754704Bc059F8C67012fEd69BC8A327a5aafb603', abi: erc20Abi, read: { decimals: () => 6 } },
|
|
20
|
+
},
|
|
21
|
+
});
|