example-js-sdk 0.0.2 → 0.0.4
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/lib/CarbonSDK.js +16 -6
- package/lib/codec/Mememax/orbix/coin/token.js +14 -26
- package/lib/codec/index.d.ts +8 -8
- package/lib/codec/index.js +15867 -15867
- package/lib/constant/network.d.ts +2 -1
- package/lib/constant/network.js +2 -2
- package/package.json +3 -3
|
@@ -11,7 +11,7 @@ export declare const CarbonChainIDs: {
|
|
|
11
11
|
readonly localhost: "orbix-localhost";
|
|
12
12
|
};
|
|
13
13
|
export declare const CarbonEvmChainIDs: {
|
|
14
|
-
readonly mainnet: "
|
|
14
|
+
readonly mainnet: "orbix_9792-1";
|
|
15
15
|
readonly testnet: "orbix_9792-1";
|
|
16
16
|
readonly devnet: "orbix_9791-1";
|
|
17
17
|
readonly localhost: "orbix_9999-1";
|
|
@@ -54,6 +54,7 @@ export interface NetworkConfig {
|
|
|
54
54
|
Bech32Prefix: string;
|
|
55
55
|
network: Network;
|
|
56
56
|
chainId: string;
|
|
57
|
+
evmChainId?: string;
|
|
57
58
|
feeAddress: string;
|
|
58
59
|
eth: EthNetworkConfig;
|
|
59
60
|
bsc: EthNetworkConfig;
|
package/lib/constant/network.js
CHANGED
|
@@ -15,7 +15,7 @@ exports.CarbonChainIDs = {
|
|
|
15
15
|
[Network.LocalHost]: "orbix-localhost",
|
|
16
16
|
};
|
|
17
17
|
exports.CarbonEvmChainIDs = {
|
|
18
|
-
[Network.MainNet]: "
|
|
18
|
+
[Network.MainNet]: "orbix_9792-1",
|
|
19
19
|
[Network.TestNet]: "orbix_9792-1",
|
|
20
20
|
[Network.DevNet]: "orbix_9791-1",
|
|
21
21
|
[Network.LocalHost]: "orbix_9999-1",
|
|
@@ -45,7 +45,7 @@ exports.NetworkConfigs = {
|
|
|
45
45
|
hydrogenUrl: "https://hydrogen-api.carbon.network",
|
|
46
46
|
authUrl: "https://auth.dem.exchange/oauth/access_token",
|
|
47
47
|
faucetUrl: "",
|
|
48
|
-
Bech32Prefix: "
|
|
48
|
+
Bech32Prefix: "tmeme",
|
|
49
49
|
feeAddress: "08d8f59e475830d9a1bb97d74285c4d34c6dac08", // swth1prv0t8j8tqcdngdmjlt59pwy6dxxmtqgycy2h7
|
|
50
50
|
eth: {
|
|
51
51
|
rpcURL: "https://ethereum-rpc.publicnode.com",
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "example-js-sdk",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "TypeScript SDK for
|
|
3
|
+
"version": "0.0.4",
|
|
4
|
+
"description": "TypeScript SDK for Mememax Orbix blockchain",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"watch": "nodemon yarn build",
|
|
10
10
|
"build": "yarn run lint && tsc && tsc-alias",
|
|
11
|
-
"cp-proto": "cp ~/go/src/github.com/
|
|
11
|
+
"cp-proto": "cp ~/go/src/github.com/mememax/orbix/gen/proto-ts.tar.gz .",
|
|
12
12
|
"sync-proto": "sh scripts/update-proto.sh",
|
|
13
13
|
"sync-register": "yarn sync-reset && sh scripts/generate-registry.sh",
|
|
14
14
|
"sync-reset": "find . -type f -name 'export.ts' -delete && rm -f src/codec/*-models.ts",
|