@axonfi/sdk 0.5.1 → 0.5.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/dist/index.d.cts CHANGED
@@ -1100,12 +1100,12 @@ declare function removeBot(walletClient: WalletClient, publicClient: PublicClien
1100
1100
  * @param walletClient Wallet sending the deposit (anyone, not just owner).
1101
1101
  * @param publicClient Public client for the vault's chain.
1102
1102
  * @param vaultAddress Vault to deposit into.
1103
- * @param token Token address, or NATIVE_ETH for ETH deposits.
1103
+ * @param token Token symbol ('USDC', 'WETH'), Token enum, raw address, or NATIVE_ETH / 'ETH' for ETH deposits.
1104
1104
  * @param amount Amount in base units (e.g. 5_000_000n for 5 USDC, 10n**16n for 0.01 ETH).
1105
1105
  * @param ref Optional bytes32 reference linking to an off-chain record. Defaults to 0x0.
1106
1106
  * @returns Transaction hash of the deposit.
1107
1107
  */
1108
- declare function deposit(walletClient: WalletClient, publicClient: PublicClient, vaultAddress: Address, token: Address, amount: bigint, ref?: Hex): Promise<Hex>;
1108
+ declare function deposit(walletClient: WalletClient, publicClient: PublicClient, vaultAddress: Address, token: Address | string, amount: bigint, ref?: Hex): Promise<Hex>;
1109
1109
 
1110
1110
  interface KeystoreV3 {
1111
1111
  version: 3;
package/dist/index.d.ts CHANGED
@@ -1100,12 +1100,12 @@ declare function removeBot(walletClient: WalletClient, publicClient: PublicClien
1100
1100
  * @param walletClient Wallet sending the deposit (anyone, not just owner).
1101
1101
  * @param publicClient Public client for the vault's chain.
1102
1102
  * @param vaultAddress Vault to deposit into.
1103
- * @param token Token address, or NATIVE_ETH for ETH deposits.
1103
+ * @param token Token symbol ('USDC', 'WETH'), Token enum, raw address, or NATIVE_ETH / 'ETH' for ETH deposits.
1104
1104
  * @param amount Amount in base units (e.g. 5_000_000n for 5 USDC, 10n**16n for 0.01 ETH).
1105
1105
  * @param ref Optional bytes32 reference linking to an off-chain record. Defaults to 0x0.
1106
1106
  * @returns Transaction hash of the deposit.
1107
1107
  */
1108
- declare function deposit(walletClient: WalletClient, publicClient: PublicClient, vaultAddress: Address, token: Address, amount: bigint, ref?: Hex): Promise<Hex>;
1108
+ declare function deposit(walletClient: WalletClient, publicClient: PublicClient, vaultAddress: Address, token: Address | string, amount: bigint, ref?: Hex): Promise<Hex>;
1109
1109
 
1110
1110
  interface KeystoreV3 {
1111
1111
  version: 3;