@dimes-dot-fi/sdk 2.1.0 → 2.2.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.
@@ -1,8 +1,8 @@
1
1
  import { Abi, Address, Hex } from 'viem';
2
2
  export { Address, Hex } from 'viem';
3
- import { Q as Quote, d as ContractInfo } from '../aliases-BJyM8ydu.cjs';
4
- import { D as DimesClient } from '../dimes-client-ntybPwHK.cjs';
5
- import { D as DimesContractError } from '../dimes-error-BhKtCgba.cjs';
3
+ import { Q as Quote, e as ContractInfo } from '../aliases-RwEPSZoO.cjs';
4
+ import { D as DimesClient } from '../dimes-client-CK7WmY0g.cjs';
5
+ import { D as DimesContractError } from '../dimes-error-CU1Ob_ed.cjs';
6
6
 
7
7
  declare const vaultAbi: Abi;
8
8
  declare const erc20Abi: readonly [{
@@ -1,8 +1,8 @@
1
1
  import { Abi, Address, Hex } from 'viem';
2
2
  export { Address, Hex } from 'viem';
3
- import { Q as Quote, d as ContractInfo } from '../aliases-BJyM8ydu.js';
4
- import { D as DimesClient } from '../dimes-client-DLbPP30g.js';
5
- import { D as DimesContractError } from '../dimes-error-DjxvjzCZ.js';
3
+ import { Q as Quote, e as ContractInfo } from '../aliases-RwEPSZoO.js';
4
+ import { D as DimesClient } from '../dimes-client-BLTd5GkU.js';
5
+ import { D as DimesContractError } from '../dimes-error-DBT1WPVq.js';
6
6
 
7
7
  declare const vaultAbi: Abi;
8
8
  declare const erc20Abi: readonly [{
@@ -6005,7 +6005,14 @@ var friendlyBySelector = {
6005
6005
  "0xe237d922": "Missing ERC-1155 approval.",
6006
6006
  "0x3e31884e": "Invalid ERC-1155 approver (zero address).",
6007
6007
  "0xced3e100": "Invalid ERC-1155 operator (zero address).",
6008
- "0x5b059991": "ERC-1155 array length mismatch."
6008
+ "0x5b059991": "ERC-1155 array length mismatch.",
6009
+ // Solady SafeTransferLib — thrown by the vault's token transfers and not
6010
+ // present in its ABI, so they only decode by selector.
6011
+ "0xf4d678b8": "Insufficient USDC balance to cover collateral and fees. Add USDC and try again.",
6012
+ "0x13be252b": "Insufficient USDC allowance. Approve and try again.",
6013
+ "0x7939f424": "USDC transfer failed. Check your balance and allowance.",
6014
+ "0x90b8ec18": "USDC transfer failed. Check your balance.",
6015
+ "0x3e3f8f73": "USDC approval failed."
6009
6016
  };
6010
6017
  var HEX_SELECTOR_LENGTH = 10;
6011
6018
  function humanizeName(name) {