@cryptorubic/web3 1.7.3 → 1.7.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
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
# web3
|
|
1
|
+
# web3
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cryptorubic/web3",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.4",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@ethersproject/bignumber": "^5.8.0",
|
|
6
6
|
"@mysten/sui": "^1.24.0",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"@suiet/wallet-sdk": "^0.3.3",
|
|
12
12
|
"@ton/core": "^0.59.1",
|
|
13
13
|
"@ton/ton": "^15.1.0",
|
|
14
|
-
"@tonconnect/ui": "^
|
|
14
|
+
"@tonconnect/ui": "^3.0.2",
|
|
15
15
|
"axios": "*",
|
|
16
16
|
"bignumber.js": "9.1.2",
|
|
17
17
|
"bitcoin-address-validation": "^2.2.3",
|
|
@@ -30,15 +30,16 @@ class TonAdapterSigner extends abstract_adapter_signer_1.AbstractAdapterSigner {
|
|
|
30
30
|
}
|
|
31
31
|
async sendTransaction(params) {
|
|
32
32
|
try {
|
|
33
|
+
const normalizedMessages = params.txOptions.messages.map((msg) => core_2.Address.isFriendly(msg.address) ? msg : { ...msg, address: core_2.Address.normalize(msg.address) });
|
|
33
34
|
const { boc } = await this.wallet.sendTransaction({
|
|
34
35
|
validUntil: Math.floor(Date.now() / 1000) + 360,
|
|
35
|
-
messages:
|
|
36
|
+
messages: normalizedMessages
|
|
36
37
|
});
|
|
37
38
|
const txHash = this.fromBocToBase64Hash(boc);
|
|
38
39
|
params.txOptions.onTransactionHash?.(txHash);
|
|
39
40
|
const isCompleted = await this.waitForTransactionReceipt(txHash);
|
|
40
41
|
if (!isCompleted) {
|
|
41
|
-
throw new rubic_sdk_error_1.RubicSdkError('[
|
|
42
|
+
throw new rubic_sdk_error_1.RubicSdkError('[TonAdapterSigner] TON transaction timeout expired!');
|
|
42
43
|
}
|
|
43
44
|
return boc;
|
|
44
45
|
}
|
|
@@ -509,25 +509,6 @@ exports.viemConfig = {
|
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
511
|
}),
|
|
512
|
-
POLYGON_ZKEVM: (0, viem_1.defineChain)({
|
|
513
|
-
blockExplorers: {
|
|
514
|
-
default: {
|
|
515
|
-
apiUrl: 'https://zkevm.polygonscan.com/',
|
|
516
|
-
name: 'POLYGON_ZKEVM Explorer',
|
|
517
|
-
url: 'https://zkevm.polygonscan.com/'
|
|
518
|
-
}
|
|
519
|
-
},
|
|
520
|
-
id: 1101,
|
|
521
|
-
name: 'Polygon zkEVM',
|
|
522
|
-
nativeCurrency: { decimals: 18, name: 'ETH', symbol: 'ETH' },
|
|
523
|
-
rpcUrls: { default: { http: ['https://zkevm-rpc.com'] } },
|
|
524
|
-
testnet: false,
|
|
525
|
-
contracts: {
|
|
526
|
-
multicall3: {
|
|
527
|
-
address: '0xcA11bde05977b3631167028862bE2a173976CA11'
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
}),
|
|
531
512
|
ETHEREUM_CLASSIC: (0, viem_1.defineChain)({
|
|
532
513
|
blockExplorers: {
|
|
533
514
|
default: {
|
|
@@ -8,7 +8,6 @@ exports.viemBlockchainMapping = {
|
|
|
8
8
|
[core_1.BLOCKCHAIN_NAME.ETHEREUM]: chains_1.mainnet,
|
|
9
9
|
[core_1.BLOCKCHAIN_NAME.BINANCE_SMART_CHAIN]: chains_1.bsc,
|
|
10
10
|
[core_1.BLOCKCHAIN_NAME.POLYGON]: chains_1.polygon,
|
|
11
|
-
[core_1.BLOCKCHAIN_NAME.POLYGON_ZKEVM]: chains_1.polygonZkEvm,
|
|
12
11
|
[core_1.BLOCKCHAIN_NAME.HARMONY]: chains_1.harmonyOne,
|
|
13
12
|
[core_1.BLOCKCHAIN_NAME.AVALANCHE]: chains_1.avalanche,
|
|
14
13
|
[core_1.BLOCKCHAIN_NAME.MOONRIVER]: chains_1.moonriver,
|