@skalenetwork/skale-contracts-ethers-v5 0.0.2-main.2 → 0.0.3-main.0
Sign up to get free protection for your applications and to get access to all the features.
package/lib/ethers5Adapter.d.ts
CHANGED
@@ -7,4 +7,5 @@ export declare class Ethers5Adapter extends Adapter<BaseContract> {
|
|
7
7
|
createContract(address: string, abi: Abi): ethers.Contract;
|
8
8
|
makeCall(contract: ContractData, targetFunction: FunctionCall): Promise<unknown>;
|
9
9
|
getChainId(): Promise<bigint>;
|
10
|
+
isAddress(value: string): boolean;
|
10
11
|
}
|
package/lib/ethers5Adapter.js
CHANGED
@@ -22,6 +22,10 @@ class Ethers5Adapter extends skale_contracts_1.Adapter {
|
|
22
22
|
const { chainId } = await this.provider.getNetwork();
|
23
23
|
return BigInt(chainId);
|
24
24
|
}
|
25
|
+
// eslint-disable-next-line class-methods-use-this
|
26
|
+
isAddress(value) {
|
27
|
+
return ethers_1.ethers.utils.isAddress(value);
|
28
|
+
}
|
25
29
|
}
|
26
30
|
exports.Ethers5Adapter = Ethers5Adapter;
|
27
31
|
//# sourceMappingURL=ethers5Adapter.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ethers5Adapter.js","sourceRoot":"","sources":["../src/ethers5Adapter.ts"],"names":[],"mappings":";;;AAAA,mEAKuC;AACvC,mCAA8C;AAI9C,MAAa,cAAe,SAAQ,yBAAqB;IAGrD,YAAa,QAAkB;QAC3B,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;IAED,cAAc,CAAE,OAAe,EAAE,GAAQ;QACrC,OAAO,IAAI,eAAM,CAAC,QAAQ,CACtB,OAAO,EACP,IAAI,eAAM,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,EAC/B,IAAI,CAAC,QAAQ,CACA,CAAC;IACtB,CAAC;IAED,KAAK,CAAC,QAAQ,CACV,QAAsB,EACtB,cAA4B;QAE5B,MACI,iBAAiB,GAAG,IAAI,eAAM,CAAC,KAAK,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,CAAC,IAAI,CAAC;YACrB,MAAM,EAAE,iBAAiB,CAAC,kBAAkB,CACxC,cAAc,CAAC,YAAY,EAC3B,cAAc,CAAC,IAAI,CACtB;YACD,IAAI,EAAE,QAAQ,CAAC,OAAO;SACzB,CAAC,CACL,CAAC;QACN,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,KAAK,CAAC,UAAU;QACZ,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC;QACrD,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC;IAC3B,CAAC;IAED,kDAAkD;IAClD,SAAS,CAAE,KAAa;QACpB,OAAO,eAAM,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACzC,CAAC;CACJ;AA5CD,wCA4CC"}
|
package/package.json
CHANGED
@@ -3,7 +3,6 @@
|
|
3
3
|
"node": ">=16.0.0"
|
4
4
|
},
|
5
5
|
"devDependencies": {
|
6
|
-
"@skalenetwork/skale-contracts": "0.0.2-main.2",
|
7
6
|
"@types/node": "^20.5.0",
|
8
7
|
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
9
8
|
"@typescript-eslint/parser": "^6.0.0",
|
@@ -24,7 +23,8 @@
|
|
24
23
|
},
|
25
24
|
"types": "lib/index.d.ts",
|
26
25
|
"dependencies": {
|
26
|
+
"@skalenetwork/skale-contracts": "0.0.3-main.0",
|
27
27
|
"ethers": "^5.7.2"
|
28
28
|
},
|
29
|
-
"version": "0.0.
|
29
|
+
"version": "0.0.3-main.0"
|
30
30
|
}
|