@avalabs/glacier-sdk 3.1.0-alpha.67 → 3.1.0-alpha.68
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/dist/index.cjs +1 -1
- package/dist/index.d.ts +305 -8
- package/esm/generated/models/AvaxSupplyResponse.d.ts +44 -0
- package/esm/generated/models/Blockchain.d.ts +4 -2
- package/esm/generated/models/BlockchainInfo.d.ts +3 -1
- package/esm/generated/models/EvmGenesisAllocDto.d.ts +16 -0
- package/esm/generated/models/EvmGenesisAllowListConfigDto.d.ts +20 -0
- package/esm/generated/models/EvmGenesisConfigDto.d.ts +96 -0
- package/esm/generated/models/EvmGenesisDto.d.ts +75 -0
- package/esm/generated/models/EvmGenesisFeeConfigDto.d.ts +36 -0
- package/esm/generated/models/EvmGenesisWarpConfigDto.d.ts +16 -0
- package/esm/generated/services/AvaxSupplyService.d.ts +3 -2
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +10 -2
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
- package/esm/index.d.ts +7 -0
- package/package.json +2 -2
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
type EvmGenesisFeeConfigDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Base fee change denominator
|
|
4
|
+
*/
|
|
5
|
+
baseFeeChangeDenominator?: number;
|
|
6
|
+
/**
|
|
7
|
+
* Block gas cost step
|
|
8
|
+
*/
|
|
9
|
+
blockGasCostStep?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Gas limit
|
|
12
|
+
*/
|
|
13
|
+
gasLimit?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Maximum block gas cost
|
|
16
|
+
*/
|
|
17
|
+
maxBlockGasCost?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Minimum base fee
|
|
20
|
+
*/
|
|
21
|
+
minBaseFee?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Minimum block gas cost
|
|
24
|
+
*/
|
|
25
|
+
minBlockGasCost?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Target block rate
|
|
28
|
+
*/
|
|
29
|
+
targetBlockRate?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Target gas
|
|
32
|
+
*/
|
|
33
|
+
targetGas?: number;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export type { EvmGenesisFeeConfigDto };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type EvmGenesisWarpConfigDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Block timestamp
|
|
4
|
+
*/
|
|
5
|
+
blockTimestamp?: number;
|
|
6
|
+
/**
|
|
7
|
+
* Quorum numerator
|
|
8
|
+
*/
|
|
9
|
+
quorumNumerator?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Require primary network signers
|
|
12
|
+
*/
|
|
13
|
+
requirePrimaryNetworkSigners?: boolean;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type { EvmGenesisWarpConfigDto };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AvaxSupplyResponse } from '../models/AvaxSupplyResponse.js';
|
|
1
2
|
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
2
3
|
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
3
4
|
|
|
@@ -7,10 +8,10 @@ declare class AvaxSupplyService {
|
|
|
7
8
|
/**
|
|
8
9
|
* Get AVAX supply information
|
|
9
10
|
* Get AVAX supply information that includes total supply, circulating supply, total p burned, total c burned, total x burned, total staked, total locked, total rewards, and last updated.
|
|
10
|
-
* @returns
|
|
11
|
+
* @returns AvaxSupplyResponse Successful response
|
|
11
12
|
* @throws ApiError
|
|
12
13
|
*/
|
|
13
|
-
getAvaxSupply(): CancelablePromise<
|
|
14
|
+
getAvaxSupply(): CancelablePromise<AvaxSupplyResponse>;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
export { AvaxSupplyService };
|
|
@@ -17,7 +17,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
17
17
|
* @returns any Successful response
|
|
18
18
|
* @throws ApiError
|
|
19
19
|
*/
|
|
20
|
-
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortBy, sortOrder, }: {
|
|
20
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
|
|
21
21
|
/**
|
|
22
22
|
* A primary network blockchain id or alias.
|
|
23
23
|
*/
|
|
@@ -42,6 +42,10 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
42
42
|
* Asset ID for any asset (only applicable X-Chain)
|
|
43
43
|
*/
|
|
44
44
|
assetId?: string;
|
|
45
|
+
/**
|
|
46
|
+
* The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
|
|
47
|
+
*/
|
|
48
|
+
minUtxoAmount?: number;
|
|
45
49
|
/**
|
|
46
50
|
* Boolean filter to include spent UTXOs.
|
|
47
51
|
*/
|
|
@@ -61,7 +65,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
61
65
|
* @returns any Successful response
|
|
62
66
|
* @throws ApiError
|
|
63
67
|
*/
|
|
64
|
-
getUtxosByAddressesV2({ blockchainId, network, requestBody, pageToken, pageSize, assetId, includeSpent, sortBy, sortOrder, }: {
|
|
68
|
+
getUtxosByAddressesV2({ blockchainId, network, requestBody, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
|
|
65
69
|
/**
|
|
66
70
|
* A primary network blockchain id or alias.
|
|
67
71
|
*/
|
|
@@ -83,6 +87,10 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
83
87
|
* Asset ID for any asset (only applicable X-Chain)
|
|
84
88
|
*/
|
|
85
89
|
assetId?: string;
|
|
90
|
+
/**
|
|
91
|
+
* The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
|
|
92
|
+
*/
|
|
93
|
+
minUtxoAmount?: number;
|
|
86
94
|
/**
|
|
87
95
|
* Boolean filter to include spent UTXOs.
|
|
88
96
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
class e{constructor(e){this.httpRequest=e}getUtxosByAddresses({blockchainId:e,network:r,addresses:t,pageToken:
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}getUtxosByAddresses({blockchainId:e,network:r,addresses:t,pageToken:n,pageSize:s=10,assetId:o,minUtxoAmount:a,includeSpent:i,sortBy:h,sortOrder:d}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/utxos",path:{blockchainId:e,network:r},query:{addresses:t,pageToken:n,pageSize:s,assetId:o,minUtxoAmount:a,includeSpent:i,sortBy:h,sortOrder:d},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getUtxosByAddressesV2({blockchainId:e,network:r,requestBody:t,pageToken:n,pageSize:s=10,assetId:o,minUtxoAmount:a,includeSpent:i,sortBy:h,sortOrder:d}){return this.httpRequest.request({method:"POST",url:"/v1/networks/{network}/blockchains/{blockchainId}/utxos",path:{blockchainId:e,network:r},query:{pageToken:n,pageSize:s,assetId:o,minUtxoAmount:a,includeSpent:i,sortBy:h,sortOrder:d},body:t,mediaType:"application/json",errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}export{e as PrimaryNetworkUtxOsService};
|
package/esm/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export { AggregatedAssetAmount } from './generated/models/AggregatedAssetAmount.
|
|
|
14
14
|
export { ApiFeature } from './generated/models/ApiFeature.js';
|
|
15
15
|
export { AssetAmount } from './generated/models/AssetAmount.js';
|
|
16
16
|
export { AssetWithPriceInfo } from './generated/models/AssetWithPriceInfo.js';
|
|
17
|
+
export { AvaxSupplyResponse } from './generated/models/AvaxSupplyResponse.js';
|
|
17
18
|
export { BadGateway } from './generated/models/BadGateway.js';
|
|
18
19
|
export { BadRequest } from './generated/models/BadRequest.js';
|
|
19
20
|
export { BalanceOwner } from './generated/models/BalanceOwner.js';
|
|
@@ -71,6 +72,12 @@ export { ERCTransfer } from './generated/models/ERCTransfer.js';
|
|
|
71
72
|
export { EVMAddressActivityRequest } from './generated/models/EVMAddressActivityRequest.js';
|
|
72
73
|
export { EVMAddressActivityResponse } from './generated/models/EVMAddressActivityResponse.js';
|
|
73
74
|
export { EvmBlock } from './generated/models/EvmBlock.js';
|
|
75
|
+
export { EvmGenesisAllocDto } from './generated/models/EvmGenesisAllocDto.js';
|
|
76
|
+
export { EvmGenesisAllowListConfigDto } from './generated/models/EvmGenesisAllowListConfigDto.js';
|
|
77
|
+
export { EvmGenesisConfigDto } from './generated/models/EvmGenesisConfigDto.js';
|
|
78
|
+
export { EvmGenesisDto } from './generated/models/EvmGenesisDto.js';
|
|
79
|
+
export { EvmGenesisFeeConfigDto } from './generated/models/EvmGenesisFeeConfigDto.js';
|
|
80
|
+
export { EvmGenesisWarpConfigDto } from './generated/models/EvmGenesisWarpConfigDto.js';
|
|
74
81
|
export { EVMInput } from './generated/models/EVMInput.js';
|
|
75
82
|
export { EvmNetworkOptions } from './generated/models/EvmNetworkOptions.js';
|
|
76
83
|
export { EVMOperationType } from './generated/models/EVMOperationType.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avalabs/glacier-sdk",
|
|
3
|
-
"version": "3.1.0-alpha.
|
|
3
|
+
"version": "3.1.0-alpha.68",
|
|
4
4
|
"description": "sdk for interacting with glacier-api",
|
|
5
5
|
"author": "Oliver Wang <oliver.wang@avalabs.org>",
|
|
6
6
|
"homepage": "https://github.com/ava-labs/avalanche-sdks#readme",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"bugs": {
|
|
39
39
|
"url": "https://github.com/ava-labs/avalanche-sdks/issues"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "be66a2a549a79504475484cf1593d9bc8cad6df2"
|
|
42
42
|
}
|