@circle-fin/app-kit 1.13.0 → 1.14.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/CHANGELOG.md +56 -0
- package/bridge.cjs +910 -47
- package/bridge.d.cts +55 -0
- package/bridge.d.mts +55 -0
- package/bridge.d.ts +55 -0
- package/bridge.mjs +911 -48
- package/chains.cjs +129 -10
- package/chains.d.cts +9 -0
- package/chains.d.mts +9 -0
- package/chains.d.ts +9 -0
- package/chains.mjs +129 -10
- package/context.d.cts +55 -0
- package/context.d.mts +55 -0
- package/context.d.ts +55 -0
- package/earn.cjs +432 -27
- package/earn.d.cts +55 -0
- package/earn.d.mts +55 -0
- package/earn.d.ts +55 -0
- package/earn.mjs +428 -27
- package/estimateBridge.cjs +910 -47
- package/estimateBridge.d.cts +61 -0
- package/estimateBridge.d.mts +61 -0
- package/estimateBridge.d.ts +61 -0
- package/estimateBridge.mjs +911 -48
- package/estimateSwap.cjs +428 -26
- package/estimateSwap.d.cts +55 -0
- package/estimateSwap.d.mts +55 -0
- package/estimateSwap.d.ts +55 -0
- package/estimateSwap.mjs +427 -26
- package/index.cjs +4613 -346
- package/index.d.cts +777 -216
- package/index.d.mts +777 -216
- package/index.d.ts +777 -216
- package/index.mjs +4614 -347
- package/package.json +6 -6
- package/swap.cjs +428 -26
- package/swap.d.cts +55 -0
- package/swap.d.mts +55 -0
- package/swap.d.ts +55 -0
- package/swap.mjs +427 -26
- package/unifiedBalance.cjs +20602 -8389
- package/unifiedBalance.d.cts +544 -160
- package/unifiedBalance.d.mts +544 -160
- package/unifiedBalance.d.ts +544 -160
- package/unifiedBalance.mjs +20603 -8391
package/context.d.cts
CHANGED
|
@@ -559,6 +559,19 @@ interface GatewayV1Contracts {
|
|
|
559
559
|
* @example "0xD05E7D2E7d30b92c5F17d7d0fC575fce231F1A48"
|
|
560
560
|
*/
|
|
561
561
|
depositForHandler?: string;
|
|
562
|
+
/**
|
|
563
|
+
* The address of the `GenericExecutor` contract.
|
|
564
|
+
*
|
|
565
|
+
* @description Optional. The contract that acts as `mintRecipient` and
|
|
566
|
+
* `destinationCaller` for the CCTP v2 prepaid FORWARD path. It receives the
|
|
567
|
+
* CCTP mint and calls {@link GatewayV1Contracts.depositForHandler} to
|
|
568
|
+
* complete the fast deposit into the {@link GatewayV1Contracts.wallet}.
|
|
569
|
+
* Present only on chains that are fast-deposit destinations; other Gateway
|
|
570
|
+
* chains omit it.
|
|
571
|
+
*
|
|
572
|
+
* @example "0xFa7be2f04F3Ad4ca969260729c6d45B5625984A7"
|
|
573
|
+
*/
|
|
574
|
+
genericExecutor?: string;
|
|
562
575
|
}
|
|
563
576
|
/**
|
|
564
577
|
* Versioned map of Gateway contract configurations.
|
|
@@ -5463,6 +5476,48 @@ TChainDefinition extends ChainDefinition = ChainDefinition> extends WalletContex
|
|
|
5463
5476
|
* Must be a valid address format for the specified blockchain.
|
|
5464
5477
|
*/
|
|
5465
5478
|
recipientAddress?: string;
|
|
5479
|
+
/**
|
|
5480
|
+
* Optional destination dApp deposit action for a fast cross-chain transfer.
|
|
5481
|
+
*
|
|
5482
|
+
* When set, the burned USDC is minted to Circle's GenericExecutor on the
|
|
5483
|
+
* destination chain, which calls the registered dApp (for example, a Gateway
|
|
5484
|
+
* `depositFor`) in the same relayed flow. Consumed by the CCTP v2 provider's
|
|
5485
|
+
* executor-deposit path; requires `useForwarder: true`.
|
|
5486
|
+
*
|
|
5487
|
+
* @see {@link BridgeDepositAction}
|
|
5488
|
+
*/
|
|
5489
|
+
deposit?: BridgeDepositAction;
|
|
5490
|
+
}
|
|
5491
|
+
/**
|
|
5492
|
+
* Destination dApp deposit action for a fast cross-chain transfer.
|
|
5493
|
+
*
|
|
5494
|
+
* When present on a bridge destination, the CCTP v2 provider routes the
|
|
5495
|
+
* transfer through Circle's GenericExecutor: the burned USDC is minted to the
|
|
5496
|
+
* executor on the destination chain, which then calls the registered dApp (for
|
|
5497
|
+
* example, a Gateway `depositFor`) in the same relayed flow. Encoded into
|
|
5498
|
+
* executor hookData via `buildDepositForGenericExecutorPayload`.
|
|
5499
|
+
*
|
|
5500
|
+
* @example
|
|
5501
|
+
* ```typescript
|
|
5502
|
+
* import type { BridgeDepositAction } from '@core/provider'
|
|
5503
|
+
*
|
|
5504
|
+
* const deposit: BridgeDepositAction = {
|
|
5505
|
+
* dappId: 'gateway_deposit',
|
|
5506
|
+
* params: ['0xTokenMessengerWithFees', '0xDepositAccount', 0n],
|
|
5507
|
+
* }
|
|
5508
|
+
* ```
|
|
5509
|
+
*/
|
|
5510
|
+
interface BridgeDepositAction {
|
|
5511
|
+
/**
|
|
5512
|
+
* Registered dApp identifier the GenericExecutor invokes on the destination
|
|
5513
|
+
* chain (for example, `'gateway_deposit'`).
|
|
5514
|
+
*/
|
|
5515
|
+
dappId: string;
|
|
5516
|
+
/**
|
|
5517
|
+
* Positional arguments for the dApp function, in ABI order. Dynamic amount
|
|
5518
|
+
* slots are filled in by the executor from the minted amount.
|
|
5519
|
+
*/
|
|
5520
|
+
params: readonly unknown[];
|
|
5466
5521
|
}
|
|
5467
5522
|
/**
|
|
5468
5523
|
* Parameters for executing a cross-chain bridge operation.
|
package/context.d.mts
CHANGED
|
@@ -559,6 +559,19 @@ interface GatewayV1Contracts {
|
|
|
559
559
|
* @example "0xD05E7D2E7d30b92c5F17d7d0fC575fce231F1A48"
|
|
560
560
|
*/
|
|
561
561
|
depositForHandler?: string;
|
|
562
|
+
/**
|
|
563
|
+
* The address of the `GenericExecutor` contract.
|
|
564
|
+
*
|
|
565
|
+
* @description Optional. The contract that acts as `mintRecipient` and
|
|
566
|
+
* `destinationCaller` for the CCTP v2 prepaid FORWARD path. It receives the
|
|
567
|
+
* CCTP mint and calls {@link GatewayV1Contracts.depositForHandler} to
|
|
568
|
+
* complete the fast deposit into the {@link GatewayV1Contracts.wallet}.
|
|
569
|
+
* Present only on chains that are fast-deposit destinations; other Gateway
|
|
570
|
+
* chains omit it.
|
|
571
|
+
*
|
|
572
|
+
* @example "0xFa7be2f04F3Ad4ca969260729c6d45B5625984A7"
|
|
573
|
+
*/
|
|
574
|
+
genericExecutor?: string;
|
|
562
575
|
}
|
|
563
576
|
/**
|
|
564
577
|
* Versioned map of Gateway contract configurations.
|
|
@@ -5463,6 +5476,48 @@ TChainDefinition extends ChainDefinition = ChainDefinition> extends WalletContex
|
|
|
5463
5476
|
* Must be a valid address format for the specified blockchain.
|
|
5464
5477
|
*/
|
|
5465
5478
|
recipientAddress?: string;
|
|
5479
|
+
/**
|
|
5480
|
+
* Optional destination dApp deposit action for a fast cross-chain transfer.
|
|
5481
|
+
*
|
|
5482
|
+
* When set, the burned USDC is minted to Circle's GenericExecutor on the
|
|
5483
|
+
* destination chain, which calls the registered dApp (for example, a Gateway
|
|
5484
|
+
* `depositFor`) in the same relayed flow. Consumed by the CCTP v2 provider's
|
|
5485
|
+
* executor-deposit path; requires `useForwarder: true`.
|
|
5486
|
+
*
|
|
5487
|
+
* @see {@link BridgeDepositAction}
|
|
5488
|
+
*/
|
|
5489
|
+
deposit?: BridgeDepositAction;
|
|
5490
|
+
}
|
|
5491
|
+
/**
|
|
5492
|
+
* Destination dApp deposit action for a fast cross-chain transfer.
|
|
5493
|
+
*
|
|
5494
|
+
* When present on a bridge destination, the CCTP v2 provider routes the
|
|
5495
|
+
* transfer through Circle's GenericExecutor: the burned USDC is minted to the
|
|
5496
|
+
* executor on the destination chain, which then calls the registered dApp (for
|
|
5497
|
+
* example, a Gateway `depositFor`) in the same relayed flow. Encoded into
|
|
5498
|
+
* executor hookData via `buildDepositForGenericExecutorPayload`.
|
|
5499
|
+
*
|
|
5500
|
+
* @example
|
|
5501
|
+
* ```typescript
|
|
5502
|
+
* import type { BridgeDepositAction } from '@core/provider'
|
|
5503
|
+
*
|
|
5504
|
+
* const deposit: BridgeDepositAction = {
|
|
5505
|
+
* dappId: 'gateway_deposit',
|
|
5506
|
+
* params: ['0xTokenMessengerWithFees', '0xDepositAccount', 0n],
|
|
5507
|
+
* }
|
|
5508
|
+
* ```
|
|
5509
|
+
*/
|
|
5510
|
+
interface BridgeDepositAction {
|
|
5511
|
+
/**
|
|
5512
|
+
* Registered dApp identifier the GenericExecutor invokes on the destination
|
|
5513
|
+
* chain (for example, `'gateway_deposit'`).
|
|
5514
|
+
*/
|
|
5515
|
+
dappId: string;
|
|
5516
|
+
/**
|
|
5517
|
+
* Positional arguments for the dApp function, in ABI order. Dynamic amount
|
|
5518
|
+
* slots are filled in by the executor from the minted amount.
|
|
5519
|
+
*/
|
|
5520
|
+
params: readonly unknown[];
|
|
5466
5521
|
}
|
|
5467
5522
|
/**
|
|
5468
5523
|
* Parameters for executing a cross-chain bridge operation.
|
package/context.d.ts
CHANGED
|
@@ -559,6 +559,19 @@ interface GatewayV1Contracts {
|
|
|
559
559
|
* @example "0xD05E7D2E7d30b92c5F17d7d0fC575fce231F1A48"
|
|
560
560
|
*/
|
|
561
561
|
depositForHandler?: string;
|
|
562
|
+
/**
|
|
563
|
+
* The address of the `GenericExecutor` contract.
|
|
564
|
+
*
|
|
565
|
+
* @description Optional. The contract that acts as `mintRecipient` and
|
|
566
|
+
* `destinationCaller` for the CCTP v2 prepaid FORWARD path. It receives the
|
|
567
|
+
* CCTP mint and calls {@link GatewayV1Contracts.depositForHandler} to
|
|
568
|
+
* complete the fast deposit into the {@link GatewayV1Contracts.wallet}.
|
|
569
|
+
* Present only on chains that are fast-deposit destinations; other Gateway
|
|
570
|
+
* chains omit it.
|
|
571
|
+
*
|
|
572
|
+
* @example "0xFa7be2f04F3Ad4ca969260729c6d45B5625984A7"
|
|
573
|
+
*/
|
|
574
|
+
genericExecutor?: string;
|
|
562
575
|
}
|
|
563
576
|
/**
|
|
564
577
|
* Versioned map of Gateway contract configurations.
|
|
@@ -5463,6 +5476,48 @@ TChainDefinition extends ChainDefinition = ChainDefinition> extends WalletContex
|
|
|
5463
5476
|
* Must be a valid address format for the specified blockchain.
|
|
5464
5477
|
*/
|
|
5465
5478
|
recipientAddress?: string;
|
|
5479
|
+
/**
|
|
5480
|
+
* Optional destination dApp deposit action for a fast cross-chain transfer.
|
|
5481
|
+
*
|
|
5482
|
+
* When set, the burned USDC is minted to Circle's GenericExecutor on the
|
|
5483
|
+
* destination chain, which calls the registered dApp (for example, a Gateway
|
|
5484
|
+
* `depositFor`) in the same relayed flow. Consumed by the CCTP v2 provider's
|
|
5485
|
+
* executor-deposit path; requires `useForwarder: true`.
|
|
5486
|
+
*
|
|
5487
|
+
* @see {@link BridgeDepositAction}
|
|
5488
|
+
*/
|
|
5489
|
+
deposit?: BridgeDepositAction;
|
|
5490
|
+
}
|
|
5491
|
+
/**
|
|
5492
|
+
* Destination dApp deposit action for a fast cross-chain transfer.
|
|
5493
|
+
*
|
|
5494
|
+
* When present on a bridge destination, the CCTP v2 provider routes the
|
|
5495
|
+
* transfer through Circle's GenericExecutor: the burned USDC is minted to the
|
|
5496
|
+
* executor on the destination chain, which then calls the registered dApp (for
|
|
5497
|
+
* example, a Gateway `depositFor`) in the same relayed flow. Encoded into
|
|
5498
|
+
* executor hookData via `buildDepositForGenericExecutorPayload`.
|
|
5499
|
+
*
|
|
5500
|
+
* @example
|
|
5501
|
+
* ```typescript
|
|
5502
|
+
* import type { BridgeDepositAction } from '@core/provider'
|
|
5503
|
+
*
|
|
5504
|
+
* const deposit: BridgeDepositAction = {
|
|
5505
|
+
* dappId: 'gateway_deposit',
|
|
5506
|
+
* params: ['0xTokenMessengerWithFees', '0xDepositAccount', 0n],
|
|
5507
|
+
* }
|
|
5508
|
+
* ```
|
|
5509
|
+
*/
|
|
5510
|
+
interface BridgeDepositAction {
|
|
5511
|
+
/**
|
|
5512
|
+
* Registered dApp identifier the GenericExecutor invokes on the destination
|
|
5513
|
+
* chain (for example, `'gateway_deposit'`).
|
|
5514
|
+
*/
|
|
5515
|
+
dappId: string;
|
|
5516
|
+
/**
|
|
5517
|
+
* Positional arguments for the dApp function, in ABI order. Dynamic amount
|
|
5518
|
+
* slots are filled in by the executor from the minted amount.
|
|
5519
|
+
*/
|
|
5520
|
+
params: readonly unknown[];
|
|
5466
5521
|
}
|
|
5467
5522
|
/**
|
|
5468
5523
|
* Parameters for executing a cross-chain bridge operation.
|