@avalabs/glacier-sdk 3.1.0-alpha.2 → 3.1.0-alpha.3
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.d.ts
CHANGED
|
@@ -4569,7 +4569,7 @@ declare class TeleporterService {
|
|
|
4569
4569
|
* @returns ListTeleporterMessagesResponse
|
|
4570
4570
|
* @throws ApiError
|
|
4571
4571
|
*/
|
|
4572
|
-
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
|
|
4572
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
4573
4573
|
/**
|
|
4574
4574
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4575
4575
|
*/
|
|
@@ -4586,6 +4586,10 @@ declare class TeleporterService {
|
|
|
4586
4586
|
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
4587
4587
|
*/
|
|
4588
4588
|
destinationBlockchainId?: string;
|
|
4589
|
+
/**
|
|
4590
|
+
* The base58 encoded blockchain ID of either source or destination chain that one teleporter message interacts with.
|
|
4591
|
+
*/
|
|
4592
|
+
blockchainId?: string;
|
|
4589
4593
|
/**
|
|
4590
4594
|
* The address of the recipient of the teleporter message.
|
|
4591
4595
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";class e{constructor(e){this.config=e}}class t extends Error{url;status;statusText;body;request;constructor(e,t,r){super(r),this.name="ApiError",this.url=t.url,this.status=t.status,this.statusText=t.statusText,this.body=t.body,this.request=e}}class r extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}}class s{#e;#t;#r;#s;#a;#o;#n;constructor(e){this.#e=!1,this.#t=!1,this.#r=!1,this.#s=[],this.#a=new Promise(((t,r)=>{this.#o=t,this.#n=r;const s=e=>{this.#e||this.#t||this.#r||this.#s.push(e)};return Object.defineProperty(s,"isResolved",{get:()=>this.#e}),Object.defineProperty(s,"isRejected",{get:()=>this.#t}),Object.defineProperty(s,"isCancelled",{get:()=>this.#r}),e((e=>{this.#e||this.#t||this.#r||(this.#e=!0,this.#o?.(e))}),(e=>{this.#e||this.#t||this.#r||(this.#t=!0,this.#n?.(e))}),s)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,t){return this.#a.then(e,t)}catch(e){return this.#a.catch(e)}finally(e){return this.#a.finally(e)}cancel(){if(!(this.#e||this.#t||this.#r)){if(this.#r=!0,this.#s.length)try{for(const e of this.#s)e()}catch(e){return void console.warn("Cancellation threw an error",e)}this.#s.length=0,this.#n?.(new r("Request aborted"))}}get isCancelled(){return this.#r}}const a=e=>null!=e,o=e=>"string"==typeof e,n=e=>o(e)&&""!==e,i=e=>"object"==typeof e&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.arrayBuffer&&"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag]),d=e=>e instanceof FormData,c=e=>{const t=[],r=(e,s)=>{a(s)&&(Array.isArray(s)?s.forEach((t=>{r(e,t)})):"object"==typeof s?Object.entries(s).forEach((([t,s])=>{r(`${e}[${t}]`,s)})):((e,r)=>{t.push(`${encodeURIComponent(e)}=${encodeURIComponent(String(r))}`)})(e,s))};return Object.entries(e).forEach((([e,t])=>{r(e,t)})),t.length>0?`?${t.join("&")}`:""},p=async(e,t)=>"function"==typeof t?t(e):t,h=async(e,t)=>{const r=await p(t,e.TOKEN),s=await p(t,e.USERNAME),c=await p(t,e.PASSWORD),h=await p(t,e.HEADERS),T=Object.entries({Accept:"application/json",...h,...t.headers}).filter((([e,t])=>a(t))).reduce(((e,[t,r])=>({...e,[t]:String(r)})),{});if(n(r)&&(T.Authorization=`Bearer ${r}`),n(s)&&n(c)){const e=(e=>{try{return btoa(e)}catch(t){return Buffer.from(e).toString("base64")}})(`${s}:${c}`);T.Authorization=`Basic ${e}`}return t.body&&(t.mediaType?T["Content-Type"]=t.mediaType:i(t.body)?T["Content-Type"]=t.body.type||"application/octet-stream":o(t.body)?T["Content-Type"]="text/plain":d(t.body)||(T["Content-Type"]="application/json")),new Headers(T)},T=(e,r)=>new s((async(s,n,p)=>{try{const n=((e,t)=>{const r=e.ENCODE_PATH||encodeURI,s=t.url.replace("{api-version}",e.VERSION).replace(/{(.*?)}/g,((e,s)=>t.path?.hasOwnProperty(s)?r(String(t.path[s])):e)),a=`${e.BASE}${s}`;return t.query?`${a}${c(t.query)}`:a})(e,r),T=(e=>{if(e.formData){const t=new FormData,r=(e,r)=>{o(r)||i(r)?t.append(e,r):t.append(e,JSON.stringify(r))};return Object.entries(e.formData).filter((([e,t])=>a(t))).forEach((([e,t])=>{Array.isArray(t)?t.forEach((t=>r(e,t))):r(e,t)})),t}})(r),l=(e=>{if(void 0!==e.body)return e.mediaType?.includes("/json")?JSON.stringify(e.body):o(e.body)||i(e.body)||d(e.body)?e.body:JSON.stringify(e.body)})(r),u=await h(e,r);if(!p.isCancelled){const a=await(async(e,t,r,s,a,o,n)=>{const i=new AbortController,d={headers:o,body:s??a,method:t.method,signal:i.signal};return e.WITH_CREDENTIALS&&(d.credentials=e.CREDENTIALS),n((()=>i.abort())),await fetch(r,d)})(e,r,n,l,T,u,p),i=await(async e=>{if(204!==e.status)try{const t=e.headers.get("Content-Type");if(t)return["application/json","application/problem+json"].some((e=>t.toLowerCase().startsWith(e)))?await e.json():await e.text()}catch(e){console.error(e)}})(a),d=((e,t)=>{if(t){const r=e.headers.get(t);if(o(r))return r}})(a,r.responseHeader),c={url:n,ok:a.ok,status:a.status,statusText:a.statusText,body:d??i};((e,r)=>{const s={400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable",...e.errors}[r.status];if(s)throw new t(e,r,s);if(!r.ok)throw new t(e,r,"Generic Error")})(r,c),s(c.body)}}catch(e){n(e)}}));class l extends e{constructor(e){super(e)}request(e){return T(this.config,e)}}class u{constructor(e){this.httpRequest=e}mediaControllerUploadImage(){return this.httpRequest.request({method:"POST",url:"/v1/media/uploadImage"})}}class E{constructor(e){this.httpRequest=e}getNativeBalance({chainId:e,address:t,blockNumber:r,currency:s}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/balances:getNative",path:{chainId:e,address:t},query:{blockNumber:r,currency:s}})}listErc20Balances({chainId:e,address:t,blockNumber:r,pageToken:s,pageSize:a=10,filterSpamTokens:o=!0,contractAddresses:n,currency:i}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/balances:listErc20",path:{chainId:e,address:t},query:{blockNumber:r,pageToken:s,pageSize:a,filterSpamTokens:o,contractAddresses:n,currency:i}})}listErc721Balances({chainId:e,address:t,pageToken:r,pageSize:s=10,contractAddress:a}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/balances:listErc721",path:{chainId:e,address:t},query:{pageToken:r,pageSize:s,contractAddress:a}})}listErc1155Balances({chainId:e,address:t,blockNumber:r,pageToken:s,pageSize:a=10,contractAddress:o}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/balances:listErc1155",path:{chainId:e,address:t},query:{blockNumber:r,pageToken:s,pageSize:a,contractAddress:o}})}listCollectibleBalances({chainId:e,address:t,pageToken:r,pageSize:s=10,contractAddress:a}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/balances:listCollectibles",path:{chainId:e,address:t},query:{pageToken:r,pageSize:s,contractAddress:a}})}}class I{constructor(e){this.httpRequest=e}getLatestBlocks({chainId:e,pageToken:t,pageSize:r=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/blocks",path:{chainId:e},query:{pageToken:t,pageSize:r}})}getBlock({chainId:e,blockId:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/blocks/{blockId}",path:{chainId:e,blockId:t}})}}class k{constructor(e){this.httpRequest=e}supportedChains({network:e,feature:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains",query:{network:e,feature:t}})}getChainInfo({chainId:e}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}",path:{chainId:e}})}}class R{constructor(e){this.httpRequest=e}getContractMetadata({chainId:e,address:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}",path:{chainId:e,address:t}})}updateContractInfo({chainId:e,address:t,requestBody:r}){return this.httpRequest.request({method:"PATCH",url:"/v1/chains/{chainId}/contracts/{address}",path:{chainId:e,address:t},body:r,mediaType:"application/json"})}}class N{constructor(e){this.httpRequest=e}getDeploymentTransaction({chainId:e,address:t,currency:r}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/contracts/{address}/transactions:getDeployment",path:{chainId:e,address:t},query:{currency:r}})}listContractDeployments({chainId:e,address:t,pageToken:r,pageSize:s=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/contracts/{address}/deployments",path:{chainId:e,address:t},query:{pageToken:r,pageSize:s}})}listTransfers({chainId:e,address:t,startBlock:r,endBlock:s,pageToken:a,pageSize:o=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/tokens/{address}/transfers",path:{chainId:e,address:t},query:{startBlock:r,endBlock:s,pageToken:a,pageSize:o}})}listTransactions({chainId:e,address:t,pageToken:r,pageSize:s=10,startBlock:a,endBlock:o,sortOrder:n}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions",path:{chainId:e,address:t},query:{pageToken:r,pageSize:s,startBlock:a,endBlock:o,sortOrder:n}})}listNativeTransactions({chainId:e,address:t,startBlock:r,endBlock:s,pageToken:a,pageSize:o=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listNative",path:{chainId:e,address:t},query:{startBlock:r,endBlock:s,pageToken:a,pageSize:o}})}listErc20Transactions({chainId:e,address:t,startBlock:r,endBlock:s,pageToken:a,pageSize:o=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc20",path:{chainId:e,address:t},query:{startBlock:r,endBlock:s,pageToken:a,pageSize:o}})}listErc721Transactions({chainId:e,address:t,startBlock:r,endBlock:s,pageToken:a,pageSize:o=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc721",path:{chainId:e,address:t},query:{startBlock:r,endBlock:s,pageToken:a,pageSize:o}})}listErc1155Transactions({chainId:e,address:t,startBlock:r,endBlock:s,pageToken:a,pageSize:o=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc1155",path:{chainId:e,address:t},query:{startBlock:r,endBlock:s,pageToken:a,pageSize:o}})}listInternalTransactions({chainId:e,address:t,startBlock:r,endBlock:s,pageToken:a,pageSize:o=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listInternals",path:{chainId:e,address:t},query:{startBlock:r,endBlock:s,pageToken:a,pageSize:o}})}getTransaction({chainId:e,txHash:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/transactions/{txHash}",path:{chainId:e,txHash:t}})}getTransactionsForBlock({chainId:e,blockId:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/blocks/{blockId}/transactions",path:{chainId:e,blockId:t}})}listLatestTransactions({chainId:e,pageToken:t,pageSize:r=10,status:s}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/transactions",path:{chainId:e},query:{pageToken:t,pageSize:r,status:s}})}}class A{constructor(e){this.httpRequest=e}getApiUsageMetrics({orgId:e,startTimestamp:t,endTimestamp:r,timeInterval:s,groupBy:a,requestPath:o,responseStatusCode:n,chainId:i,apiKeyId:d}){return this.httpRequest.request({method:"GET",url:"/v1/apiUsageMetrics",query:{orgId:e,startTimestamp:t,endTimestamp:r,timeInterval:s,groupBy:a,requestPath:o,responseStatusCode:n,chainId:i,apiKeyId:d}})}getApiLogss({orgId:e,startTimestamp:t,endTimestamp:r,pageToken:s,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/apiLogs",query:{orgId:e,startTimestamp:t,endTimestamp:r,pageToken:s,pageSize:a}})}}class m{constructor(e){this.httpRequest=e}healthCheck(){return this.httpRequest.request({method:"GET",url:"/v1/health-check",errors:{503:"The Health Check is not successful"}})}}class S{constructor(e){this.httpRequest=e}reindexNft({chainId:e,address:t,tokenId:r}){return this.httpRequest.request({method:"POST",url:"/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}:reindex",path:{chainId:e,address:t,tokenId:r}})}listTokens({chainId:e,address:t,pageToken:r,pageSize:s=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/nfts/collections/{address}/tokens",path:{chainId:e,address:t},query:{pageToken:r,pageSize:s}})}getTokenDetails({chainId:e,address:t,tokenId:r}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}",path:{chainId:e,address:t,tokenId:r}})}}class _{constructor(e){this.httpRequest=e}getOperationResult({operationId:e}){return this.httpRequest.request({method:"GET",url:"/v1/operations/{operationId}",path:{operationId:e}})}postTransactionExportJob({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/v1/operations/transactions:export",body:e,mediaType:"application/json"})}}class C{constructor(e){this.httpRequest=e}getAssetDetails({blockchainId:e,network:t,assetId:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}",path:{blockchainId:e,network:t,assetId:r}})}getChainIdsForAddresses({addresses:e,network:t}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/addresses:listChainIds",path:{network:t},query:{addresses:e}})}getNetworkDetails({network:e}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}",path:{network:e}})}listBlockchains({network:e,pageToken:t,pageSize:r=10,sortOrder:s}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains",path:{network:e},query:{pageToken:t,pageSize:r,sortOrder:s}})}listSubnets({network:e,pageToken:t,pageSize:r=10,sortOrder:s}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnets",path:{network:e},query:{pageToken:t,pageSize:r,sortOrder:s}})}getSubnetById({network:e,subnetId:t}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnets/{subnetId}",path:{network:e,subnetId:t}})}listValidators({network:e,pageToken:t,pageSize:r=10,nodeIds:s,sortBy:a,sortOrder:o,validationStatus:n,minDelegationCapacity:i,maxDelegationCapacity:d,minTimeRemaining:c,maxTimeRemaining:p,minFeePercentage:h,maxFeePercentage:T,minUptimePerformance:l,maxUptimePerformance:u,subnetId:E}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators",path:{network:e},query:{pageToken:t,pageSize:r,nodeIds:s,sortBy:a,sortOrder:o,validationStatus:n,minDelegationCapacity:i,maxDelegationCapacity:d,minTimeRemaining:c,maxTimeRemaining:p,minFeePercentage:h,maxFeePercentage:T,minUptimePerformance:l,maxUptimePerformance:u,subnetId:E}})}getSingleValidatorDetails({network:e,nodeId:t,pageToken:r,pageSize:s=10,validationStatus:a,sortOrder:o}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators/{nodeId}",path:{network:e,nodeId:t},query:{pageToken:r,pageSize:s,validationStatus:a,sortOrder:o}})}listDelegators({network:e,pageToken:t,pageSize:r=10,rewardAddresses:s,sortOrder:a,delegationStatus:o,nodeIds:n}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/delegators",path:{network:e},query:{pageToken:t,pageSize:r,rewardAddresses:s,sortOrder:a,delegationStatus:o,nodeIds:n}})}}class g{constructor(e){this.httpRequest=e}getBalancesByAddresses({blockchainId:e,network:t,blockTimestamp:r,addresses:s}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/balances",path:{blockchainId:e,network:t},query:{blockTimestamp:r,addresses:s}})}}class x{constructor(e){this.httpRequest=e}getBlockById({blockchainId:e,network:t,blockId:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/blocks/{blockId}",path:{blockchainId:e,network:t,blockId:r}})}listPrimaryNetworkBlocksByNodeId({blockchainId:e,network:t,nodeId:r,pageToken:s,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/nodes/{nodeId}/blocks",path:{blockchainId:e,network:t,nodeId:r},query:{pageToken:s,pageSize:a}})}listLatestPrimaryNetworkBlocks({blockchainId:e,network:t,pageToken:r,pageSize:s=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/blocks",path:{blockchainId:e,network:t},query:{pageToken:r,pageSize:s}})}}class y{constructor(e){this.httpRequest=e}listPendingPrimaryNetworkRewards({network:e,addresses:t,pageToken:r,pageSize:s=10,nodeIds:a,sortOrder:o}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/rewards:listPending",path:{network:e},query:{addresses:t,pageToken:r,pageSize:s,nodeIds:a,sortOrder:o}})}listHistoricalPrimaryNetworkRewards({network:e,addresses:t,pageToken:r,pageSize:s=10,nodeIds:a,sortOrder:o,currency:n}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/rewards",path:{network:e},query:{addresses:t,pageToken:r,pageSize:s,nodeIds:a,sortOrder:o,currency:n}})}}class O{constructor(e){this.httpRequest=e}getTxByHash({blockchainId:e,network:t,txHash:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/transactions/{txHash}",path:{blockchainId:e,network:t,txHash:r}})}listLatestPrimaryNetworkTransactions({blockchainId:e,network:t,addresses:r,txTypes:s,startTimestamp:a,endTimestamp:o,pageToken:n,pageSize:i=10,sortOrder:d}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/transactions",path:{blockchainId:e,network:t},query:{addresses:r,txTypes:s,startTimestamp:a,endTimestamp:o,pageToken:n,pageSize:i,sortOrder:d}})}listActivePrimaryNetworkStakingTransactions({blockchainId:e,network:t,addresses:r,txTypes:s,startTimestamp:a,endTimestamp:o,pageToken:n,pageSize:i=10,sortOrder:d}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/transactions:listStaking",path:{blockchainId:e,network:t},query:{addresses:r,txTypes:s,startTimestamp:a,endTimestamp:o,pageToken:n,pageSize:i,sortOrder:d}})}listAssetTransactions({blockchainId:e,network:t,assetId:r,txTypes:s,startTimestamp:a,endTimestamp:o,pageToken:n,pageSize:i=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}/transactions",path:{blockchainId:e,network:t,assetId:r},query:{txTypes:s,startTimestamp:a,endTimestamp:o,pageToken:n,pageSize:i}})}}class q{constructor(e){this.httpRequest=e}getUtxosByAddresses({blockchainId:e,network:t,addresses:r,pageToken:s,pageSize:a=10,assetId:o,includeSpent:n,sortOrder:i}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/utxos",path:{blockchainId:e,network:t},query:{addresses:r,pageToken:s,pageSize:a,assetId:o,includeSpent:n,sortOrder:i}})}}class v{constructor(e){this.httpRequest=e}listLatestXChainVertices({blockchainId:e,network:t,pageToken:r,pageSize:s=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/vertices",path:{blockchainId:e,network:t},query:{pageToken:r,pageSize:s}})}getVertexByHash({vertexHash:e,blockchainId:t,network:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/vertices/{vertexHash}",path:{vertexHash:e,blockchainId:t,network:r}})}getVertexByHeight({vertexHeight:e,blockchainId:t,network:r,pageToken:s,pageSize:a=10,sortOrder:o}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/vertices:listByHeight",path:{blockchainId:t,network:r},query:{vertexHeight:e,pageToken:s,pageSize:a,sortOrder:o}})}}class D{constructor(e){this.httpRequest=e}rpc({chainId:e,requestBody:t}){return this.httpRequest.request({method:"POST",url:"/v1/ext/bc/{chainId}/rpc",path:{chainId:e},body:t,mediaType:"application/json",errors:{504:"Request timed out"}})}}class w{constructor(e){this.httpRequest=e}getTeleporterMessage({messageId:e}){return this.httpRequest.request({method:"GET",url:"/v1/teleporter/messages/{messageId}",path:{messageId:e}})}listTeleporterMessages({pageToken:e,pageSize:t=10,sourceBlockchainId:r,destinationBlockchainId:s,to:a,from:o,network:n}){return this.httpRequest.request({method:"GET",url:"/v1/teleporter/messages",query:{pageToken:e,pageSize:t,sourceBlockchainId:r,destinationBlockchainId:s,to:a,from:o,network:n}})}}class b{constructor(e){this.httpRequest=e}createWebhook({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/v1/webhooks",body:e,mediaType:"application/json"})}listWebhooks({pageToken:e,pageSize:t=10,status:r}){return this.httpRequest.request({method:"GET",url:"/v1/webhooks",query:{pageToken:e,pageSize:t,status:r}})}getWebhook({id:e}){return this.httpRequest.request({method:"GET",url:"/v1/webhooks/{id}",path:{id:e}})}deactivateWebhook({id:e}){return this.httpRequest.request({method:"DELETE",url:"/v1/webhooks/{id}",path:{id:e}})}updateWebhook({id:e,requestBody:t}){return this.httpRequest.request({method:"PATCH",url:"/v1/webhooks/{id}",path:{id:e},body:t,mediaType:"application/json"})}generateSharedSecret(){return this.httpRequest.request({method:"POST",url:"/v1/webhooks:generateOrRotateSharedSecret"})}getSharedSecret(){return this.httpRequest.request({method:"GET",url:"/v1/webhooks:getSharedSecret"})}addAddressesToWebhook({id:e,requestBody:t}){return this.httpRequest.request({method:"PATCH",url:"/v1/webhooks/{id}/addresses",path:{id:e},body:t,mediaType:"application/json"})}removeAddressesFromWebhook({id:e,requestBody:t}){return this.httpRequest.request({method:"DELETE",url:"/v1/webhooks/{id}/addresses",path:{id:e},body:t,mediaType:"application/json"})}getAddressesFromWebhook({id:e,pageToken:t,pageSize:r=10}){return this.httpRequest.request({method:"GET",url:"/v1/webhooks/{id}/addresses",path:{id:e},query:{pageToken:t,pageSize:r}})}}var B,P;exports.ActiveDelegatorDetails=void 0,((B=exports.ActiveDelegatorDetails||(exports.ActiveDelegatorDetails={})).delegationStatus||(B.delegationStatus={})).ACTIVE="active",exports.ActiveValidatorDetails=void 0,((P=exports.ActiveValidatorDetails||(exports.ActiveValidatorDetails={})).validationStatus||(P.validationStatus={})).ACTIVE="active";var L,V,M=(e=>(e._11111111111111111111111111111111LPO_YY="11111111111111111111111111111111LpoYY",e._2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M="2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",e._2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM="2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",e._2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5="2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",e.Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP="yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",e.P_CHAIN="p-chain",e.X_CHAIN="x-chain",e.C_CHAIN="c-chain",e))(M||{}),U=(e=>(e._11111111111111111111111111111111LPO_YY="11111111111111111111111111111111LpoYY",e._2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M="2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",e._2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM="2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",e._2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5="2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",e.Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP="yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",e))(U||{});exports.CChainExportTransaction=void 0,((L=exports.CChainExportTransaction||(exports.CChainExportTransaction={})).txType||(L.txType={})).EXPORT_TX="ExportTx",exports.CChainImportTransaction=void 0,((V=exports.CChainImportTransaction||(exports.CChainImportTransaction={})).txType||(V.txType={})).IMPORT_TX="ImportTx";var G,f,H,X,K,W,z=(e=>(e.OK="OK",e.UNAVAILABLE="UNAVAILABLE",e))(z||{});exports.CompletedDelegatorDetails=void 0,((G=exports.CompletedDelegatorDetails||(exports.CompletedDelegatorDetails={})).delegationStatus||(G.delegationStatus={})).COMPLETED="completed",exports.CompletedValidatorDetails=void 0,((f=exports.CompletedValidatorDetails||(exports.CompletedValidatorDetails={})).validationStatus||(f.validationStatus={})).COMPLETED="completed",exports.ContractSubmissionErc1155=void 0,((H=exports.ContractSubmissionErc1155||(exports.ContractSubmissionErc1155={})).ercType||(H.ercType={})).ERC_1155="ERC-1155",exports.ContractSubmissionErc20=void 0,((X=exports.ContractSubmissionErc20||(exports.ContractSubmissionErc20={})).ercType||(X.ercType={})).ERC_20="ERC-20",exports.ContractSubmissionErc721=void 0,((K=exports.ContractSubmissionErc721||(exports.ContractSubmissionErc721={})).ercType||(K.ercType={})).ERC_721="ERC-721",exports.ContractSubmissionUnknown=void 0,((W=exports.ContractSubmissionUnknown||(exports.ContractSubmissionUnknown={})).ercType||(W.ercType={})).UNKNOWN="UNKNOWN";var Y,F,J,j,Q,$,Z,ee,te,re,se,ae=(e=>(e.USD="usd",e.EUR="eur",e.AUD="aud",e.CAD="cad",e.CHF="chf",e.CLP="clp",e.CNY="cny",e.CZK="czk",e.DKK="dkk",e.GBP="gbp",e.HKD="hkd",e.HUF="huf",e.JPY="jpy",e.NZD="nzd",e))(ae||{}),oe=(e=>(e.COMPLETED="completed",e.ACTIVE="active",e.PENDING="pending",e))(oe||{});exports.DeliveredSourceNotIndexedTeleporterMessage=void 0,((Y=exports.DeliveredSourceNotIndexedTeleporterMessage||(exports.DeliveredSourceNotIndexedTeleporterMessage={})).status||(Y.status={})).DELIVERED_SOURCE_NOT_INDEXED="delivered_source_not_indexed",exports.DeliveredTeleporterMessage=void 0,((F=exports.DeliveredTeleporterMessage||(exports.DeliveredTeleporterMessage={})).status||(F.status={})).DELIVERED="delivered",exports.Erc1155Contract=void 0,((J=exports.Erc1155Contract||(exports.Erc1155Contract={})).ercType||(J.ercType={})).ERC_1155="ERC-1155",exports.Erc1155Token=void 0,((j=exports.Erc1155Token||(exports.Erc1155Token={})).ercType||(j.ercType={})).ERC_1155="ERC-1155",exports.Erc1155TokenBalance=void 0,((Q=exports.Erc1155TokenBalance||(exports.Erc1155TokenBalance={})).ercType||(Q.ercType={})).ERC_1155="ERC-1155",exports.Erc20Contract=void 0,(($=exports.Erc20Contract||(exports.Erc20Contract={})).ercType||($.ercType={})).ERC_20="ERC-20",exports.Erc20Token=void 0,((Z=exports.Erc20Token||(exports.Erc20Token={})).ercType||(Z.ercType={})).ERC_20="ERC-20",exports.Erc20TokenBalance=void 0,((ee=exports.Erc20TokenBalance||(exports.Erc20TokenBalance={})).ercType||(ee.ercType={})).ERC_20="ERC-20",exports.Erc721Contract=void 0,((te=exports.Erc721Contract||(exports.Erc721Contract={})).ercType||(te.ercType={})).ERC_721="ERC-721",exports.Erc721Token=void 0,((re=exports.Erc721Token||(exports.Erc721Token={})).ercType||(re.ercType={})).ERC_721="ERC-721",exports.Erc721TokenBalance=void 0,((se=exports.Erc721TokenBalance||(exports.Erc721TokenBalance={})).ercType||(se.ercType={})).ERC_721="ERC-721";var ne,ie,de,ce=(e=>(e.ADDRESS_ACTIVITY="address_activity",e))(ce||{}),pe=(e=>(e.TRANSACTION_EXPORT_EVM="TRANSACTION_EXPORT_EVM",e))(pe||{}),he=(e=>(e.NFT_INDEXING="nftIndexing",e.WEBHOOKS="webhooks",e))(he||{}),Te=(e=>(e.UNKNOWN="UNKNOWN",e.CALL="CALL",e.CREATE="CREATE",e.CREATE2="CREATE2",e.CALLCODE="CALLCODE",e.DELEGATECALL="DELEGATECALL",e.STATICCALL="STATICCALL",e))(Te||{}),le=(e=>(e.MAINNET="mainnet",e.FUJI="fuji",e))(le||{}),ue=(e=>(e.MAINNET="mainnet",e.TESTNET="testnet",e))(ue||{}),Ee=(e=>(e.UNKNOWN="UNKNOWN",e.MISSING_TOKEN="MISSING_TOKEN",e.INVALID_TOKEN_URI="INVALID_TOKEN_URI",e.INVALID_TOKEN_URI_SCHEME="INVALID_TOKEN_URI_SCHEME",e.UNREACHABLE_TOKEN_URI="UNREACHABLE_TOKEN_URI",e.THROTTLED_TOKEN_URI="THROTTLED_TOKEN_URI",e.METADATA_CONTENT_TOO_LARGE="METADATA_CONTENT_TOO_LARGE",e.INVALID_METADATA="INVALID_METADATA",e.INVALID_METADATA_JSON="INVALID_METADATA_JSON",e.INDEXED="INDEXED",e.UNINDEXED="UNINDEXED",e))(Ee||{}),Ie=(e=>(e.RUNNING="RUNNING",e.COMPLETED="COMPLETED",e.COMPLETED_WITH_WARNING="COMPLETED_WITH_WARNING",e.FAILED="FAILED",e))(Ie||{}),ke=(e=>(e.ERR_INVALID_REQUEST="ErrInvalidRequest",e.ERR_INTERNAL="ErrInternal",e.WARN_TRUNCATED_EXPORT="WarnTruncatedExport",e))(ke||{}),Re=(e=>(e.TRANSACTION_EXPORT_PRIMARY_NETWORK="TRANSACTION_EXPORT_PRIMARY_NETWORK",e.TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING="TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",e.TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE="TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",e.TRANSACTION_EXPORT_EVM="TRANSACTION_EXPORT_EVM",e))(Re||{}),Ne=(e=>(e._11111111111111111111111111111111LPO_YY="11111111111111111111111111111111LpoYY",e.P_CHAIN="p-chain",e))(Ne||{}),Ae=(e=>(e.ADD_VALIDATOR_TX="AddValidatorTx",e.ADD_SUBNET_VALIDATOR_TX="AddSubnetValidatorTx",e.ADD_DELEGATOR_TX="AddDelegatorTx",e.CREATE_CHAIN_TX="CreateChainTx",e.CREATE_SUBNET_TX="CreateSubnetTx",e.IMPORT_TX="ImportTx",e.EXPORT_TX="ExportTx",e.ADVANCE_TIME_TX="AdvanceTimeTx",e.REWARD_VALIDATOR_TX="RewardValidatorTx",e.REMOVE_SUBNET_VALIDATOR_TX="RemoveSubnetValidatorTx",e.TRANSFORM_SUBNET_TX="TransformSubnetTx",e.ADD_PERMISSIONLESS_VALIDATOR_TX="AddPermissionlessValidatorTx",e.ADD_PERMISSIONLESS_DELEGATOR_TX="AddPermissionlessDelegatorTx",e.BASE_TX="BaseTx",e.TRANSFER_SUBNET_OWNERSHIP_TX="TransferSubnetOwnershipTx",e.UNKNOWN="UNKNOWN",e))(Ae||{});exports.PendingDelegatorDetails=void 0,((ne=exports.PendingDelegatorDetails||(exports.PendingDelegatorDetails={})).delegationStatus||(ne.delegationStatus={})).PENDING="pending",exports.PendingTeleporterMessage=void 0,((ie=exports.PendingTeleporterMessage||(exports.PendingTeleporterMessage={})).status||(ie.status={})).PENDING="pending",exports.PendingValidatorDetails=void 0,((de=exports.PendingValidatorDetails||(exports.PendingValidatorDetails={})).validationStatus||(de.validationStatus={})).PENDING="pending";var me,Se=(e=>(e.MAINNET="mainnet",e.FUJI="fuji",e))(Se||{}),_e=(e=>(e.FIXED="fixed",e.VARIABLE="variable",e))(_e||{}),Ce=(e=>(e.SECP256K1="secp256k1",e.NFT="nft",e))(Ce||{}),ge=(e=>(e.P_CHAIN="p-chain",e.X_CHAIN="x-chain",e.C_CHAIN="c-chain",e))(ge||{}),xe=(e=>(e.TRANSACTION_EXPORT_PRIMARY_NETWORK="TRANSACTION_EXPORT_PRIMARY_NETWORK",e.TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING="TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",e.TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE="TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",e))(xe||{}),ye=(e=>(e.ADD_VALIDATOR_TX="AddValidatorTx",e.ADD_SUBNET_VALIDATOR_TX="AddSubnetValidatorTx",e.ADD_DELEGATOR_TX="AddDelegatorTx",e.CREATE_CHAIN_TX="CreateChainTx",e.CREATE_SUBNET_TX="CreateSubnetTx",e.IMPORT_TX="ImportTx",e.EXPORT_TX="ExportTx",e.ADVANCE_TIME_TX="AdvanceTimeTx",e.REWARD_VALIDATOR_TX="RewardValidatorTx",e.REMOVE_SUBNET_VALIDATOR_TX="RemoveSubnetValidatorTx",e.TRANSFORM_SUBNET_TX="TransformSubnetTx",e.ADD_PERMISSIONLESS_VALIDATOR_TX="AddPermissionlessValidatorTx",e.ADD_PERMISSIONLESS_DELEGATOR_TX="AddPermissionlessDelegatorTx",e.BASE_TX="BaseTx",e.TRANSFER_SUBNET_OWNERSHIP_TX="TransferSubnetOwnershipTx",e.UNKNOWN="UNKNOWN",e.CREATE_ASSET_TX="CreateAssetTx",e.OPERATION_TX="OperationTx",e))(ye||{});exports.RemovedValidatorDetails=void 0,((me=exports.RemovedValidatorDetails||(exports.RemovedValidatorDetails={})).validationStatus||(me.validationStatus={})).REMOVED="removed";var Oe,qe=(e=>(e.GLACIER_API_REQUEST="Glacier API Request",e.GLACIER_RPC_REQUEST="Glacier RPC Request",e))(qe||{}),ve=(e=>(e.BLOG="Blog",e.COIN_GECKO="CoinGecko",e.COIN_MARKET_CAP="CoinMarketCap",e.DISCORD="Discord",e.DOCUMENTATION="Documentation",e.FACEBOOK="Facebook",e.GITHUB="Github",e.INSTAGRAM="Instagram",e.LINKED_IN="LinkedIn",e.MEDIUM="Medium",e.REDDIT="Reddit",e.SUPPORT="Support",e.TELEGRAM="Telegram",e.TIK_TOK="TikTok",e.TWITTER="Twitter",e.WEBSITE="Website",e.WHITEPAPER="Whitepaper",e.YOUTUBE="Youtube",e))(ve||{}),De=(e=>(e.VALIDATOR="VALIDATOR",e.DELEGATOR="DELEGATOR",e.VALIDATOR_FEE="VALIDATOR_FEE",e))(De||{}),we=(e=>(e.BLOCK_INDEX="blockIndex",e.DELEGATION_CAPACITY="delegationCapacity",e.TIME_REMAINING="timeRemaining",e.DELEGATION_FEE="delegationFee",e.UPTIME_PERFORMANCE="uptimePerformance",e))(we||{}),be=(e=>(e.ASC="asc",e.DESC="desc",e))(be||{});exports.TeleporterRewardDetails=void 0,((Oe=exports.TeleporterRewardDetails||(exports.TeleporterRewardDetails={})).ercType||(Oe.ercType={})).ERC_20="ERC-20";var Be,Pe=(e=>(e.MINUTE="minute",e.HOURLY="hourly",e.DAILY="daily",e.WEEKLY="weekly",e.MONTHLY="monthly",e))(Pe||{}),Le=(e=>(e.NATIVE_TRANSFER="NATIVE_TRANSFER",e.CONTRACT_CALL="CONTRACT_CALL",e.CONTRACT_CREATION="CONTRACT_CREATION",e))(Le||{}),Ve=(e=>(e.FAILED="failed",e.SUCCESS="success",e))(Ve||{});exports.UnknownContract=void 0,((Be=exports.UnknownContract||(exports.UnknownContract={})).ercType||(Be.ercType={})).UNKNOWN="UNKNOWN";var Me,Ue,Ge,fe=(e=>(e.REQUEST_PATH="requestPath",e.RESPONSE_CODE="responseCode",e.CHAIN_ID="chainId",e.API_KEY_ID="apiKeyId",e))(fe||{}),He=(e=>(e.STAKE="STAKE",e.TRANSFER="TRANSFER",e))(He||{}),Xe=(e=>(e.COMPLETED="completed",e.ACTIVE="active",e.PENDING="pending",e.REMOVED="removed",e))(Xe||{}),Ke=(e=>(e.EVM="EVM",e.BITCOIN="BITCOIN",e.ETHEREUM="ETHEREUM",e))(Ke||{}),We=(e=>(e.ACTIVE="active",e.INACTIVE="inactive",e))(We||{}),ze=(e=>(e.ACTIVE="active",e.INACTIVE="inactive",e))(ze||{}),Ye=(e=>(e._2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M="2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",e._2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM="2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",e.X_CHAIN="x-chain",e))(Ye||{});exports.XChainLinearTransaction=void 0,Me=exports.XChainLinearTransaction||(exports.XChainLinearTransaction={}),(Ue=Me.chainFormat||(Me.chainFormat={})).NON_LINEAR="non-linear",Ue.LINEAR="linear",exports.XChainNonLinearTransaction=void 0,(e=>{e.NON_LINEAR="non-linear",e.LINEAR="linear"})((Ge=exports.XChainNonLinearTransaction||(exports.XChainNonLinearTransaction={})).chainFormat||(Ge.chainFormat={}));var Fe=(e=>(e.BASE_TX="BaseTx",e.CREATE_ASSET_TX="CreateAssetTx",e.OPERATION_TX="OperationTx",e.IMPORT_TX="ImportTx",e.EXPORT_TX="ExportTx",e.UNKNOWN="UNKNOWN",e))(Fe||{});exports.ApiError=t,exports.BaseHttpRequest=e,exports.BlockchainId=M,exports.BlockchainIds=U,exports.CancelError=r,exports.CancelablePromise=s,exports.ChainStatus=z,exports.CurrencyCode=ae,exports.DefaultService=u,exports.DelegationStatusType=oe,exports.EVMOperationType=pe,exports.EventType=ce,exports.EvmBalancesService=E,exports.EvmBlocksService=I,exports.EvmChainsService=k,exports.EvmContractsService=R,exports.EvmTransactionsService=N,exports.Glacier=class{default;evmBalances;evmBlocks;evmChains;evmContracts;evmTransactions;glacierApiUsageMetrics;healthCheck;nfTs;operations;primaryNetwork;primaryNetworkBalances;primaryNetworkBlocks;primaryNetworkRewards;primaryNetworkTransactions;primaryNetworkUtxOs;primaryNetworkVertices;rpc;teleporter;webhooks;request;constructor(e,t=l){this.request=new t({BASE:e?.BASE??"https://glacier-api-dev.avax.network",VERSION:e?.VERSION??"Beta",WITH_CREDENTIALS:e?.WITH_CREDENTIALS??!1,CREDENTIALS:e?.CREDENTIALS??"include",TOKEN:e?.TOKEN,USERNAME:e?.USERNAME,PASSWORD:e?.PASSWORD,HEADERS:e?.HEADERS,ENCODE_PATH:e?.ENCODE_PATH}),this.default=new u(this.request),this.evmBalances=new E(this.request),this.evmBlocks=new I(this.request),this.evmChains=new k(this.request),this.evmContracts=new R(this.request),this.evmTransactions=new N(this.request),this.glacierApiUsageMetrics=new A(this.request),this.healthCheck=new m(this.request),this.nfTs=new S(this.request),this.operations=new _(this.request),this.primaryNetwork=new C(this.request),this.primaryNetworkBalances=new g(this.request),this.primaryNetworkBlocks=new x(this.request),this.primaryNetworkRewards=new y(this.request),this.primaryNetworkTransactions=new O(this.request),this.primaryNetworkUtxOs=new q(this.request),this.primaryNetworkVertices=new v(this.request),this.rpc=new D(this.request),this.teleporter=new w(this.request),this.webhooks=new b(this.request)}},exports.GlacierApiFeature=he,exports.GlacierApiUsageMetricsService=A,exports.HealthCheckService=m,exports.InternalTransactionOpCall=Te,exports.Network=le,exports.NetworkType=ue,exports.NfTsService=S,exports.NftTokenMetadataStatus=Ee,exports.OpenAPI={BASE:"https://glacier-api-dev.avax.network",VERSION:"Beta",WITH_CREDENTIALS:!1,CREDENTIALS:"include",TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0,ENCODE_PATH:void 0},exports.OperationStatus=Ie,exports.OperationStatusCode=ke,exports.OperationType=Re,exports.OperationsService=_,exports.PChainId=Ne,exports.PChainTransactionType=Ae,exports.PrimaryNetwork=Se,exports.PrimaryNetworkAssetCap=_e,exports.PrimaryNetworkAssetType=Ce,exports.PrimaryNetworkBalancesService=g,exports.PrimaryNetworkBlocksService=x,exports.PrimaryNetworkChainName=ge,exports.PrimaryNetworkOperationType=xe,exports.PrimaryNetworkRewardsService=y,exports.PrimaryNetworkService=C,exports.PrimaryNetworkTransactionsService=O,exports.PrimaryNetworkTxType=ye,exports.PrimaryNetworkUtxOsService=q,exports.PrimaryNetworkVerticesService=v,exports.RequestType=qe,exports.ResourceLinkType=ve,exports.RewardType=De,exports.RpcService=D,exports.SortByOption=we,exports.SortOrder=be,exports.TeleporterService=w,exports.TimeIntervalGranularityExtended=Pe,exports.TransactionMethodType=Le,exports.TransactionStatus=Ve,exports.UsageMetricsGroupByEnum=fe,exports.UtxoType=He,exports.ValidationStatusType=Xe,exports.VmName=Ke,exports.WebhookStatus=We,exports.WebhookStatusType=ze,exports.WebhooksService=b,exports.XChainId=Ye,exports.XChainTransactionType=Fe;
|
|
1
|
+
"use strict";class e{constructor(e){this.config=e}}class t extends Error{url;status;statusText;body;request;constructor(e,t,r){super(r),this.name="ApiError",this.url=t.url,this.status=t.status,this.statusText=t.statusText,this.body=t.body,this.request=e}}class r extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}}class s{#e;#t;#r;#s;#a;#o;#n;constructor(e){this.#e=!1,this.#t=!1,this.#r=!1,this.#s=[],this.#a=new Promise(((t,r)=>{this.#o=t,this.#n=r;const s=e=>{this.#e||this.#t||this.#r||this.#s.push(e)};return Object.defineProperty(s,"isResolved",{get:()=>this.#e}),Object.defineProperty(s,"isRejected",{get:()=>this.#t}),Object.defineProperty(s,"isCancelled",{get:()=>this.#r}),e((e=>{this.#e||this.#t||this.#r||(this.#e=!0,this.#o?.(e))}),(e=>{this.#e||this.#t||this.#r||(this.#t=!0,this.#n?.(e))}),s)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,t){return this.#a.then(e,t)}catch(e){return this.#a.catch(e)}finally(e){return this.#a.finally(e)}cancel(){if(!(this.#e||this.#t||this.#r)){if(this.#r=!0,this.#s.length)try{for(const e of this.#s)e()}catch(e){return void console.warn("Cancellation threw an error",e)}this.#s.length=0,this.#n?.(new r("Request aborted"))}}get isCancelled(){return this.#r}}const a=e=>null!=e,o=e=>"string"==typeof e,n=e=>o(e)&&""!==e,i=e=>"object"==typeof e&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.arrayBuffer&&"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag]),d=e=>e instanceof FormData,c=e=>{const t=[],r=(e,s)=>{a(s)&&(Array.isArray(s)?s.forEach((t=>{r(e,t)})):"object"==typeof s?Object.entries(s).forEach((([t,s])=>{r(`${e}[${t}]`,s)})):((e,r)=>{t.push(`${encodeURIComponent(e)}=${encodeURIComponent(String(r))}`)})(e,s))};return Object.entries(e).forEach((([e,t])=>{r(e,t)})),t.length>0?`?${t.join("&")}`:""},p=async(e,t)=>"function"==typeof t?t(e):t,h=async(e,t)=>{const r=await p(t,e.TOKEN),s=await p(t,e.USERNAME),c=await p(t,e.PASSWORD),h=await p(t,e.HEADERS),T=Object.entries({Accept:"application/json",...h,...t.headers}).filter((([e,t])=>a(t))).reduce(((e,[t,r])=>({...e,[t]:String(r)})),{});if(n(r)&&(T.Authorization=`Bearer ${r}`),n(s)&&n(c)){const e=(e=>{try{return btoa(e)}catch(t){return Buffer.from(e).toString("base64")}})(`${s}:${c}`);T.Authorization=`Basic ${e}`}return t.body&&(t.mediaType?T["Content-Type"]=t.mediaType:i(t.body)?T["Content-Type"]=t.body.type||"application/octet-stream":o(t.body)?T["Content-Type"]="text/plain":d(t.body)||(T["Content-Type"]="application/json")),new Headers(T)},T=(e,r)=>new s((async(s,n,p)=>{try{const n=((e,t)=>{const r=e.ENCODE_PATH||encodeURI,s=t.url.replace("{api-version}",e.VERSION).replace(/{(.*?)}/g,((e,s)=>t.path?.hasOwnProperty(s)?r(String(t.path[s])):e)),a=`${e.BASE}${s}`;return t.query?`${a}${c(t.query)}`:a})(e,r),T=(e=>{if(e.formData){const t=new FormData,r=(e,r)=>{o(r)||i(r)?t.append(e,r):t.append(e,JSON.stringify(r))};return Object.entries(e.formData).filter((([e,t])=>a(t))).forEach((([e,t])=>{Array.isArray(t)?t.forEach((t=>r(e,t))):r(e,t)})),t}})(r),l=(e=>{if(void 0!==e.body)return e.mediaType?.includes("/json")?JSON.stringify(e.body):o(e.body)||i(e.body)||d(e.body)?e.body:JSON.stringify(e.body)})(r),u=await h(e,r);if(!p.isCancelled){const a=await(async(e,t,r,s,a,o,n)=>{const i=new AbortController,d={headers:o,body:s??a,method:t.method,signal:i.signal};return e.WITH_CREDENTIALS&&(d.credentials=e.CREDENTIALS),n((()=>i.abort())),await fetch(r,d)})(e,r,n,l,T,u,p),i=await(async e=>{if(204!==e.status)try{const t=e.headers.get("Content-Type");if(t)return["application/json","application/problem+json"].some((e=>t.toLowerCase().startsWith(e)))?await e.json():await e.text()}catch(e){console.error(e)}})(a),d=((e,t)=>{if(t){const r=e.headers.get(t);if(o(r))return r}})(a,r.responseHeader),c={url:n,ok:a.ok,status:a.status,statusText:a.statusText,body:d??i};((e,r)=>{const s={400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable",...e.errors}[r.status];if(s)throw new t(e,r,s);if(!r.ok)throw new t(e,r,"Generic Error")})(r,c),s(c.body)}}catch(e){n(e)}}));class l extends e{constructor(e){super(e)}request(e){return T(this.config,e)}}class u{constructor(e){this.httpRequest=e}mediaControllerUploadImage(){return this.httpRequest.request({method:"POST",url:"/v1/media/uploadImage"})}}class E{constructor(e){this.httpRequest=e}getNativeBalance({chainId:e,address:t,blockNumber:r,currency:s}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/balances:getNative",path:{chainId:e,address:t},query:{blockNumber:r,currency:s}})}listErc20Balances({chainId:e,address:t,blockNumber:r,pageToken:s,pageSize:a=10,filterSpamTokens:o=!0,contractAddresses:n,currency:i}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/balances:listErc20",path:{chainId:e,address:t},query:{blockNumber:r,pageToken:s,pageSize:a,filterSpamTokens:o,contractAddresses:n,currency:i}})}listErc721Balances({chainId:e,address:t,pageToken:r,pageSize:s=10,contractAddress:a}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/balances:listErc721",path:{chainId:e,address:t},query:{pageToken:r,pageSize:s,contractAddress:a}})}listErc1155Balances({chainId:e,address:t,blockNumber:r,pageToken:s,pageSize:a=10,contractAddress:o}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/balances:listErc1155",path:{chainId:e,address:t},query:{blockNumber:r,pageToken:s,pageSize:a,contractAddress:o}})}listCollectibleBalances({chainId:e,address:t,pageToken:r,pageSize:s=10,contractAddress:a}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/balances:listCollectibles",path:{chainId:e,address:t},query:{pageToken:r,pageSize:s,contractAddress:a}})}}class I{constructor(e){this.httpRequest=e}getLatestBlocks({chainId:e,pageToken:t,pageSize:r=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/blocks",path:{chainId:e},query:{pageToken:t,pageSize:r}})}getBlock({chainId:e,blockId:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/blocks/{blockId}",path:{chainId:e,blockId:t}})}}class k{constructor(e){this.httpRequest=e}supportedChains({network:e,feature:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains",query:{network:e,feature:t}})}getChainInfo({chainId:e}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}",path:{chainId:e}})}}class R{constructor(e){this.httpRequest=e}getContractMetadata({chainId:e,address:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}",path:{chainId:e,address:t}})}updateContractInfo({chainId:e,address:t,requestBody:r}){return this.httpRequest.request({method:"PATCH",url:"/v1/chains/{chainId}/contracts/{address}",path:{chainId:e,address:t},body:r,mediaType:"application/json"})}}class N{constructor(e){this.httpRequest=e}getDeploymentTransaction({chainId:e,address:t,currency:r}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/contracts/{address}/transactions:getDeployment",path:{chainId:e,address:t},query:{currency:r}})}listContractDeployments({chainId:e,address:t,pageToken:r,pageSize:s=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/contracts/{address}/deployments",path:{chainId:e,address:t},query:{pageToken:r,pageSize:s}})}listTransfers({chainId:e,address:t,startBlock:r,endBlock:s,pageToken:a,pageSize:o=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/tokens/{address}/transfers",path:{chainId:e,address:t},query:{startBlock:r,endBlock:s,pageToken:a,pageSize:o}})}listTransactions({chainId:e,address:t,pageToken:r,pageSize:s=10,startBlock:a,endBlock:o,sortOrder:n}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions",path:{chainId:e,address:t},query:{pageToken:r,pageSize:s,startBlock:a,endBlock:o,sortOrder:n}})}listNativeTransactions({chainId:e,address:t,startBlock:r,endBlock:s,pageToken:a,pageSize:o=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listNative",path:{chainId:e,address:t},query:{startBlock:r,endBlock:s,pageToken:a,pageSize:o}})}listErc20Transactions({chainId:e,address:t,startBlock:r,endBlock:s,pageToken:a,pageSize:o=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc20",path:{chainId:e,address:t},query:{startBlock:r,endBlock:s,pageToken:a,pageSize:o}})}listErc721Transactions({chainId:e,address:t,startBlock:r,endBlock:s,pageToken:a,pageSize:o=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc721",path:{chainId:e,address:t},query:{startBlock:r,endBlock:s,pageToken:a,pageSize:o}})}listErc1155Transactions({chainId:e,address:t,startBlock:r,endBlock:s,pageToken:a,pageSize:o=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc1155",path:{chainId:e,address:t},query:{startBlock:r,endBlock:s,pageToken:a,pageSize:o}})}listInternalTransactions({chainId:e,address:t,startBlock:r,endBlock:s,pageToken:a,pageSize:o=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listInternals",path:{chainId:e,address:t},query:{startBlock:r,endBlock:s,pageToken:a,pageSize:o}})}getTransaction({chainId:e,txHash:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/transactions/{txHash}",path:{chainId:e,txHash:t}})}getTransactionsForBlock({chainId:e,blockId:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/blocks/{blockId}/transactions",path:{chainId:e,blockId:t}})}listLatestTransactions({chainId:e,pageToken:t,pageSize:r=10,status:s}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/transactions",path:{chainId:e},query:{pageToken:t,pageSize:r,status:s}})}}class A{constructor(e){this.httpRequest=e}getApiUsageMetrics({orgId:e,startTimestamp:t,endTimestamp:r,timeInterval:s,groupBy:a,requestPath:o,responseStatusCode:n,chainId:i,apiKeyId:d}){return this.httpRequest.request({method:"GET",url:"/v1/apiUsageMetrics",query:{orgId:e,startTimestamp:t,endTimestamp:r,timeInterval:s,groupBy:a,requestPath:o,responseStatusCode:n,chainId:i,apiKeyId:d}})}getApiLogss({orgId:e,startTimestamp:t,endTimestamp:r,pageToken:s,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/apiLogs",query:{orgId:e,startTimestamp:t,endTimestamp:r,pageToken:s,pageSize:a}})}}class m{constructor(e){this.httpRequest=e}healthCheck(){return this.httpRequest.request({method:"GET",url:"/v1/health-check",errors:{503:"The Health Check is not successful"}})}}class S{constructor(e){this.httpRequest=e}reindexNft({chainId:e,address:t,tokenId:r}){return this.httpRequest.request({method:"POST",url:"/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}:reindex",path:{chainId:e,address:t,tokenId:r}})}listTokens({chainId:e,address:t,pageToken:r,pageSize:s=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/nfts/collections/{address}/tokens",path:{chainId:e,address:t},query:{pageToken:r,pageSize:s}})}getTokenDetails({chainId:e,address:t,tokenId:r}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}",path:{chainId:e,address:t,tokenId:r}})}}class _{constructor(e){this.httpRequest=e}getOperationResult({operationId:e}){return this.httpRequest.request({method:"GET",url:"/v1/operations/{operationId}",path:{operationId:e}})}postTransactionExportJob({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/v1/operations/transactions:export",body:e,mediaType:"application/json"})}}class C{constructor(e){this.httpRequest=e}getAssetDetails({blockchainId:e,network:t,assetId:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}",path:{blockchainId:e,network:t,assetId:r}})}getChainIdsForAddresses({addresses:e,network:t}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/addresses:listChainIds",path:{network:t},query:{addresses:e}})}getNetworkDetails({network:e}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}",path:{network:e}})}listBlockchains({network:e,pageToken:t,pageSize:r=10,sortOrder:s}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains",path:{network:e},query:{pageToken:t,pageSize:r,sortOrder:s}})}listSubnets({network:e,pageToken:t,pageSize:r=10,sortOrder:s}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnets",path:{network:e},query:{pageToken:t,pageSize:r,sortOrder:s}})}getSubnetById({network:e,subnetId:t}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnets/{subnetId}",path:{network:e,subnetId:t}})}listValidators({network:e,pageToken:t,pageSize:r=10,nodeIds:s,sortBy:a,sortOrder:o,validationStatus:n,minDelegationCapacity:i,maxDelegationCapacity:d,minTimeRemaining:c,maxTimeRemaining:p,minFeePercentage:h,maxFeePercentage:T,minUptimePerformance:l,maxUptimePerformance:u,subnetId:E}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators",path:{network:e},query:{pageToken:t,pageSize:r,nodeIds:s,sortBy:a,sortOrder:o,validationStatus:n,minDelegationCapacity:i,maxDelegationCapacity:d,minTimeRemaining:c,maxTimeRemaining:p,minFeePercentage:h,maxFeePercentage:T,minUptimePerformance:l,maxUptimePerformance:u,subnetId:E}})}getSingleValidatorDetails({network:e,nodeId:t,pageToken:r,pageSize:s=10,validationStatus:a,sortOrder:o}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators/{nodeId}",path:{network:e,nodeId:t},query:{pageToken:r,pageSize:s,validationStatus:a,sortOrder:o}})}listDelegators({network:e,pageToken:t,pageSize:r=10,rewardAddresses:s,sortOrder:a,delegationStatus:o,nodeIds:n}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/delegators",path:{network:e},query:{pageToken:t,pageSize:r,rewardAddresses:s,sortOrder:a,delegationStatus:o,nodeIds:n}})}}class g{constructor(e){this.httpRequest=e}getBalancesByAddresses({blockchainId:e,network:t,blockTimestamp:r,addresses:s}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/balances",path:{blockchainId:e,network:t},query:{blockTimestamp:r,addresses:s}})}}class x{constructor(e){this.httpRequest=e}getBlockById({blockchainId:e,network:t,blockId:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/blocks/{blockId}",path:{blockchainId:e,network:t,blockId:r}})}listPrimaryNetworkBlocksByNodeId({blockchainId:e,network:t,nodeId:r,pageToken:s,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/nodes/{nodeId}/blocks",path:{blockchainId:e,network:t,nodeId:r},query:{pageToken:s,pageSize:a}})}listLatestPrimaryNetworkBlocks({blockchainId:e,network:t,pageToken:r,pageSize:s=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/blocks",path:{blockchainId:e,network:t},query:{pageToken:r,pageSize:s}})}}class y{constructor(e){this.httpRequest=e}listPendingPrimaryNetworkRewards({network:e,addresses:t,pageToken:r,pageSize:s=10,nodeIds:a,sortOrder:o}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/rewards:listPending",path:{network:e},query:{addresses:t,pageToken:r,pageSize:s,nodeIds:a,sortOrder:o}})}listHistoricalPrimaryNetworkRewards({network:e,addresses:t,pageToken:r,pageSize:s=10,nodeIds:a,sortOrder:o,currency:n}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/rewards",path:{network:e},query:{addresses:t,pageToken:r,pageSize:s,nodeIds:a,sortOrder:o,currency:n}})}}class O{constructor(e){this.httpRequest=e}getTxByHash({blockchainId:e,network:t,txHash:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/transactions/{txHash}",path:{blockchainId:e,network:t,txHash:r}})}listLatestPrimaryNetworkTransactions({blockchainId:e,network:t,addresses:r,txTypes:s,startTimestamp:a,endTimestamp:o,pageToken:n,pageSize:i=10,sortOrder:d}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/transactions",path:{blockchainId:e,network:t},query:{addresses:r,txTypes:s,startTimestamp:a,endTimestamp:o,pageToken:n,pageSize:i,sortOrder:d}})}listActivePrimaryNetworkStakingTransactions({blockchainId:e,network:t,addresses:r,txTypes:s,startTimestamp:a,endTimestamp:o,pageToken:n,pageSize:i=10,sortOrder:d}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/transactions:listStaking",path:{blockchainId:e,network:t},query:{addresses:r,txTypes:s,startTimestamp:a,endTimestamp:o,pageToken:n,pageSize:i,sortOrder:d}})}listAssetTransactions({blockchainId:e,network:t,assetId:r,txTypes:s,startTimestamp:a,endTimestamp:o,pageToken:n,pageSize:i=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}/transactions",path:{blockchainId:e,network:t,assetId:r},query:{txTypes:s,startTimestamp:a,endTimestamp:o,pageToken:n,pageSize:i}})}}class q{constructor(e){this.httpRequest=e}getUtxosByAddresses({blockchainId:e,network:t,addresses:r,pageToken:s,pageSize:a=10,assetId:o,includeSpent:n,sortOrder:i}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/utxos",path:{blockchainId:e,network:t},query:{addresses:r,pageToken:s,pageSize:a,assetId:o,includeSpent:n,sortOrder:i}})}}class v{constructor(e){this.httpRequest=e}listLatestXChainVertices({blockchainId:e,network:t,pageToken:r,pageSize:s=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/vertices",path:{blockchainId:e,network:t},query:{pageToken:r,pageSize:s}})}getVertexByHash({vertexHash:e,blockchainId:t,network:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/vertices/{vertexHash}",path:{vertexHash:e,blockchainId:t,network:r}})}getVertexByHeight({vertexHeight:e,blockchainId:t,network:r,pageToken:s,pageSize:a=10,sortOrder:o}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/vertices:listByHeight",path:{blockchainId:t,network:r},query:{vertexHeight:e,pageToken:s,pageSize:a,sortOrder:o}})}}class D{constructor(e){this.httpRequest=e}rpc({chainId:e,requestBody:t}){return this.httpRequest.request({method:"POST",url:"/v1/ext/bc/{chainId}/rpc",path:{chainId:e},body:t,mediaType:"application/json",errors:{504:"Request timed out"}})}}class w{constructor(e){this.httpRequest=e}getTeleporterMessage({messageId:e}){return this.httpRequest.request({method:"GET",url:"/v1/teleporter/messages/{messageId}",path:{messageId:e}})}listTeleporterMessages({pageToken:e,pageSize:t=10,sourceBlockchainId:r,destinationBlockchainId:s,blockchainId:a,to:o,from:n,network:i}){return this.httpRequest.request({method:"GET",url:"/v1/teleporter/messages",query:{pageToken:e,pageSize:t,sourceBlockchainId:r,destinationBlockchainId:s,blockchainId:a,to:o,from:n,network:i}})}}class b{constructor(e){this.httpRequest=e}createWebhook({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/v1/webhooks",body:e,mediaType:"application/json"})}listWebhooks({pageToken:e,pageSize:t=10,status:r}){return this.httpRequest.request({method:"GET",url:"/v1/webhooks",query:{pageToken:e,pageSize:t,status:r}})}getWebhook({id:e}){return this.httpRequest.request({method:"GET",url:"/v1/webhooks/{id}",path:{id:e}})}deactivateWebhook({id:e}){return this.httpRequest.request({method:"DELETE",url:"/v1/webhooks/{id}",path:{id:e}})}updateWebhook({id:e,requestBody:t}){return this.httpRequest.request({method:"PATCH",url:"/v1/webhooks/{id}",path:{id:e},body:t,mediaType:"application/json"})}generateSharedSecret(){return this.httpRequest.request({method:"POST",url:"/v1/webhooks:generateOrRotateSharedSecret"})}getSharedSecret(){return this.httpRequest.request({method:"GET",url:"/v1/webhooks:getSharedSecret"})}addAddressesToWebhook({id:e,requestBody:t}){return this.httpRequest.request({method:"PATCH",url:"/v1/webhooks/{id}/addresses",path:{id:e},body:t,mediaType:"application/json"})}removeAddressesFromWebhook({id:e,requestBody:t}){return this.httpRequest.request({method:"DELETE",url:"/v1/webhooks/{id}/addresses",path:{id:e},body:t,mediaType:"application/json"})}getAddressesFromWebhook({id:e,pageToken:t,pageSize:r=10}){return this.httpRequest.request({method:"GET",url:"/v1/webhooks/{id}/addresses",path:{id:e},query:{pageToken:t,pageSize:r}})}}var B,P;exports.ActiveDelegatorDetails=void 0,((B=exports.ActiveDelegatorDetails||(exports.ActiveDelegatorDetails={})).delegationStatus||(B.delegationStatus={})).ACTIVE="active",exports.ActiveValidatorDetails=void 0,((P=exports.ActiveValidatorDetails||(exports.ActiveValidatorDetails={})).validationStatus||(P.validationStatus={})).ACTIVE="active";var L,V,M=(e=>(e._11111111111111111111111111111111LPO_YY="11111111111111111111111111111111LpoYY",e._2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M="2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",e._2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM="2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",e._2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5="2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",e.Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP="yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",e.P_CHAIN="p-chain",e.X_CHAIN="x-chain",e.C_CHAIN="c-chain",e))(M||{}),U=(e=>(e._11111111111111111111111111111111LPO_YY="11111111111111111111111111111111LpoYY",e._2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M="2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",e._2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM="2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",e._2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5="2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",e.Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP="yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",e))(U||{});exports.CChainExportTransaction=void 0,((L=exports.CChainExportTransaction||(exports.CChainExportTransaction={})).txType||(L.txType={})).EXPORT_TX="ExportTx",exports.CChainImportTransaction=void 0,((V=exports.CChainImportTransaction||(exports.CChainImportTransaction={})).txType||(V.txType={})).IMPORT_TX="ImportTx";var G,f,H,X,K,W,z=(e=>(e.OK="OK",e.UNAVAILABLE="UNAVAILABLE",e))(z||{});exports.CompletedDelegatorDetails=void 0,((G=exports.CompletedDelegatorDetails||(exports.CompletedDelegatorDetails={})).delegationStatus||(G.delegationStatus={})).COMPLETED="completed",exports.CompletedValidatorDetails=void 0,((f=exports.CompletedValidatorDetails||(exports.CompletedValidatorDetails={})).validationStatus||(f.validationStatus={})).COMPLETED="completed",exports.ContractSubmissionErc1155=void 0,((H=exports.ContractSubmissionErc1155||(exports.ContractSubmissionErc1155={})).ercType||(H.ercType={})).ERC_1155="ERC-1155",exports.ContractSubmissionErc20=void 0,((X=exports.ContractSubmissionErc20||(exports.ContractSubmissionErc20={})).ercType||(X.ercType={})).ERC_20="ERC-20",exports.ContractSubmissionErc721=void 0,((K=exports.ContractSubmissionErc721||(exports.ContractSubmissionErc721={})).ercType||(K.ercType={})).ERC_721="ERC-721",exports.ContractSubmissionUnknown=void 0,((W=exports.ContractSubmissionUnknown||(exports.ContractSubmissionUnknown={})).ercType||(W.ercType={})).UNKNOWN="UNKNOWN";var Y,F,J,j,Q,$,Z,ee,te,re,se,ae=(e=>(e.USD="usd",e.EUR="eur",e.AUD="aud",e.CAD="cad",e.CHF="chf",e.CLP="clp",e.CNY="cny",e.CZK="czk",e.DKK="dkk",e.GBP="gbp",e.HKD="hkd",e.HUF="huf",e.JPY="jpy",e.NZD="nzd",e))(ae||{}),oe=(e=>(e.COMPLETED="completed",e.ACTIVE="active",e.PENDING="pending",e))(oe||{});exports.DeliveredSourceNotIndexedTeleporterMessage=void 0,((Y=exports.DeliveredSourceNotIndexedTeleporterMessage||(exports.DeliveredSourceNotIndexedTeleporterMessage={})).status||(Y.status={})).DELIVERED_SOURCE_NOT_INDEXED="delivered_source_not_indexed",exports.DeliveredTeleporterMessage=void 0,((F=exports.DeliveredTeleporterMessage||(exports.DeliveredTeleporterMessage={})).status||(F.status={})).DELIVERED="delivered",exports.Erc1155Contract=void 0,((J=exports.Erc1155Contract||(exports.Erc1155Contract={})).ercType||(J.ercType={})).ERC_1155="ERC-1155",exports.Erc1155Token=void 0,((j=exports.Erc1155Token||(exports.Erc1155Token={})).ercType||(j.ercType={})).ERC_1155="ERC-1155",exports.Erc1155TokenBalance=void 0,((Q=exports.Erc1155TokenBalance||(exports.Erc1155TokenBalance={})).ercType||(Q.ercType={})).ERC_1155="ERC-1155",exports.Erc20Contract=void 0,(($=exports.Erc20Contract||(exports.Erc20Contract={})).ercType||($.ercType={})).ERC_20="ERC-20",exports.Erc20Token=void 0,((Z=exports.Erc20Token||(exports.Erc20Token={})).ercType||(Z.ercType={})).ERC_20="ERC-20",exports.Erc20TokenBalance=void 0,((ee=exports.Erc20TokenBalance||(exports.Erc20TokenBalance={})).ercType||(ee.ercType={})).ERC_20="ERC-20",exports.Erc721Contract=void 0,((te=exports.Erc721Contract||(exports.Erc721Contract={})).ercType||(te.ercType={})).ERC_721="ERC-721",exports.Erc721Token=void 0,((re=exports.Erc721Token||(exports.Erc721Token={})).ercType||(re.ercType={})).ERC_721="ERC-721",exports.Erc721TokenBalance=void 0,((se=exports.Erc721TokenBalance||(exports.Erc721TokenBalance={})).ercType||(se.ercType={})).ERC_721="ERC-721";var ne,ie,de,ce=(e=>(e.ADDRESS_ACTIVITY="address_activity",e))(ce||{}),pe=(e=>(e.TRANSACTION_EXPORT_EVM="TRANSACTION_EXPORT_EVM",e))(pe||{}),he=(e=>(e.NFT_INDEXING="nftIndexing",e.WEBHOOKS="webhooks",e))(he||{}),Te=(e=>(e.UNKNOWN="UNKNOWN",e.CALL="CALL",e.CREATE="CREATE",e.CREATE2="CREATE2",e.CALLCODE="CALLCODE",e.DELEGATECALL="DELEGATECALL",e.STATICCALL="STATICCALL",e))(Te||{}),le=(e=>(e.MAINNET="mainnet",e.FUJI="fuji",e))(le||{}),ue=(e=>(e.MAINNET="mainnet",e.TESTNET="testnet",e))(ue||{}),Ee=(e=>(e.UNKNOWN="UNKNOWN",e.MISSING_TOKEN="MISSING_TOKEN",e.INVALID_TOKEN_URI="INVALID_TOKEN_URI",e.INVALID_TOKEN_URI_SCHEME="INVALID_TOKEN_URI_SCHEME",e.UNREACHABLE_TOKEN_URI="UNREACHABLE_TOKEN_URI",e.THROTTLED_TOKEN_URI="THROTTLED_TOKEN_URI",e.METADATA_CONTENT_TOO_LARGE="METADATA_CONTENT_TOO_LARGE",e.INVALID_METADATA="INVALID_METADATA",e.INVALID_METADATA_JSON="INVALID_METADATA_JSON",e.INDEXED="INDEXED",e.UNINDEXED="UNINDEXED",e))(Ee||{}),Ie=(e=>(e.RUNNING="RUNNING",e.COMPLETED="COMPLETED",e.COMPLETED_WITH_WARNING="COMPLETED_WITH_WARNING",e.FAILED="FAILED",e))(Ie||{}),ke=(e=>(e.ERR_INVALID_REQUEST="ErrInvalidRequest",e.ERR_INTERNAL="ErrInternal",e.WARN_TRUNCATED_EXPORT="WarnTruncatedExport",e))(ke||{}),Re=(e=>(e.TRANSACTION_EXPORT_PRIMARY_NETWORK="TRANSACTION_EXPORT_PRIMARY_NETWORK",e.TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING="TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",e.TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE="TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",e.TRANSACTION_EXPORT_EVM="TRANSACTION_EXPORT_EVM",e))(Re||{}),Ne=(e=>(e._11111111111111111111111111111111LPO_YY="11111111111111111111111111111111LpoYY",e.P_CHAIN="p-chain",e))(Ne||{}),Ae=(e=>(e.ADD_VALIDATOR_TX="AddValidatorTx",e.ADD_SUBNET_VALIDATOR_TX="AddSubnetValidatorTx",e.ADD_DELEGATOR_TX="AddDelegatorTx",e.CREATE_CHAIN_TX="CreateChainTx",e.CREATE_SUBNET_TX="CreateSubnetTx",e.IMPORT_TX="ImportTx",e.EXPORT_TX="ExportTx",e.ADVANCE_TIME_TX="AdvanceTimeTx",e.REWARD_VALIDATOR_TX="RewardValidatorTx",e.REMOVE_SUBNET_VALIDATOR_TX="RemoveSubnetValidatorTx",e.TRANSFORM_SUBNET_TX="TransformSubnetTx",e.ADD_PERMISSIONLESS_VALIDATOR_TX="AddPermissionlessValidatorTx",e.ADD_PERMISSIONLESS_DELEGATOR_TX="AddPermissionlessDelegatorTx",e.BASE_TX="BaseTx",e.TRANSFER_SUBNET_OWNERSHIP_TX="TransferSubnetOwnershipTx",e.UNKNOWN="UNKNOWN",e))(Ae||{});exports.PendingDelegatorDetails=void 0,((ne=exports.PendingDelegatorDetails||(exports.PendingDelegatorDetails={})).delegationStatus||(ne.delegationStatus={})).PENDING="pending",exports.PendingTeleporterMessage=void 0,((ie=exports.PendingTeleporterMessage||(exports.PendingTeleporterMessage={})).status||(ie.status={})).PENDING="pending",exports.PendingValidatorDetails=void 0,((de=exports.PendingValidatorDetails||(exports.PendingValidatorDetails={})).validationStatus||(de.validationStatus={})).PENDING="pending";var me,Se=(e=>(e.MAINNET="mainnet",e.FUJI="fuji",e))(Se||{}),_e=(e=>(e.FIXED="fixed",e.VARIABLE="variable",e))(_e||{}),Ce=(e=>(e.SECP256K1="secp256k1",e.NFT="nft",e))(Ce||{}),ge=(e=>(e.P_CHAIN="p-chain",e.X_CHAIN="x-chain",e.C_CHAIN="c-chain",e))(ge||{}),xe=(e=>(e.TRANSACTION_EXPORT_PRIMARY_NETWORK="TRANSACTION_EXPORT_PRIMARY_NETWORK",e.TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING="TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",e.TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE="TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",e))(xe||{}),ye=(e=>(e.ADD_VALIDATOR_TX="AddValidatorTx",e.ADD_SUBNET_VALIDATOR_TX="AddSubnetValidatorTx",e.ADD_DELEGATOR_TX="AddDelegatorTx",e.CREATE_CHAIN_TX="CreateChainTx",e.CREATE_SUBNET_TX="CreateSubnetTx",e.IMPORT_TX="ImportTx",e.EXPORT_TX="ExportTx",e.ADVANCE_TIME_TX="AdvanceTimeTx",e.REWARD_VALIDATOR_TX="RewardValidatorTx",e.REMOVE_SUBNET_VALIDATOR_TX="RemoveSubnetValidatorTx",e.TRANSFORM_SUBNET_TX="TransformSubnetTx",e.ADD_PERMISSIONLESS_VALIDATOR_TX="AddPermissionlessValidatorTx",e.ADD_PERMISSIONLESS_DELEGATOR_TX="AddPermissionlessDelegatorTx",e.BASE_TX="BaseTx",e.TRANSFER_SUBNET_OWNERSHIP_TX="TransferSubnetOwnershipTx",e.UNKNOWN="UNKNOWN",e.CREATE_ASSET_TX="CreateAssetTx",e.OPERATION_TX="OperationTx",e))(ye||{});exports.RemovedValidatorDetails=void 0,((me=exports.RemovedValidatorDetails||(exports.RemovedValidatorDetails={})).validationStatus||(me.validationStatus={})).REMOVED="removed";var Oe,qe=(e=>(e.GLACIER_API_REQUEST="Glacier API Request",e.GLACIER_RPC_REQUEST="Glacier RPC Request",e))(qe||{}),ve=(e=>(e.BLOG="Blog",e.COIN_GECKO="CoinGecko",e.COIN_MARKET_CAP="CoinMarketCap",e.DISCORD="Discord",e.DOCUMENTATION="Documentation",e.FACEBOOK="Facebook",e.GITHUB="Github",e.INSTAGRAM="Instagram",e.LINKED_IN="LinkedIn",e.MEDIUM="Medium",e.REDDIT="Reddit",e.SUPPORT="Support",e.TELEGRAM="Telegram",e.TIK_TOK="TikTok",e.TWITTER="Twitter",e.WEBSITE="Website",e.WHITEPAPER="Whitepaper",e.YOUTUBE="Youtube",e))(ve||{}),De=(e=>(e.VALIDATOR="VALIDATOR",e.DELEGATOR="DELEGATOR",e.VALIDATOR_FEE="VALIDATOR_FEE",e))(De||{}),we=(e=>(e.BLOCK_INDEX="blockIndex",e.DELEGATION_CAPACITY="delegationCapacity",e.TIME_REMAINING="timeRemaining",e.DELEGATION_FEE="delegationFee",e.UPTIME_PERFORMANCE="uptimePerformance",e))(we||{}),be=(e=>(e.ASC="asc",e.DESC="desc",e))(be||{});exports.TeleporterRewardDetails=void 0,((Oe=exports.TeleporterRewardDetails||(exports.TeleporterRewardDetails={})).ercType||(Oe.ercType={})).ERC_20="ERC-20";var Be,Pe=(e=>(e.MINUTE="minute",e.HOURLY="hourly",e.DAILY="daily",e.WEEKLY="weekly",e.MONTHLY="monthly",e))(Pe||{}),Le=(e=>(e.NATIVE_TRANSFER="NATIVE_TRANSFER",e.CONTRACT_CALL="CONTRACT_CALL",e.CONTRACT_CREATION="CONTRACT_CREATION",e))(Le||{}),Ve=(e=>(e.FAILED="failed",e.SUCCESS="success",e))(Ve||{});exports.UnknownContract=void 0,((Be=exports.UnknownContract||(exports.UnknownContract={})).ercType||(Be.ercType={})).UNKNOWN="UNKNOWN";var Me,Ue,Ge,fe=(e=>(e.REQUEST_PATH="requestPath",e.RESPONSE_CODE="responseCode",e.CHAIN_ID="chainId",e.API_KEY_ID="apiKeyId",e))(fe||{}),He=(e=>(e.STAKE="STAKE",e.TRANSFER="TRANSFER",e))(He||{}),Xe=(e=>(e.COMPLETED="completed",e.ACTIVE="active",e.PENDING="pending",e.REMOVED="removed",e))(Xe||{}),Ke=(e=>(e.EVM="EVM",e.BITCOIN="BITCOIN",e.ETHEREUM="ETHEREUM",e))(Ke||{}),We=(e=>(e.ACTIVE="active",e.INACTIVE="inactive",e))(We||{}),ze=(e=>(e.ACTIVE="active",e.INACTIVE="inactive",e))(ze||{}),Ye=(e=>(e._2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M="2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",e._2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM="2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",e.X_CHAIN="x-chain",e))(Ye||{});exports.XChainLinearTransaction=void 0,Me=exports.XChainLinearTransaction||(exports.XChainLinearTransaction={}),(Ue=Me.chainFormat||(Me.chainFormat={})).NON_LINEAR="non-linear",Ue.LINEAR="linear",exports.XChainNonLinearTransaction=void 0,(e=>{e.NON_LINEAR="non-linear",e.LINEAR="linear"})((Ge=exports.XChainNonLinearTransaction||(exports.XChainNonLinearTransaction={})).chainFormat||(Ge.chainFormat={}));var Fe=(e=>(e.BASE_TX="BaseTx",e.CREATE_ASSET_TX="CreateAssetTx",e.OPERATION_TX="OperationTx",e.IMPORT_TX="ImportTx",e.EXPORT_TX="ExportTx",e.UNKNOWN="UNKNOWN",e))(Fe||{});exports.ApiError=t,exports.BaseHttpRequest=e,exports.BlockchainId=M,exports.BlockchainIds=U,exports.CancelError=r,exports.CancelablePromise=s,exports.ChainStatus=z,exports.CurrencyCode=ae,exports.DefaultService=u,exports.DelegationStatusType=oe,exports.EVMOperationType=pe,exports.EventType=ce,exports.EvmBalancesService=E,exports.EvmBlocksService=I,exports.EvmChainsService=k,exports.EvmContractsService=R,exports.EvmTransactionsService=N,exports.Glacier=class{default;evmBalances;evmBlocks;evmChains;evmContracts;evmTransactions;glacierApiUsageMetrics;healthCheck;nfTs;operations;primaryNetwork;primaryNetworkBalances;primaryNetworkBlocks;primaryNetworkRewards;primaryNetworkTransactions;primaryNetworkUtxOs;primaryNetworkVertices;rpc;teleporter;webhooks;request;constructor(e,t=l){this.request=new t({BASE:e?.BASE??"https://glacier-api-dev.avax.network",VERSION:e?.VERSION??"Beta",WITH_CREDENTIALS:e?.WITH_CREDENTIALS??!1,CREDENTIALS:e?.CREDENTIALS??"include",TOKEN:e?.TOKEN,USERNAME:e?.USERNAME,PASSWORD:e?.PASSWORD,HEADERS:e?.HEADERS,ENCODE_PATH:e?.ENCODE_PATH}),this.default=new u(this.request),this.evmBalances=new E(this.request),this.evmBlocks=new I(this.request),this.evmChains=new k(this.request),this.evmContracts=new R(this.request),this.evmTransactions=new N(this.request),this.glacierApiUsageMetrics=new A(this.request),this.healthCheck=new m(this.request),this.nfTs=new S(this.request),this.operations=new _(this.request),this.primaryNetwork=new C(this.request),this.primaryNetworkBalances=new g(this.request),this.primaryNetworkBlocks=new x(this.request),this.primaryNetworkRewards=new y(this.request),this.primaryNetworkTransactions=new O(this.request),this.primaryNetworkUtxOs=new q(this.request),this.primaryNetworkVertices=new v(this.request),this.rpc=new D(this.request),this.teleporter=new w(this.request),this.webhooks=new b(this.request)}},exports.GlacierApiFeature=he,exports.GlacierApiUsageMetricsService=A,exports.HealthCheckService=m,exports.InternalTransactionOpCall=Te,exports.Network=le,exports.NetworkType=ue,exports.NfTsService=S,exports.NftTokenMetadataStatus=Ee,exports.OpenAPI={BASE:"https://glacier-api-dev.avax.network",VERSION:"Beta",WITH_CREDENTIALS:!1,CREDENTIALS:"include",TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0,ENCODE_PATH:void 0},exports.OperationStatus=Ie,exports.OperationStatusCode=ke,exports.OperationType=Re,exports.OperationsService=_,exports.PChainId=Ne,exports.PChainTransactionType=Ae,exports.PrimaryNetwork=Se,exports.PrimaryNetworkAssetCap=_e,exports.PrimaryNetworkAssetType=Ce,exports.PrimaryNetworkBalancesService=g,exports.PrimaryNetworkBlocksService=x,exports.PrimaryNetworkChainName=ge,exports.PrimaryNetworkOperationType=xe,exports.PrimaryNetworkRewardsService=y,exports.PrimaryNetworkService=C,exports.PrimaryNetworkTransactionsService=O,exports.PrimaryNetworkTxType=ye,exports.PrimaryNetworkUtxOsService=q,exports.PrimaryNetworkVerticesService=v,exports.RequestType=qe,exports.ResourceLinkType=ve,exports.RewardType=De,exports.RpcService=D,exports.SortByOption=we,exports.SortOrder=be,exports.TeleporterService=w,exports.TimeIntervalGranularityExtended=Pe,exports.TransactionMethodType=Le,exports.TransactionStatus=Ve,exports.UsageMetricsGroupByEnum=fe,exports.UtxoType=He,exports.ValidationStatusType=Xe,exports.VmName=Ke,exports.WebhookStatus=We,exports.WebhookStatusType=ze,exports.WebhooksService=b,exports.XChainId=Ye,exports.XChainTransactionType=Fe;
|
|
@@ -27,7 +27,7 @@ declare class TeleporterService {
|
|
|
27
27
|
* @returns ListTeleporterMessagesResponse
|
|
28
28
|
* @throws ApiError
|
|
29
29
|
*/
|
|
30
|
-
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
|
|
30
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
31
31
|
/**
|
|
32
32
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
33
33
|
*/
|
|
@@ -44,6 +44,10 @@ declare class TeleporterService {
|
|
|
44
44
|
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
45
45
|
*/
|
|
46
46
|
destinationBlockchainId?: string;
|
|
47
|
+
/**
|
|
48
|
+
* The base58 encoded blockchain ID of either source or destination chain that one teleporter message interacts with.
|
|
49
|
+
*/
|
|
50
|
+
blockchainId?: string;
|
|
47
51
|
/**
|
|
48
52
|
* The address of the recipient of the teleporter message.
|
|
49
53
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
class e{constructor(e){this.httpRequest=e}getTeleporterMessage({messageId:e}){return this.httpRequest.request({method:"GET",url:"/v1/teleporter/messages/{messageId}",path:{messageId:e}})}listTeleporterMessages({pageToken:e,pageSize:t=10,sourceBlockchainId:s,destinationBlockchainId:r,to:
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}getTeleporterMessage({messageId:e}){return this.httpRequest.request({method:"GET",url:"/v1/teleporter/messages/{messageId}",path:{messageId:e}})}listTeleporterMessages({pageToken:e,pageSize:t=10,sourceBlockchainId:s,destinationBlockchainId:o,blockchainId:r,to:a,from:c,network:n}){return this.httpRequest.request({method:"GET",url:"/v1/teleporter/messages",query:{pageToken:e,pageSize:t,sourceBlockchainId:s,destinationBlockchainId:o,blockchainId:r,to:a,from:c,network:n}})}}export{e as TeleporterService};
|
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.3",
|
|
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",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"bugs": {
|
|
30
30
|
"url": "https://github.com/ava-labs/avalanche-sdks/issues"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "cd49646511f60604bcf45f4286cec2db7f7bc7db"
|
|
33
33
|
}
|