ault-sdk-ts 0.4.1 → 0.4.2
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/README.md +1 -1
- package/dist/core/network.d.ts +1 -0
- package/dist/index.cjs +20 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +20 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1083,7 +1083,7 @@ import { getNetworkConfig, NETWORKS } from "ault-sdk-ts";
|
|
|
1083
1083
|
|
|
1084
1084
|
// Use predefined networks
|
|
1085
1085
|
const testnet = getNetworkConfig("ault_10904-1");
|
|
1086
|
-
const localnet = getNetworkConfig("
|
|
1086
|
+
const localnet = getNetworkConfig("ault_40904-1");
|
|
1087
1087
|
|
|
1088
1088
|
// Or define custom network
|
|
1089
1089
|
const customNetwork = {
|
package/dist/core/network.d.ts
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -643,7 +643,11 @@ var NETWORKS = {
|
|
|
643
643
|
rpcUrl: "https://mainnet-rpc-proxy.aultblockchain.xyz/cosmos-rpc",
|
|
644
644
|
restUrl: "https://mainnet-rpc-proxy.aultblockchain.xyz/rest",
|
|
645
645
|
evmRpcUrl: "https://mainnet-rpc-proxy.aultblockchain.xyz/evm",
|
|
646
|
+
// Plaintext h2c on 9090; the TLS endpoint (mainnet-grpc.cloud) needs IP whitelisting.
|
|
647
|
+
grpcUrl: "http://main-grpc.cloud.aultblockchain.xyz:9090",
|
|
646
648
|
explorerUrl: "https://ault.explorer.orynt.tech",
|
|
649
|
+
dexApiUrl: "https://am-api.cloud.aultblockchain.xyz",
|
|
650
|
+
dexWsUrl: "wss://am-api.cloud.aultblockchain.xyz/ws",
|
|
647
651
|
isProduction: true
|
|
648
652
|
},
|
|
649
653
|
"ault_10904-1": {
|
|
@@ -654,30 +658,35 @@ var NETWORKS = {
|
|
|
654
658
|
rpcUrl: "https://test-rpc.cloud.aultblockchain.xyz",
|
|
655
659
|
restUrl: "https://test-api.cloud.aultblockchain.xyz",
|
|
656
660
|
evmRpcUrl: "https://test-json-rpc.cloud.aultblockchain.xyz",
|
|
661
|
+
grpcUrl: "https://test-grpc.cloud.aultblockchain.xyz",
|
|
657
662
|
explorerUrl: "https://ault-testnet.explorer.orynt.tech",
|
|
658
663
|
dexApiUrl: "https://test-dex-api.cloud.aultblockchain.xyz",
|
|
664
|
+
dexWsUrl: "wss://test-dex-api.cloud.aultblockchain.xyz/ws",
|
|
659
665
|
isProduction: false
|
|
660
666
|
},
|
|
661
|
-
"
|
|
667
|
+
"devnet_30904-1": {
|
|
662
668
|
name: "Ault Devnet",
|
|
663
669
|
type: "devnet",
|
|
664
|
-
chainId: "
|
|
665
|
-
evmChainId:
|
|
666
|
-
rpcUrl: "https://devnet-rpc.aultblockchain.xyz",
|
|
667
|
-
restUrl: "https://devnet-api.aultblockchain.xyz",
|
|
668
|
-
evmRpcUrl: "https://devnet-json-rpc.aultblockchain.xyz",
|
|
670
|
+
chainId: "devnet_30904-1",
|
|
671
|
+
evmChainId: 30904,
|
|
672
|
+
rpcUrl: "https://devnet-rpc.cloud.aultblockchain.xyz",
|
|
673
|
+
restUrl: "https://devnet-api.cloud.aultblockchain.xyz",
|
|
674
|
+
evmRpcUrl: "https://devnet-json-rpc.cloud.aultblockchain.xyz",
|
|
675
|
+
grpcUrl: "https://devnet-grpc.cloud.aultblockchain.xyz",
|
|
669
676
|
explorerUrl: "https://devnet-cosmos-explorer.aultblockchain.xyz",
|
|
670
|
-
dexApiUrl: "https://
|
|
677
|
+
dexApiUrl: "https://devnet-dex-api.cloud.aultblockchain.xyz",
|
|
678
|
+
dexWsUrl: "wss://devnet-dex-api.cloud.aultblockchain.xyz/ws",
|
|
671
679
|
isProduction: false
|
|
672
680
|
},
|
|
673
|
-
"
|
|
681
|
+
"ault_40904-1": {
|
|
674
682
|
name: "Ault Localnet",
|
|
675
683
|
type: "localnet",
|
|
676
|
-
chainId: "
|
|
677
|
-
evmChainId:
|
|
684
|
+
chainId: "ault_40904-1",
|
|
685
|
+
evmChainId: 40904,
|
|
678
686
|
rpcUrl: "http://localhost:26657",
|
|
679
687
|
restUrl: "http://localhost:1317",
|
|
680
688
|
evmRpcUrl: "http://localhost:8545",
|
|
689
|
+
grpcUrl: "http://localhost:9090",
|
|
681
690
|
dexApiUrl: "http://localhost:8080",
|
|
682
691
|
isProduction: false
|
|
683
692
|
}
|
|
@@ -26431,7 +26440,7 @@ function createDexWs(url, options) {
|
|
|
26431
26440
|
}
|
|
26432
26441
|
|
|
26433
26442
|
// src/index.ts
|
|
26434
|
-
var SDK_VERSION = "0.4.
|
|
26443
|
+
var SDK_VERSION = "0.4.2";
|
|
26435
26444
|
// Annotate the CommonJS export names for ESM import in node:
|
|
26436
26445
|
0 && (module.exports = {
|
|
26437
26446
|
AGENT_DEFAULTS,
|