@goodaofi/bonds-sdk 3.0.155 → 3.0.159

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.
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const RefundView: React.FC;
3
+ export default RefundView;
@@ -0,0 +1,18 @@
1
+ import { UseQueryResult } from '@tanstack/react-query';
2
+ import { GooSaleContractData } from './useSaleInfo';
3
+ export interface RefundContractData {
4
+ address: string;
5
+ chainId: number;
6
+ type: 'goo' | 'sgoo';
7
+ stageKey: string;
8
+ stageNumber: number;
9
+ depositAmount: string;
10
+ depositAmountBTC: number;
11
+ hasRefunded: boolean;
12
+ principalToken: GooSaleContractData['principalToken'];
13
+ }
14
+ export interface RefundData {
15
+ contracts: RefundContractData[];
16
+ totalDepositBTC: number;
17
+ }
18
+ export default function useRefundData(): UseQueryResult<RefundData>;
@@ -31,6 +31,8 @@ export interface SaleInfo {
31
31
  currentStage: StageInfo | null;
32
32
  nextStage: StageInfo | null;
33
33
  isInBreakPeriod: boolean;
34
+ isRefundPeriod: boolean;
35
+ refundStage: StageInfo | null;
34
36
  totalHardCap: number;
35
37
  totalBilled: number;
36
38
  overallProgress: number;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Goo Money Bond SDK",
4
4
  "author": "Goo Money",
5
5
  "license": "MIT",
6
- "version": "3.0.155",
6
+ "version": "3.0.159",
7
7
  "proxy": "https://realtime-api-pr-99.herokuapp.com",
8
8
  "module": "dist/main.js",
9
9
  "type": "module",
@@ -63,13 +63,18 @@
63
63
  "husky": "^9.0.11",
64
64
  "lint-staged": "^16.1.0",
65
65
  "prettier": "^3.3.3",
66
+ "react": "^18.2.0",
67
+ "react-dom": "^18.2.0",
66
68
  "rimraf": "5.0.10",
67
69
  "rollup": "^4.14.0",
68
70
  "rollup-plugin-scss": "^4.0.0",
69
71
  "sass": "^1.77.7",
72
+ "swiper": "^12.0.3",
70
73
  "typescript": "^5.0.0",
71
74
  "typescript-eslint": "^8.34.0",
75
+ "viem": "^2.45.0",
72
76
  "vite": "^5.4.4",
77
+ "wagmi": "^3.4.1",
73
78
  "yalc": "^1.0.0-pre.53"
74
79
  },
75
80
  "dependencies": {