@circle-fin/adapter-ethers-v6 1.6.1 → 1.6.2
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/CHANGELOG.md +6 -0
- package/index.cjs +8 -8
- package/index.d.ts +48 -0
- package/index.mjs +8 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/index.cjs
CHANGED
|
@@ -2621,7 +2621,7 @@ const Codex = defineChain({
|
|
|
2621
2621
|
},
|
|
2622
2622
|
forwarderSupported: {
|
|
2623
2623
|
source: true,
|
|
2624
|
-
destination:
|
|
2624
|
+
destination: true,
|
|
2625
2625
|
},
|
|
2626
2626
|
},
|
|
2627
2627
|
kitContracts: {
|
|
@@ -2664,7 +2664,7 @@ const CodexTestnet = defineChain({
|
|
|
2664
2664
|
},
|
|
2665
2665
|
forwarderSupported: {
|
|
2666
2666
|
source: true,
|
|
2667
|
-
destination:
|
|
2667
|
+
destination: true,
|
|
2668
2668
|
},
|
|
2669
2669
|
},
|
|
2670
2670
|
kitContracts: {
|
|
@@ -2926,7 +2926,7 @@ const HyperEVM = defineChain({
|
|
|
2926
2926
|
},
|
|
2927
2927
|
chainId: 999,
|
|
2928
2928
|
isTestnet: false,
|
|
2929
|
-
explorerUrl: 'https://
|
|
2929
|
+
explorerUrl: 'https://app.hyperliquid.xyz/explorer/tx/{hash}',
|
|
2930
2930
|
rpcEndpoints: ['https://rpc.hyperliquid.xyz/evm'],
|
|
2931
2931
|
eurcAddress: null,
|
|
2932
2932
|
usdcAddress: '0xb88339CB7199b77E23DB6E890353E22632Ba630f',
|
|
@@ -2971,7 +2971,7 @@ const HyperEVMTestnet = defineChain({
|
|
|
2971
2971
|
},
|
|
2972
2972
|
chainId: 998,
|
|
2973
2973
|
isTestnet: true,
|
|
2974
|
-
explorerUrl: 'https://
|
|
2974
|
+
explorerUrl: 'https://app.hyperliquid-testnet.xyz/explorer/tx/{hash}',
|
|
2975
2975
|
rpcEndpoints: ['https://rpc.hyperliquid-testnet.xyz/evm'],
|
|
2976
2976
|
eurcAddress: null,
|
|
2977
2977
|
usdcAddress: '0x2B3370eE501B4a559b57D449569354196457D8Ab',
|
|
@@ -3617,7 +3617,7 @@ const Plume = defineChain({
|
|
|
3617
3617
|
},
|
|
3618
3618
|
forwarderSupported: {
|
|
3619
3619
|
source: true,
|
|
3620
|
-
destination:
|
|
3620
|
+
destination: true,
|
|
3621
3621
|
},
|
|
3622
3622
|
},
|
|
3623
3623
|
kitContracts: {
|
|
@@ -3662,7 +3662,7 @@ const PlumeTestnet = defineChain({
|
|
|
3662
3662
|
},
|
|
3663
3663
|
forwarderSupported: {
|
|
3664
3664
|
source: true,
|
|
3665
|
-
destination:
|
|
3665
|
+
destination: true,
|
|
3666
3666
|
},
|
|
3667
3667
|
},
|
|
3668
3668
|
kitContracts: {
|
|
@@ -4440,7 +4440,7 @@ const XDC = defineChain({
|
|
|
4440
4440
|
},
|
|
4441
4441
|
forwarderSupported: {
|
|
4442
4442
|
source: true,
|
|
4443
|
-
destination:
|
|
4443
|
+
destination: true,
|
|
4444
4444
|
},
|
|
4445
4445
|
},
|
|
4446
4446
|
kitContracts: {
|
|
@@ -4484,7 +4484,7 @@ const XDCApothem = defineChain({
|
|
|
4484
4484
|
},
|
|
4485
4485
|
forwarderSupported: {
|
|
4486
4486
|
source: true,
|
|
4487
|
-
destination:
|
|
4487
|
+
destination: true,
|
|
4488
4488
|
},
|
|
4489
4489
|
},
|
|
4490
4490
|
kitContracts: {
|
package/index.d.ts
CHANGED
|
@@ -667,6 +667,32 @@ interface EvmExecuteOverrides extends EvmEstimateOverrides {
|
|
|
667
667
|
*/
|
|
668
668
|
nonce?: number;
|
|
669
669
|
}
|
|
670
|
+
/**
|
|
671
|
+
* Raw EVM call data tuple for a single contract interaction.
|
|
672
|
+
*
|
|
673
|
+
* Represents the minimal data needed to submit an EVM transaction:
|
|
674
|
+
* the target contract address, the ABI-encoded calldata, and an
|
|
675
|
+
* optional native token value. Used by EIP-5792 batched execution
|
|
676
|
+
* to compose multiple calls into a single `wallet_sendCalls` request.
|
|
677
|
+
*
|
|
678
|
+
* @interface EvmCallData
|
|
679
|
+
*
|
|
680
|
+
* @example
|
|
681
|
+
* ```typescript
|
|
682
|
+
* const callData: EvmCallData = {
|
|
683
|
+
* to: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
|
|
684
|
+
* data: '0x095ea7b3000000000000000000000000...',
|
|
685
|
+
* }
|
|
686
|
+
* ```
|
|
687
|
+
*/
|
|
688
|
+
interface EvmCallData {
|
|
689
|
+
/** The target contract address. */
|
|
690
|
+
to: `0x${string}`;
|
|
691
|
+
/** The ABI-encoded function calldata. */
|
|
692
|
+
data: `0x${string}`;
|
|
693
|
+
/** Optional native token value to send with the call. */
|
|
694
|
+
value?: bigint | undefined;
|
|
695
|
+
}
|
|
670
696
|
/**
|
|
671
697
|
* Prepared contract execution for EVM chains.
|
|
672
698
|
*
|
|
@@ -695,6 +721,28 @@ interface EvmPreparedChainRequest {
|
|
|
695
721
|
* @throws If the execution fails
|
|
696
722
|
*/
|
|
697
723
|
execute(overrides?: EvmExecuteOverrides): Promise<string>;
|
|
724
|
+
/**
|
|
725
|
+
* Return the raw call tuple without executing or estimating.
|
|
726
|
+
*
|
|
727
|
+
* Expose the `{ to, data, value }` triple that would be sent on-chain so
|
|
728
|
+
* callers can feed it into EIP-5792 `wallet_sendCalls` or other batching
|
|
729
|
+
* mechanisms. This method is optional -- adapters that do not support
|
|
730
|
+
* calldata extraction (e.g. Ethers v6) may omit it.
|
|
731
|
+
*
|
|
732
|
+
* @returns The raw EVM call data for this prepared request.
|
|
733
|
+
* @throws Never — synchronous accessor with no failure path.
|
|
734
|
+
* @since 2.0.0
|
|
735
|
+
*
|
|
736
|
+
* @example
|
|
737
|
+
* ```typescript
|
|
738
|
+
* const prepared = await adapter.prepare(params, ctx)
|
|
739
|
+
* if (prepared.getCallData) {
|
|
740
|
+
* const { to, data, value } = prepared.getCallData()
|
|
741
|
+
* console.log('Target:', to, 'Data:', data)
|
|
742
|
+
* }
|
|
743
|
+
* ```
|
|
744
|
+
*/
|
|
745
|
+
getCallData?(): EvmCallData;
|
|
698
746
|
}
|
|
699
747
|
/**
|
|
700
748
|
* Union type for all supported prepared contract executions.
|
package/index.mjs
CHANGED
|
@@ -2616,7 +2616,7 @@ const Codex = defineChain({
|
|
|
2616
2616
|
},
|
|
2617
2617
|
forwarderSupported: {
|
|
2618
2618
|
source: true,
|
|
2619
|
-
destination:
|
|
2619
|
+
destination: true,
|
|
2620
2620
|
},
|
|
2621
2621
|
},
|
|
2622
2622
|
kitContracts: {
|
|
@@ -2659,7 +2659,7 @@ const CodexTestnet = defineChain({
|
|
|
2659
2659
|
},
|
|
2660
2660
|
forwarderSupported: {
|
|
2661
2661
|
source: true,
|
|
2662
|
-
destination:
|
|
2662
|
+
destination: true,
|
|
2663
2663
|
},
|
|
2664
2664
|
},
|
|
2665
2665
|
kitContracts: {
|
|
@@ -2921,7 +2921,7 @@ const HyperEVM = defineChain({
|
|
|
2921
2921
|
},
|
|
2922
2922
|
chainId: 999,
|
|
2923
2923
|
isTestnet: false,
|
|
2924
|
-
explorerUrl: 'https://
|
|
2924
|
+
explorerUrl: 'https://app.hyperliquid.xyz/explorer/tx/{hash}',
|
|
2925
2925
|
rpcEndpoints: ['https://rpc.hyperliquid.xyz/evm'],
|
|
2926
2926
|
eurcAddress: null,
|
|
2927
2927
|
usdcAddress: '0xb88339CB7199b77E23DB6E890353E22632Ba630f',
|
|
@@ -2966,7 +2966,7 @@ const HyperEVMTestnet = defineChain({
|
|
|
2966
2966
|
},
|
|
2967
2967
|
chainId: 998,
|
|
2968
2968
|
isTestnet: true,
|
|
2969
|
-
explorerUrl: 'https://
|
|
2969
|
+
explorerUrl: 'https://app.hyperliquid-testnet.xyz/explorer/tx/{hash}',
|
|
2970
2970
|
rpcEndpoints: ['https://rpc.hyperliquid-testnet.xyz/evm'],
|
|
2971
2971
|
eurcAddress: null,
|
|
2972
2972
|
usdcAddress: '0x2B3370eE501B4a559b57D449569354196457D8Ab',
|
|
@@ -3612,7 +3612,7 @@ const Plume = defineChain({
|
|
|
3612
3612
|
},
|
|
3613
3613
|
forwarderSupported: {
|
|
3614
3614
|
source: true,
|
|
3615
|
-
destination:
|
|
3615
|
+
destination: true,
|
|
3616
3616
|
},
|
|
3617
3617
|
},
|
|
3618
3618
|
kitContracts: {
|
|
@@ -3657,7 +3657,7 @@ const PlumeTestnet = defineChain({
|
|
|
3657
3657
|
},
|
|
3658
3658
|
forwarderSupported: {
|
|
3659
3659
|
source: true,
|
|
3660
|
-
destination:
|
|
3660
|
+
destination: true,
|
|
3661
3661
|
},
|
|
3662
3662
|
},
|
|
3663
3663
|
kitContracts: {
|
|
@@ -4435,7 +4435,7 @@ const XDC = defineChain({
|
|
|
4435
4435
|
},
|
|
4436
4436
|
forwarderSupported: {
|
|
4437
4437
|
source: true,
|
|
4438
|
-
destination:
|
|
4438
|
+
destination: true,
|
|
4439
4439
|
},
|
|
4440
4440
|
},
|
|
4441
4441
|
kitContracts: {
|
|
@@ -4479,7 +4479,7 @@ const XDCApothem = defineChain({
|
|
|
4479
4479
|
},
|
|
4480
4480
|
forwarderSupported: {
|
|
4481
4481
|
source: true,
|
|
4482
|
-
destination:
|
|
4482
|
+
destination: true,
|
|
4483
4483
|
},
|
|
4484
4484
|
},
|
|
4485
4485
|
kitContracts: {
|