@avalabs/glacier-sdk 2.8.0-canary.f35ad12.0 → 2.8.0-canary.f6c173d.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.
Files changed (63) hide show
  1. package/dist/index.d.ts +572 -272
  2. package/dist/index.js +240 -55
  3. package/esm/generated/Glacier.d.ts +6 -0
  4. package/esm/generated/Glacier.js +32 -10
  5. package/esm/generated/core/ApiError.js +5 -0
  6. package/esm/generated/core/CancelablePromise.js +11 -6
  7. package/esm/generated/core/request.js +14 -31
  8. package/esm/generated/models/ActiveDelegatorDetails.d.ts +7 -3
  9. package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
  10. package/esm/generated/models/ActiveValidatorDetails.d.ts +14 -6
  11. package/esm/generated/models/ActiveValidatorDetails.js +8 -0
  12. package/esm/generated/models/ChainInfo.d.ts +1 -0
  13. package/esm/generated/models/CompletedDelegatorDetails.d.ts +7 -3
  14. package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
  15. package/esm/generated/models/CompletedValidatorDetails.d.ts +9 -3
  16. package/esm/generated/models/CompletedValidatorDetails.js +8 -0
  17. package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
  18. package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
  19. package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
  20. package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
  21. package/esm/generated/models/ContractSubmissionErc20.js +8 -0
  22. package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
  23. package/esm/generated/models/ContractSubmissionErc721.js +8 -0
  24. package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
  25. package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
  26. package/esm/generated/models/Erc1155Contract.d.ts +2 -1
  27. package/esm/generated/models/Erc20Contract.d.ts +2 -1
  28. package/esm/generated/models/Erc721Contract.d.ts +0 -1
  29. package/esm/generated/models/GetChainResponse.d.ts +1 -0
  30. package/esm/generated/models/ImageAsset.d.ts +0 -3
  31. package/esm/generated/models/ListContractsResponse.d.ts +1 -1
  32. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
  33. package/esm/generated/models/PChainTransaction.d.ts +1 -0
  34. package/esm/generated/models/PChainTransactionType.d.ts +1 -0
  35. package/esm/generated/models/PChainTransactionType.js +1 -0
  36. package/esm/generated/models/PendingDelegatorDetails.d.ts +7 -3
  37. package/esm/generated/models/PendingDelegatorDetails.js +8 -0
  38. package/esm/generated/models/PendingValidatorDetails.d.ts +9 -4
  39. package/esm/generated/models/PendingValidatorDetails.js +8 -0
  40. package/esm/generated/models/PricingProviders.d.ts +5 -0
  41. package/esm/generated/models/PrimaryNetworkTxType.d.ts +1 -0
  42. package/esm/generated/models/PrimaryNetworkTxType.js +1 -0
  43. package/esm/generated/models/RewardType.d.ts +2 -1
  44. package/esm/generated/models/RewardType.js +1 -0
  45. package/esm/generated/models/Rewards.d.ts +2 -0
  46. package/esm/generated/models/UnknownContract.d.ts +0 -1
  47. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  48. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  49. package/esm/generated/services/DefaultService.d.ts +14 -0
  50. package/esm/generated/services/DefaultService.js +13 -0
  51. package/esm/generated/services/EvmContractsService.d.ts +48 -0
  52. package/esm/generated/services/EvmContractsService.js +36 -0
  53. package/esm/generated/services/EvmTransactionsService.js +1 -1
  54. package/esm/generated/services/NfTsService.d.ts +51 -0
  55. package/esm/generated/services/NfTsService.js +37 -0
  56. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +10 -2
  57. package/esm/generated/services/PrimaryNetworkRewardsService.js +4 -0
  58. package/esm/generated/services/PrimaryNetworkService.d.ts +32 -12
  59. package/esm/generated/services/PrimaryNetworkService.js +17 -7
  60. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +5 -1
  61. package/esm/index.d.ts +11 -0
  62. package/esm/index.js +13 -0
  63. package/package.json +2 -2
@@ -8,6 +8,14 @@ class CancelError extends Error {
8
8
  }
9
9
  }
