aiia-vault-sdk 1.1.12 → 1.1.13

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.
@@ -72,12 +72,15 @@ export declare class SeedRoundFundraiserSDK {
72
72
  * Gets detailed information about a whitelisted token
73
73
  *
74
74
  * @param tokenAddress - The address of the token to query
75
+ * @param symbol - The symbol of the token
76
+ * @param decimals - The number of decimals for the token
77
+ * @param icon - The icon URL or identifier for the token
75
78
  * @param roundInfo - Optional round information to calculate max contribution
76
79
  * @returns Token information including price, symbol, and contribution limits, or null if not whitelisted
77
80
  *
78
81
  * @example
79
82
  * ```typescript
80
- * const tokenInfo = await sdk.getWhitelistedTokenInfo("0x...", { roundId: 0, maxFundPerAccount: 10000 });
83
+ * const tokenInfo = await sdk.getWhitelistedTokenInfo("0x...", "USDC", 6, "usdc.png", { roundId: 0, maxFundPerAccount: 10000 });
81
84
  * if (tokenInfo) {
82
85
  * console.log(`Max contribution: ${tokenInfo.maxContribution} ${tokenInfo.symbol}`);
83
86
  * }
@@ -105,6 +108,7 @@ export declare class SeedRoundFundraiserSDK {
105
108
  * - `maxContributionRaw` (number): Maximum contribution amount adjusted with token decimals (maxContribution * 10^decimals),
106
109
  * ready for contract interaction
107
110
  * - `decimals` (number): Number of decimal places the token uses (e.g., 18 for ETH, 6 for USDC)
111
+ * - `icon` (string): URL or identifier for the token's icon image
108
112
  *
109
113
  * @example
110
114
  * ```typescript
@@ -120,7 +124,8 @@ export declare class SeedRoundFundraiserSDK {
120
124
  * symbol: "ETH",
121
125
  * maxContribution: 5.55, // Can contribute up to 5.55 ETH
122
126
  * maxContributionRaw: 5550000000000000000n, // 5.55 * 10^18
123
- * decimals: 18
127
+ * decimals: 18,
128
+ * icon: "eth.png"
124
129
  * },
125
130
  * {
126
131
  * address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
@@ -129,7 +134,8 @@ export declare class SeedRoundFundraiserSDK {
129
134
  * symbol: "USDC",
130
135
  * maxContribution: 10000, // Can contribute up to 10000 USDC
131
136
  * maxContributionRaw: 10000000000, // 10000 * 10^6
132
- * decimals: 6
137
+ * decimals: 6,
138
+ * icon: "usdc.png"
133
139
  * }
134
140
  * ]
135
141
  * ```
@@ -17,7 +17,7 @@
17
17
  {
18
18
  "name": "USDT",
19
19
  "address": "0xa5Ef2328aa2F6F231D15cdcF48503974D0938eD4",
20
- "decimals": 6,
20
+ "decimals": 18,
21
21
  "symbol": "USDT",
22
22
  "icon": "https://assets.coingecko.com/coins/images/325/standard/Tether.png?1696501661"
23
23
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiia-vault-sdk",
3
- "version": "1.1.12",
3
+ "version": "1.1.13",
4
4
  "description": "SDK for AIIA Vault Contract",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",