@gearbox-protocol/sdk 13.7.0-kyc.6 → 13.7.0-kyc.8

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.
@@ -22,6 +22,62 @@ __export(iDSRegistryService_exports, {
22
22
  });
23
23
  module.exports = __toCommonJS(iDSRegistryService_exports);
24
24
  const iDSRegistryServiceAbi = [
25
+ {
26
+ type: "function",
27
+ name: "ACCREDITED",
28
+ inputs: [],
29
+ outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
30
+ stateMutability: "view"
31
+ },
32
+ {
33
+ type: "function",
34
+ name: "APPROVED",
35
+ inputs: [],
36
+ outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
37
+ stateMutability: "view"
38
+ },
39
+ {
40
+ type: "function",
41
+ name: "KYC_APPROVED",
42
+ inputs: [],
43
+ outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
44
+ stateMutability: "view"
45
+ },
46
+ {
47
+ type: "function",
48
+ name: "NONE",
49
+ inputs: [],
50
+ outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
51
+ stateMutability: "view"
52
+ },
53
+ {
54
+ type: "function",
55
+ name: "PENDING",
56
+ inputs: [],
57
+ outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
58
+ stateMutability: "view"
59
+ },
60
+ {
61
+ type: "function",
62
+ name: "PROFESSIONAL",
63
+ inputs: [],
64
+ outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
65
+ stateMutability: "view"
66
+ },
67
+ {
68
+ type: "function",
69
+ name: "QUALIFIED",
70
+ inputs: [],
71
+ outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
72
+ stateMutability: "view"
73
+ },
74
+ {
75
+ type: "function",
76
+ name: "REJECTED",
77
+ inputs: [],
78
+ outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
79
+ stateMutability: "view"
80
+ },
25
81
  {
26
82
  type: "function",
27
83
  name: "addWallet",
@@ -62,6 +118,29 @@ const iDSRegistryServiceAbi = [
62
118
  ],
63
119
  outputs: [],
64
120
  stateMutability: "nonpayable"
121
+ },
122
+ {
123
+ type: "function",
124
+ name: "setAttribute",
125
+ inputs: [
126
+ { name: "investorId", type: "string", internalType: "string" },
127
+ { name: "attributeId", type: "uint8", internalType: "uint8" },
128
+ { name: "value", type: "uint256", internalType: "uint256" },
129
+ { name: "expiry", type: "uint256", internalType: "uint256" },
130
+ { name: "proof", type: "string", internalType: "string" }
131
+ ],
132
+ outputs: [],
133
+ stateMutability: "nonpayable"
134
+ },
135
+ {
136
+ type: "function",
137
+ name: "setCountry",
138
+ inputs: [
139
+ { name: "investorId", type: "string", internalType: "string" },
140
+ { name: "country", type: "string", internalType: "string" }
141
+ ],
142
+ outputs: [],
143
+ stateMutability: "nonpayable"
65
144
  }
66
145
  ];
67
146
  // Annotate the CommonJS export names for ESM import in node:
@@ -66,7 +66,7 @@ class PoolPointsAPI {
66
66
  }
