carbon-js-sdk 0.3.32-beta.2 → 0.3.32-beta.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.
@@ -54,8 +54,11 @@ export declare enum ChainIds {
54
54
  Stride = "stride-1",
55
55
  Kujira = "kaiyo-1",
56
56
  Terra2 = "phoenix-1",
57
- Quicksilver = "quicksilver-1",
58
- StafiHub = "stafihub-1"
57
+ Quicksilver = "quicksilver-2",
58
+ StafiHub = "stafihub-1",
59
+ Canto = "canto_7700-1",
60
+ OmniFlixHub = "omniflixhub-1",
61
+ Agoric = "agoric-3"
59
62
  }
60
63
  export declare const swthIbcWhitelist: string[];
61
64
  export declare const ibcWhitelist: string[];
@@ -91,8 +91,11 @@ var ChainIds;
91
91
  ChainIds["Stride"] = "stride-1";
92
92
  ChainIds["Kujira"] = "kaiyo-1";
93
93
  ChainIds["Terra2"] = "phoenix-1";
94
- ChainIds["Quicksilver"] = "quicksilver-1";
94
+ ChainIds["Quicksilver"] = "quicksilver-2";
95
95
  ChainIds["StafiHub"] = "stafihub-1";
96
+ ChainIds["Canto"] = "canto_7700-1";
97
+ ChainIds["OmniFlixHub"] = "omniflixhub-1";
98
+ ChainIds["Agoric"] = "agoric-3";
96
99
  })(ChainIds = exports.ChainIds || (exports.ChainIds = {}));
97
100
  // whitelisted networks for addition of swth as a currency
98
101
  exports.swthIbcWhitelist = [ChainIds.Osmosis];
@@ -112,6 +115,9 @@ exports.ibcWhitelist = [
112
115
  ChainIds.StafiHub,
113
116
  ChainIds.Persistence,
114
117
  ChainIds.Stargaze,
118
+ ChainIds.Canto,
119
+ ChainIds.OmniFlixHub,
120
+ ChainIds.Agoric,
115
121
  ];
