@cryptorubic/web3 0.0.1
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 -0
- package/package.json +17 -0
- package/src/index.d.ts +25 -0
- package/src/index.js +27 -0
- package/src/index.js.map +1 -0
- package/src/lib/adapter/adapters/abstract-adapter.d.ts +19 -0
- package/src/lib/adapter/adapters/abstract-adapter.js +50 -0
- package/src/lib/adapter/adapters/abstract-adapter.js.map +1 -0
- package/src/lib/adapter/adapters/constants/erc20-token-abi.d.ts +2 -0
- package/src/lib/adapter/adapters/constants/erc20-token-abi.js +87 -0
- package/src/lib/adapter/adapters/constants/erc20-token-abi.js.map +1 -0
- package/src/lib/adapter/adapters/constants/trc-20-contract-abi.d.ts +12 -0
- package/src/lib/adapter/adapters/constants/trc-20-contract-abi.js +85 -0
- package/src/lib/adapter/adapters/constants/trc-20-contract-abi.js.map +1 -0
- package/src/lib/adapter/adapters/constants/tron-multicall-abi.d.ts +2 -0
- package/src/lib/adapter/adapters/constants/tron-multicall-abi.js +27 -0
- package/src/lib/adapter/adapters/constants/tron-multicall-abi.js.map +1 -0
- package/src/lib/adapter/adapters/evm-adapter.d.ts +20 -0
- package/src/lib/adapter/adapters/evm-adapter.js +208 -0
- package/src/lib/adapter/adapters/evm-adapter.js.map +1 -0
- package/src/lib/adapter/adapters/models/evm-adapter-options.d.ts +6 -0
- package/src/lib/adapter/adapters/models/evm-adapter-options.js +3 -0
- package/src/lib/adapter/adapters/models/evm-adapter-options.js.map +1 -0
- package/src/lib/adapter/adapters/solana-adapter.d.ts +15 -0
- package/src/lib/adapter/adapters/solana-adapter.js +60 -0
- package/src/lib/adapter/adapters/solana-adapter.js.map +1 -0
- package/src/lib/adapter/adapters/tron-adapter.d.ts +25 -0
- package/src/lib/adapter/adapters/tron-adapter.js +190 -0
- package/src/lib/adapter/adapters/tron-adapter.js.map +1 -0
- package/src/lib/adapter/blockchain-adapter-factory.service.d.ts +19 -0
- package/src/lib/adapter/blockchain-adapter-factory.service.js +86 -0
- package/src/lib/adapter/blockchain-adapter-factory.service.js.map +1 -0
- package/src/lib/adapter/constants/chain-configs/chain-configs.d.ts +3 -0
- package/src/lib/adapter/constants/chain-configs/chain-configs.js +1040 -0
- package/src/lib/adapter/constants/chain-configs/chain-configs.js.map +1 -0
- package/src/lib/adapter/constants/models/solana-web3.d.ts +26 -0
- package/src/lib/adapter/constants/models/solana-web3.js +3 -0
- package/src/lib/adapter/constants/models/solana-web3.js.map +1 -0
- package/src/lib/adapter/constants/models/viem-chain-type.d.ts +2 -0
- package/src/lib/adapter/constants/models/viem-chain-type.js +3 -0
- package/src/lib/adapter/constants/models/viem-chain-type.js.map +1 -0
- package/src/lib/adapter/constants/models/wallet-provider.d.ts +28 -0
- package/src/lib/adapter/constants/models/wallet-provider.js +4 -0
- package/src/lib/adapter/constants/models/wallet-provider.js.map +1 -0
- package/src/lib/adapter/constants/viem-blockchain-mapping.d.ts +3 -0
- package/src/lib/adapter/constants/viem-blockchain-mapping.js +74 -0
- package/src/lib/adapter/constants/viem-blockchain-mapping.js.map +1 -0
- package/src/lib/utils/constants/changenow-api-blockchain.d.ts +123 -0
- package/src/lib/utils/constants/changenow-api-blockchain.js +109 -0
- package/src/lib/utils/constants/changenow-api-blockchain.js.map +1 -0
- package/src/lib/utils/constants/web3-pure-store.d.ts +3 -0
- package/src/lib/utils/constants/web3-pure-store.js +335 -0
- package/src/lib/utils/constants/web3-pure-store.js.map +1 -0
- package/src/lib/utils/models/abi-types.d.ts +26 -0
- package/src/lib/utils/models/abi-types.js +3 -0
- package/src/lib/utils/models/abi-types.js.map +1 -0
- package/src/lib/utils/models/cn-validation-response.d.ts +5 -0
- package/src/lib/utils/models/cn-validation-response.js +3 -0
- package/src/lib/utils/models/cn-validation-response.js.map +1 -0
- package/src/lib/utils/models/contract-multicall-response.d.ts +5 -0
- package/src/lib/utils/models/contract-multicall-response.js +3 -0
- package/src/lib/utils/models/contract-multicall-response.js.map +1 -0
- package/src/lib/utils/models/evm-transaction-config.d.ts +9 -0
- package/src/lib/utils/models/evm-transaction-config.js +3 -0
- package/src/lib/utils/models/evm-transaction-config.js.map +1 -0
- package/src/lib/utils/models/method-data.d.ts +4 -0
- package/src/lib/utils/models/method-data.js +3 -0
- package/src/lib/utils/models/method-data.js.map +1 -0
- package/src/lib/utils/models/primitive-types.d.ts +7 -0
- package/src/lib/utils/models/primitive-types.js +3 -0
- package/src/lib/utils/models/primitive-types.js.map +1 -0
- package/src/lib/utils/models/tron-block.d.ts +7 -0
- package/src/lib/utils/models/tron-block.js +3 -0
- package/src/lib/utils/models/tron-block.js.map +1 -0
- package/src/lib/utils/models/tron-call.d.ts +5 -0
- package/src/lib/utils/models/tron-call.js +3 -0
- package/src/lib/utils/models/tron-call.js.map +1 -0
- package/src/lib/utils/models/tron-multicall-response.d.ts +4 -0
- package/src/lib/utils/models/tron-multicall-response.js +3 -0
- package/src/lib/utils/models/tron-multicall-response.js.map +1 -0
- package/src/lib/utils/models/tron-parameters.d.ts +4 -0
- package/src/lib/utils/models/tron-parameters.js +3 -0
- package/src/lib/utils/models/tron-parameters.js.map +1 -0
- package/src/lib/utils/models/tron-transaction-config.d.ts +6 -0
- package/src/lib/utils/models/tron-transaction-config.js +3 -0
- package/src/lib/utils/models/tron-transaction-config.js.map +1 -0
- package/src/lib/utils/models/tron-transaction-info.d.ts +15 -0
- package/src/lib/utils/models/tron-transaction-info.js +3 -0
- package/src/lib/utils/models/tron-transaction-info.js.map +1 -0
- package/src/lib/utils/web3-pure.d.ts +16 -0
- package/src/lib/utils/web3-pure.js +46 -0
- package/src/lib/utils/web3-pure.js.map +1 -0
- package/src/lib/utils/web3-types/bitcoin-web3-pure.d.ts +5 -0
- package/src/lib/utils/web3-types/bitcoin-web3-pure.js +15 -0
- package/src/lib/utils/web3-types/bitcoin-web3-pure.js.map +1 -0
- package/src/lib/utils/web3-types/common-web3-pure.d.ts +15 -0
- package/src/lib/utils/web3-types/common-web3-pure.js +47 -0
- package/src/lib/utils/web3-types/common-web3-pure.js.map +1 -0
- package/src/lib/utils/web3-types/evm-web3-pure.d.ts +5 -0
- package/src/lib/utils/web3-types/evm-web3-pure.js +15 -0
- package/src/lib/utils/web3-types/evm-web3-pure.js.map +1 -0
- package/src/lib/utils/web3-types/icp-web3-pure.d.ts +6 -0
- package/src/lib/utils/web3-types/icp-web3-pure.js +29 -0
- package/src/lib/utils/web3-types/icp-web3-pure.js.map +1 -0
- package/src/lib/utils/web3-types/solana-web3-pure.d.ts +5 -0
- package/src/lib/utils/web3-types/solana-web3-pure.js +16 -0
- package/src/lib/utils/web3-types/solana-web3-pure.js.map +1 -0
- package/src/lib/utils/web3-types/ton-web3-pure.d.ts +4 -0
- package/src/lib/utils/web3-types/ton-web3-pure.js +13 -0
- package/src/lib/utils/web3-types/ton-web3-pure.js.map +1 -0
- package/src/lib/utils/web3-types/tron-web3-pure.d.ts +38 -0
- package/src/lib/utils/web3-types/tron-web3-pure.js +117 -0
- package/src/lib/utils/web3-types/tron-web3-pure.js.map +1 -0
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.web3PureStore = void 0;
|
|
4
|
+
const core_1 = require("@cryptorubic/core");
|
|
5
|
+
const evm_web3_pure_1 = require("../web3-types/evm-web3-pure");
|
|
6
|
+
const tron_web3_pure_1 = require("../web3-types/tron-web3-pure");
|
|
7
|
+
const bitcoin_web3_pure_1 = require("../web3-types/bitcoin-web3-pure");
|
|
8
|
+
const changenow_api_blockchain_1 = require("./changenow-api-blockchain");
|
|
9
|
+
const icp_web3_pure_1 = require("../web3-types/icp-web3-pure");
|
|
10
|
+
const solana_web3_pure_1 = require("../web3-types/solana-web3-pure");
|
|
11
|
+
const common_web3_pure_1 = require("../web3-types/common-web3-pure");
|
|
12
|
+
exports.web3PureStore = {
|
|
13
|
+
[core_1.CHAIN_TYPE.EVM]: new evm_web3_pure_1.EvmWeb3Pure(),
|
|
14
|
+
[core_1.CHAIN_TYPE.TRON]: new tron_web3_pure_1.TronWeb3Pure(),
|
|
15
|
+
[core_1.CHAIN_TYPE.BITCOIN]: new bitcoin_web3_pure_1.BitcoinWeb3Pure(),
|
|
16
|
+
[core_1.CHAIN_TYPE.ICP]: new icp_web3_pure_1.IcpWeb3Pure(),
|
|
17
|
+
[core_1.CHAIN_TYPE.SOLANA]: new solana_web3_pure_1.SolanaWeb3Pure(),
|
|
18
|
+
[core_1.CHAIN_TYPE.BITCOIN_DIAMOND]: new bitcoin_web3_pure_1.BitcoinWeb3Pure(),
|
|
19
|
+
[core_1.CHAIN_TYPE.BITCOIN_GOLD]: new bitcoin_web3_pure_1.BitcoinWeb3Pure(),
|
|
20
|
+
[core_1.CHAIN_TYPE.BSV]: new bitcoin_web3_pure_1.BitcoinWeb3Pure(),
|
|
21
|
+
// Common Web3
|
|
22
|
+
[core_1.CHAIN_TYPE.RIPPLE]: new common_web3_pure_1.CommonWeb3Pure({
|
|
23
|
+
cnApiKey: changenow_api_blockchain_1.changenowApiBlockchain.RIPPLE,
|
|
24
|
+
regex: /^r[1-9A-HJ-NP-Za-km-z]{25,34}$/
|
|
25
|
+
}),
|
|
26
|
+
[core_1.CHAIN_TYPE.CARDANO]: new common_web3_pure_1.CommonWeb3Pure({
|
|
27
|
+
cnApiKey: changenow_api_blockchain_1.changenowApiBlockchain.CARDANO,
|
|
28
|
+
regex: /^([1-9A-HJ-NP-Za-km-z]{59,104})|([0-9A-Za-z]{58,104})$/
|
|
29
|
+
}),
|
|
30
|
+
[core_1.CHAIN_TYPE.DOGECOIN]: new common_web3_pure_1.CommonWeb3Pure({
|
|
31
|
+
cnApiKey: changenow_api_blockchain_1.changenowApiBlockchain.DOGECOIN,
|
|
32
|
+
regex: /^[X|7][0-9A-Za-z]{33}$/
|
|
33
|
+
}),
|
|
34
|
+
[core_1.CHAIN_TYPE.POLKADOT]: new common_web3_pure_1.CommonWeb3Pure({
|
|
35
|
+
cnApiKey: changenow_api_blockchain_1.changenowApiBlockchain.POLKADOT,
|
|
36
|
+
regex: /^1[0-9a-z-A-Z]{44,49}$/
|
|
37
|
+
}),
|
|
38
|
+
[core_1.CHAIN_TYPE.LITECOIN]: new common_web3_pure_1.CommonWeb3Pure({
|
|
39
|
+
cnApiKey: changenow_api_blockchain_1.changenowApiBlockchain.LITECOIN,
|
|
40
|
+
regex: /^(L|M|3)[A-Za-z0-9]{33}$|^(ltc1)[0-9A-Za-z]{39}$/
|
|
41
|
+
}),
|
|
42
|
+
[core_1.CHAIN_TYPE.MONERO]: new common_web3_pure_1.CommonWeb3Pure({
|
|
43
|
+
cnApiKey: changenow_api_blockchain_1.changenowApiBlockchain.MONERO,
|
|
44
|
+
regex: /^[48][a-zA-Z|\d]{94}([a-zA-Z|\d]{11})?$/
|
|
45
|
+
}),
|
|
46
|
+
[core_1.CHAIN_TYPE.NEAR]: new common_web3_pure_1.CommonWeb3Pure({
|
|
47
|
+
cnApiKey: changenow_api_blockchain_1.changenowApiBlockchain.NEAR,
|
|
48
|
+
regex: /(^[a-z0-9_-]{2,64}\.near$)|(^[0-9a-f]{64}$)/
|
|
49
|
+
}),
|
|
50
|
+
[core_1.CHAIN_TYPE.ALGORAND]: new common_web3_pure_1.CommonWeb3Pure({
|
|
51
|
+
cnApiKey: changenow_api_blockchain_1.changenowApiBlockchain.ALGORAND,
|
|
52
|
+
regex: /^[A-Z0-9]{58}/
|
|
53
|
+
}),
|
|
54
|
+
[core_1.CHAIN_TYPE.TEZOS]: new common_web3_pure_1.CommonWeb3Pure({
|
|
55
|
+
cnApiKey: changenow_api_blockchain_1.changenowApiBlockchain.TEZOS,
|
|
56
|
+
regex: /^tz1[a-zA-Z0-9]{33}$/
|
|
57
|
+
}),
|
|
58
|
+
[core_1.CHAIN_TYPE.DASH]: new common_web3_pure_1.CommonWeb3Pure({
|
|
59
|
+
cnApiKey: changenow_api_blockchain_1.changenowApiBlockchain.DASH,
|
|
60
|
+
regex: /^[X|7][0-9A-Za-z]{33}$/
|
|
61
|
+
}),
|
|
62
|
+
[core_1.CHAIN_TYPE.ZILLIQA]: new common_web3_pure_1.CommonWeb3Pure({
|
|
63
|
+
cnApiKey: changenow_api_blockchain_1.changenowApiBlockchain.ZILLIQA,
|
|
64
|
+
regex: /^zil1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{38}$/
|
|
65
|
+
}),
|
|
66
|
+
[core_1.CHAIN_TYPE.KAVA_COSMOS]: new common_web3_pure_1.CommonWeb3Pure({
|
|
67
|
+
cnApiKey: changenow_api_blockchain_1.changenowApiBlockchain.KAVA_COSMOS,
|
|
68
|
+
regex: /^(kava1)[0-9a-z]{38}$/
|
|
69
|
+
}),
|
|
70
|
+
[core_1.CHAIN_TYPE.APTOS]: new common_web3_pure_1.CommonWeb3Pure({
|
|
71
|
+
cnApiKey: changenow_api_blockchain_1.changenowApiBlockchain.APTOS,
|
|
72
|
+
regex: /^(0x)[0-9A-Za-z]{64}$/
|
|
73
|
+
}),
|
|
74
|
+
[core_1.CHAIN_TYPE.ASTAR]: new common_web3_pure_1.CommonWeb3Pure({
|
|
75
|
+
cnApiKey: changenow_api_blockchain_1.changenowApiBlockchain.ASTAR,
|
|
76
|
+
regex: /^[0-9a-z-A-Z]{44,50}$/
|
|
77
|
+
}),
|
|
78
|
+
[core_1.CHAIN_TYPE.COSMOS]: new common_web3_pure_1.CommonWeb3Pure({
|
|
79
|
+
cnApiKey: changenow_api_blockchain_1.changenowApiBlockchain.COSMOS,
|
|
80
|
+
regex: /^(cosmos1)[0-9a-z]{38}$/
|
|
81
|
+
}),
|
|
82
|
+
[core_1.CHAIN_TYPE.FLOW]: new common_web3_pure_1.CommonWeb3Pure({
|
|
83
|
+
cnApiKey: changenow_api_blockchain_1.changenowApiBlockchain.FLOW,
|
|
84
|
+
regex: /^(0x)[0-9A-Fa-f]{16}$/
|
|
85
|
+
}),
|
|
86
|
+
[core_1.CHAIN_TYPE.HEDERA]: new common_web3_pure_1.CommonWeb3Pure({
|
|
87
|
+
cnApiKey: changenow_api_blockchain_1.changenowApiBlockchain.HEDERA,
|
|
88
|
+
regex: /^0\.0\.\d{1,7}$/
|
|
89
|
+
}),
|
|
90
|
+
[core_1.CHAIN_TYPE.IOTA]: new common_web3_pure_1.CommonWeb3Pure({
|
|
91
|
+
cnApiKey: changenow_api_blockchain_1.changenowApiBlockchain.IOTA,
|
|
92
|
+
regex: /^(iota)[0-9a-z]{60}$/
|
|
93
|
+
}),
|
|
94
|
+
[core_1.CHAIN_TYPE.KADENA]: new common_web3_pure_1.CommonWeb3Pure({
|
|
95
|
+
cnApiKey: changenow_api_blockchain_1.changenowApiBlockchain.KADENA,
|
|
96
|
+
regex: /^k:[0-9a-zA-Z]{64}$/
|
|
97
|
+
}),
|
|
98
|
+
[core_1.CHAIN_TYPE.KUSAMA]: new common_web3_pure_1.CommonWeb3Pure({
|
|
99
|
+
cnApiKey: changenow_api_blockchain_1.changenowApiBlockchain.KUSAMA,
|
|
100
|
+
regex: /^[C-Z][a-km-zA-HJ-NP-Z1-9]{46}$/
|
|
101
|
+
}),
|
|
102
|
+
[core_1.CHAIN_TYPE.MINA_PROTOCOL]: new common_web3_pure_1.CommonWeb3Pure({
|
|
103
|
+
cnApiKey: changenow_api_blockchain_1.changenowApiBlockchain.MINA_PROTOCOL,
|
|
104
|
+
regex: /^(B62)[A-Za-z0-9]{52}$/
|
|
105
|
+
}),
|
|
106
|
+
[core_1.CHAIN_TYPE.NEO]: new common_web3_pure_1.CommonWeb3Pure({
|
|
107
|
+
cnApiKey: changenow_api_blockchain_1.changenowApiBlockchain.NEO,
|
|
108
|
+
regex: /^(A)[A-Za-z0-9]{33}$/
|
|
109
|
+
}),
|
|
110
|
+
[core_1.CHAIN_TYPE.OSMOSIS]: new common_web3_pure_1.CommonWeb3Pure({
|
|
111
|
+
cnApiKey: changenow_api_blockchain_1.changenowApiBlockchain.OSMOSIS,
|
|
112
|
+
regex: /^(osmo1)[0-9a-z]{38}$/
|
|
113
|
+
}),
|
|
114
|
+
[core_1.CHAIN_TYPE.SIA]: new common_web3_pure_1.CommonWeb3Pure({
|
|
115
|
+
cnApiKey: changenow_api_blockchain_1.changenowApiBlockchain.SIA,
|
|
116
|
+
regex: /^[A-Za-z0-9]{76}$/
|
|
117
|
+
}),
|
|
118
|
+
[core_1.CHAIN_TYPE.SECRET]: new common_web3_pure_1.CommonWeb3Pure({
|
|
119
|
+
cnApiKey: changenow_api_blockchain_1.changenowApiBlockchain.SECRET,
|
|
120
|
+
regex: /^(secret1)[0-9a-z]{38}$/
|
|
121
|
+
}),
|
|
122
|
+
[core_1.CHAIN_TYPE.TON]: new common_web3_pure_1.CommonWeb3Pure({
|
|
123
|
+
cnApiKey: changenow_api_blockchain_1.changenowApiBlockchain.TON,
|
|
124
|
+
regex: /^(EQ|UQ)[0-9a-zA-Z-_!]{46}$/
|
|
125
|
+
}),
|
|
126
|
+
[core_1.CHAIN_TYPE.WAVES]: new common_web3_pure_1.CommonWeb3Pure({
|
|
127
|
+
cnApiKey: changenow_api_blockchain_1.changenowApiBlockchain.WAVES,
|
|
128
|
+
regex: /^(3P)[0-9A-Za-z]{33}$/
|
|
129
|
+
}),
|
|
130
|
+
[core_1.CHAIN_TYPE.WAX]: new common_web3_pure_1.CommonWeb3Pure({
|
|
131
|
+
cnApiKey: changenow_api_blockchain_1.changenowApiBlockchain.WAX,
|
|
132
|
+
regex: /^[a-z1-5.]{1,12}$/
|
|
133
|
+
}),
|
|
134
|
+
[core_1.CHAIN_TYPE.STELLAR]: new common_web3_pure_1.CommonWeb3Pure({
|
|
135
|
+
cnApiKey: changenow_api_blockchain_1.changenowApiBlockchain.STEEM,
|
|
136
|
+
regex: /^G[A-D]{1}[A-Z2-7]{54}$/
|
|
137
|
+
}),
|
|
138
|
+
[core_1.CHAIN_TYPE.XDC]: new common_web3_pure_1.CommonWeb3Pure({
|
|
139
|
+
cnApiKey: changenow_api_blockchain_1.changenowApiBlockchain.XDC,
|
|
140
|
+
regex: /^xdc[a-fA-F\d]{40}$/
|
|
141
|
+
}),
|
|
142
|
+
[core_1.CHAIN_TYPE.ONTOLOGY]: new common_web3_pure_1.CommonWeb3Pure({
|
|
143
|
+
// @TODO
|
|
144
|
+
// cnApiKey: changenowApiBlockchain.ONЕ,
|
|
145
|
+
// regex: /^(A)[A-Za-z0-9]{33}$/
|
|
146
|
+
}),
|
|
147
|
+
[core_1.CHAIN_TYPE.EOS]: new common_web3_pure_1.CommonWeb3Pure({
|
|
148
|
+
cnApiKey: changenow_api_blockchain_1.changenowApiBlockchain.EOS,
|
|
149
|
+
regex: /^[1-5a-z]{12}$/
|
|
150
|
+
}),
|
|
151
|
+
[core_1.CHAIN_TYPE.FILECOIN]: new common_web3_pure_1.CommonWeb3Pure({
|
|
152
|
+
cnApiKey: changenow_api_blockchain_1.changenowApiBlockchain.FILECOIN,
|
|
153
|
+
regex: /[a-z0-9]{41}$|[a-z0-9]{86}$/
|
|
154
|
+
}),
|
|
155
|
+
[core_1.CHAIN_TYPE.CASPER]: new common_web3_pure_1.CommonWeb3Pure({
|
|
156
|
+
cnApiKey: changenow_api_blockchain_1.changenowApiBlockchain.CASPER,
|
|
157
|
+
regex: /^[A-Za-z0-9]{66,68}$/
|
|
158
|
+
}),
|
|
159
|
+
[core_1.CHAIN_TYPE.AION]: new common_web3_pure_1.CommonWeb3Pure({
|
|
160
|
+
// @TODO
|
|
161
|
+
// cnApiKey: changenowApiBlockchain.AION,
|
|
162
|
+
// regex: ?
|
|
163
|
+
}),
|
|
164
|
+
[core_1.CHAIN_TYPE.ARDOR]: new common_web3_pure_1.CommonWeb3Pure({
|
|
165
|
+
// @TODO
|
|
166
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
167
|
+
// regex: ?
|
|
168
|
+
}),
|
|
169
|
+
[core_1.CHAIN_TYPE.ARK]: new common_web3_pure_1.CommonWeb3Pure({
|
|
170
|
+
// @TODO
|
|
171
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
172
|
+
// regex: ?
|
|
173
|
+
}),
|
|
174
|
+
[core_1.CHAIN_TYPE.BAND_PROTOCOL]: new common_web3_pure_1.CommonWeb3Pure({
|
|
175
|
+
// @TODO
|
|
176
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
177
|
+
// regex: ?
|
|
178
|
+
}),
|
|
179
|
+
[core_1.CHAIN_TYPE.DECRED]: new common_web3_pure_1.CommonWeb3Pure({
|
|
180
|
+
// @TODO
|
|
181
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
182
|
+
// regex: ?
|
|
183
|
+
}),
|
|
184
|
+
[core_1.CHAIN_TYPE.DIGI_BYTE]: new common_web3_pure_1.CommonWeb3Pure({
|
|
185
|
+
// @TODO
|
|
186
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
187
|
+
// regex: ?
|
|
188
|
+
}),
|
|
189
|
+
[core_1.CHAIN_TYPE.DIVI]: new common_web3_pure_1.CommonWeb3Pure({
|
|
190
|
+
// @TODO
|
|
191
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
192
|
+
// regex: ?
|
|
193
|
+
}),
|
|
194
|
+
[core_1.CHAIN_TYPE.MULTIVERS_X]: new common_web3_pure_1.CommonWeb3Pure({
|
|
195
|
+
// @TODO
|
|
196
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
197
|
+
// regex: ?
|
|
198
|
+
}),
|
|
199
|
+
[core_1.CHAIN_TYPE.FIO_PROTOCOL]: new common_web3_pure_1.CommonWeb3Pure({
|
|
200
|
+
// @TODO
|
|
201
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
202
|
+
// regex: ?
|
|
203
|
+
}),
|
|
204
|
+
[core_1.CHAIN_TYPE.FIRO]: new common_web3_pure_1.CommonWeb3Pure({
|
|
205
|
+
// @TODO
|
|
206
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
207
|
+
// regex: ?
|
|
208
|
+
}),
|
|
209
|
+
[core_1.CHAIN_TYPE.HELIUM]: new common_web3_pure_1.CommonWeb3Pure({
|
|
210
|
+
// @TODO
|
|
211
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
212
|
+
// regex: ?
|
|
213
|
+
}),
|
|
214
|
+
[core_1.CHAIN_TYPE.ICON]: new common_web3_pure_1.CommonWeb3Pure({
|
|
215
|
+
// @TODO
|
|
216
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
217
|
+
// regex: ?
|
|
218
|
+
}),
|
|
219
|
+
[core_1.CHAIN_TYPE.IOST]: new common_web3_pure_1.CommonWeb3Pure({
|
|
220
|
+
// @TODO
|
|
221
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
222
|
+
// regex: ?
|
|
223
|
+
}),
|
|
224
|
+
[core_1.CHAIN_TYPE.KOMODO]: new common_web3_pure_1.CommonWeb3Pure({
|
|
225
|
+
// @TODO
|
|
226
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
227
|
+
// regex: ?
|
|
228
|
+
}),
|
|
229
|
+
[core_1.CHAIN_TYPE.LISK]: new common_web3_pure_1.CommonWeb3Pure({
|
|
230
|
+
// @TODO
|
|
231
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
232
|
+
// regex: ?
|
|
233
|
+
}),
|
|
234
|
+
[core_1.CHAIN_TYPE.TERRA]: new common_web3_pure_1.CommonWeb3Pure({
|
|
235
|
+
// @TODO
|
|
236
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
237
|
+
// regex: ?
|
|
238
|
+
}),
|
|
239
|
+
[core_1.CHAIN_TYPE.TERRA_CLASSIC]: new common_web3_pure_1.CommonWeb3Pure({
|
|
240
|
+
// @TODO
|
|
241
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
242
|
+
// regex: ?
|
|
243
|
+
}),
|
|
244
|
+
[core_1.CHAIN_TYPE.NANO]: new common_web3_pure_1.CommonWeb3Pure({
|
|
245
|
+
// @TODO
|
|
246
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
247
|
+
// regex: ?
|
|
248
|
+
}),
|
|
249
|
+
[core_1.CHAIN_TYPE.PIVX]: new common_web3_pure_1.CommonWeb3Pure({
|
|
250
|
+
// @TODO
|
|
251
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
252
|
+
// regex: ?
|
|
253
|
+
}),
|
|
254
|
+
[core_1.CHAIN_TYPE.POLYX]: new common_web3_pure_1.CommonWeb3Pure({
|
|
255
|
+
// @TODO
|
|
256
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
257
|
+
// regex: ?
|
|
258
|
+
}),
|
|
259
|
+
[core_1.CHAIN_TYPE.QTUM]: new common_web3_pure_1.CommonWeb3Pure({
|
|
260
|
+
// @TODO
|
|
261
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
262
|
+
// regex: ?
|
|
263
|
+
}),
|
|
264
|
+
[core_1.CHAIN_TYPE.THOR_CHAIN]: new common_web3_pure_1.CommonWeb3Pure({
|
|
265
|
+
// @TODO
|
|
266
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
267
|
+
// regex: ?
|
|
268
|
+
}),
|
|
269
|
+
[core_1.CHAIN_TYPE.RAVENCOIN]: new common_web3_pure_1.CommonWeb3Pure({
|
|
270
|
+
// @TODO
|
|
271
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
272
|
+
// regex: ?
|
|
273
|
+
}),
|
|
274
|
+
[core_1.CHAIN_TYPE.STEEM]: new common_web3_pure_1.CommonWeb3Pure({
|
|
275
|
+
// @TODO
|
|
276
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
277
|
+
// regex: ?
|
|
278
|
+
}),
|
|
279
|
+
[core_1.CHAIN_TYPE.STRATIS]: new common_web3_pure_1.CommonWeb3Pure({
|
|
280
|
+
// @TODO
|
|
281
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
282
|
+
// regex: ?
|
|
283
|
+
}),
|
|
284
|
+
[core_1.CHAIN_TYPE.STACKS]: new common_web3_pure_1.CommonWeb3Pure({
|
|
285
|
+
// @TODO
|
|
286
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
287
|
+
// regex: ?
|
|
288
|
+
}),
|
|
289
|
+
[core_1.CHAIN_TYPE.SOLAR]: new common_web3_pure_1.CommonWeb3Pure({
|
|
290
|
+
// @TODO
|
|
291
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
292
|
+
// regex: ?
|
|
293
|
+
}),
|
|
294
|
+
[core_1.CHAIN_TYPE.VE_CHAIN]: new common_web3_pure_1.CommonWeb3Pure({
|
|
295
|
+
// @TODO
|
|
296
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
297
|
+
// regex: ?
|
|
298
|
+
}),
|
|
299
|
+
[core_1.CHAIN_TYPE.DX_CHAIN]: new common_web3_pure_1.CommonWeb3Pure({
|
|
300
|
+
// @TODO
|
|
301
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
302
|
+
// regex: ?
|
|
303
|
+
}),
|
|
304
|
+
[core_1.CHAIN_TYPE.E_CASH]: new common_web3_pure_1.CommonWeb3Pure({
|
|
305
|
+
// @TODO
|
|
306
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
307
|
+
// regex: ?
|
|
308
|
+
}),
|
|
309
|
+
[core_1.CHAIN_TYPE.NEM]: new common_web3_pure_1.CommonWeb3Pure({
|
|
310
|
+
// @TODO
|
|
311
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
312
|
+
// regex: ?
|
|
313
|
+
}),
|
|
314
|
+
[core_1.CHAIN_TYPE.VERGE]: new common_web3_pure_1.CommonWeb3Pure({
|
|
315
|
+
// @TODO
|
|
316
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
317
|
+
// regex: ?
|
|
318
|
+
}),
|
|
319
|
+
[core_1.CHAIN_TYPE.SYMBOL]: new common_web3_pure_1.CommonWeb3Pure({
|
|
320
|
+
// @TODO
|
|
321
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
322
|
+
// regex: ?
|
|
323
|
+
}),
|
|
324
|
+
[core_1.CHAIN_TYPE.ZCASH]: new common_web3_pure_1.CommonWeb3Pure({
|
|
325
|
+
// @TODO
|
|
326
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
327
|
+
// regex: ?
|
|
328
|
+
}),
|
|
329
|
+
[core_1.CHAIN_TYPE.HORIZEN]: new common_web3_pure_1.CommonWeb3Pure({
|
|
330
|
+
// @TODO
|
|
331
|
+
// cnApiKey: changenowApiBlockchain.RIPPLE,
|
|
332
|
+
// regex: ?
|
|
333
|
+
})
|
|
334
|
+
};
|
|
335
|
+
//# sourceMappingURL=web3-pure-store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web3-pure-store.js","sourceRoot":"","sources":["../../../../../../../packages/web3/src/lib/utils/constants/web3-pure-store.ts"],"names":[],"mappings":";;;AAAA,4CAA0D;AAC1D,+DAA0D;AAC1D,iEAA4D;AAC5D,uEAAkE;AAClE,yEAAoE;AACpE,+DAA0D;AAC1D,qEAAgE;AAChE,qEAAgE;AAEnD,QAAA,aAAa,GAAsC;IAC5D,CAAC,iBAAU,CAAC,GAAG,CAAC,EAAE,IAAI,2BAAW,EAAE;IACnC,CAAC,iBAAU,CAAC,IAAI,CAAC,EAAE,IAAI,6BAAY,EAAE;IACrC,CAAC,iBAAU,CAAC,OAAO,CAAC,EAAE,IAAI,mCAAe,EAAE;IAC3C,CAAC,iBAAU,CAAC,GAAG,CAAC,EAAE,IAAI,2BAAW,EAAE;IACnC,CAAC,iBAAU,CAAC,MAAM,CAAC,EAAE,IAAI,iCAAc,EAAE;IACzC,CAAC,iBAAU,CAAC,eAAe,CAAC,EAAE,IAAI,mCAAe,EAAE;IACnD,CAAC,iBAAU,CAAC,YAAY,C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IACR,2CAA2C;IAC3C,WAAW;KACd,CAAC;IACF,CAAC,iBAAU,CAAC,OAAO,CAAC,EAAE,IAAI,iCAAc,CAAC;IACrC,QAAQ;IACR,2CAA2C;IAC3C,WAAW;KACd,CAAC;CACL,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type AbiType = 'function' | 'constructor' | 'event' | 'fallback' | 'receive';
|
|
2
|
+
export type StateMutabilityType = 'pure' | 'view' | 'nonpayable' | 'payable';
|
|
3
|
+
export interface AbiItem {
|
|
4
|
+
anonymous?: boolean;
|
|
5
|
+
constant?: boolean;
|
|
6
|
+
inputs?: AbiInput[];
|
|
7
|
+
name?: string;
|
|
8
|
+
outputs?: AbiOutput[];
|
|
9
|
+
payable?: boolean;
|
|
10
|
+
stateMutability?: StateMutabilityType;
|
|
11
|
+
type: AbiType;
|
|
12
|
+
gas?: number;
|
|
13
|
+
}
|
|
14
|
+
export interface AbiInput {
|
|
15
|
+
name: string;
|
|
16
|
+
type: string;
|
|
17
|
+
indexed?: boolean;
|
|
18
|
+
components?: AbiInput[];
|
|
19
|
+
internalType?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface AbiOutput {
|
|
22
|
+
name: string;
|
|
23
|
+
type: string;
|
|
24
|
+
components?: AbiOutput[];
|
|
25
|
+
internalType?: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"abi-types.js","sourceRoot":"","sources":["../../../../../../../packages/web3/src/lib/utils/models/abi-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cn-validation-response.js","sourceRoot":"","sources":["../../../../../../../packages/web3/src/lib/utils/models/cn-validation-response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract-multicall-response.js","sourceRoot":"","sources":["../../../../../../../packages/web3/src/lib/utils/models/contract-multicall-response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evm-transaction-config.js","sourceRoot":"","sources":["../../../../../../../packages/web3/src/lib/utils/models/evm-transaction-config.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"method-data.js","sourceRoot":"","sources":["../../../../../../../packages/web3/src/lib/utils/models/method-data.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BigNumber } from "@ethersproject/bignumber";
|
|
2
|
+
export type Web3PrimitiveType = number | string | boolean | Web3PrimitiveType[] | {
|
|
3
|
+
[key: string]: Web3PrimitiveType;
|
|
4
|
+
};
|
|
5
|
+
export type TronWeb3PrimitiveType = number | BigNumber | Web3PrimitiveType | TronWeb3PrimitiveType[] | {
|
|
6
|
+
[key: string]: TronWeb3PrimitiveType;
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primitive-types.js","sourceRoot":"","sources":["../../../../../../../packages/web3/src/lib/utils/models/primitive-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tron-block.js","sourceRoot":"","sources":["../../../../../../../packages/web3/src/lib/utils/models/tron-block.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tron-call.js","sourceRoot":"","sources":["../../../../../../../packages/web3/src/lib/utils/models/tron-call.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tron-multicall-response.js","sourceRoot":"","sources":["../../../../../../../packages/web3/src/lib/utils/models/tron-multicall-response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tron-parameters.js","sourceRoot":"","sources":["../../../../../../../packages/web3/src/lib/utils/models/tron-parameters.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tron-transaction-config.js","sourceRoot":"","sources":["../../../../../../../packages/web3/src/lib/utils/models/tron-transaction-config.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface TronTransactionInfo {
|
|
2
|
+
blockNumber: number;
|
|
3
|
+
blockTimeStamp: number;
|
|
4
|
+
contract_address: string;
|
|
5
|
+
fee: number;
|
|
6
|
+
id: string;
|
|
7
|
+
receipt: {
|
|
8
|
+
energy_fee: number;
|
|
9
|
+
energy_usage_total: number;
|
|
10
|
+
net_fee: number;
|
|
11
|
+
result: string;
|
|
12
|
+
};
|
|
13
|
+
resMessage: string;
|
|
14
|
+
result: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tron-transaction-info.js","sourceRoot":"","sources":["../../../../../../../packages/web3/src/lib/utils/models/tron-transaction-info.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BlockchainName, ChainType } from "@cryptorubic/core";
|
|
2
|
+
import { CommonWeb3Pure } from "./web3-types/common-web3-pure";
|
|
3
|
+
export declare class Web3Pure {
|
|
4
|
+
static getInstance(blockchainName: BlockchainName): CommonWeb3Pure;
|
|
5
|
+
static getInstance(chainType: ChainType): CommonWeb3Pure;
|
|
6
|
+
static isNativeAddress(blockchainName: BlockchainName, address: string): boolean;
|
|
7
|
+
static isNativeAddress(chainType: ChainType, address: string): boolean;
|
|
8
|
+
static isEmptyAddress(blockchainName: BlockchainName, address?: string): boolean;
|
|
9
|
+
static isEmptyAddress(chainType: ChainType, address?: string): boolean;
|
|
10
|
+
static isAddressCorrect(blockchainName: BlockchainName, address: string): Promise<boolean>;
|
|
11
|
+
static isAddressCorrect(chainType: ChainType, address: string): Promise<boolean>;
|
|
12
|
+
static getNativeTokenAddress(blockchainName: BlockchainName): string;
|
|
13
|
+
static getNativeTokenAddress(chainType: ChainType): string;
|
|
14
|
+
static getEmptyTokenAddress(blockchainName: BlockchainName): string;
|
|
15
|
+
static getEmptyTokenAddress(chainType: ChainType): string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Web3Pure = void 0;
|
|
4
|
+
const core_1 = require("@cryptorubic/core");
|
|
5
|
+
const web3_pure_store_1 = require("./constants/web3-pure-store");
|
|
6
|
+
class Web3Pure {
|
|
7
|
+
static getInstance(chainTypeOrChain) {
|
|
8
|
+
const chainType = Object.values(core_1.CHAIN_TYPE).some(el => el === chainTypeOrChain)
|
|
9
|
+
? chainTypeOrChain
|
|
10
|
+
: core_1.BlockchainsInfo.getChainType(chainTypeOrChain);
|
|
11
|
+
return web3_pure_store_1.web3PureStore[chainType];
|
|
12
|
+
}
|
|
13
|
+
static isNativeAddress(chainTypeOrChain, address) {
|
|
14
|
+
const chainType = Object.values(core_1.CHAIN_TYPE).some(el => el === chainTypeOrChain)
|
|
15
|
+
? chainTypeOrChain
|
|
16
|
+
: core_1.BlockchainsInfo.getChainType(chainTypeOrChain);
|
|
17
|
+
return web3_pure_store_1.web3PureStore[chainType].isNativeAddress(address);
|
|
18
|
+
}
|
|
19
|
+
static isEmptyAddress(chainTypeOrChain, address) {
|
|
20
|
+
const chainType = Object.values(core_1.CHAIN_TYPE).some(el => el === chainTypeOrChain)
|
|
21
|
+
? chainTypeOrChain
|
|
22
|
+
: core_1.BlockchainsInfo.getChainType(chainTypeOrChain);
|
|
23
|
+
return web3_pure_store_1.web3PureStore[chainType].isEmptyAddress(address);
|
|
24
|
+
}
|
|
25
|
+
static async isAddressCorrect(chainTypeOrChain, address) {
|
|
26
|
+
const chainType = Object.values(core_1.CHAIN_TYPE).some(el => el === chainTypeOrChain)
|
|
27
|
+
? chainTypeOrChain
|
|
28
|
+
: core_1.BlockchainsInfo.getChainType(chainTypeOrChain);
|
|
29
|
+
return web3_pure_store_1.web3PureStore[chainType].isAddressCorrect(address);
|
|
30
|
+
}
|
|
31
|
+
;
|
|
32
|
+
static getNativeTokenAddress(chainTypeOrChain) {
|
|
33
|
+
const chainType = Object.values(core_1.CHAIN_TYPE).some(el => el === chainTypeOrChain)
|
|
34
|
+
? chainTypeOrChain
|
|
35
|
+
: core_1.BlockchainsInfo.getChainType(chainTypeOrChain);
|
|
36
|
+
return web3_pure_store_1.web3PureStore[chainType].nativeTokenAddress;
|
|
37
|
+
}
|
|
38
|
+
static getEmptyTokenAddress(chainTypeOrChain) {
|
|
39
|
+
const chainType = Object.values(core_1.CHAIN_TYPE).some(el => el === chainTypeOrChain)
|
|
40
|
+
? chainTypeOrChain
|
|
41
|
+
: core_1.BlockchainsInfo.getChainType(chainTypeOrChain);
|
|
42
|
+
return web3_pure_store_1.web3PureStore[chainType].emptyAddress;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.Web3Pure = Web3Pure;
|
|
46
|
+
//# sourceMappingURL=web3-pure.js.map
|