rubic-sdk 4.55.1 → 4.55.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/dist/rubic-sdk.min.js +73 -34
- package/dist/rubic-sdk.min.js.map +1 -1
- package/lib/common/tokens/constants/native-tokens.js +7 -0
- package/lib/common/tokens/constants/native-tokens.js.map +1 -1
- package/lib/common/tokens/constants/wrapped-addresses.js +2 -1
- package/lib/common/tokens/constants/wrapped-addresses.js.map +1 -1
- package/lib/common/tokens/constants/wrapped-native-tokens.js +7 -0
- package/lib/common/tokens/constants/wrapped-native-tokens.js.map +1 -1
- package/lib/core/blockchain/models/blockchain-name.d.ts +3 -0
- package/lib/core/blockchain/models/blockchain-name.js +2 -1
- package/lib/core/blockchain/models/blockchain-name.js.map +1 -1
- package/lib/core/blockchain/utils/blockchains-info/constants/blockchain-id.js +1 -0
- package/lib/core/blockchain/utils/blockchains-info/constants/blockchain-id.js.map +1 -1
- package/lib/core/blockchain/web3-private-service/models/web-private-supported-blockchain.d.ts +1 -1
- package/lib/core/blockchain/web3-public-service/models/web3-public-storage.d.ts +1 -1
- package/lib/core/blockchain/web3-public-service/web3-public/constants/multicall-addresses.js +2 -1
- package/lib/core/blockchain/web3-public-service/web3-public/constants/multicall-addresses.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/taiko-bridge/constants/taiko-bridge-contract-address.d.ts +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/taiko-bridge/constants/taiko-bridge-contract-address.js +3 -3
- package/lib/features/cross-chain/calculation-manager/providers/taiko-bridge/constants/taiko-gateway-abi.js +40 -19
- package/lib/features/cross-chain/calculation-manager/providers/taiko-bridge/constants/taiko-gateway-abi.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/taiko-bridge/models/taiko-bridge-supported-blockchains.d.ts +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/taiko-bridge/models/taiko-bridge-supported-blockchains.js +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/taiko-bridge/taiko-bridge-trade.js +8 -8
- package/lib/features/cross-chain/calculation-manager/providers/taiko-bridge/taiko-bridge-trade.js.map +1 -1
- package/package.json +1 -1
package/dist/rubic-sdk.min.js
CHANGED
|
@@ -181134,6 +181134,13 @@ const testnetNativeTokens = {
|
|
|
181134
181134
|
name: 'Ether',
|
|
181135
181135
|
symbol: 'ETH',
|
|
181136
181136
|
decimals: 18
|
|
181137
|
+
}),
|
|
181138
|
+
[blockchain_name_1.BLOCKCHAIN_NAME.HOLESKY]: new token_1.Token({
|
|
181139
|
+
blockchain: blockchain_name_1.BLOCKCHAIN_NAME.HOLESKY,
|
|
181140
|
+
address: evm_web3_pure_1.EvmWeb3Pure.nativeTokenAddress,
|
|
181141
|
+
name: 'Ether',
|
|
181142
|
+
symbol: 'ETH',
|
|
181143
|
+
decimals: 18
|
|
181137
181144
|
})
|
|
181138
181145
|
};
|
|
181139
181146
|
exports.nativeTokensList = {
|
|
@@ -181495,7 +181502,8 @@ exports.wrappedAddress = {
|
|
|
181495
181502
|
[blockchain_name_1.BLOCKCHAIN_NAME.TAIKO]: '0x0011E559da84dde3f841e22dc33F3adbF184D84A',
|
|
181496
181503
|
[blockchain_name_1.BLOCKCHAIN_NAME.SEPOLIA]: '0xfff9976782d46cc05630d1f6ebab18b2324d6b14',
|
|
181497
181504
|
[blockchain_name_1.BLOCKCHAIN_NAME.BERACHAIN]: '0x5806E416dA447b267cEA759358cF22Cc41FAE80F',
|
|
181498
|
-
[blockchain_name_1.BLOCKCHAIN_NAME.BLAST]: '0x4200000000000000000000000000000000000023'
|
|
181505
|
+
[blockchain_name_1.BLOCKCHAIN_NAME.BLAST]: '0x4200000000000000000000000000000000000023',
|
|
181506
|
+
[blockchain_name_1.BLOCKCHAIN_NAME.HOLESKY]: ''
|
|
181499
181507
|
};
|
|
181500
181508
|
|
|
181501
181509
|
|
|
@@ -181885,6 +181893,13 @@ exports.wrappedNativeTokensList = {
|
|
|
181885
181893
|
name: 'Wrapped Zeta',
|
|
181886
181894
|
symbol: 'WZETA',
|
|
181887
181895
|
decimals: 18
|
|
181896
|
+
}),
|
|
181897
|
+
[blockchain_name_1.BLOCKCHAIN_NAME.HOLESKY]: new token_1.Token({
|
|
181898
|
+
blockchain: blockchain_name_1.BLOCKCHAIN_NAME.HOLESKY,
|
|
181899
|
+
address: '',
|
|
181900
|
+
name: 'Wrapped ETH',
|
|
181901
|
+
symbol: 'WETH',
|
|
181902
|
+
decimals: 18
|
|
181888
181903
|
})
|
|
181889
181904
|
};
|
|
181890
181905
|
|
|
@@ -183074,7 +183089,8 @@ exports.TEST_EVM_BLOCKCHAIN_NAME = {
|
|
|
183074
183089
|
TAIKO: 'TAIKO',
|
|
183075
183090
|
SEPOLIA: 'SEPOLIA',
|
|
183076
183091
|
BERACHAIN: 'BERACHAIN',
|
|
183077
|
-
BLAST: 'BLAST'
|
|
183092
|
+
BLAST: 'BLAST',
|
|
183093
|
+
HOLESKY: 'HOLESKY'
|
|
183078
183094
|
};
|
|
183079
183095
|
exports.EVM_BLOCKCHAIN_NAME = {
|
|
183080
183096
|
...exports.TEST_EVM_BLOCKCHAIN_NAME,
|
|
@@ -183443,6 +183459,7 @@ exports.blockchainId = {
|
|
|
183443
183459
|
[blockchain_name_1.BLOCKCHAIN_NAME.SEPOLIA]: 11155111,
|
|
183444
183460
|
[blockchain_name_1.BLOCKCHAIN_NAME.BERACHAIN]: 80085,
|
|
183445
183461
|
[blockchain_name_1.BLOCKCHAIN_NAME.BLAST]: 168587773,
|
|
183462
|
+
[blockchain_name_1.BLOCKCHAIN_NAME.HOLESKY]: 17000,
|
|
183446
183463
|
// Non EVN blockchains
|
|
183447
183464
|
[blockchain_name_1.BLOCKCHAIN_NAME.BITCOIN]: 5555,
|
|
183448
183465
|
[blockchain_name_1.BLOCKCHAIN_NAME.FILECOIN]: 314
|
|
@@ -184555,7 +184572,8 @@ exports.MULTICALL_ADDRESSES = {
|
|
|
184555
184572
|
[blockchain_name_1.BLOCKCHAIN_NAME.SCROLL]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
184556
184573
|
[blockchain_name_1.BLOCKCHAIN_NAME.BERACHAIN]: '',
|
|
184557
184574
|
[blockchain_name_1.BLOCKCHAIN_NAME.BLAST]: '',
|
|
184558
|
-
[blockchain_name_1.BLOCKCHAIN_NAME.ZETACHAIN]: '0xcA11bde05977b3631167028862bE2a173976CA11'
|
|
184575
|
+
[blockchain_name_1.BLOCKCHAIN_NAME.ZETACHAIN]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
184576
|
+
[blockchain_name_1.BLOCKCHAIN_NAME.HOLESKY]: '0xcA11bde05977b3631167028862bE2a173976CA11'
|
|
184559
184577
|
};
|
|
184560
184578
|
|
|
184561
184579
|
|
|
@@ -204543,9 +204561,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
204543
204561
|
exports.taikoBridgeContractAddress = void 0;
|
|
204544
204562
|
const blockchain_name_1 = __webpack_require__(/*! ../../../../../../core/blockchain/models/blockchain-name */ "./src/core/blockchain/models/blockchain-name.ts");
|
|
204545
204563
|
exports.taikoBridgeContractAddress = {
|
|
204546
|
-
[blockchain_name_1.BLOCKCHAIN_NAME.
|
|
204547
|
-
nativeProvider: '
|
|
204548
|
-
erc20Provider: '
|
|
204564
|
+
[blockchain_name_1.BLOCKCHAIN_NAME.HOLESKY]: {
|
|
204565
|
+
nativeProvider: '0xf458747c6d6db57970dE80Da6474C0A3dfE94BF1',
|
|
204566
|
+
erc20Provider: '0x095DDce4fd8818aD159D778E6a9898A2474933ca'
|
|
204549
204567
|
},
|
|
204550
204568
|
[blockchain_name_1.BLOCKCHAIN_NAME.TAIKO]: {
|
|
204551
204569
|
nativeProvider: '0x1670080000000000000000000000000000000001',
|
|
@@ -204568,31 +204586,52 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
204568
204586
|
exports.taikoERC20BridgeABI = exports.taikoNativeBridgeABI = void 0;
|
|
204569
204587
|
exports.taikoNativeBridgeABI = [
|
|
204570
204588
|
{
|
|
204571
|
-
stateMutability: 'payable',
|
|
204572
|
-
type: 'function',
|
|
204573
204589
|
inputs: [
|
|
204574
204590
|
{
|
|
204575
|
-
name: 'message',
|
|
204576
|
-
internalType: 'struct IBridge.Message',
|
|
204577
|
-
type: 'tuple',
|
|
204578
204591
|
components: [
|
|
204579
|
-
{
|
|
204580
|
-
{
|
|
204581
|
-
{
|
|
204582
|
-
{
|
|
204583
|
-
{
|
|
204584
|
-
{
|
|
204585
|
-
{
|
|
204586
|
-
{
|
|
204587
|
-
{
|
|
204588
|
-
{
|
|
204589
|
-
{
|
|
204590
|
-
{
|
|
204591
|
-
]
|
|
204592
|
+
{ internalType: 'uint128', name: 'id', type: 'uint128' },
|
|
204593
|
+
{ internalType: 'address', name: 'from', type: 'address' },
|
|
204594
|
+
{ internalType: 'uint64', name: 'srcChainId', type: 'uint64' },
|
|
204595
|
+
{ internalType: 'uint64', name: 'destChainId', type: 'uint64' },
|
|
204596
|
+
{ internalType: 'address', name: 'owner', type: 'address' },
|
|
204597
|
+
{ internalType: 'address', name: 'to', type: 'address' },
|
|
204598
|
+
{ internalType: 'address', name: 'refundTo', type: 'address' },
|
|
204599
|
+
{ internalType: 'uint256', name: 'value', type: 'uint256' },
|
|
204600
|
+
{ internalType: 'uint256', name: 'fee', type: 'uint256' },
|
|
204601
|
+
{ internalType: 'uint256', name: 'gasLimit', type: 'uint256' },
|
|
204602
|
+
{ internalType: 'bytes', name: 'data', type: 'bytes' },
|
|
204603
|
+
{ internalType: 'string', name: 'memo', type: 'string' }
|
|
204604
|
+
],
|
|
204605
|
+
internalType: 'struct IBridge.Message',
|
|
204606
|
+
name: 'message',
|
|
204607
|
+
type: 'tuple'
|
|
204592
204608
|
}
|
|
204593
204609
|
],
|
|
204594
204610
|
name: 'sendMessage',
|
|
204595
|
-
outputs: [
|
|
204611
|
+
outputs: [
|
|
204612
|
+
{ internalType: 'bytes32', name: 'msgHash', type: 'bytes32' },
|
|
204613
|
+
{
|
|
204614
|
+
components: [
|
|
204615
|
+
{ internalType: 'uint128', name: 'id', type: 'uint128' },
|
|
204616
|
+
{ internalType: 'address', name: 'from', type: 'address' },
|
|
204617
|
+
{ internalType: 'uint64', name: 'srcChainId', type: 'uint64' },
|
|
204618
|
+
{ internalType: 'uint64', name: 'destChainId', type: 'uint64' },
|
|
204619
|
+
{ internalType: 'address', name: 'owner', type: 'address' },
|
|
204620
|
+
{ internalType: 'address', name: 'to', type: 'address' },
|
|
204621
|
+
{ internalType: 'address', name: 'refundTo', type: 'address' },
|
|
204622
|
+
{ internalType: 'uint256', name: 'value', type: 'uint256' },
|
|
204623
|
+
{ internalType: 'uint256', name: 'fee', type: 'uint256' },
|
|
204624
|
+
{ internalType: 'uint256', name: 'gasLimit', type: 'uint256' },
|
|
204625
|
+
{ internalType: 'bytes', name: 'data', type: 'bytes' },
|
|
204626
|
+
{ internalType: 'string', name: 'memo', type: 'string' }
|
|
204627
|
+
],
|
|
204628
|
+
internalType: 'struct IBridge.Message',
|
|
204629
|
+
name: '_message',
|
|
204630
|
+
type: 'tuple'
|
|
204631
|
+
}
|
|
204632
|
+
],
|
|
204633
|
+
stateMutability: 'payable',
|
|
204634
|
+
type: 'function'
|
|
204596
204635
|
}
|
|
204597
204636
|
];
|
|
204598
204637
|
exports.taikoERC20BridgeABI = [
|
|
@@ -204637,7 +204676,7 @@ exports.taikoBridgeSupportedBlockchains = void 0;
|
|
|
204637
204676
|
const blockchain_name_1 = __webpack_require__(/*! ../../../../../../core/blockchain/models/blockchain-name */ "./src/core/blockchain/models/blockchain-name.ts");
|
|
204638
204677
|
exports.taikoBridgeSupportedBlockchains = [
|
|
204639
204678
|
blockchain_name_1.BLOCKCHAIN_NAME.TAIKO,
|
|
204640
|
-
blockchain_name_1.BLOCKCHAIN_NAME.
|
|
204679
|
+
blockchain_name_1.BLOCKCHAIN_NAME.HOLESKY
|
|
204641
204680
|
];
|
|
204642
204681
|
|
|
204643
204682
|
|
|
@@ -204831,25 +204870,25 @@ class TaikoBridgeTrade extends evm_cross_chain_trade_1.EvmCrossChainTrade {
|
|
|
204831
204870
|
let methodArguments;
|
|
204832
204871
|
let fee;
|
|
204833
204872
|
const account = this.web3Private.address;
|
|
204834
|
-
if (this.fromBlockchain === blockchain_name_1.BLOCKCHAIN_NAME.
|
|
204873
|
+
if (this.fromBlockchain === blockchain_name_1.BLOCKCHAIN_NAME.HOLESKY) {
|
|
204835
204874
|
if (this.from.isNative) {
|
|
204836
204875
|
methodArguments = [
|
|
204837
204876
|
{
|
|
204838
204877
|
id: 0,
|
|
204839
204878
|
from: account,
|
|
204840
|
-
srcChainId: blockchain_id_1.blockchainId[blockchain_name_1.BLOCKCHAIN_NAME.
|
|
204879
|
+
srcChainId: blockchain_id_1.blockchainId[blockchain_name_1.BLOCKCHAIN_NAME.HOLESKY],
|
|
204841
204880
|
destChainId: blockchain_id_1.blockchainId[blockchain_name_1.BLOCKCHAIN_NAME.TAIKO],
|
|
204842
|
-
|
|
204881
|
+
owner: account,
|
|
204843
204882
|
to: account,
|
|
204844
204883
|
refundTo: account,
|
|
204845
204884
|
value: this.from.stringWeiAmount,
|
|
204846
|
-
fee: '
|
|
204885
|
+
fee: '9000000',
|
|
204847
204886
|
gasLimit: '140000',
|
|
204848
204887
|
data: '0x',
|
|
204849
204888
|
memo: ''
|
|
204850
204889
|
}
|
|
204851
204890
|
];
|
|
204852
|
-
fee = '
|
|
204891
|
+
fee = '9000000';
|
|
204853
204892
|
}
|
|
204854
204893
|
else {
|
|
204855
204894
|
methodArguments = [
|
|
@@ -204874,8 +204913,8 @@ class TaikoBridgeTrade extends evm_cross_chain_trade_1.EvmCrossChainTrade {
|
|
|
204874
204913
|
id: 0,
|
|
204875
204914
|
from: account,
|
|
204876
204915
|
srcChainId: blockchain_id_1.blockchainId[blockchain_name_1.BLOCKCHAIN_NAME.TAIKO],
|
|
204877
|
-
destChainId: blockchain_id_1.blockchainId[blockchain_name_1.BLOCKCHAIN_NAME.
|
|
204878
|
-
|
|
204916
|
+
destChainId: blockchain_id_1.blockchainId[blockchain_name_1.BLOCKCHAIN_NAME.HOLESKY],
|
|
204917
|
+
owner: account,
|
|
204879
204918
|
to: account,
|
|
204880
204919
|
refundTo: account,
|
|
204881
204920
|
value: this.from.stringWeiAmount,
|
|
@@ -204890,7 +204929,7 @@ class TaikoBridgeTrade extends evm_cross_chain_trade_1.EvmCrossChainTrade {
|
|
|
204890
204929
|
else {
|
|
204891
204930
|
methodArguments = [
|
|
204892
204931
|
{
|
|
204893
|
-
destChainId: blockchain_id_1.blockchainId[blockchain_name_1.BLOCKCHAIN_NAME.
|
|
204932
|
+
destChainId: blockchain_id_1.blockchainId[blockchain_name_1.BLOCKCHAIN_NAME.HOLESKY],
|
|
204894
204933
|
to: account,
|
|
204895
204934
|
token: this.from.address,
|
|
204896
204935
|
amount: this.from.stringWeiAmount,
|