@circle-fin/adapter-ethers-v6 1.1.0 → 1.1.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/index.d.ts CHANGED
@@ -1179,6 +1179,14 @@ interface CCTPv2ActionMap {
1179
1179
  * the adapter's default address.
1180
1180
  */
1181
1181
  readonly destinationAddress?: string;
1182
+ /**
1183
+ * The mint recipient address from the decoded CCTP message.
1184
+ *
1185
+ * This is the actual address encoded in the burn message where tokens will be minted.
1186
+ * For Solana, this is already the Associated Token Account (ATA) address, not the owner.
1187
+ * For EVM chains, this is the recipient's wallet address.
1188
+ */
1189
+ readonly mintRecipient?: string;
1182
1190
  };
1183
1191
  /**
1184
1192
  * Initiate a cross-chain USDC transfer using a custom bridge contract with preapproval funnel.
@@ -2120,10 +2128,10 @@ declare abstract class Adapter<TAdapterCapabilities extends AdapterCapabilities
2120
2128
  * This address is used as the default sender for transactions
2121
2129
  * and interactions initiated by this adapter.
2122
2130
  *
2123
- * @param chain - Optional chain definition for chain-specific address resolution (used by EVM adapters)
2131
+ * @param chain - The chain to use for address resolution.
2124
2132
  * @returns A promise that resolves to the blockchain address as a string.
2125
2133
  */
2126
- abstract getAddress(chain?: ChainDefinition): Promise<string>;
2134
+ abstract getAddress(chain: ChainDefinition): Promise<string>;
2127
2135
  /**
2128
2136
  * Switches the adapter to operate on the specified chain.
2129
2137
  *
@@ -2194,7 +2202,7 @@ declare abstract class Adapter<TAdapterCapabilities extends AdapterCapabilities
2194
2202
  * Validate that the target chain is supported by this adapter.
2195
2203
  *
2196
2204
  * @param targetChain - The chain to validate.
2197
- * @throws Error if the chain is not supported.
2205
+ * @throws KitError with INVALID_CHAIN code if the chain is not supported by this adapter.
2198
2206
  */
2199
2207
  validateChainSupport(targetChain: ChainDefinition): void;
2200
2208
  /**
@@ -3057,7 +3065,7 @@ declare class EthersAdapter<TAdapterCapabilities extends AdapterCapabilities = A
3057
3065
  * adapter interface, it is effectively required and enforced at runtime. This ensures
3058
3066
  * the adapter is connected to the correct chain before querying the signer.
3059
3067
  *
3060
- * @param chain - The chain to use for address resolution (provided by OperationContext)
3068
+ * @param chain - The chain to use for address resolution.
3061
3069
  * @returns A promise that resolves to the signer's address
3062
3070
  * @throws Error when no chain is provided
3063
3071
  *
@@ -3069,17 +3077,8 @@ declare class EthersAdapter<TAdapterCapabilities extends AdapterCapabilities = A
3069
3077
  * const address = await adapter.getAddress(Ethereum)
3070
3078
  * console.log('Wallet address:', address)
3071
3079
  * ```
3072
- *
3073
- * @example
3074
- * ```typescript
3075
- * // In practice, address resolution happens automatically
3076
- * const prepared = await adapter.prepare(params, {
3077
- * chain: 'Ethereum'
3078
- * // Address automatically resolved via getAddress() internally
3079
- * })
3080
- * ```
3081
3080
  */
3082
- getAddress(chain?: EVMChainDefinition): Promise<string>;
3081
+ getAddress(chain: EVMChainDefinition): Promise<string>;
3083
3082
  /**
3084
3083
  * Waits for a transaction to be mined and confirmed on the blockchain.
3085
3084
  *