PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@stacks/transactions/node_modules/@stacks/network/dist

Просмотр файла: network.umd.production.min.js

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@stacks/common")):"function"==typeof define&&define.amd?define(["exports","@stacks/common"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self)["@stacks/network"]={},t.common)}(this,(function(t,n){"use strict";function e(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n}var o=function(){function t(){var t=this;this.version=n.TransactionVersion.Mainnet,this.chainId=n.ChainID.Mainnet,this.coreApiUrl="https://stacks-node-api.mainnet.stacks.co",this.bnsLookupUrl="https://core.blockstack.org",this.broadcastEndpoint="/v2/transactions",this.transferFeeEstimateEndpoint="/v2/fees/transfer",this.accountEndpoint="/v2/accounts",this.contractAbiEndpoint="/v2/contracts/interface",this.readOnlyFunctionCallEndpoint="/v2/contracts/call-read",this.isMainnet=function(){return t.version===n.TransactionVersion.Mainnet},this.getBroadcastApiUrl=function(){return""+t.coreApiUrl+t.broadcastEndpoint},this.getTransferFeeEstimateApiUrl=function(){return""+t.coreApiUrl+t.transferFeeEstimateEndpoint},this.getAccountApiUrl=function(n){return""+t.coreApiUrl+t.accountEndpoint+"/"+n+"?proof=0"},this.getAbiApiUrl=function(n,e){return""+t.coreApiUrl+t.contractAbiEndpoint+"/"+n+"/"+e},this.getReadOnlyFunctionCallApiUrl=function(n,e,o){return""+t.coreApiUrl+t.readOnlyFunctionCallEndpoint+"/"+n+"/"+e+"/"+encodeURIComponent(o)},this.getInfoUrl=function(){return t.coreApiUrl+"/v2/info"},this.getBlockTimeInfoUrl=function(){return t.coreApiUrl+"/extended/v1/info/network_block_times"},this.getPoxInfoUrl=function(){return t.coreApiUrl+"/v2/pox"},this.getStackerInfoUrl=function(n,e){return""+t.coreApiUrl+t.readOnlyFunctionCallEndpoint+"\n    "+n+"/"+e+"/get-stacker-info"}}return t.prototype.getNameInfo=function(t){return n.fetchPrivate(this.bnsLookupUrl+"/v1/names/"+t).then((function(t){if(404===t.status)throw new Error("Name not found");if(200!==t.status)throw new Error("Bad response status: "+t.status);return t.json()})).then((function(t){return t.address?Object.assign({},t,{address:t.address}):t}))},t}(),r=function(t){function o(){var e;return(e=t.apply(this,arguments)||this).version=n.TransactionVersion.Testnet,e.chainId=n.ChainID.Testnet,e.coreApiUrl="https://stacks-node-api.testnet.stacks.co",e}return e(o,t),o}(o),i=function(t){function o(){var e;return(e=t.apply(this,arguments)||this).version=n.TransactionVersion.Testnet,e.chainId=n.ChainID.Testnet,e.coreApiUrl="http://localhost:3999",e}return e(o,t),o}(o);t.StacksMainnet=o,t.StacksMocknet=i,t.StacksTestnet=r,Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=network.umd.production.min.js.map

Выполнить команду


Для локальной разработки. Не используйте в интернете!