@ape.swap/bonds-sdk 1.0.466 → 1.0.468
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,14 +1,13 @@
|
|
|
1
1
|
/** @jsxImportSource theme-ui */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import '../../scss/YourBonds.scss';
|
|
4
|
-
import { ExternalProvider } from '@ethersproject/providers';
|
|
5
4
|
declare global {
|
|
6
5
|
interface Window {
|
|
7
6
|
ethereum?: any;
|
|
8
7
|
}
|
|
9
8
|
}
|
|
10
9
|
interface YourBondsProps {
|
|
11
|
-
|
|
10
|
+
connectionString?: string;
|
|
12
11
|
}
|
|
13
12
|
declare const YourBonds: React.FC<YourBondsProps>;
|
|
14
13
|
export default YourBonds;
|
|
@@ -76,13 +76,8 @@ import { getPendingVesting } from '../../hooks/usePendingVesting';
|
|
|
76
76
|
import axios from 'axios';
|
|
77
77
|
import { fetchUserOwnedBillsDataAsync } from './fetchBillsUser';
|
|
78
78
|
import { Input } from '../../components/uikit-sdk/Input';
|
|
79
|
-
import { Web3Provider } from '@ethersproject/providers';
|
|
80
79
|
var YourBonds = function (_a) {
|
|
81
|
-
var
|
|
82
|
-
var web3Provider = new Web3Provider(externalProvider);
|
|
83
|
-
console.log("WEB3PROVIDER");
|
|
84
|
-
console.log(web3Provider);
|
|
85
|
-
console.log("WEB3PROVIDER");
|
|
80
|
+
var connectionString = _a.connectionString;
|
|
86
81
|
var _b = useWeb3React(), account = _b.account, isActive = _b.isActive;
|
|
87
82
|
var _c = useSearchParams(), searchParams = _c[0], setSearchParams = _c[1];
|
|
88
83
|
var navigate = useNavigate();
|