@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
|
@@ -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
|
};
|
|
@@ -12,46 +12,13 @@
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.chain = void 0;
|
|
14
14
|
const viem_1 = require("viem");
|
|
15
|
-
|
|
16
|
-
const arcTestnet = /*#__PURE__*/ (0, viem_1.defineChain)({
|
|
17
|
-
id: 5042002,
|
|
18
|
-
name: 'Arc Testnet',
|
|
19
|
-
nativeCurrency: {
|
|
20
|
-
name: 'USDC',
|
|
21
|
-
symbol: 'USDC',
|
|
22
|
-
decimals: 18,
|
|
23
|
-
},
|
|
24
|
-
rpcUrls: {
|
|
25
|
-
default: {
|
|
26
|
-
http: [
|
|
27
|
-
'https://rpc.testnet.arc.network',
|
|
28
|
-
'https://rpc.quicknode.testnet.arc.network',
|
|
29
|
-
'https://rpc.blockdaemon.testnet.arc.network',
|
|
30
|
-
],
|
|
31
|
-
webSocket: ['wss://rpc.testnet.arc.network', 'wss://rpc.quicknode.testnet.arc.network'],
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
blockExplorers: {
|
|
35
|
-
default: {
|
|
36
|
-
name: 'ArcScan',
|
|
37
|
-
url: 'https://testnet.arcscan.app',
|
|
38
|
-
apiUrl: 'https://testnet.arcscan.app/api',
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
contracts: {
|
|
42
|
-
multicall3: {
|
|
43
|
-
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
44
|
-
blockCreated: 0,
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
testnet: true,
|
|
48
|
-
});
|
|
15
|
+
const chains_1 = require("viem/chains");
|
|
49
16
|
exports.chain = (0, viem_1.defineChain)({
|
|
50
|
-
...arcTestnet,
|
|
17
|
+
...chains_1.arcTestnet,
|
|
51
18
|
blockchainId: 'ARC-TESTNET',
|
|
52
19
|
blockchainVm: 'EVM',
|
|
53
20
|
contracts: {
|
|
54
|
-
...arcTestnet.contracts,
|
|
21
|
+
...chains_1.arcTestnet.contracts,
|
|
55
22
|
USDC: { address: '0x3600000000000000000000000000000000000000', abi: viem_1.erc20Abi, read: { decimals: () => 6 } },
|
|
56
23
|
},
|
|
57
24
|
});
|
|
@@ -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,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) 2025, Circle Internet Group, Inc.
|
|
3
|
+
// All rights reserved.
|
|
4
|
+
//
|
|
5
|
+
// Circle Internet Group, Inc. CONFIDENTIAL
|
|
6
|
+
//
|
|
7
|
+
// This file includes unpublished proprietary source code of Circle Internet
|
|
8
|
+
// Group, Inc. The copyright notice above does not
|
|
9
|
+
// evidence any actual or intended publication of such source code. Disclosure
|
|
10
|
+
// of this source code or any related proprietary information is strictly
|
|
11
|
+
// prohibited without the express written permission of Circle Internet Group, Inc.
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.chain = void 0;
|
|
14
|
+
const viem_1 = require("viem");
|
|
15
|
+
const chains_1 = require("viem/chains");
|
|
16
|
+
exports.chain = (0, viem_1.defineChain)({
|
|
17
|
+
...chains_1.monad,
|
|
18
|
+
blockchainId: 'MONAD',
|
|
19
|
+
blockchainVm: 'EVM',
|
|
20
|
+
contracts: {
|
|
21
|
+
...chains_1.monad.contracts,
|
|
22
|
+
USDC: { address: '0x754704Bc059F8C67012fEd69BC8A327a5aafb603', abi: viem_1.erc20Abi, read: { decimals: () => 6 } },
|
|
23
|
+
},
|
|
24
|
+
});
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
export declare const chain: {
|
|
2
|
+
blockExplorers: {
|
|
3
|
+
readonly default: {
|
|
4
|
+
readonly name: "Monad Testnet explorer";
|
|
5
|
+
readonly url: "https://testnet.monadexplorer.com";
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
blockTime: 400;
|
|
9
|
+
contracts: {
|
|
10
|
+
readonly USDC: {
|
|
11
|
+
readonly address: "0x534b2f3A21130d7a60830c2Df862319e593943A3";
|
|
12
|
+
readonly abi: readonly [{
|
|
13
|
+
readonly type: "event";
|
|
14
|
+
readonly name: "Approval";
|
|
15
|
+
readonly inputs: readonly [{
|
|
16
|
+
readonly indexed: true;
|
|
17
|
+
readonly name: "owner";
|
|
18
|
+
readonly type: "address";
|
|
19
|
+
}, {
|
|
20
|
+
readonly indexed: true;
|
|
21
|
+
readonly name: "spender";
|
|
22
|
+
readonly type: "address";
|
|
23
|
+
}, {
|
|
24
|
+
readonly indexed: false;
|
|
25
|
+
readonly name: "value";
|
|
26
|
+
readonly type: "uint256";
|
|
27
|
+
}];
|
|
28
|
+
}, {
|
|
29
|
+
readonly type: "event";
|
|
30
|
+
readonly name: "Transfer";
|
|
31
|
+
readonly inputs: readonly [{
|
|
32
|
+
readonly indexed: true;
|
|
33
|
+
readonly name: "from";
|
|
34
|
+
readonly type: "address";
|
|
35
|
+
}, {
|
|
36
|
+
readonly indexed: true;
|
|
37
|
+
readonly name: "to";
|
|
38
|
+
readonly type: "address";
|
|
39
|
+
}, {
|
|
40
|
+
readonly indexed: false;
|
|
41
|
+
readonly name: "value";
|
|
42
|
+
readonly type: "uint256";
|
|
43
|
+
}];
|
|
44
|
+
}, {
|
|
45
|
+
readonly type: "function";
|
|
46
|
+
readonly name: "allowance";
|
|
47
|
+
readonly stateMutability: "view";
|
|
48
|
+
readonly inputs: readonly [{
|
|
49
|
+
readonly name: "owner";
|
|
50
|
+
readonly type: "address";
|
|
51
|
+
}, {
|
|
52
|
+
readonly name: "spender";
|
|
53
|
+
readonly type: "address";
|
|
54
|
+
}];
|
|
55
|
+
readonly outputs: readonly [{
|
|
56
|
+
readonly type: "uint256";
|
|
57
|
+
}];
|
|
58
|
+
}, {
|
|
59
|
+
readonly type: "function";
|
|
60
|
+
readonly name: "approve";
|
|
61
|
+
readonly stateMutability: "nonpayable";
|
|
62
|
+
readonly inputs: readonly [{
|
|
63
|
+
readonly name: "spender";
|
|
64
|
+
readonly type: "address";
|
|
65
|
+
}, {
|
|
66
|
+
readonly name: "amount";
|
|
67
|
+
readonly type: "uint256";
|
|
68
|
+
}];
|
|
69
|
+
readonly outputs: readonly [{
|
|
70
|
+
readonly type: "bool";
|
|
71
|
+
}];
|
|
72
|
+
}, {
|
|
73
|
+
readonly type: "function";
|
|
74
|
+
readonly name: "balanceOf";
|
|
75
|
+
readonly stateMutability: "view";
|
|
76
|
+
readonly inputs: readonly [{
|
|
77
|
+
readonly name: "account";
|
|
78
|
+
readonly type: "address";
|
|
79
|
+
}];
|
|
80
|
+
readonly outputs: readonly [{
|
|
81
|
+
readonly type: "uint256";
|
|
82
|
+
}];
|
|
83
|
+
}, {
|
|
84
|
+
readonly type: "function";
|
|
85
|
+
readonly name: "decimals";
|
|
86
|
+
readonly stateMutability: "view";
|
|
87
|
+
readonly inputs: readonly [];
|
|
88
|
+
readonly outputs: readonly [{
|
|
89
|
+
readonly type: "uint8";
|
|
90
|
+
}];
|
|
91
|
+
}, {
|
|
92
|
+
readonly type: "function";
|
|
93
|
+
readonly name: "name";
|
|
94
|
+
readonly stateMutability: "view";
|
|
95
|
+
readonly inputs: readonly [];
|
|
96
|
+
readonly outputs: readonly [{
|
|
97
|
+
readonly type: "string";
|
|
98
|
+
}];
|
|
99
|
+
}, {
|
|
100
|
+
readonly type: "function";
|
|
101
|
+
readonly name: "symbol";
|
|
102
|
+
readonly stateMutability: "view";
|
|
103
|
+
readonly inputs: readonly [];
|
|
104
|
+
readonly outputs: readonly [{
|
|
105
|
+
readonly type: "string";
|
|
106
|
+
}];
|
|
107
|
+
}, {
|
|
108
|
+
readonly type: "function";
|
|
109
|
+
readonly name: "totalSupply";
|
|
110
|
+
readonly stateMutability: "view";
|
|
111
|
+
readonly inputs: readonly [];
|
|
112
|
+
readonly outputs: readonly [{
|
|
113
|
+
readonly type: "uint256";
|
|
114
|
+
}];
|
|
115
|
+
}, {
|
|
116
|
+
readonly type: "function";
|
|
117
|
+
readonly name: "transfer";
|
|
118
|
+
readonly stateMutability: "nonpayable";
|
|
119
|
+
readonly inputs: readonly [{
|
|
120
|
+
readonly name: "recipient";
|
|
121
|
+
readonly type: "address";
|
|
122
|
+
}, {
|
|
123
|
+
readonly name: "amount";
|
|
124
|
+
readonly type: "uint256";
|
|
125
|
+
}];
|
|
126
|
+
readonly outputs: readonly [{
|
|
127
|
+
readonly type: "bool";
|
|
128
|
+
}];
|
|
129
|
+
}, {
|
|
130
|
+
readonly type: "function";
|
|
131
|
+
readonly name: "transferFrom";
|
|
132
|
+
readonly stateMutability: "nonpayable";
|
|
133
|
+
readonly inputs: readonly [{
|
|
134
|
+
readonly name: "sender";
|
|
135
|
+
readonly type: "address";
|
|
136
|
+
}, {
|
|
137
|
+
readonly name: "recipient";
|
|
138
|
+
readonly type: "address";
|
|
139
|
+
}, {
|
|
140
|
+
readonly name: "amount";
|
|
141
|
+
readonly type: "uint256";
|
|
142
|
+
}];
|
|
143
|
+
readonly outputs: readonly [{
|
|
144
|
+
readonly type: "bool";
|
|
145
|
+
}];
|
|
146
|
+
}];
|
|
147
|
+
readonly read: {
|
|
148
|
+
readonly decimals: () => 6;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
readonly multicall3: {
|
|
152
|
+
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
153
|
+
readonly blockCreated: 251449;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
ensTlds?: readonly string[] | undefined;
|
|
157
|
+
id: 10143;
|
|
158
|
+
name: "Monad Testnet";
|
|
159
|
+
nativeCurrency: {
|
|
160
|
+
readonly name: "Testnet MON Token";
|
|
161
|
+
readonly symbol: "MON";
|
|
162
|
+
readonly decimals: 18;
|
|
163
|
+
};
|
|
164
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
165
|
+
rpcUrls: {
|
|
166
|
+
readonly default: {
|
|
167
|
+
readonly http: readonly ["https://testnet-rpc.monad.xyz"];
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
sourceId?: number | undefined | undefined;
|
|
171
|
+
testnet: true;
|
|
172
|
+
custom?: Record<string, unknown> | undefined;
|
|
173
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
174
|
+
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable<bigint, number>> | undefined;
|
|
175
|
+
readonly blockchainId: "MONAD-TESTNET";
|
|
176
|
+
readonly blockchainVm: "EVM";
|
|
177
|
+
readonly formatters?: undefined | undefined;
|
|
178
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) 2025, Circle Internet Group, Inc.
|
|
3
|
+
// All rights reserved.
|
|
4
|
+
//
|
|
5
|
+
// Circle Internet Group, Inc. CONFIDENTIAL
|
|
6
|
+
//
|
|
7
|
+
// This file includes unpublished proprietary source code of Circle Internet
|
|
8
|
+
// Group, Inc. The copyright notice above does not
|
|
9
|
+
// evidence any actual or intended publication of such source code. Disclosure
|
|
10
|
+
// of this source code or any related proprietary information is strictly
|
|
11
|
+
// prohibited without the express written permission of Circle Internet Group, Inc.
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.chain = void 0;
|
|
14
|
+
const viem_1 = require("viem");
|
|
15
|
+
const chains_1 = require("viem/chains");
|
|
16
|
+
exports.chain = (0, viem_1.defineChain)({
|
|
17
|
+
...chains_1.monadTestnet,
|
|
18
|
+
blockchainId: 'MONAD-TESTNET',
|
|
19
|
+
blockchainVm: 'EVM',
|
|
20
|
+
contracts: {
|
|
21
|
+
...chains_1.monadTestnet.contracts,
|
|
22
|
+
USDC: { address: '0x534b2f3A21130d7a60830c2Df862319e593943A3', abi: viem_1.erc20Abi, read: { decimals: () => 6 } },
|
|
23
|
+
},
|
|
24
|
+
});
|
|
@@ -16,7 +16,7 @@ export declare const chain: {
|
|
|
16
16
|
readonly ensRegistry?: import("viem").ChainContract | undefined;
|
|
17
17
|
readonly ensUniversalResolver?: import("viem").ChainContract | undefined;
|
|
18
18
|
readonly multicall3?: import("viem").ChainContract | undefined;
|
|
19
|
-
readonly
|
|
19
|
+
readonly erc6492Verifier?: import("viem").ChainContract | undefined;
|
|
20
20
|
};
|
|
21
21
|
ensTlds?: readonly string[] | undefined;
|
|
22
22
|
id: 397;
|
|
@@ -16,7 +16,7 @@ export declare const chain: {
|
|
|
16
16
|
readonly ensRegistry?: import("viem").ChainContract | undefined;
|
|
17
17
|
readonly ensUniversalResolver?: import("viem").ChainContract | undefined;
|
|
18
18
|
readonly multicall3?: import("viem").ChainContract | undefined;
|
|
19
|
-
readonly
|
|
19
|
+
readonly erc6492Verifier?: import("viem").ChainContract | undefined;
|
|
20
20
|
};
|
|
21
21
|
ensTlds?: readonly string[] | undefined;
|
|
22
22
|
id: 398;
|
package/dist/cjs/chains/OP.d.ts
CHANGED
|
@@ -213,7 +213,7 @@ export declare const chain: {
|
|
|
213
213
|
formatters: {
|
|
214
214
|
readonly block: {
|
|
215
215
|
exclude: [] | undefined;
|
|
216
|
-
format: (args: import("viem/chains").OpStackRpcBlock) => {
|
|
216
|
+
format: (args: import("viem/chains").OpStackRpcBlock, action?: string | undefined) => {
|
|
217
217
|
baseFeePerGas: bigint | null;
|
|
218
218
|
blobGasUsed: bigint;
|
|
219
219
|
difficulty: bigint;
|
|
@@ -246,7 +246,7 @@ export declare const chain: {
|
|
|
246
246
|
};
|
|
247
247
|
readonly transaction: {
|
|
248
248
|
exclude: [] | undefined;
|
|
249
|
-
format: (args: import("viem/chains").OpStackRpcTransaction) => ({
|
|
249
|
+
format: (args: import("viem/chains").OpStackRpcTransaction, action?: string | undefined) => ({
|
|
250
250
|
blockHash: `0x${string}` | null;
|
|
251
251
|
blockNumber: bigint | null;
|
|
252
252
|
from: import("viem").Address;
|
|
@@ -274,16 +274,16 @@ export declare const chain: {
|
|
|
274
274
|
r: import("viem").Hex;
|
|
275
275
|
s: import("viem").Hex;
|
|
276
276
|
v: bigint;
|
|
277
|
+
value: bigint;
|
|
278
|
+
gas: bigint;
|
|
277
279
|
to: import("viem").Address | null;
|
|
278
280
|
from: import("viem").Address;
|
|
279
|
-
gas: bigint;
|
|
280
281
|
nonce: number;
|
|
281
|
-
value: bigint;
|
|
282
282
|
blockHash: `0x${string}` | null;
|
|
283
283
|
blockNumber: bigint | null;
|
|
284
|
+
transactionIndex: number | null;
|
|
284
285
|
hash: import("viem").Hash;
|
|
285
286
|
input: import("viem").Hex;
|
|
286
|
-
transactionIndex: number | null;
|
|
287
287
|
typeHex: import("viem").Hex | null;
|
|
288
288
|
accessList?: undefined | undefined;
|
|
289
289
|
authorizationList?: undefined | undefined;
|
|
@@ -415,7 +415,7 @@ export declare const chain: {
|
|
|
415
415
|
};
|
|
416
416
|
readonly transactionReceipt: {
|
|
417
417
|
exclude: [] | undefined;
|
|
418
|
-
format: (args: import("viem/chains").OpStackRpcTransactionReceipt) => {
|
|
418
|
+
format: (args: import("viem/chains").OpStackRpcTransactionReceipt, action?: string | undefined) => {
|
|
419
419
|
blobGasPrice?: bigint | undefined;
|
|
420
420
|
blobGasUsed?: bigint | undefined;
|
|
421
421
|
blockHash: import("viem").Hash;
|