@circle-fin/usdckit 0.22.0 → 0.23.0
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/abis/EIP2612.d.ts +197 -0
- package/dist/cjs/abis/EIP2612.js +78 -0
- package/dist/cjs/actions/index.d.ts +66 -0
- package/dist/cjs/actions/index.js +7 -0
- package/dist/cjs/actions/index.test.js +4 -0
- package/dist/cjs/actions/permit.d.ts +19 -0
- package/dist/cjs/actions/permit.js +50 -0
- package/dist/cjs/actions/permit.test.d.ts +1 -0
- package/dist/cjs/actions/permit.test.js +652 -0
- package/dist/cjs/actions/signEIP2612Permit.d.ts +130 -0
- package/dist/cjs/actions/signEIP2612Permit.js +128 -0
- package/dist/cjs/actions/signEIP2612Permit.test.d.ts +1 -0
- package/dist/cjs/actions/signEIP2612Permit.test.js +434 -0
- package/dist/cjs/chains/ARC_TESTNET.d.ts +180 -0
- package/dist/cjs/chains/ARC_TESTNET.js +57 -0
- package/dist/cjs/chains/index.d.ts +1 -0
- package/dist/cjs/chains/index.js +3 -1
- package/dist/cjs/chains/index.test.js +1 -0
- package/dist/cjs/extractChain.d.ts +179 -0
- package/dist/cjs/extractChain.test.js +1 -0
- package/dist/cjs/metadata.js +1 -1
- package/dist/cjs/providers/circle-wallets/actions/createAccount.d.ts +179 -0
- package/dist/cjs/providers/circle-wallets/actions/createAccount.js +3 -0
- package/dist/cjs/providers/circle-wallets/actions/estimateContractExecutionFee.d.ts +6 -0
- package/dist/cjs/providers/circle-wallets/actions/estimateTransferFee.d.ts +6 -0
- package/dist/cjs/providers/circle-wallets/actions/getAccounts.d.ts +179 -0
- package/dist/cjs/providers/circle-wallets/index.d.ts +358 -0
- package/dist/cjs/providers/circle-wallets/index.js +2 -0
- package/dist/cjs/providers/circle-wallets/transports/index.d.ts +12 -0
- package/dist/esm/abis/EIP2612.d.ts +197 -0
- package/dist/esm/abis/EIP2612.js +76 -0
- package/dist/esm/actions/index.d.ts +66 -0
- package/dist/esm/actions/index.js +7 -0
- package/dist/esm/actions/index.test.js +4 -0
- package/dist/esm/actions/permit.d.ts +19 -0
- package/dist/esm/actions/permit.js +44 -0
- package/dist/esm/actions/permit.test.d.ts +1 -0
- package/dist/esm/actions/permit.test.js +650 -0
- package/dist/esm/actions/signEIP2612Permit.d.ts +130 -0
- package/dist/esm/actions/signEIP2612Permit.js +122 -0
- package/dist/esm/actions/signEIP2612Permit.test.d.ts +1 -0
- package/dist/esm/actions/signEIP2612Permit.test.js +432 -0
- package/dist/esm/chains/ARC_TESTNET.d.ts +180 -0
- package/dist/esm/chains/ARC_TESTNET.js +54 -0
- package/dist/esm/chains/index.d.ts +1 -0
- package/dist/esm/chains/index.js +1 -0
- package/dist/esm/chains/index.test.js +1 -0
- package/dist/esm/extractChain.d.ts +179 -0
- package/dist/esm/extractChain.test.js +2 -1
- package/dist/esm/metadata.js +1 -1
- package/dist/esm/providers/circle-wallets/actions/createAccount.d.ts +179 -0
- package/dist/esm/providers/circle-wallets/actions/createAccount.js +3 -0
- package/dist/esm/providers/circle-wallets/actions/estimateContractExecutionFee.d.ts +6 -0
- package/dist/esm/providers/circle-wallets/actions/estimateTransferFee.d.ts +6 -0
- package/dist/esm/providers/circle-wallets/actions/getAccounts.d.ts +179 -0
- package/dist/esm/providers/circle-wallets/index.d.ts +358 -0
- package/dist/esm/providers/circle-wallets/index.js +3 -1
- package/dist/esm/providers/circle-wallets/transports/index.d.ts +12 -0
- package/package.json +5 -4
|
@@ -8,6 +8,8 @@ export declare function estimateContractExecutionFee(client: ExtendedViemClient,
|
|
|
8
8
|
gasPrice?: string;
|
|
9
9
|
baseFee?: string;
|
|
10
10
|
networkFee?: string;
|
|
11
|
+
networkFeeRaw?: string;
|
|
12
|
+
l1Fee?: string;
|
|
11
13
|
} | undefined;
|
|
12
14
|
medium: {
|
|
13
15
|
gasLimit: `${number}` | "" | undefined;
|
|
@@ -16,6 +18,8 @@ export declare function estimateContractExecutionFee(client: ExtendedViemClient,
|
|
|
16
18
|
gasPrice?: string;
|
|
17
19
|
baseFee?: string;
|
|
18
20
|
networkFee?: string;
|
|
21
|
+
networkFeeRaw?: string;
|
|
22
|
+
l1Fee?: string;
|
|
19
23
|
} | undefined;
|
|
20
24
|
low: {
|
|
21
25
|
gasLimit: `${number}` | "" | undefined;
|
|
@@ -24,6 +28,8 @@ export declare function estimateContractExecutionFee(client: ExtendedViemClient,
|
|
|
24
28
|
gasPrice?: string;
|
|
25
29
|
baseFee?: string;
|
|
26
30
|
networkFee?: string;
|
|
31
|
+
networkFeeRaw?: string;
|
|
32
|
+
l1Fee?: string;
|
|
27
33
|
} | undefined;
|
|
28
34
|
callGasLimit?: string;
|
|
29
35
|
verificationGasLimit?: string;
|
|
@@ -32,6 +32,8 @@ export declare function estimateTransferFee(client: ExtendedViemClient, params:
|
|
|
32
32
|
gasPrice?: string;
|
|
33
33
|
baseFee?: string;
|
|
34
34
|
networkFee?: string;
|
|
35
|
+
networkFeeRaw?: string;
|
|
36
|
+
l1Fee?: string;
|
|
35
37
|
} | undefined;
|
|
36
38
|
medium: {
|
|
37
39
|
gasLimit: `${number}` | "" | undefined;
|
|
@@ -40,6 +42,8 @@ export declare function estimateTransferFee(client: ExtendedViemClient, params:
|
|
|
40
42
|
gasPrice?: string;
|
|
41
43
|
baseFee?: string;
|
|
42
44
|
networkFee?: string;
|
|
45
|
+
networkFeeRaw?: string;
|
|
46
|
+
l1Fee?: string;
|
|
43
47
|
} | undefined;
|
|
44
48
|
low: {
|
|
45
49
|
gasLimit: `${number}` | "" | undefined;
|
|
@@ -48,6 +52,8 @@ export declare function estimateTransferFee(client: ExtendedViemClient, params:
|
|
|
48
52
|
gasPrice?: string;
|
|
49
53
|
baseFee?: string;
|
|
50
54
|
networkFee?: string;
|
|
55
|
+
networkFeeRaw?: string;
|
|
56
|
+
l1Fee?: string;
|
|
51
57
|
} | undefined;
|
|
52
58
|
callGasLimit?: string;
|
|
53
59
|
verificationGasLimit?: string;
|
|
@@ -366,6 +366,185 @@ export declare function getAccounts(client: ExtendedViemClient, params: GetAccou
|
|
|
366
366
|
readonly blockchainId: "ARB-SEPOLIA";
|
|
367
367
|
readonly blockchainVm: "EVM";
|
|
368
368
|
readonly formatters?: undefined | undefined;
|
|
369
|
+
} | {
|
|
370
|
+
blockExplorers: {
|
|
371
|
+
readonly default: {
|
|
372
|
+
readonly name: "ArcScan";
|
|
373
|
+
readonly url: "https://testnet.arcscan.app";
|
|
374
|
+
readonly apiUrl: "https://testnet.arcscan.app/api";
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
blockTime?: number | undefined | undefined;
|
|
378
|
+
contracts: {
|
|
379
|
+
readonly USDC: {
|
|
380
|
+
readonly address: "0x3600000000000000000000000000000000000000";
|
|
381
|
+
readonly abi: readonly [{
|
|
382
|
+
readonly type: "event";
|
|
383
|
+
readonly name: "Approval";
|
|
384
|
+
readonly inputs: readonly [{
|
|
385
|
+
readonly indexed: true;
|
|
386
|
+
readonly name: "owner";
|
|
387
|
+
readonly type: "address";
|
|
388
|
+
}, {
|
|
389
|
+
readonly indexed: true;
|
|
390
|
+
readonly name: "spender";
|
|
391
|
+
readonly type: "address";
|
|
392
|
+
}, {
|
|
393
|
+
readonly indexed: false;
|
|
394
|
+
readonly name: "value";
|
|
395
|
+
readonly type: "uint256";
|
|
396
|
+
}];
|
|
397
|
+
}, {
|
|
398
|
+
readonly type: "event";
|
|
399
|
+
readonly name: "Transfer";
|
|
400
|
+
readonly inputs: readonly [{
|
|
401
|
+
readonly indexed: true;
|
|
402
|
+
readonly name: "from";
|
|
403
|
+
readonly type: "address";
|
|
404
|
+
}, {
|
|
405
|
+
readonly indexed: true;
|
|
406
|
+
readonly name: "to";
|
|
407
|
+
readonly type: "address";
|
|
408
|
+
}, {
|
|
409
|
+
readonly indexed: false;
|
|
410
|
+
readonly name: "value";
|
|
411
|
+
readonly type: "uint256";
|
|
412
|
+
}];
|
|
413
|
+
}, {
|
|
414
|
+
readonly type: "function";
|
|
415
|
+
readonly name: "allowance";
|
|
416
|
+
readonly stateMutability: "view";
|
|
417
|
+
readonly inputs: readonly [{
|
|
418
|
+
readonly name: "owner";
|
|
419
|
+
readonly type: "address";
|
|
420
|
+
}, {
|
|
421
|
+
readonly name: "spender";
|
|
422
|
+
readonly type: "address";
|
|
423
|
+
}];
|
|
424
|
+
readonly outputs: readonly [{
|
|
425
|
+
readonly type: "uint256";
|
|
426
|
+
}];
|
|
427
|
+
}, {
|
|
428
|
+
readonly type: "function";
|
|
429
|
+
readonly name: "approve";
|
|
430
|
+
readonly stateMutability: "nonpayable";
|
|
431
|
+
readonly inputs: readonly [{
|
|
432
|
+
readonly name: "spender";
|
|
433
|
+
readonly type: "address";
|
|
434
|
+
}, {
|
|
435
|
+
readonly name: "amount";
|
|
436
|
+
readonly type: "uint256";
|
|
437
|
+
}];
|
|
438
|
+
readonly outputs: readonly [{
|
|
439
|
+
readonly type: "bool";
|
|
440
|
+
}];
|
|
441
|
+
}, {
|
|
442
|
+
readonly type: "function";
|
|
443
|
+
readonly name: "balanceOf";
|
|
444
|
+
readonly stateMutability: "view";
|
|
445
|
+
readonly inputs: readonly [{
|
|
446
|
+
readonly name: "account";
|
|
447
|
+
readonly type: "address";
|
|
448
|
+
}];
|
|
449
|
+
readonly outputs: readonly [{
|
|
450
|
+
readonly type: "uint256";
|
|
451
|
+
}];
|
|
452
|
+
}, {
|
|
453
|
+
readonly type: "function";
|
|
454
|
+
readonly name: "decimals";
|
|
455
|
+
readonly stateMutability: "view";
|
|
456
|
+
readonly inputs: readonly [];
|
|
457
|
+
readonly outputs: readonly [{
|
|
458
|
+
readonly type: "uint8";
|
|
459
|
+
}];
|
|
460
|
+
}, {
|
|
461
|
+
readonly type: "function";
|
|
462
|
+
readonly name: "name";
|
|
463
|
+
readonly stateMutability: "view";
|
|
464
|
+
readonly inputs: readonly [];
|
|
465
|
+
readonly outputs: readonly [{
|
|
466
|
+
readonly type: "string";
|
|
467
|
+
}];
|
|
468
|
+
}, {
|
|
469
|
+
readonly type: "function";
|
|
470
|
+
readonly name: "symbol";
|
|
471
|
+
readonly stateMutability: "view";
|
|
472
|
+
readonly inputs: readonly [];
|
|
473
|
+
readonly outputs: readonly [{
|
|
474
|
+
readonly type: "string";
|
|
475
|
+
}];
|
|
476
|
+
}, {
|
|
477
|
+
readonly type: "function";
|
|
478
|
+
readonly name: "totalSupply";
|
|
479
|
+
readonly stateMutability: "view";
|
|
480
|
+
readonly inputs: readonly [];
|
|
481
|
+
readonly outputs: readonly [{
|
|
482
|
+
readonly type: "uint256";
|
|
483
|
+
}];
|
|
484
|
+
}, {
|
|
485
|
+
readonly type: "function";
|
|
486
|
+
readonly name: "transfer";
|
|
487
|
+
readonly stateMutability: "nonpayable";
|
|
488
|
+
readonly inputs: readonly [{
|
|
489
|
+
readonly name: "recipient";
|
|
490
|
+
readonly type: "address";
|
|
491
|
+
}, {
|
|
492
|
+
readonly name: "amount";
|
|
493
|
+
readonly type: "uint256";
|
|
494
|
+
}];
|
|
495
|
+
readonly outputs: readonly [{
|
|
496
|
+
readonly type: "bool";
|
|
497
|
+
}];
|
|
498
|
+
}, {
|
|
499
|
+
readonly type: "function";
|
|
500
|
+
readonly name: "transferFrom";
|
|
501
|
+
readonly stateMutability: "nonpayable";
|
|
502
|
+
readonly inputs: readonly [{
|
|
503
|
+
readonly name: "sender";
|
|
504
|
+
readonly type: "address";
|
|
505
|
+
}, {
|
|
506
|
+
readonly name: "recipient";
|
|
507
|
+
readonly type: "address";
|
|
508
|
+
}, {
|
|
509
|
+
readonly name: "amount";
|
|
510
|
+
readonly type: "uint256";
|
|
511
|
+
}];
|
|
512
|
+
readonly outputs: readonly [{
|
|
513
|
+
readonly type: "bool";
|
|
514
|
+
}];
|
|
515
|
+
}];
|
|
516
|
+
readonly read: {
|
|
517
|
+
readonly decimals: () => 6;
|
|
518
|
+
};
|
|
519
|
+
};
|
|
520
|
+
readonly multicall3: {
|
|
521
|
+
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
522
|
+
readonly blockCreated: 0;
|
|
523
|
+
};
|
|
524
|
+
};
|
|
525
|
+
ensTlds?: readonly string[] | undefined;
|
|
526
|
+
id: 5042002;
|
|
527
|
+
name: "Arc Testnet";
|
|
528
|
+
nativeCurrency: {
|
|
529
|
+
readonly name: "USDC";
|
|
530
|
+
readonly symbol: "USDC";
|
|
531
|
+
readonly decimals: 18;
|
|
532
|
+
};
|
|
533
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
534
|
+
rpcUrls: {
|
|
535
|
+
readonly default: {
|
|
536
|
+
readonly http: readonly ["https://rpc.testnet.arc.network", "https://rpc.quicknode.testnet.arc.network", "https://rpc.blockdaemon.testnet.arc.network"];
|
|
537
|
+
readonly webSocket: readonly ["wss://rpc.testnet.arc.network", "wss://rpc.quicknode.testnet.arc.network"];
|
|
538
|
+
};
|
|
539
|
+
};
|
|
540
|
+
sourceId?: number | undefined | undefined;
|
|
541
|
+
testnet: true;
|
|
542
|
+
custom?: Record<string, unknown> | undefined;
|
|
543
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
544
|
+
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
545
|
+
readonly blockchainId: "ARC-TESTNET";
|
|
546
|
+
readonly blockchainVm: "EVM";
|
|
547
|
+
readonly formatters?: undefined;
|
|
369
548
|
} | {
|
|
370
549
|
blockExplorers: {
|
|
371
550
|
readonly default: {
|
|
@@ -357,6 +357,185 @@ export declare const SUPPORTED_CHAINS: readonly [{
|
|
|
357
357
|
readonly blockchainId: "ARB-SEPOLIA";
|
|
358
358
|
readonly blockchainVm: "EVM";
|
|
359
359
|
readonly formatters?: undefined | undefined;
|
|
360
|
+
}, {
|
|
361
|
+
blockExplorers: {
|
|
362
|
+
readonly default: {
|
|
363
|
+
readonly name: "ArcScan";
|
|
364
|
+
readonly url: "https://testnet.arcscan.app";
|
|
365
|
+
readonly apiUrl: "https://testnet.arcscan.app/api";
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
blockTime?: number | undefined | undefined;
|
|
369
|
+
contracts: {
|
|
370
|
+
readonly USDC: {
|
|
371
|
+
readonly address: "0x3600000000000000000000000000000000000000";
|
|
372
|
+
readonly abi: readonly [{
|
|
373
|
+
readonly type: "event";
|
|
374
|
+
readonly name: "Approval";
|
|
375
|
+
readonly inputs: readonly [{
|
|
376
|
+
readonly indexed: true;
|
|
377
|
+
readonly name: "owner";
|
|
378
|
+
readonly type: "address";
|
|
379
|
+
}, {
|
|
380
|
+
readonly indexed: true;
|
|
381
|
+
readonly name: "spender";
|
|
382
|
+
readonly type: "address";
|
|
383
|
+
}, {
|
|
384
|
+
readonly indexed: false;
|
|
385
|
+
readonly name: "value";
|
|
386
|
+
readonly type: "uint256";
|
|
387
|
+
}];
|
|
388
|
+
}, {
|
|
389
|
+
readonly type: "event";
|
|
390
|
+
readonly name: "Transfer";
|
|
391
|
+
readonly inputs: readonly [{
|
|
392
|
+
readonly indexed: true;
|
|
393
|
+
readonly name: "from";
|
|
394
|
+
readonly type: "address";
|
|
395
|
+
}, {
|
|
396
|
+
readonly indexed: true;
|
|
397
|
+
readonly name: "to";
|
|
398
|
+
readonly type: "address";
|
|
399
|
+
}, {
|
|
400
|
+
readonly indexed: false;
|
|
401
|
+
readonly name: "value";
|
|
402
|
+
readonly type: "uint256";
|
|
403
|
+
}];
|
|
404
|
+
}, {
|
|
405
|
+
readonly type: "function";
|
|
406
|
+
readonly name: "allowance";
|
|
407
|
+
readonly stateMutability: "view";
|
|
408
|
+
readonly inputs: readonly [{
|
|
409
|
+
readonly name: "owner";
|
|
410
|
+
readonly type: "address";
|
|
411
|
+
}, {
|
|
412
|
+
readonly name: "spender";
|
|
413
|
+
readonly type: "address";
|
|
414
|
+
}];
|
|
415
|
+
readonly outputs: readonly [{
|
|
416
|
+
readonly type: "uint256";
|
|
417
|
+
}];
|
|
418
|
+
}, {
|
|
419
|
+
readonly type: "function";
|
|
420
|
+
readonly name: "approve";
|
|
421
|
+
readonly stateMutability: "nonpayable";
|
|
422
|
+
readonly inputs: readonly [{
|
|
423
|
+
readonly name: "spender";
|
|
424
|
+
readonly type: "address";
|
|
425
|
+
}, {
|
|
426
|
+
readonly name: "amount";
|
|
427
|
+
readonly type: "uint256";
|
|
428
|
+
}];
|
|
429
|
+
readonly outputs: readonly [{
|
|
430
|
+
readonly type: "bool";
|
|
431
|
+
}];
|
|
432
|
+
}, {
|
|
433
|
+
readonly type: "function";
|
|
434
|
+
readonly name: "balanceOf";
|
|
435
|
+
readonly stateMutability: "view";
|
|
436
|
+
readonly inputs: readonly [{
|
|
437
|
+
readonly name: "account";
|
|
438
|
+
readonly type: "address";
|
|
439
|
+
}];
|
|
440
|
+
readonly outputs: readonly [{
|
|
441
|
+
readonly type: "uint256";
|
|
442
|
+
}];
|
|
443
|
+
}, {
|
|
444
|
+
readonly type: "function";
|
|
445
|
+
readonly name: "decimals";
|
|
446
|
+
readonly stateMutability: "view";
|
|
447
|
+
readonly inputs: readonly [];
|
|
448
|
+
readonly outputs: readonly [{
|
|
449
|
+
readonly type: "uint8";
|
|
450
|
+
}];
|
|
451
|
+
}, {
|
|
452
|
+
readonly type: "function";
|
|
453
|
+
readonly name: "name";
|
|
454
|
+
readonly stateMutability: "view";
|
|
455
|
+
readonly inputs: readonly [];
|
|
456
|
+
readonly outputs: readonly [{
|
|
457
|
+
readonly type: "string";
|
|
458
|
+
}];
|
|
459
|
+
}, {
|
|
460
|
+
readonly type: "function";
|
|
461
|
+
readonly name: "symbol";
|
|
462
|
+
readonly stateMutability: "view";
|
|
463
|
+
readonly inputs: readonly [];
|
|
464
|
+
readonly outputs: readonly [{
|
|
465
|
+
readonly type: "string";
|
|
466
|
+
}];
|
|
467
|
+
}, {
|
|
468
|
+
readonly type: "function";
|
|
469
|
+
readonly name: "totalSupply";
|
|
470
|
+
readonly stateMutability: "view";
|
|
471
|
+
readonly inputs: readonly [];
|
|
472
|
+
readonly outputs: readonly [{
|
|
473
|
+
readonly type: "uint256";
|
|
474
|
+
}];
|
|
475
|
+
}, {
|
|
476
|
+
readonly type: "function";
|
|
477
|
+
readonly name: "transfer";
|
|
478
|
+
readonly stateMutability: "nonpayable";
|
|
479
|
+
readonly inputs: readonly [{
|
|
480
|
+
readonly name: "recipient";
|
|
481
|
+
readonly type: "address";
|
|
482
|
+
}, {
|
|
483
|
+
readonly name: "amount";
|
|
484
|
+
readonly type: "uint256";
|
|
485
|
+
}];
|
|
486
|
+
readonly outputs: readonly [{
|
|
487
|
+
readonly type: "bool";
|
|
488
|
+
}];
|
|
489
|
+
}, {
|
|
490
|
+
readonly type: "function";
|
|
491
|
+
readonly name: "transferFrom";
|
|
492
|
+
readonly stateMutability: "nonpayable";
|
|
493
|
+
readonly inputs: readonly [{
|
|
494
|
+
readonly name: "sender";
|
|
495
|
+
readonly type: "address";
|
|
496
|
+
}, {
|
|
497
|
+
readonly name: "recipient";
|
|
498
|
+
readonly type: "address";
|
|
499
|
+
}, {
|
|
500
|
+
readonly name: "amount";
|
|
501
|
+
readonly type: "uint256";
|
|
502
|
+
}];
|
|
503
|
+
readonly outputs: readonly [{
|
|
504
|
+
readonly type: "bool";
|
|
505
|
+
}];
|
|
506
|
+
}];
|
|
507
|
+
readonly read: {
|
|
508
|
+
readonly decimals: () => 6;
|
|
509
|
+
};
|
|
510
|
+
};
|
|
511
|
+
readonly multicall3: {
|
|
512
|
+
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
513
|
+
readonly blockCreated: 0;
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
ensTlds?: readonly string[] | undefined;
|
|
517
|
+
id: 5042002;
|
|
518
|
+
name: "Arc Testnet";
|
|
519
|
+
nativeCurrency: {
|
|
520
|
+
readonly name: "USDC";
|
|
521
|
+
readonly symbol: "USDC";
|
|
522
|
+
readonly decimals: 18;
|
|
523
|
+
};
|
|
524
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
525
|
+
rpcUrls: {
|
|
526
|
+
readonly default: {
|
|
527
|
+
readonly http: readonly ["https://rpc.testnet.arc.network", "https://rpc.quicknode.testnet.arc.network", "https://rpc.blockdaemon.testnet.arc.network"];
|
|
528
|
+
readonly webSocket: readonly ["wss://rpc.testnet.arc.network", "wss://rpc.quicknode.testnet.arc.network"];
|
|
529
|
+
};
|
|
530
|
+
};
|
|
531
|
+
sourceId?: number | undefined | undefined;
|
|
532
|
+
testnet: true;
|
|
533
|
+
custom?: Record<string, unknown> | undefined;
|
|
534
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
535
|
+
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
536
|
+
readonly blockchainId: "ARC-TESTNET";
|
|
537
|
+
readonly blockchainVm: "EVM";
|
|
538
|
+
readonly formatters?: undefined;
|
|
360
539
|
}, {
|
|
361
540
|
blockExplorers: {
|
|
362
541
|
readonly default: {
|
|
@@ -5423,6 +5602,185 @@ export declare const SUPPORTED_CHAINS_FAUCET: readonly [{
|
|
|
5423
5602
|
readonly blockchainId: "ARB-SEPOLIA";
|
|
5424
5603
|
readonly blockchainVm: "EVM";
|
|
5425
5604
|
readonly formatters?: undefined | undefined;
|
|
5605
|
+
}, {
|
|
5606
|
+
blockExplorers: {
|
|
5607
|
+
readonly default: {
|
|
5608
|
+
readonly name: "ArcScan";
|
|
5609
|
+
readonly url: "https://testnet.arcscan.app";
|
|
5610
|
+
readonly apiUrl: "https://testnet.arcscan.app/api";
|
|
5611
|
+
};
|
|
5612
|
+
};
|
|
5613
|
+
blockTime?: number | undefined | undefined;
|
|
5614
|
+
contracts: {
|
|
5615
|
+
readonly USDC: {
|
|
5616
|
+
readonly address: "0x3600000000000000000000000000000000000000";
|
|
5617
|
+
readonly abi: readonly [{
|
|
5618
|
+
readonly type: "event";
|
|
5619
|
+
readonly name: "Approval";
|
|
5620
|
+
readonly inputs: readonly [{
|
|
5621
|
+
readonly indexed: true;
|
|
5622
|
+
readonly name: "owner";
|
|
5623
|
+
readonly type: "address";
|
|
5624
|
+
}, {
|
|
5625
|
+
readonly indexed: true;
|
|
5626
|
+
readonly name: "spender";
|
|
5627
|
+
readonly type: "address";
|
|
5628
|
+
}, {
|
|
5629
|
+
readonly indexed: false;
|
|
5630
|
+
readonly name: "value";
|
|
5631
|
+
readonly type: "uint256";
|
|
5632
|
+
}];
|
|
5633
|
+
}, {
|
|
5634
|
+
readonly type: "event";
|
|
5635
|
+
readonly name: "Transfer";
|
|
5636
|
+
readonly inputs: readonly [{
|
|
5637
|
+
readonly indexed: true;
|
|
5638
|
+
readonly name: "from";
|
|
5639
|
+
readonly type: "address";
|
|
5640
|
+
}, {
|
|
5641
|
+
readonly indexed: true;
|
|
5642
|
+
readonly name: "to";
|
|
5643
|
+
readonly type: "address";
|
|
5644
|
+
}, {
|
|
5645
|
+
readonly indexed: false;
|
|
5646
|
+
readonly name: "value";
|
|
5647
|
+
readonly type: "uint256";
|
|
5648
|
+
}];
|
|
5649
|
+
}, {
|
|
5650
|
+
readonly type: "function";
|
|
5651
|
+
readonly name: "allowance";
|
|
5652
|
+
readonly stateMutability: "view";
|
|
5653
|
+
readonly inputs: readonly [{
|
|
5654
|
+
readonly name: "owner";
|
|
5655
|
+
readonly type: "address";
|
|
5656
|
+
}, {
|
|
5657
|
+
readonly name: "spender";
|
|
5658
|
+
readonly type: "address";
|
|
5659
|
+
}];
|
|
5660
|
+
readonly outputs: readonly [{
|
|
5661
|
+
readonly type: "uint256";
|
|
5662
|
+
}];
|
|
5663
|
+
}, {
|
|
5664
|
+
readonly type: "function";
|
|
5665
|
+
readonly name: "approve";
|
|
5666
|
+
readonly stateMutability: "nonpayable";
|
|
5667
|
+
readonly inputs: readonly [{
|
|
5668
|
+
readonly name: "spender";
|
|
5669
|
+
readonly type: "address";
|
|
5670
|
+
}, {
|
|
5671
|
+
readonly name: "amount";
|
|
5672
|
+
readonly type: "uint256";
|
|
5673
|
+
}];
|
|
5674
|
+
readonly outputs: readonly [{
|
|
5675
|
+
readonly type: "bool";
|
|
5676
|
+
}];
|
|
5677
|
+
}, {
|
|
5678
|
+
readonly type: "function";
|
|
5679
|
+
readonly name: "balanceOf";
|
|
5680
|
+
readonly stateMutability: "view";
|
|
5681
|
+
readonly inputs: readonly [{
|
|
5682
|
+
readonly name: "account";
|
|
5683
|
+
readonly type: "address";
|
|
5684
|
+
}];
|
|
5685
|
+
readonly outputs: readonly [{
|
|
5686
|
+
readonly type: "uint256";
|
|
5687
|
+
}];
|
|
5688
|
+
}, {
|
|
5689
|
+
readonly type: "function";
|
|
5690
|
+
readonly name: "decimals";
|
|
5691
|
+
readonly stateMutability: "view";
|
|
5692
|
+
readonly inputs: readonly [];
|
|
5693
|
+
readonly outputs: readonly [{
|
|
5694
|
+
readonly type: "uint8";
|
|
5695
|
+
}];
|
|
5696
|
+
}, {
|
|
5697
|
+
readonly type: "function";
|
|
5698
|
+
readonly name: "name";
|
|
5699
|
+
readonly stateMutability: "view";
|
|
5700
|
+
readonly inputs: readonly [];
|
|
5701
|
+
readonly outputs: readonly [{
|
|
5702
|
+
readonly type: "string";
|
|
5703
|
+
}];
|
|
5704
|
+
}, {
|
|
5705
|
+
readonly type: "function";
|
|
5706
|
+
readonly name: "symbol";
|
|
5707
|
+
readonly stateMutability: "view";
|
|
5708
|
+
readonly inputs: readonly [];
|
|
5709
|
+
readonly outputs: readonly [{
|
|
5710
|
+
readonly type: "string";
|
|
5711
|
+
}];
|
|
5712
|
+
}, {
|
|
5713
|
+
readonly type: "function";
|
|
5714
|
+
readonly name: "totalSupply";
|
|
5715
|
+
readonly stateMutability: "view";
|
|
5716
|
+
readonly inputs: readonly [];
|
|
5717
|
+
readonly outputs: readonly [{
|
|
5718
|
+
readonly type: "uint256";
|
|
5719
|
+
}];
|
|
5720
|
+
}, {
|
|
5721
|
+
readonly type: "function";
|
|
5722
|
+
readonly name: "transfer";
|
|
5723
|
+
readonly stateMutability: "nonpayable";
|
|
5724
|
+
readonly inputs: readonly [{
|
|
5725
|
+
readonly name: "recipient";
|
|
5726
|
+
readonly type: "address";
|
|
5727
|
+
}, {
|
|
5728
|
+
readonly name: "amount";
|
|
5729
|
+
readonly type: "uint256";
|
|
5730
|
+
}];
|
|
5731
|
+
readonly outputs: readonly [{
|
|
5732
|
+
readonly type: "bool";
|
|
5733
|
+
}];
|
|
5734
|
+
}, {
|
|
5735
|
+
readonly type: "function";
|
|
5736
|
+
readonly name: "transferFrom";
|
|
5737
|
+
readonly stateMutability: "nonpayable";
|
|
5738
|
+
readonly inputs: readonly [{
|
|
5739
|
+
readonly name: "sender";
|
|
5740
|
+
readonly type: "address";
|
|
5741
|
+
}, {
|
|
5742
|
+
readonly name: "recipient";
|
|
5743
|
+
readonly type: "address";
|
|
5744
|
+
}, {
|
|
5745
|
+
readonly name: "amount";
|
|
5746
|
+
readonly type: "uint256";
|
|
5747
|
+
}];
|
|
5748
|
+
readonly outputs: readonly [{
|
|
5749
|
+
readonly type: "bool";
|
|
5750
|
+
}];
|
|
5751
|
+
}];
|
|
5752
|
+
readonly read: {
|
|
5753
|
+
readonly decimals: () => 6;
|
|
5754
|
+
};
|
|
5755
|
+
};
|
|
5756
|
+
readonly multicall3: {
|
|
5757
|
+
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
5758
|
+
readonly blockCreated: 0;
|
|
5759
|
+
};
|
|
5760
|
+
};
|
|
5761
|
+
ensTlds?: readonly string[] | undefined;
|
|
5762
|
+
id: 5042002;
|
|
5763
|
+
name: "Arc Testnet";
|
|
5764
|
+
nativeCurrency: {
|
|
5765
|
+
readonly name: "USDC";
|
|
5766
|
+
readonly symbol: "USDC";
|
|
5767
|
+
readonly decimals: 18;
|
|
5768
|
+
};
|
|
5769
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
5770
|
+
rpcUrls: {
|
|
5771
|
+
readonly default: {
|
|
5772
|
+
readonly http: readonly ["https://rpc.testnet.arc.network", "https://rpc.quicknode.testnet.arc.network", "https://rpc.blockdaemon.testnet.arc.network"];
|
|
5773
|
+
readonly webSocket: readonly ["wss://rpc.testnet.arc.network", "wss://rpc.quicknode.testnet.arc.network"];
|
|
5774
|
+
};
|
|
5775
|
+
};
|
|
5776
|
+
sourceId?: number | undefined | undefined;
|
|
5777
|
+
testnet: true;
|
|
5778
|
+
custom?: Record<string, unknown> | undefined;
|
|
5779
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
5780
|
+
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
5781
|
+
readonly blockchainId: "ARC-TESTNET";
|
|
5782
|
+
readonly blockchainVm: "EVM";
|
|
5783
|
+
readonly formatters?: undefined;
|
|
5426
5784
|
}, {
|
|
5427
5785
|
blockExplorers: {
|
|
5428
5786
|
readonly default: {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
// evidence any actual or intended publication of such source code. Disclosure
|
|
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
|
-
import { ARB, ARB_SEPOLIA, AVAX, AVAX_FUJI, BASE, BASE_SEPOLIA, ETH, ETH_SEPOLIA, MATIC, MATIC_AMOY, OP, OP_SEPOLIA, UNI, UNI_SEPOLIA, } from '../../chains/index.js';
|
|
11
|
+
import { ARB, ARB_SEPOLIA, ARC_TESTNET, AVAX, AVAX_FUJI, BASE, BASE_SEPOLIA, ETH, ETH_SEPOLIA, MATIC, MATIC_AMOY, OP, OP_SEPOLIA, UNI, UNI_SEPOLIA, } from '../../chains/index.js';
|
|
12
12
|
import { UnsupportedChainError } from '../../errors/index.js';
|
|
13
13
|
import { extractChain as _extractChain } from '../../extractChain.js';
|
|
14
14
|
import { raise } from '../../utils/raise.js';
|
|
@@ -17,6 +17,7 @@ export const DEFAULT_WALLET_SET_NAME = 'default';
|
|
|
17
17
|
export const SUPPORTED_CHAINS = [
|
|
18
18
|
ARB,
|
|
19
19
|
ARB_SEPOLIA,
|
|
20
|
+
ARC_TESTNET,
|
|
20
21
|
AVAX,
|
|
21
22
|
AVAX_FUJI,
|
|
22
23
|
BASE,
|
|
@@ -32,6 +33,7 @@ export const SUPPORTED_CHAINS = [
|
|
|
32
33
|
];
|
|
33
34
|
export const SUPPORTED_CHAINS_FAUCET = [
|
|
34
35
|
ARB_SEPOLIA,
|
|
36
|
+
ARC_TESTNET,
|
|
35
37
|
AVAX_FUJI,
|
|
36
38
|
BASE_SEPOLIA,
|
|
37
39
|
ETH_SEPOLIA,
|
|
@@ -228,6 +228,8 @@ export declare class Provider extends BaseProvider {
|
|
|
228
228
|
gasPrice?: string;
|
|
229
229
|
baseFee?: string;
|
|
230
230
|
networkFee?: string;
|
|
231
|
+
networkFeeRaw?: string;
|
|
232
|
+
l1Fee?: string;
|
|
231
233
|
} | undefined;
|
|
232
234
|
medium: {
|
|
233
235
|
gasLimit: `${number}` | "" | undefined;
|
|
@@ -236,6 +238,8 @@ export declare class Provider extends BaseProvider {
|
|
|
236
238
|
gasPrice?: string;
|
|
237
239
|
baseFee?: string;
|
|
238
240
|
networkFee?: string;
|
|
241
|
+
networkFeeRaw?: string;
|
|
242
|
+
l1Fee?: string;
|
|
239
243
|
} | undefined;
|
|
240
244
|
low: {
|
|
241
245
|
gasLimit: `${number}` | "" | undefined;
|
|
@@ -244,6 +248,8 @@ export declare class Provider extends BaseProvider {
|
|
|
244
248
|
gasPrice?: string;
|
|
245
249
|
baseFee?: string;
|
|
246
250
|
networkFee?: string;
|
|
251
|
+
networkFeeRaw?: string;
|
|
252
|
+
l1Fee?: string;
|
|
247
253
|
} | undefined;
|
|
248
254
|
callGasLimit?: string;
|
|
249
255
|
verificationGasLimit?: string;
|
|
@@ -274,6 +280,8 @@ export declare class Provider extends BaseProvider {
|
|
|
274
280
|
gasPrice?: string;
|
|
275
281
|
baseFee?: string;
|
|
276
282
|
networkFee?: string;
|
|
283
|
+
networkFeeRaw?: string;
|
|
284
|
+
l1Fee?: string;
|
|
277
285
|
} | undefined;
|
|
278
286
|
medium: {
|
|
279
287
|
gasLimit: `${number}` | "" | undefined;
|
|
@@ -282,6 +290,8 @@ export declare class Provider extends BaseProvider {
|
|
|
282
290
|
gasPrice?: string;
|
|
283
291
|
baseFee?: string;
|
|
284
292
|
networkFee?: string;
|
|
293
|
+
networkFeeRaw?: string;
|
|
294
|
+
l1Fee?: string;
|
|
285
295
|
} | undefined;
|
|
286
296
|
low: {
|
|
287
297
|
gasLimit: `${number}` | "" | undefined;
|
|
@@ -290,6 +300,8 @@ export declare class Provider extends BaseProvider {
|
|
|
290
300
|
gasPrice?: string;
|
|
291
301
|
baseFee?: string;
|
|
292
302
|
networkFee?: string;
|
|
303
|
+
networkFeeRaw?: string;
|
|
304
|
+
l1Fee?: string;
|
|
293
305
|
} | undefined;
|
|
294
306
|
callGasLimit?: string;
|
|
295
307
|
verificationGasLimit?: string;
|