rubic-sdk 4.1202.1-alpha → 4.1202.3-alpha
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 +12 -2
- package/dist/rubic-sdk.min.js +3 -4
- package/dist/rubic-sdk.min.js.map +1 -1
- package/lib/core/blockchain/web3-public-service/web3-public/web3-public.d.ts +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/debridge-provider/constants/contract-address.js +2 -3
- package/lib/features/cross-chain/calculation-manager/providers/debridge-provider/constants/contract-address.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/debridge-provider/debridge-cross-chain-trade.js +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/debridge-provider/debridge-cross-chain-trade.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
@@ -107,7 +107,12 @@
|
|
107
107
|
}
|
108
108
|
},
|
109
109
|
// if you are whitelisted integrator, provide your wallet address here
|
110
|
-
|
110
|
+
providerAddress: {
|
111
|
+
[CHAIN_TYPE.EVM]: {
|
112
|
+
crossChain: '0x0000000000000000000000000000000000000000', // Address for cross chain fee
|
113
|
+
onChain: '0x0000000000000000000000000000000000000000' // Address for on chain fee
|
114
|
+
}
|
115
|
+
}
|
111
116
|
}
|
112
117
|
|
113
118
|
async function main() {
|
@@ -156,7 +161,12 @@
|
|
156
161
|
}
|
157
162
|
},
|
158
163
|
// if you are whitelisted integrator, provide your wallet address here
|
159
|
-
providerAddress:
|
164
|
+
providerAddress: {
|
165
|
+
[CHAIN_TYPE.EVM]: {
|
166
|
+
crossChain: '0x0000000000000000000000000000000000000000', // Address for cross chain fee
|
167
|
+
onChain: '0x0000000000000000000000000000000000000000' // Address for on chain fee
|
168
|
+
}
|
169
|
+
}
|
160
170
|
}
|
161
171
|
```
|
162
172
|
2. Create sdk instance
|
package/dist/rubic-sdk.min.js
CHANGED
@@ -207981,7 +207981,6 @@ exports.DE_BRIDGE_CONTRACT_ABI = [
|
|
207981
207981
|
|
207982
207982
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
207983
207983
|
exports.DE_BRIDGE_CONTRACT_ADDRESS = void 0;
|
207984
|
-
const rubic_proxy_contract_address_1 = __webpack_require__(/*! ../../common/constants/rubic-proxy-contract-address */ "./src/features/cross-chain/calculation-manager/providers/common/constants/rubic-proxy-contract-address.ts");
|
207985
207984
|
const debridge_cross_chain_supported_blockchain_1 = __webpack_require__(/*! ./debridge-cross-chain-supported-blockchain */ "./src/features/cross-chain/calculation-manager/providers/debridge-provider/constants/debridge-cross-chain-supported-blockchain.ts");
|
207986
207985
|
const defaultContracts = {
|
207987
207986
|
providerRouter: '0x663DC15D3C1aC63ff12E45Ab68FeA3F0a883C251',
|
@@ -207991,8 +207990,8 @@ exports.DE_BRIDGE_CONTRACT_ADDRESS = debridge_cross_chain_supported_blockchain_1
|
|
207991
207990
|
return {
|
207992
207991
|
...acc,
|
207993
207992
|
[blockchain]: {
|
207994
|
-
...defaultContracts
|
207995
|
-
rubicRouter:
|
207993
|
+
...defaultContracts
|
207994
|
+
// rubicRouter: rubicProxyContractAddress[blockchain].gateway
|
207996
207995
|
}
|
207997
207996
|
};
|
207998
207997
|
}, {});
|
@@ -208247,7 +208246,7 @@ class DebridgeCrossChainTrade extends evm_cross_chain_trade_1.EvmCrossChainTrade
|
|
208247
208246
|
return this.from.blockchain;
|
208248
208247
|
}
|
208249
208248
|
get fromContractAddress() {
|
208250
|
-
return contract_address_1.DE_BRIDGE_CONTRACT_ADDRESS[this.fromBlockchain].
|
208249
|
+
return contract_address_1.DE_BRIDGE_CONTRACT_ADDRESS[this.fromBlockchain].providerGateway;
|
208251
208250
|
}
|
208252
208251
|
get methodName() {
|
208253
208252
|
return '';
|