116
122
  exports.EmbedChainInfosInit = {
117
123
  [ChainIds.Osmosis]: {
@@ -1754,7 +1760,7 @@ exports.EmbedChainInfosInit = {
1754
1760
  [ChainIds.Quicksilver]: {
1755
1761
  rpc: "https://rpc-quicksilver.keplr.app",
1756
1762
  rest: "https://lcd-quicksilver.keplr.app",
1757
- chainId: "quicksilver-1",
1763
+ chainId: "quicksilver-2",
1758
1764
  chainName: "Quicksilver",
1759
1765
  stakeCurrency: {
1760
1766
  coinDenom: "QCK",
@@ -1778,7 +1784,7 @@ exports.EmbedChainInfosInit = {
1778
1784
  coinMinimalDenom: "uqck",
1779
1785
  coinDecimals: 6,
1780
1786
  gasPriceStep: {
1781
- low: 0,
1787
+ low: 0.0001,
1782
1788
  average: 0.0001,
1783
1789
  high: 0.00025,
1784
1790
  },
@@ -1838,6 +1844,134 @@ exports.EmbedChainInfosInit = {
1838
1844
  features: ["ibc-transfer", "ibc-go"],
1839
1845
  explorerUrlToTx: "https://www.mintscan.io/stafi/txs/{txHash}",
1840
1846
  },
1847
+ [ChainIds.Canto]: {
1848
+ rpc: "https://canto-rpc.polkachu.com",
1849
+ rest: "https://canto-api.polkachu.com",
1850
+ chainId: "canto_7700-1",
1851
+ chainName: "Canto",
1852
+ stakeCurrency: {
1853
+ coinDenom: "CANTO",
1854
+ coinMinimalDenom: "acanto",
1855
+ coinDecimals: 18,
1856
+ coinGeckoId: "canto",
1857
+ },
1858
+ bip44: {
1859
+ coinType: 60,
1860
+ },
1861
+ bech32Config: exports.IBCAddress.defaultBech32Config("canto"),
1862
+ currencies: [
1863
+ {
1864
+ coinDenom: "CANTO",
1865
+ coinMinimalDenom: "acanto",
1866
+ coinDecimals: 18,
1867
+ coinGeckoId: "canto",
1868
+ },
1869
+ ],
1870
+ feeCurrencies: [
1871
+ {
1872
+ coinDenom: "CANTO",
1873
+ coinMinimalDenom: "acanto",
1874
+ coinDecimals: 18,
1875
+ gasPriceStep: {
1876
+ low: 125000000000,
1877
+ average: 250000000000,
1878
+ high: 375000000000,
1879
+ },
1880
+ },
1881
+ ],
1882
+ features: ["ibc-transfer", "ibc-go"],
1883
+ explorerUrlToTx: "https://cosmos.explorer.canto.io/transactions/{txHash}",
1884
+ },
1885
+ [ChainIds.OmniFlixHub]: {
1886
+ rpc: "https://rpc.omniflix.network",
1887
+ rest: "https://rest.omniflix.network",
1888
+ chainId: "omniflixhub-1",
1889
+ chainName: "OmniFlix Hub",
1890
+ stakeCurrency: {
1891
+ coinDenom: "FLIX",
1892
+ coinMinimalDenom: "uflix",
1893
+ coinDecimals: 6,
1894
+ coinGeckoId: "omniflix-network"
1895
+ },
1896
+ bip44: {
1897
+ coinType: 118
1898
+ },
1899
+ bech32Config: exports.IBCAddress.defaultBech32Config("omniflix"),
1900
+ currencies: [{
1901
+ coinDenom: "FLIX",
1902
+ coinMinimalDenom: "uflix",
1903
+ coinDecimals: 6,
1904
+ coinGeckoId: "omniflix-network"
1905
+ }],
1906
+ feeCurrencies: [{
1907
+ coinDenom: "FLIX",
1908
+ coinMinimalDenom: "uflix",
1909
+ coinDecimals: 6,
1910
+ coinGeckoId: "omniflix-network",
1911
+ gasPriceStep: {
1912
+ low: 0.001,
1913
+ average: 0.0025,
1914
+ high: 0.025,
1915
+ }
1916
+ }],
1917
+ features: ["ibc-transfer", "ibc-go"],
1918
+ explorerUrlToTx: "https://www.mintscan.io/omniflix/txs/{txHash}",
1919
+ },
1920
+ [ChainIds.Agoric]: {
1921
+ rpc: "https://rpc-agoric.keplr.app",
1922
+ rest: "https://lcd-agoric.keplr.app",
1923
+ chainId: "agoric-3",
1924
+ chainName: "Agoric",
1925
+ stakeCurrency: {
1926
+ coinDenom: "BLD",
1927
+ coinMinimalDenom: "ubld",
1928
+ coinDecimals: 6,
1929
+ coinGeckoId: "agoric"
1930
+ },
1931
+ bip44: {
1932
+ coinType: 564
1933
+ },
1934
+ bech32Config: exports.IBCAddress.defaultBech32Config("agoric"),
1935
+ currencies: [
1936
+ {
1937
+ coinDenom: "BLD",
1938
+ coinMinimalDenom: "ubld",
1939
+ coinDecimals: 6,
1940
+ coinGeckoId: "agoric"
1941
+ },
1942
+ {
1943
+ coinDenom: "IST",
1944
+ coinMinimalDenom: "uist",
1945
+ coinDecimals: 6
1946
+ }
1947
+ ],
1948
+ feeCurrencies: [
1949
+ {
1950
+ coinDenom: "BLD",
1951
+ coinMinimalDenom: "ubld",
1952
+ coinDecimals: 6,
1953
+ coinGeckoId: "agoric",
1954
+ gasPriceStep: {
1955
+ low: 0.03,
1956
+ average: 0.05,
1957
+ high: 0.07
1958
+ }
1959
+ },
1960
+ {
1961
+ coinDenom: "IST",
1962
+ coinMinimalDenom: "uist",
1963
+ coinDecimals: 6,
1964
+ coinGeckoId: "inter-stable-token",
1965
+ gasPriceStep: {
1966
+ low: 0.0034,
1967
+ average: 0.007,
1968
+ high: 0.02
1969
+ }
1970
+ }
1971
+ ],
1972
+ features: ["ibc-transfer", "ibc-go"],
1973
+ explorerUrlToTx: "https://www.atomscan.com/agoric/transactions/{txHash}",
1974
+ },
1841
1975
  };
1842
1976
  exports.swthChannels = {
1843
1977
  [ChainIds.Osmosis]: {
@@ -1881,8 +2015,8 @@ exports.swthChannels = {
1881
2015
  dstChannel: "channel-50",
1882
2016
  },
1883
2017
  [ChainIds.Quicksilver]: {
1884
- sourceChannel: "channel-10",
1885
- dstChannel: "channel-0",
2018
+ sourceChannel: "channel-17",
2019
+ dstChannel: "channel-10",
1886
2020
  },
1887
2021
  [ChainIds.StafiHub]: {
1888
2022
  sourceChannel: "channel-13",
@@ -1896,6 +2030,18 @@ exports.swthChannels = {
1896
2030
  sourceChannel: "channel-15",
1897
2031
  dstChannel: "channel-123",
1898
2032
  },
2033
+ [ChainIds.Canto]: {
2034
+ sourceChannel: "channel-18",
2035
+ dstChannel: "channel-6",
2036
+ },
2037
+ [ChainIds.OmniFlixHub]: {
2038
+ sourceChannel: "channel-19",
2039
+ dstChannel: "channel-24",
2040
+ },
2041
+ [ChainIds.Agoric]: {
2042
+ sourceChannel: "channel-20",
2043
+ dstChannel: "channel-12",
2044
+ },
1899
2045
  };
1900
2046
  exports.cibtIbcTokenRegex = RegExp(`^${token_1.DenomPrefix.CDPToken}/ibc/([a-f\\d]+)$`, "i");
1901
2047
  exports.ibcTokenRegex = /^ibc\/([a-f\d]+)$/i;
@@ -26,7 +26,10 @@ export declare enum Blockchain {
26
26
  Comdex = "comdex",
27
27
  StafiHub = "stafi",
28
28
  Persistence = "persistence",
29
- Stargaze = "stargaze"
29
+ Stargaze = "stargaze",
30
+ Canto = "canto",
31
+ OmniFlixHub = "omniflixhub",
32
+ Agoric = "agoric"
30
33
  }
31
34
  export declare const BRIDGE_IDS: {
32
35
  polynetwork: number;
@@ -31,6 +31,9 @@ var Blockchain;
31
31
  Blockchain["StafiHub"] = "stafi";
32
32
  Blockchain["Persistence"] = "persistence";
33
33
  Blockchain["Stargaze"] = "stargaze";
34
+ Blockchain["Canto"] = "canto";
35
+ Blockchain["OmniFlixHub"] = "omniflixhub";
36
+ Blockchain["Agoric"] = "agoric";
34
37
  })(Blockchain = exports.Blockchain || (exports.Blockchain = {}));
35
38
  exports.BRIDGE_IDS = {
36
39
  polynetwork: 1,
@@ -70,6 +73,9 @@ exports.CHAIN_IDS = {
70
73
  stafihub: 318,
71
74
  persistence: 319,
72
75
  stargaze: 320,
76
+ canto: 321,
77
+ omniflixhub: 322,
78
+ agoric: 323,
73
79
  };
74
80
  exports.CHAIN_IDS_DEV = {
75
81
  eth: 350,
@@ -175,6 +181,12 @@ const blockchainForChainId = (chainId) => {
175
181
  return Blockchain.Persistence;
176
182
  case 320: // mainnnet
177
183
  return Blockchain.Stargaze;
184
+ case 321: // mainnnet
185
+ return Blockchain.Canto;
186
+ case 322: // mainnnet
187
+ return Blockchain.OmniFlixHub;
188
+ case 323: // mainnnet
189
+ return Blockchain.Agoric;
178
190
  case 42161: // mainnnet
179
191
  return Blockchain.Arbitrum;
180
192
  default:
package/lib/util/ibc.js CHANGED
@@ -54,6 +54,9 @@ exports.ChainIdBlockchainMap = {
54
54
  [constant_1.ChainIds.StafiHub]: blockchain_1.Blockchain.StafiHub,
55
55
  [constant_1.ChainIds.Persistence]: blockchain_1.Blockchain.Persistence,
56
56
  [constant_1.ChainIds.Stargaze]: blockchain_1.Blockchain.Stargaze,
57
+ [constant_1.ChainIds.Canto]: blockchain_1.Blockchain.Canto,
58
+ [constant_1.ChainIds.OmniFlixHub]: blockchain_1.Blockchain.OmniFlixHub,
59
+ [constant_1.ChainIds.Agoric]: blockchain_1.Blockchain.Agoric,
57
60
  };
58
61
  const getIbcChainFromBlockchain = (blockchain) => {
59
62
  let ibcChain = undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-js-sdk",
3
- "version": "0.3.32-beta.2",
3
+ "version": "0.3.32-beta.3",
4
4
  "description": "TypeScript SDK for Carbon blockchain",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -46,7 +46,7 @@
46
46
  "@grpc/grpc-js": "^1.3.2",
47
47
  "@keplr-wallet/stores": "^0.10.25-rc.0",
48
48
  "@keplr-wallet/types": "^0.10.25-rc.0",
49
- "@ledgerhq/cryptoassets": "^7.2.0",
49
+ "@ledgerhq/cryptoassets": "~6.37.0",
50
50
  "@ledgerhq/hw-app-eth": "^6.20.0",
51
51
  "@ledgerhq/hw-transport": "^6.20.0",
52
52
  "@ledgerhq/hw-transport-webhid": "^6.20.0",
@@ -76,7 +76,9 @@
76
76
  "wif": "^2.0.6"
77
77
  },
78
78
  "resolutions": {
79
- "bignumber.js": "9.0.1"
79
+ "bignumber.js": "9.0.1",
80
+ "@ledgerhq/cryptoassets": "~6.37.0",
81
+ "@ledgerhq/devices": "~6.24.1"
80
82
  },
81
83
  "devDependencies": {
82
84
  "@types/lodash": "^4.14.174",