67
67
  static async getTokenTotal(token, network, tokensList) {
68
68
  const chainId = import_sdk.chains[network]?.id;
69
- const url = `https://charts-server.fly.dev/api/getBalanceAt?asset=${token}&chainId=${chainId}`;
69
+ const url = `https://api.gearbox.foundation/v1/getBalanceAt?asset=${token}&chainId=${chainId}`;
70
70
  const result = await import_axios.default.get(url);
71
71
  const balance = result.data.result.reduce(
72
72
  (sum, r) => r.effective_balance + sum,
@@ -1,4 +1,60 @@
1
1
  const iDSRegistryServiceAbi = [
2
+ {
3
+ type: "function",
4
+ name: "ACCREDITED",
5
+ inputs: [],
6
+ outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
7
+ stateMutability: "view"
8
+ },
9
+ {
10
+ type: "function",
11
+ name: "APPROVED",
12
+ inputs: [],
13
+ outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
14
+ stateMutability: "view"
15
+ },
16
+ {
17
+ type: "function",
18
+ name: "KYC_APPROVED",
19
+ inputs: [],
20
+ outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
21
+ stateMutability: "view"
22
+ },
23
+ {
24
+ type: "function",
25
+ name: "NONE",
26
+ inputs: [],
27
+ outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
28
+ stateMutability: "view"
29
+ },
30
+ {
31
+ type: "function",
32
+ name: "PENDING",
33
+ inputs: [],
34
+ outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
35
+ stateMutability: "view"
36
+ },
37
+ {
38
+ type: "function",
39
+ name: "PROFESSIONAL",
40
+ inputs: [],
41
+ outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
42
+ stateMutability: "view"
43
+ },
44
+ {
45
+ type: "function",
46
+ name: "QUALIFIED",
47
+ inputs: [],
48
+ outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
49
+ stateMutability: "view"
50
+ },
51
+ {
52
+ type: "function",
53
+ name: "REJECTED",
54
+ inputs: [],
55
+ outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
56
+ stateMutability: "view"
57
+ },
2
58
  {
3
59
  type: "function",
4
60
  name: "addWallet",
@@ -39,6 +95,29 @@ const iDSRegistryServiceAbi = [
39
95
  ],
40
96
  outputs: [],
41
97
  stateMutability: "nonpayable"
98
+ },
99
+ {
100
+ type: "function",
101
+ name: "setAttribute",
102
+ inputs: [
103
+ { name: "investorId", type: "string", internalType: "string" },
104
+ { name: "attributeId", type: "uint8", internalType: "uint8" },
105
+ { name: "value", type: "uint256", internalType: "uint256" },
106
+ { name: "expiry", type: "uint256", internalType: "uint256" },
107
+ { name: "proof", type: "string", internalType: "string" }
108
+ ],
109
+ outputs: [],
110
+ stateMutability: "nonpayable"
111
+ },
112
+ {
113
+ type: "function",
114
+ name: "setCountry",
115
+ inputs: [
116
+ { name: "investorId", type: "string", internalType: "string" },
117
+ { name: "country", type: "string", internalType: "string" }
118
+ ],
119
+ outputs: [],
120
+ stateMutability: "nonpayable"
42
121
  }
43
122
  ];
44
123
  export {
@@ -36,7 +36,7 @@ class PoolPointsAPI {
36
36
  }
37
37
  static async getTokenTotal(token, network, tokensList) {
38
38
  const chainId = chains[network]?.id;
39
- const url = `https://charts-server.fly.dev/api/getBalanceAt?asset=${token}&chainId=${chainId}`;
39
+ const url = `https://api.gearbox.foundation/v1/getBalanceAt?asset=${token}&chainId=${chainId}`;
40
40
  const result = await axios.get(url);
41
41
  const balance = result.data.result.reduce(
42
42
  (sum, r) => r.effective_balance + sum,
@@ -1,4 +1,84 @@
1
1
  export declare const iDSRegistryServiceAbi: readonly [{
2
+ readonly type: "function";
3
+ readonly name: "ACCREDITED";
4
+ readonly inputs: readonly [];
5
+ readonly outputs: readonly [{
6
+ readonly name: "";
7
+ readonly type: "uint8";
8
+ readonly internalType: "uint8";
9
+ }];
10
+ readonly stateMutability: "view";
11
+ }, {
12
+ readonly type: "function";
13
+ readonly name: "APPROVED";
14
+ readonly inputs: readonly [];
15
+ readonly outputs: readonly [{
16
+ readonly name: "";
17
+ readonly type: "uint8";
18
+ readonly internalType: "uint8";
19
+ }];
20
+ readonly stateMutability: "view";
21
+ }, {
22
+ readonly type: "function";
23
+ readonly name: "KYC_APPROVED";
24
+ readonly inputs: readonly [];
25
+ readonly outputs: readonly [{
26
+ readonly name: "";
27
+ readonly type: "uint8";
28
+ readonly internalType: "uint8";
29
+ }];
30
+ readonly stateMutability: "view";
31
+ }, {
32
+ readonly type: "function";
33
+ readonly name: "NONE";
34
+ readonly inputs: readonly [];
35
+ readonly outputs: readonly [{
36
+ readonly name: "";
37
+ readonly type: "uint8";
38
+ readonly internalType: "uint8";
39
+ }];
40
+ readonly stateMutability: "view";
41
+ }, {
42
+ readonly type: "function";
43
+ readonly name: "PENDING";
44
+ readonly inputs: readonly [];
45
+ readonly outputs: readonly [{
46
+ readonly name: "";
47
+ readonly type: "uint8";
48
+ readonly internalType: "uint8";
49
+ }];
50
+ readonly stateMutability: "view";
51
+ }, {
52
+ readonly type: "function";
53
+ readonly name: "PROFESSIONAL";
54
+ readonly inputs: readonly [];
55
+ readonly outputs: readonly [{
56
+ readonly name: "";
57
+ readonly type: "uint8";
58
+ readonly internalType: "uint8";
59
+ }];
60
+ readonly stateMutability: "view";
61
+ }, {
62
+ readonly type: "function";
63
+ readonly name: "QUALIFIED";
64
+ readonly inputs: readonly [];
65
+ readonly outputs: readonly [{
66
+ readonly name: "";
67
+ readonly type: "uint8";
68
+ readonly internalType: "uint8";
69
+ }];
70
+ readonly stateMutability: "view";
71
+ }, {
72
+ readonly type: "function";
73
+ readonly name: "REJECTED";
74
+ readonly inputs: readonly [];
75
+ readonly outputs: readonly [{
76
+ readonly name: "";
77
+ readonly type: "uint8";
78
+ readonly internalType: "uint8";
79
+ }];
80
+ readonly stateMutability: "view";
81
+ }, {
2
82
  readonly type: "function";
3
83
  readonly name: "addWallet";
4
84
  readonly inputs: readonly [{
@@ -68,4 +148,44 @@ export declare const iDSRegistryServiceAbi: readonly [{
68
148
  }];
69
149
  readonly outputs: readonly [];
70
150
  readonly stateMutability: "nonpayable";
151
+ }, {
152
+ readonly type: "function";
153
+ readonly name: "setAttribute";
154
+ readonly inputs: readonly [{
155
+ readonly name: "investorId";
156
+ readonly type: "string";
157
+ readonly internalType: "string";
158
+ }, {
159
+ readonly name: "attributeId";
160
+ readonly type: "uint8";
161
+ readonly internalType: "uint8";
162
+ }, {
163
+ readonly name: "value";
164
+ readonly type: "uint256";
165
+ readonly internalType: "uint256";
166
+ }, {
167
+ readonly name: "expiry";
168
+ readonly type: "uint256";
169
+ readonly internalType: "uint256";
170
+ }, {
171
+ readonly name: "proof";
172
+ readonly type: "string";
173
+ readonly internalType: "string";
174
+ }];
175
+ readonly outputs: readonly [];
176
+ readonly stateMutability: "nonpayable";
177
+ }, {
178
+ readonly type: "function";
179
+ readonly name: "setCountry";
180
+ readonly inputs: readonly [{
181
+ readonly name: "investorId";
182
+ readonly type: "string";
183
+ readonly internalType: "string";
184
+ }, {
185
+ readonly name: "country";
186
+ readonly type: "string";
187
+ readonly internalType: "string";
188
+ }];
189
+ readonly outputs: readonly [];
190
+ readonly stateMutability: "nonpayable";
71
191
  }];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "13.7.0-kyc.6",
3
+ "version": "13.7.0-kyc.8",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.js",