10
10
  class CancelablePromise {
11
+ [Symbol.toStringTag];
12
+ _isResolved;
13
+ _isRejected;
14
+ _isCancelled;
15
+ _cancelHandlers;
16
+ _promise;
17
+ _resolve;
18
+ _reject;
11
19
  constructor(executor) {
12
20
  this._isResolved = false;
13
21
  this._isRejected = false;
@@ -17,20 +25,18 @@ class CancelablePromise {
17
25
  this._resolve = resolve;
18
26
  this._reject = reject;
19
27
  const onResolve = (value) => {
20
- var _a;
21
28
  if (this._isResolved || this._isRejected || this._isCancelled) {
22
29
  return;
23
30
  }
24
31
  this._isResolved = true;
25
- (_a = this._resolve) == null ? void 0 : _a.call(this, value);
32
+ this._resolve?.(value);
26
33
  };
27
34
  const onReject = (reason) => {
28
- var _a;
29
35
  if (this._isResolved || this._isRejected || this._isCancelled) {
30
36
  return;
31
37
  }
32
38
  this._isRejected = true;
33
- (_a = this._reject) == null ? void 0 : _a.call(this, reason);
39
+ this._reject?.(reason);
34
40
  };
35
41
  const onCancel = (cancelHandler) => {
36
42
  if (this._isResolved || this._isRejected || this._isCancelled) {
@@ -60,7 +66,6 @@ class CancelablePromise {
60
66
  return this._promise.finally(onFinally);
61
67
  }
62
68
  cancel() {
63
- var _a;
64
69
  if (this._isResolved || this._isRejected || this._isCancelled) {
65
70
  return;
66
71
  }
@@ -76,7 +81,7 @@ class CancelablePromise {
76
81
  }
77
82
  }
78
83
  this._cancelHandlers.length = 0;
79
- (_a = this._reject) == null ? void 0 : _a.call(this, new CancelError("Request aborted"));
84
+ this._reject?.(new CancelError("Request aborted"));
80
85
  }
81
86
  get isCancelled() {
82
87
  return this._isCancelled;
@@ -1,25 +1,6 @@
1
1
  import { ApiError } from './ApiError.js';
2
2
  import { CancelablePromise } from './CancelablePromise.js';
3
3
 
4
- var __defProp = Object.defineProperty;
5
- var __defProps = Object.defineProperties;
6
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
- var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
10
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
11
- var __spreadValues = (a, b) => {
12
- for (var prop in b || (b = {}))
13
- if (__hasOwnProp.call(b, prop))
14
- __defNormalProp(a, prop, b[prop]);
15
- if (__getOwnPropSymbols)
16
- for (var prop of __getOwnPropSymbols(b)) {
17
- if (__propIsEnum.call(b, prop))
18
- __defNormalProp(a, prop, b[prop]);
19
- }
20
- return a;
21
- };
22
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
23
4
  const isDefined = (value) => {
24
5
  return value !== void 0 && value !== null;
25
6
  };
@@ -73,8 +54,7 @@ const getQueryString = (params) => {
73
54
  const getUrl = (config, options) => {
74
55
  const encoder = config.ENCODE_PATH || encodeURI;
75
56
  const path = options.url.replace("{api-version}", config.VERSION).replace(/{(.*?)}/g, (substring, group) => {
76
- var _a;
77
- if ((_a = options.path) == null ? void 0 : _a.hasOwnProperty(group)) {
57
+ if (options.path?.hasOwnProperty(group)) {
78
58
  return encoder(String(options.path[group]));
79
59
  }
80
60
  return substring;
@@ -117,9 +97,12 @@ const getHeaders = async (config, options) => {
117
97
  const username = await resolve(options, config.USERNAME);
118
98
  const password = await resolve(options, config.PASSWORD);
119
99
  const additionalHeaders = await resolve(options, config.HEADERS);
120
- const headers = Object.entries(__spreadValues(__spreadValues({
121
- Accept: "application/json"
122
- }, additionalHeaders), options.headers)).filter(([_, value]) => isDefined(value)).reduce((headers2, [key, value]) => __spreadProps(__spreadValues({}, headers2), {
100
+ const headers = Object.entries({
101
+ Accept: "application/json",
102
+ ...additionalHeaders,
103
+ ...options.headers
104
+ }).filter(([_, value]) => isDefined(value)).reduce((headers2, [key, value]) => ({
105
+ ...headers2,
123
106
  [key]: String(value)
124
107
  }), {});
125
108
  if (isStringWithValue(token)) {
@@ -143,9 +126,8 @@ const getHeaders = async (config, options) => {
143
126
  return new Headers(headers);
144
127
  };
145
128
  const getRequestBody = (options) => {
146
- var _a;
147
129
  if (options.body) {
148
- if ((_a = options.mediaType) == null ? void 0 : _a.includes("/json")) {
130
+ if (options.mediaType?.includes("/json")) {
149
131
  return JSON.stringify(options.body);
150
132
  } else if (isString(options.body) || isBlob(options.body) || isFormData(options.body)) {
151
133
  return options.body;
@@ -159,7 +141,7 @@ const sendRequest = async (config, options, url, body, formData, headers, onCanc
159
141
  const controller = new AbortController();
160
142
  const request2 = {
161
143
  headers,
162
- body: body != null ? body : formData,
144
+ body: body ?? formData,
163
145
  method: options.method,
164
146
  signal: controller.signal
165
147
  };
@@ -197,15 +179,16 @@ const getResponseBody = async (response) => {
197
179
  return void 0;
198
180
  };
199
181
  const catchErrorCodes = (options, result) => {
200
- const errors = __spreadValues({
182
+ const errors = {
201
183
  400: "Bad Request",
202
184
  401: "Unauthorized",
203
185
  403: "Forbidden",
204
186
  404: "Not Found",
205
187
  500: "Internal Server Error",
206
188
  502: "Bad Gateway",
207
- 503: "Service Unavailable"
208
- }, options.errors);
189
+ 503: "Service Unavailable",
190
+ ...options.errors
191
+ };
209
192
  const error = errors[result.status];
210
193
  if (error) {
211
194
  throw new ApiError(options, result, error);
@@ -230,7 +213,7 @@ const request = (config, options) => {
230
213
  ok: response.ok,
231
214
  status: response.status,
232
215
  statusText: response.statusText,
233
- body: responseHeader != null ? responseHeader : responseBody
216
+ body: responseHeader ?? responseBody
234
217
  };
235
218
  catchErrorCodes(options, result);
236
219
  resolve2(result.body);
@@ -1,15 +1,19 @@
1
- import { DelegationStatusType } from './DelegationStatusType.js';
2
-
3
1
  type ActiveDelegatorDetails = {
4
2
  txHash: string;
3
+ nodeId: string;
5
4
  rewardAddresses: Array<string>;
6
5
  amountDelegated: string;
7
6
  delegationFee: string;
8
7
  startTimestamp: number;
9
8
  endTimestamp: number;
10
- delegationStatus: DelegationStatusType;
11
9
  estimatedGrossReward: string;
12
10
  estimatedNetReward: string;
11
+ delegationStatus: ActiveDelegatorDetails.delegationStatus;
13
12
  };
13
+ declare namespace ActiveDelegatorDetails {
14
+ enum delegationStatus {
15
+ ACTIVE = "active"
16
+ }
17
+ }
14
18
 
15
19
  export { ActiveDelegatorDetails };
@@ -0,0 +1,8 @@
1
+ var ActiveDelegatorDetails;
2
+ ((ActiveDelegatorDetails2) => {
3
+ ((delegationStatus2) => {
4
+ delegationStatus2["ACTIVE"] = "active";
5
+ })(ActiveDelegatorDetails2.delegationStatus || (ActiveDelegatorDetails2.delegationStatus = {}));
6
+ })(ActiveDelegatorDetails || (ActiveDelegatorDetails = {}));
7
+
8
+ export { ActiveDelegatorDetails };
@@ -1,20 +1,28 @@
1
1
  import { Rewards } from './Rewards.js';
2
- import { ValidationStatusType } from './ValidationStatusType.js';
2
+ import { ValidatorHealthDetails } from './ValidatorHealthDetails.js';
3
3
 
4
4
  type ActiveValidatorDetails = {
5
+ txHash: string;
5
6
  nodeId: string;
7
+ subnetId: string;
6
8
  amountStaked: string;
7
- delegationFee: string;
9
+ delegationFee?: string;
8
10
  startTimestamp: number;
9
11
  endTimestamp: number;
10
- validationStatus: ValidationStatusType;
11
12
  stakePercentage: number;
12
13
  delegatorCount: number;
13
- amountDelegated: string;
14
+ amountDelegated?: string;
14
15
  uptimePerformance: number;
15
- avalancheGoVersion: string;
16
- delegationCapacity: string;
16
+ avalancheGoVersion?: string;
17
+ delegationCapacity?: string;
17
18
  potentialRewards: Rewards;
19
+ validationStatus: ActiveValidatorDetails.validationStatus;
20
+ validatorHealth: ValidatorHealthDetails;
18
21
  };
22
+ declare namespace ActiveValidatorDetails {
23
+ enum validationStatus {
24
+ ACTIVE = "active"
25
+ }
26
+ }
19
27
 
20
28
  export { ActiveValidatorDetails };
@@ -0,0 +1,8 @@
1
+ var ActiveValidatorDetails;
2
+ ((ActiveValidatorDetails2) => {
3
+ ((validationStatus2) => {
4
+ validationStatus2["ACTIVE"] = "active";
5
+ })(ActiveValidatorDetails2.validationStatus || (ActiveValidatorDetails2.validationStatus = {}));
6
+ })(ActiveValidatorDetails || (ActiveValidatorDetails = {}));
7
+
8
+ export { ActiveValidatorDetails };
@@ -22,6 +22,7 @@ type ChainInfo = {
22
22
  utilityAddresses?: UtilityAddresses;
23
23
  networkToken: NetworkToken;
24
24
  chainLogoUri?: string;
25
+ private?: boolean;
25
26
  };
26
27
 
27
28
  export { ChainInfo };
@@ -1,15 +1,19 @@
1
- import { DelegationStatusType } from './DelegationStatusType.js';
2
-
3
1
  type CompletedDelegatorDetails = {
4
2
  txHash: string;
3
+ nodeId: string;
5
4
  rewardAddresses: Array<string>;
6
5
  amountDelegated: string;
7
6
  delegationFee: string;
8
7
  startTimestamp: number;
9
8
  endTimestamp: number;
10
- delegationStatus: DelegationStatusType;
11
9
  grossReward: string;
12
10
  netReward: string;
11
+ delegationStatus: CompletedDelegatorDetails.delegationStatus;
13
12
  };
13
+ declare namespace CompletedDelegatorDetails {
14
+ enum delegationStatus {
15
+ COMPLETED = "completed"
16
+ }
17
+ }
14
18
 
15
19
  export { CompletedDelegatorDetails };
@@ -0,0 +1,8 @@
1
+ var CompletedDelegatorDetails;
2
+ ((CompletedDelegatorDetails2) => {
3
+ ((delegationStatus2) => {
4
+ delegationStatus2["COMPLETED"] = "completed";
5
+ })(CompletedDelegatorDetails2.delegationStatus || (CompletedDelegatorDetails2.delegationStatus = {}));
6
+ })(CompletedDelegatorDetails || (CompletedDelegatorDetails = {}));
7
+
8
+ export { CompletedDelegatorDetails };
@@ -1,15 +1,21 @@
1
1
  import { Rewards } from './Rewards.js';
2
- import { ValidationStatusType } from './ValidationStatusType.js';
3
2
 
4
3
  type CompletedValidatorDetails = {
4
+ txHash: string;
5
5
  nodeId: string;
6
+ subnetId: string;
6
7
  amountStaked: string;
7
- delegationFee: string;
8
+ delegationFee?: string;
8
9
  startTimestamp: number;
9
10
  endTimestamp: number;
10
- validationStatus: ValidationStatusType;
11
11
  delegatorCount: number;
12
12
  rewards: Rewards;
13
+ validationStatus: CompletedValidatorDetails.validationStatus;
13
14
  };
15
+ declare namespace CompletedValidatorDetails {
16
+ enum validationStatus {
17
+ COMPLETED = "completed"
18
+ }
19
+ }
14
20
 
15
21
  export { CompletedValidatorDetails };
@@ -0,0 +1,8 @@
1
+ var CompletedValidatorDetails;
2
+ ((CompletedValidatorDetails2) => {
3
+ ((validationStatus2) => {
4
+ validationStatus2["COMPLETED"] = "completed";
5
+ })(CompletedValidatorDetails2.validationStatus || (CompletedValidatorDetails2.validationStatus = {}));
6
+ })(CompletedValidatorDetails || (CompletedValidatorDetails = {}));
7
+
8
+ export { CompletedValidatorDetails };
@@ -0,0 +1,10 @@
1
+ import { ContractSubmissionErc1155 } from './ContractSubmissionErc1155.js';
2
+ import { ContractSubmissionErc20 } from './ContractSubmissionErc20.js';
3
+ import { ContractSubmissionErc721 } from './ContractSubmissionErc721.js';
4
+ import { ContractSubmissionUnknown } from './ContractSubmissionUnknown.js';
5
+
6
+ type ContractSubmissionBody = {
7
+ contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
8
+ };
9
+
10
+ export { ContractSubmissionBody };
@@ -0,0 +1,31 @@
1
+ import { ImageAsset } from './ImageAsset.js';
2
+ import { PricingProviders } from './PricingProviders.js';
3
+ import { ResourceLink } from './ResourceLink.js';
4
+
5
+ type ContractSubmissionErc1155 = {
6
+ description?: string;
7
+ officialSite?: string;
8
+ email?: string;
9
+ logoAsset?: ImageAsset;
10
+ bannerAsset?: ImageAsset;
11
+ color?: string;
12
+ resourceLinks?: Array<ResourceLink>;
13
+ tags?: Array<string>;
14
+ /**
15
+ * The contract name.
16
+ */
17
+ name: string;
18
+ ercType: ContractSubmissionErc1155.ercType;
19
+ /**
20
+ * The contract symbol.
21
+ */
22
+ symbol: string;
23
+ pricingProviders?: PricingProviders;
24
+ };
25
+ declare namespace ContractSubmissionErc1155 {
26
+ enum ercType {
27
+ ERC_1155 = "ERC-1155"
28
+ }
29
+ }
30
+
31
+ export { ContractSubmissionErc1155 };
@@ -0,0 +1,8 @@
1
+ var ContractSubmissionErc1155;
2
+ ((ContractSubmissionErc11552) => {
3
+ ((ercType2) => {
4
+ ercType2["ERC_1155"] = "ERC-1155";
5
+ })(ContractSubmissionErc11552.ercType || (ContractSubmissionErc11552.ercType = {}));
6
+ })(ContractSubmissionErc1155 || (ContractSubmissionErc1155 = {}));
7
+
8
+ export { ContractSubmissionErc1155 };
@@ -0,0 +1,31 @@
1
+ import { ImageAsset } from './ImageAsset.js';
2
+ import { PricingProviders } from './PricingProviders.js';
3
+ import { ResourceLink } from './ResourceLink.js';
4
+
5
+ type ContractSubmissionErc20 = {
6
+ description?: string;
7
+ officialSite?: string;
8
+ email?: string;
9
+ logoAsset?: ImageAsset;
10
+ bannerAsset?: ImageAsset;
11
+ color?: string;
12
+ resourceLinks?: Array<ResourceLink>;
13
+ tags?: Array<string>;
14
+ /**
15
+ * The contract name.
16
+ */
17
+ name: string;
18
+ ercType: ContractSubmissionErc20.ercType;
19
+ /**
20
+ * The contract symbol.
21
+ */
22
+ symbol: string;
23
+ pricingProviders?: PricingProviders;
24
+ };
25
+ declare namespace ContractSubmissionErc20 {
26
+ enum ercType {
27
+ ERC_20 = "ERC-20"
28
+ }
29
+ }
30
+
31
+ export { ContractSubmissionErc20 };
@@ -0,0 +1,8 @@
1
+ var ContractSubmissionErc20;
2
+ ((ContractSubmissionErc202) => {
3
+ ((ercType2) => {
4
+ ercType2["ERC_20"] = "ERC-20";
5
+ })(ContractSubmissionErc202.ercType || (ContractSubmissionErc202.ercType = {}));
6
+ })(ContractSubmissionErc20 || (ContractSubmissionErc20 = {}));
7
+
8
+ export { ContractSubmissionErc20 };
@@ -0,0 +1,29 @@
1
+ import { ImageAsset } from './ImageAsset.js';
2
+ import { ResourceLink } from './ResourceLink.js';
3
+
4
+ type ContractSubmissionErc721 = {
5
+ description?: string;
6
+ officialSite?: string;
7
+ email?: string;
8
+ logoAsset?: ImageAsset;
9
+ bannerAsset?: ImageAsset;
10
+ color?: string;
11
+ resourceLinks?: Array<ResourceLink>;
12
+ tags?: Array<string>;
13
+ /**
14
+ * The contract name.
15
+ */
16
+ name: string;
17
+ ercType: ContractSubmissionErc721.ercType;
18
+ /**
19
+ * The contract symbol.
20
+ */
21
+ symbol: string;
22
+ };
23
+ declare namespace ContractSubmissionErc721 {
24
+ enum ercType {
25
+ ERC_721 = "ERC-721"
26
+ }
27
+ }
28
+
29
+ export { ContractSubmissionErc721 };
@@ -0,0 +1,8 @@
1
+ var ContractSubmissionErc721;
2
+ ((ContractSubmissionErc7212) => {
3
+ ((ercType2) => {
4
+ ercType2["ERC_721"] = "ERC-721";
5
+ })(ContractSubmissionErc7212.ercType || (ContractSubmissionErc7212.ercType = {}));
6
+ })(ContractSubmissionErc721 || (ContractSubmissionErc721 = {}));
7
+
8
+ export { ContractSubmissionErc721 };
@@ -0,0 +1,25 @@
1
+ import { ImageAsset } from './ImageAsset.js';
2
+ import { ResourceLink } from './ResourceLink.js';
3
+
4
+ type ContractSubmissionUnknown = {
5
+ description?: string;
6
+ officialSite?: string;
7
+ email?: string;
8
+ logoAsset?: ImageAsset;
9
+ bannerAsset?: ImageAsset;
10
+ color?: string;
11
+ resourceLinks?: Array<ResourceLink>;
12
+ tags?: Array<string>;
13
+ /**
14
+ * The contract name.
15
+ */
16
+ name: string;
17
+ ercType: ContractSubmissionUnknown.ercType;
18
+ };
19
+ declare namespace ContractSubmissionUnknown {
20
+ enum ercType {
21
+ UNKNOWN = "UNKNOWN"
22
+ }
23
+ }
24
+
25
+ export { ContractSubmissionUnknown };
@@ -0,0 +1,8 @@
1
+ var ContractSubmissionUnknown;
2
+ ((ContractSubmissionUnknown2) => {
3
+ ((ercType2) => {
4
+ ercType2["UNKNOWN"] = "UNKNOWN";
5
+ })(ContractSubmissionUnknown2.ercType || (ContractSubmissionUnknown2.ercType = {}));
6
+ })(ContractSubmissionUnknown || (ContractSubmissionUnknown = {}));
7
+
8
+ export { ContractSubmissionUnknown };
@@ -1,5 +1,6 @@
1
1
  import { ContractDeploymentDetails } from './ContractDeploymentDetails.js';
2
2
  import { ImageAsset } from './ImageAsset.js';
3
+ import { PricingProviders } from './PricingProviders.js';
3
4
  import { ResourceLink } from './ResourceLink.js';
4
5
 
5
6
  type Erc1155Contract = {
@@ -13,7 +14,6 @@ type Erc1155Contract = {
13
14
  logoAsset?: ImageAsset;
14
15
  bannerAsset?: ImageAsset;
15
16
  color?: string;
16
- coingeckoCoinId?: string;
17
17
  resourceLinks?: Array<ResourceLink>;
18
18
  tags?: Array<string>;
19
19
  /**
@@ -26,6 +26,7 @@ type Erc1155Contract = {
26
26
  * The contract symbol.
27
27
  */
28
28
  symbol?: string;
29
+ pricingProviders?: PricingProviders;
29
30
  };
30
31
  declare namespace Erc1155Contract {
31
32
  enum ercType {
@@ -1,5 +1,6 @@
1
1
  import { ContractDeploymentDetails } from './ContractDeploymentDetails.js';
2
2
  import { ImageAsset } from './ImageAsset.js';
3
+ import { PricingProviders } from './PricingProviders.js';
3
4
  import { ResourceLink } from './ResourceLink.js';
4
5
 
5
6
  type Erc20Contract = {
@@ -13,7 +14,6 @@ type Erc20Contract = {
13
14
  logoAsset?: ImageAsset;
14
15
  bannerAsset?: ImageAsset;
15
16
  color?: string;
16
- coingeckoCoinId?: string;
17
17
  resourceLinks?: Array<ResourceLink>;
18
18
  tags?: Array<string>;
19
19
  /**
@@ -30,6 +30,7 @@ type Erc20Contract = {
30
30
  * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
31
31
  */
32
32
  decimals: number;
33
+ pricingProviders?: PricingProviders;
33
34
  };
34
35
  declare namespace Erc20Contract {
35
36
  enum ercType {
@@ -13,7 +13,6 @@ type Erc721Contract = {
13
13
  logoAsset?: ImageAsset;
14
14
  bannerAsset?: ImageAsset;
15
15
  color?: string;
16
- coingeckoCoinId?: string;
17
16
  resourceLinks?: Array<ResourceLink>;
18
17
  tags?: Array<string>;
19
18
  /**
@@ -22,6 +22,7 @@ type GetChainResponse = {
22
22
  utilityAddresses?: UtilityAddresses;
23
23
  networkToken: NetworkToken;
24
24
  chainLogoUri?: string;
25
+ private?: boolean;
25
26
  };
26
27
 
27
28
  export { GetChainResponse };
@@ -1,7 +1,4 @@
1
1
  type ImageAsset = {
2
- /**
3
- * INPUT ONLY
4
- */
5
2
  assetId?: string;
6
3
  /**
7
4
  * OUTPUT ONLY
@@ -8,7 +8,7 @@ type ListContractsResponse = {
8
8
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
9
9
  */
10
10
  nextPageToken?: string;
11
- contracts: Array<(UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract)>;
11
+ contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
12
12
  };
13
13
 
14
14
  export { ListContractsResponse };
@@ -8,7 +8,7 @@ type ListValidatorDetailsResponse = {
8
8
  */
9
9
  nextPageToken?: string;
10
10
  /**
11
- * The list of Validator Details.
11
+ * The list of validator Details.
12
12
  */
13
13
  validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
14
14
  };
@@ -61,6 +61,7 @@ type PChainTransaction = {
61
61
  */
62
62
  estimatedReward?: string;
63
63
  rewardTxHash?: string;
64
+ rewardAddresses?: Array<string>;
64
65
  memo?: string;
65
66
  /**
66
67
  * Present for RewardValidatorTx
@@ -2,6 +2,7 @@ declare enum PChainTransactionType {
2
2
  ADD_VALIDATOR_TX = "AddValidatorTx",
3
3
  ADD_DELEGATOR_TX = "AddDelegatorTx",
4
4
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
5
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
5
6
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
6
7
  REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
7
8
  REWARD_VALIDATOR_TX = "RewardValidatorTx",
@@ -2,6 +2,7 @@ var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
2
2
  PChainTransactionType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
3
3
  PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
4
4
  PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
5
+ PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
5
6
  PChainTransactionType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
6
7
  PChainTransactionType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
7
8
  PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
@@ -1,15 +1,19 @@
1
- import { DelegationStatusType } from './DelegationStatusType.js';
2
-
3
1
  type PendingDelegatorDetails = {
4
2
  txHash: string;
3
+ nodeId: string;
5
4
  rewardAddresses: Array<string>;
6
5
  amountDelegated: string;
7
6
  delegationFee: string;
8
7
  startTimestamp: number;
9
8
  endTimestamp: number;
10
- delegationStatus: DelegationStatusType;
11
9
  estimatedGrossReward: string;
12
10
  estimatedNetReward: string;
11
+ delegationStatus: PendingDelegatorDetails.delegationStatus;
13
12
  };
13
+ declare namespace PendingDelegatorDetails {
14
+ enum delegationStatus {
15
+ PENDING = "pending"
16
+ }
17
+ }
14
18
 
15
19
  export { PendingDelegatorDetails };
@@ -0,0 +1,8 @@
1
+ var PendingDelegatorDetails;
2
+ ((PendingDelegatorDetails2) => {
3
+ ((delegationStatus2) => {
4
+ delegationStatus2["PENDING"] = "pending";
5
+ })(PendingDelegatorDetails2.delegationStatus || (PendingDelegatorDetails2.delegationStatus = {}));
6
+ })(PendingDelegatorDetails || (PendingDelegatorDetails = {}));
7
+
8
+ export { PendingDelegatorDetails };
@@ -1,12 +1,17 @@
1
- import { ValidationStatusType } from './ValidationStatusType.js';
2
-
3
1
  type PendingValidatorDetails = {
2
+ txHash: string;
4
3
  nodeId: string;
4
+ subnetId: string;
5
5
  amountStaked: string;
6
- delegationFee: string;
6
+ delegationFee?: string;
7
7
  startTimestamp: number;
8
8
  endTimestamp: number;
9
- validationStatus: ValidationStatusType;
9
+ validationStatus: PendingValidatorDetails.validationStatus;
10
10
  };
11
+ declare namespace PendingValidatorDetails {
12
+ enum validationStatus {
13
+ PENDING = "pending"
14
+ }
15
+ }
11
16
 
12
17
  export { PendingValidatorDetails };