@dhedge/trading-widget 0.0.3 → 0.0.5
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/{BPGFTGZB-2d541509.cjs → BPGFTGZB-3786e5b4.cjs} +1 -1
- package/{BPGFTGZB-d2a161d1.js → BPGFTGZB-8ed388e4.js} +1 -1
- package/core-kit/abi/flatcoin-points-module.d.ts +57 -0
- package/core-kit/abi/index.d.ts +1 -0
- package/core-kit/const/config.d.ts +1 -1
- package/core-kit/const/contracts/base.d.ts +2 -0
- package/core-kit/hooks/user/index.d.ts +1 -0
- package/core-kit/hooks/user/use-flatmoney-points-user-balances.d.ts +69 -0
- package/core-kit/utils/fmed.d.ts +2 -0
- package/core-kit/utils/index.d.ts +1 -0
- package/{index-391fb5a2.js → index-2703bf15.js} +10622 -10435
- package/index-b683d605.cjs +217 -0
- package/index.cjs +1 -1
- package/index.d.ts +1 -1
- package/index.js +108 -107
- package/package.json +1 -1
- package/{pyth-adapter-4f5ca109.cjs → pyth-adapter-0b069c36.cjs} +1 -1
- package/{pyth-adapter-1d7e0e82.js → pyth-adapter-640c3976.js} +1 -1
- package/trading-widget/components/widget/widget-overlay/fmed-withdrawal-overlay/fmed-withdrawal-overlay.d.ts +3 -0
- package/trading-widget/components/widget/widget-overlay/index.d.ts +1 -0
- package/trading-widget/components/withdraw/button/trade-button/trade-button.hooks.d.ts +5 -0
- package/trading-widget/types/overlay.types.d.ts +1 -0
- package/index-a69f882e.cjs +0 -217
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var ns = Object.defineProperty;
|
|
2
2
|
var rs = (e, t, n) => t in e ? ns(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var Ur = (e, t, n) => (rs(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
-
import { d as on, s as jn, m as Wn, a as P, g as os, b as A, e as v, f as U, o as Ot, P as Bo, S as N, i as E, h as V, j as F, k as Ke, l as D, n as is, p as Dt, q as ar, r as H, t as ss, u as wn, F as Ko, v as Ro, w as G, $ as ct, x as Cn, y as Qn, z as Ne, A as $e, B as pe, I as as, C as lr, D as I, E as sn, G as Vr, H as ls, J as kt, K as Yt, L as Gr, M as ee, N as cs, O as us, Q as Bn, R as ds, T as fs, U as gs, V as hs, W as Kn, X as ys, Y as vs } from "./index-
|
|
4
|
+
import { d as on, s as jn, m as Wn, a as P, g as os, b as A, e as v, f as U, o as Ot, P as Bo, S as N, i as E, h as V, j as F, k as Ke, l as D, n as is, p as Dt, q as ar, r as H, t as ss, u as wn, F as Ko, v as Ro, w as G, $ as ct, x as Cn, y as Qn, z as Ne, A as $e, B as pe, I as as, C as lr, D as I, E as sn, G as Vr, H as ls, J as kt, K as Yt, L as Gr, M as ee, N as cs, O as us, Q as Bn, R as ds, T as fs, U as gs, V as hs, W as Kn, X as ys, Y as vs } from "./index-2703bf15.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "viem";
|
|
7
7
|
import "wagmi";
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export declare const FlatcoinPointsModuleABI: readonly [{
|
|
2
|
+
readonly inputs: readonly [{
|
|
3
|
+
readonly internalType: "address";
|
|
4
|
+
readonly name: "account";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
}];
|
|
7
|
+
readonly name: "balanceOf";
|
|
8
|
+
readonly outputs: readonly [{
|
|
9
|
+
readonly internalType: "uint256";
|
|
10
|
+
readonly name: "";
|
|
11
|
+
readonly type: "uint256";
|
|
12
|
+
}];
|
|
13
|
+
readonly stateMutability: "view";
|
|
14
|
+
readonly type: "function";
|
|
15
|
+
}, {
|
|
16
|
+
readonly inputs: readonly [{
|
|
17
|
+
readonly internalType: "address";
|
|
18
|
+
readonly name: "account";
|
|
19
|
+
readonly type: "address";
|
|
20
|
+
}];
|
|
21
|
+
readonly name: "getUnlockTax";
|
|
22
|
+
readonly outputs: readonly [{
|
|
23
|
+
readonly internalType: "uint256";
|
|
24
|
+
readonly name: "unlockTax";
|
|
25
|
+
readonly type: "uint256";
|
|
26
|
+
}];
|
|
27
|
+
readonly stateMutability: "view";
|
|
28
|
+
readonly type: "function";
|
|
29
|
+
}, {
|
|
30
|
+
readonly inputs: readonly [{
|
|
31
|
+
readonly internalType: "address";
|
|
32
|
+
readonly name: "account";
|
|
33
|
+
readonly type: "address";
|
|
34
|
+
}];
|
|
35
|
+
readonly name: "lockedBalance";
|
|
36
|
+
readonly outputs: readonly [{
|
|
37
|
+
readonly internalType: "uint256";
|
|
38
|
+
readonly name: "amount";
|
|
39
|
+
readonly type: "uint256";
|
|
40
|
+
}];
|
|
41
|
+
readonly stateMutability: "view";
|
|
42
|
+
readonly type: "function";
|
|
43
|
+
}, {
|
|
44
|
+
readonly inputs: readonly [{
|
|
45
|
+
readonly internalType: "address";
|
|
46
|
+
readonly name: "account";
|
|
47
|
+
readonly type: "address";
|
|
48
|
+
}];
|
|
49
|
+
readonly name: "unlockTime";
|
|
50
|
+
readonly outputs: readonly [{
|
|
51
|
+
readonly internalType: "uint256";
|
|
52
|
+
readonly name: "unlockTime";
|
|
53
|
+
readonly type: "uint256";
|
|
54
|
+
}];
|
|
55
|
+
readonly stateMutability: "view";
|
|
56
|
+
readonly type: "function";
|
|
57
|
+
}];
|
package/core-kit/abi/index.d.ts
CHANGED
|
@@ -7,3 +7,4 @@ export { PoolLogicAbi } from './pool-logic';
|
|
|
7
7
|
export { PoolManagerLogicAbi } from './pool-manager-logic';
|
|
8
8
|
export { RewardDistributionAbi } from './reward-distribution';
|
|
9
9
|
export { ITrustedMulticallForwarderAbi, IERC2771ContextAbi, IERC7412Abi, SynthetixV3CoreAbi, SynthetixV3AssetGuard, SynthetixV3ContractGuard, } from './synthetix-v3';
|
|
10
|
+
export { FlatcoinPointsModuleABI } from './flatcoin-points-module';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Address, ChainId } from 'core-kit/types/web3.types';
|
|
2
|
-
export type ContractId = 'factory' | 'easySwapper' | 'rewardDistribution' | 'aaveLendingPoolV2' | 'aaveLendingPoolV3' | 'stakingV2' | 'poolManagerLogic' | 'erc20' | 'poolLogic' | 'synthetixV3AssetGuard' | 'synthetixV3Core';
|
|
2
|
+
export type ContractId = 'factory' | 'easySwapper' | 'rewardDistribution' | 'aaveLendingPoolV2' | 'aaveLendingPoolV3' | 'stakingV2' | 'poolManagerLogic' | 'erc20' | 'poolLogic' | 'synthetixV3AssetGuard' | 'synthetixV3Core' | 'flatcoinPointsModule';
|
|
3
3
|
type ContractsAddressesMap = Readonly<Record<ChainId, {
|
|
4
4
|
[id in ContractId]?: Address;
|
|
5
5
|
}>>;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export declare const FACTORY_ADDRESS_BASE = "0x49Afe3abCf66CF09Fab86cb1139D8811C8afe56F";
|
|
2
2
|
export declare const SYNTHETIX_V3_CORE_ADDRESS_BASE = "0x32C222A9A159782aFD7529c87FA34b96CA72C696";
|
|
3
|
+
export declare const FLATCOIN_POINTS_MODULE_ADDRESS_BASE = "0x0000000000000000000000000000000000000000";
|
|
4
|
+
export declare const FLATMONEY_EARLY_DEPOSITOR_VAULT_ADDRESS_BASE = "0xa907504d7a4c415b4e6e1d0866d96afe8202f0e5";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { useUserTokenBalance } from './use-user-token-balance';
|
|
2
2
|
export { useIsInsufficientBalance } from './use-is-insufficient-balance';
|
|
3
3
|
export { useIsPoolManagerAccount } from './use-is-pool-manager-account';
|
|
4
|
+
export { useFlatmoneyPointsUserBalances } from './use-flatmoney-points-user-balances';
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export declare const useFlatmoneyPointsUserBalances: () => import("wagmi").UseReadContractsReturnType<{
|
|
2
|
+
address: `0x${string}`;
|
|
3
|
+
chainId: 8453;
|
|
4
|
+
abi: readonly [{
|
|
5
|
+
readonly inputs: readonly [{
|
|
6
|
+
readonly internalType: "address";
|
|
7
|
+
readonly name: "account";
|
|
8
|
+
readonly type: "address";
|
|
9
|
+
}];
|
|
10
|
+
readonly name: "balanceOf";
|
|
11
|
+
readonly outputs: readonly [{
|
|
12
|
+
readonly internalType: "uint256";
|
|
13
|
+
readonly name: "";
|
|
14
|
+
readonly type: "uint256";
|
|
15
|
+
}];
|
|
16
|
+
readonly stateMutability: "view";
|
|
17
|
+
readonly type: "function";
|
|
18
|
+
}, {
|
|
19
|
+
readonly inputs: readonly [{
|
|
20
|
+
readonly internalType: "address";
|
|
21
|
+
readonly name: "account";
|
|
22
|
+
readonly type: "address";
|
|
23
|
+
}];
|
|
24
|
+
readonly name: "getUnlockTax";
|
|
25
|
+
readonly outputs: readonly [{
|
|
26
|
+
readonly internalType: "uint256";
|
|
27
|
+
readonly name: "unlockTax";
|
|
28
|
+
readonly type: "uint256";
|
|
29
|
+
}];
|
|
30
|
+
readonly stateMutability: "view";
|
|
31
|
+
readonly type: "function";
|
|
32
|
+
}, {
|
|
33
|
+
readonly inputs: readonly [{
|
|
34
|
+
readonly internalType: "address";
|
|
35
|
+
readonly name: "account";
|
|
36
|
+
readonly type: "address";
|
|
37
|
+
}];
|
|
38
|
+
readonly name: "lockedBalance";
|
|
39
|
+
readonly outputs: readonly [{
|
|
40
|
+
readonly internalType: "uint256";
|
|
41
|
+
readonly name: "amount";
|
|
42
|
+
readonly type: "uint256";
|
|
43
|
+
}];
|
|
44
|
+
readonly stateMutability: "view";
|
|
45
|
+
readonly type: "function";
|
|
46
|
+
}, {
|
|
47
|
+
readonly inputs: readonly [{
|
|
48
|
+
readonly internalType: "address";
|
|
49
|
+
readonly name: "account";
|
|
50
|
+
readonly type: "address";
|
|
51
|
+
}];
|
|
52
|
+
readonly name: "unlockTime";
|
|
53
|
+
readonly outputs: readonly [{
|
|
54
|
+
readonly internalType: "uint256";
|
|
55
|
+
readonly name: "unlockTime";
|
|
56
|
+
readonly type: "uint256";
|
|
57
|
+
}];
|
|
58
|
+
readonly stateMutability: "view";
|
|
59
|
+
readonly type: "function";
|
|
60
|
+
}];
|
|
61
|
+
functionName: string;
|
|
62
|
+
args: string[];
|
|
63
|
+
}[], true, {
|
|
64
|
+
userPortionOfLockedPointsBalance: string;
|
|
65
|
+
unlockTaxAmount: string;
|
|
66
|
+
vestedPointsAmount: string;
|
|
67
|
+
unlockTimestamp: number | null;
|
|
68
|
+
unlockDate: string | null;
|
|
69
|
+
}>;
|