@aspan/sdk 0.4.8 → 0.5.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/README.md CHANGED
@@ -22,7 +22,7 @@ import { BSC_ADDRESSES } from "@aspan/sdk";
22
22
  | Contract | Address |
23
23
  |----------|---------|
24
24
  | **Diamond (Main Entry)** | `0x6a11B30d3a70727d5477D6d8090e144443fA1c78` |
25
- | **Router** | `0x34a64c4EbDe830773083BA8c9469456616F6723b` |
25
+ | **Router** | `0x1Ca976d2043dfb785c7F3A17535B3A38c50113f3` |
26
26
  | **ApUSD** | `0x4570047eeB5aDb4081c5d470494EB5134e34A287` |
27
27
  | **XBNB** | `0x0A0c9CD826e747D99F90D63e780B3727Da4D0d43` |
28
28
  | **SApUSD** | `0xE2BE739C4aA4126ee72D612d9548C38B1B0e5A1b` |
package/dist/index.d.mts CHANGED
@@ -1331,7 +1331,7 @@ declare const DiamondABI: readonly [{
1331
1331
  readonly type: "function";
1332
1332
  readonly name: "deposit";
1333
1333
  readonly inputs: readonly [{
1334
- readonly name: "_apUSDAmount";
1334
+ readonly name: "_amount";
1335
1335
  readonly type: "uint256";
1336
1336
  readonly internalType: "uint256";
1337
1337
  }];
@@ -2809,7 +2809,7 @@ declare const BPS_PRECISION = 10000n;
2809
2809
  declare const PRICE_PRECISION: bigint;
2810
2810
  declare const BSC_ADDRESSES: {
2811
2811
  readonly diamond: "0x6a11B30d3a70727d5477D6d8090e144443fA1c78";
2812
- readonly router: "0x34a64c4EbDe830773083BA8c9469456616F6723b";
2812
+ readonly router: "0x1Ca976d2043dfb785c7F3A17535B3A38c50113f3";
2813
2813
  readonly apUSD: "0x4570047eeB5aDb4081c5d470494EB5134e34A287";
2814
2814
  readonly xBNB: "0x0A0c9CD826e747D99F90D63e780B3727Da4D0d43";
2815
2815
  readonly sApUSD: "0x896770Dba7c0481539E25aaB56bE285ECF6D65eB";
package/dist/index.d.ts CHANGED
@@ -1331,7 +1331,7 @@ declare const DiamondABI: readonly [{
1331
1331
  readonly type: "function";
1332
1332
  readonly name: "deposit";
1333
1333
  readonly inputs: readonly [{
1334
- readonly name: "_apUSDAmount";
1334
+ readonly name: "_amount";
1335
1335
  readonly type: "uint256";
1336
1336
  readonly internalType: "uint256";
1337
1337
  }];
@@ -2809,7 +2809,7 @@ declare const BPS_PRECISION = 10000n;
2809
2809
  declare const PRICE_PRECISION: bigint;
2810
2810
  declare const BSC_ADDRESSES: {
2811
2811
  readonly diamond: "0x6a11B30d3a70727d5477D6d8090e144443fA1c78";
2812
- readonly router: "0x34a64c4EbDe830773083BA8c9469456616F6723b";
2812
+ readonly router: "0x1Ca976d2043dfb785c7F3A17535B3A38c50113f3";
2813
2813
  readonly apUSD: "0x4570047eeB5aDb4081c5d470494EB5134e34A287";
2814
2814
  readonly xBNB: "0x0A0c9CD826e747D99F90D63e780B3727Da4D0d43";
2815
2815
  readonly sApUSD: "0x896770Dba7c0481539E25aaB56bE285ECF6D65eB";
package/dist/index.js CHANGED
@@ -303,15 +303,19 @@ var DiamondABI = [
303
303
  {
304
304
  type: "function",
305
305
  name: "deposit",
306
- inputs: [{ name: "_apUSDAmount", type: "uint256", internalType: "uint256" }],
306
+ inputs: [{ name: "_amount", type: "uint256", internalType: "uint256" }],
307
307
  outputs: [{ name: "shares", type: "uint256", internalType: "uint256" }],
308
308
  stateMutability: "nonpayable"
309
309
  },
310
310
  {
311
311
  type: "function",
312
312
  name: "withdraw",
313
- inputs: [{ name: "_shares", type: "uint256", internalType: "uint256" }],
314
- outputs: [{ name: "assets", type: "uint256", internalType: "uint256" }],
313
+ inputs: [
314
+ { name: "_shares", type: "uint256", internalType: "uint256" }
315
+ ],
316
+ outputs: [
317
+ { name: "assets", type: "uint256", internalType: "uint256" }
318
+ ],
315
319
  stateMutability: "nonpayable"
316
320
  },
317
321
  {
@@ -2950,7 +2954,7 @@ var BPS_PRECISION = 10000n;
2950
2954
  var PRICE_PRECISION = 10n ** 8n;
2951
2955
  var BSC_ADDRESSES = {
2952
2956
  diamond: "0x6a11B30d3a70727d5477D6d8090e144443fA1c78",
2953
- router: "0x34a64c4EbDe830773083BA8c9469456616F6723b",
2957
+ router: "0x1Ca976d2043dfb785c7F3A17535B3A38c50113f3",
2954
2958
  apUSD: "0x4570047eeB5aDb4081c5d470494EB5134e34A287",
2955
2959
  xBNB: "0x0A0c9CD826e747D99F90D63e780B3727Da4D0d43",
2956
2960
  sApUSD: "0x896770Dba7c0481539E25aaB56bE285ECF6D65eB",
package/dist/index.mjs CHANGED
@@ -245,15 +245,19 @@ var DiamondABI = [
245
245
  {
246
246
  type: "function",
247
247
  name: "deposit",
248
- inputs: [{ name: "_apUSDAmount", type: "uint256", internalType: "uint256" }],
248
+ inputs: [{ name: "_amount", type: "uint256", internalType: "uint256" }],
249
249
  outputs: [{ name: "shares", type: "uint256", internalType: "uint256" }],
250
250
  stateMutability: "nonpayable"
251
251
  },
252
252
  {
253
253
  type: "function",
254
254
  name: "withdraw",
255
- inputs: [{ name: "_shares", type: "uint256", internalType: "uint256" }],
256
- outputs: [{ name: "assets", type: "uint256", internalType: "uint256" }],
255
+ inputs: [
256
+ { name: "_shares", type: "uint256", internalType: "uint256" }
257
+ ],
258
+ outputs: [
259
+ { name: "assets", type: "uint256", internalType: "uint256" }
260
+ ],
257
261
  stateMutability: "nonpayable"
258
262
  },
259
263
  {
@@ -2897,7 +2901,7 @@ var BPS_PRECISION = 10000n;
2897
2901
  var PRICE_PRECISION = 10n ** 8n;
2898
2902
  var BSC_ADDRESSES = {
2899
2903
  diamond: "0x6a11B30d3a70727d5477D6d8090e144443fA1c78",
2900
- router: "0x34a64c4EbDe830773083BA8c9469456616F6723b",
2904
+ router: "0x1Ca976d2043dfb785c7F3A17535B3A38c50113f3",
2901
2905
  apUSD: "0x4570047eeB5aDb4081c5d470494EB5134e34A287",
2902
2906
  xBNB: "0x0A0c9CD826e747D99F90D63e780B3727Da4D0d43",
2903
2907
  sApUSD: "0x896770Dba7c0481539E25aaB56bE285ECF6D65eB",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aspan/sdk",
3
- "version": "0.4.8",
3
+ "version": "0.5.0",
4
4
  "description": "TypeScript SDK for Aspan Protocol - LST-backed stablecoin on BNB Chain",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -61,7 +61,7 @@ const BSC_RPC_URL = process.env.BSC_RPC_URL || "https://bsc-dataseed.binance.org
61
61
  const ANVIL_DEFAULT_KEY = "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80";
62
62
 
63
63
  const DIAMOND = "0x6a11B30d3a70727d5477D6d8090e144443fA1c78" as Address;
64
- const ROUTER = "0x34a64c4EbDe830773083BA8c9469456616F6723b" as Address;
64
+ const ROUTER = "0x1Ca976d2043dfb785c7F3A17535B3A38c50113f3" as Address;
65
65
 
66
66
  const TOKENS = {
67
67
  WBNB: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c" as Address,
@@ -243,15 +243,19 @@ export const DiamondABI = [
243
243
  {
244
244
  type: "function",
245
245
  name: "deposit",
246
- inputs: [{ name: "_apUSDAmount", type: "uint256", internalType: "uint256" }],
246
+ inputs: [{ name: "_amount", type: "uint256", internalType: "uint256" }],
247
247
  outputs: [{ name: "shares", type: "uint256", internalType: "uint256" }],
248
248
  stateMutability: "nonpayable"
249
249
  },
250
250
  {
251
251
  type: "function",
252
252
  name: "withdraw",
253
- inputs: [{ name: "_shares", type: "uint256", internalType: "uint256" }],
254
- outputs: [{ name: "assets", type: "uint256", internalType: "uint256" }],
253
+ inputs: [
254
+ { name: "_shares", type: "uint256", internalType: "uint256" }
255
+ ],
256
+ outputs: [
257
+ { name: "assets", type: "uint256", internalType: "uint256" }
258
+ ],
255
259
  stateMutability: "nonpayable"
256
260
  },
257
261
  {
package/src/index.ts CHANGED
@@ -116,7 +116,7 @@ export const PRICE_PRECISION = 10n ** 8n; // Chainlink price precision
116
116
  // ============ Contract Addresses (BSC Mainnet) ============
117
117
  export const BSC_ADDRESSES = {
118
118
  diamond: "0x6a11B30d3a70727d5477D6d8090e144443fA1c78" as const,
119
- router: "0x34a64c4EbDe830773083BA8c9469456616F6723b" as const,
119
+ router: "0x1Ca976d2043dfb785c7F3A17535B3A38c50113f3" as const,
120
120
  apUSD: "0x4570047eeB5aDb4081c5d470494EB5134e34A287" as const,
121
121
  xBNB: "0x0A0c9CD826e747D99F90D63e780B3727Da4D0d43" as const,
122
122
  sApUSD: "0x896770Dba7c0481539E25aaB56bE285ECF6D65eB" as const,