@cryptorubic/web3 1.0.0-alpha.no-sdk.11 → 1.0.0-alpha.no-sdk.12
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/package.json
CHANGED
|
@@ -39,6 +39,11 @@ export declare class EvmAdapter extends AbstractAdapter<PublicActions & PublicCl
|
|
|
39
39
|
* @param size byte size.
|
|
40
40
|
*/
|
|
41
41
|
static randomHex(size: number): string;
|
|
42
|
+
/**
|
|
43
|
+
* Converts address to checksum format.
|
|
44
|
+
* @param address Address to convert.
|
|
45
|
+
*/
|
|
46
|
+
static toChecksumAddress(address: string): string;
|
|
42
47
|
simulateTransaction(config: EvmTransactionConfig, from: string, timeout?: number): Promise<string>;
|
|
43
48
|
callForTokensInfo(tokenAddresses: string[] | ReadonlyArray<string>): Promise<Token<EvmBlockchainName>[]>;
|
|
44
49
|
getGasPrice(): Promise<string>;
|
|
@@ -184,6 +184,13 @@ class EvmAdapter extends abstract_adapter_1.AbstractAdapter {
|
|
|
184
184
|
crypto.getRandomValues(bytes);
|
|
185
185
|
return (0, viem_1.toHex)(bytes);
|
|
186
186
|
}
|
|
187
|
+
/**
|
|
188
|
+
* Converts address to checksum format.
|
|
189
|
+
* @param address Address to convert.
|
|
190
|
+
*/
|
|
191
|
+
static toChecksumAddress(address) {
|
|
192
|
+
return (0, viem_1.getAddress)(address);
|
|
193
|
+
}
|
|
187
194
|
async simulateTransaction(config, from, timeout = 15000) {
|
|
188
195
|
try {
|
|
189
196
|
const callParams = {
|