File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " @witnet/solidity" ,
3- "version" : " 3.0.12 " ,
3+ "version" : " 3.0.13 " ,
44 "description" : " Wit/Oracle Solidity Framework for EVM-compatible chains" ,
55 "author" : " Witnet Foundation <info@witnet.foundation>" ,
66 "license" : " MIT" ,
8181 "fmt!" : " pnpm run fmt!:js && pnpm run fmt!:sol" ,
8282 "fmt" : " pnpm run fmt:js && pnpm run fmt:sol" ,
8383 "deploy" : " npx truffle migrate --config ./truffle-config.cjs" ,
84+ "ops:wrb:acls" : " npx truffle migrate --config ./truffle-config.cjs --migrations_directory ./migrations/ops/wrb/acls --compile-none --network" ,
85+ "ops:curator" : " npx truffle migrate --config ./truffle-config.cjs --migrations_directory ./migrations/ops/wrb/curator --compile-none --network" ,
8486 "postinstall" : " node ./scripts/postinstall.cjs" ,
8587 "prepare" : " npx truffle compile --all --config ./truffle-config.cjs && npx hardhat compile --no-tests --force && npm run build && node ./scripts/prepare.cjs" ,
8688 "verify" : " npx hardhat run ./scripts/verify.js 2>&1" ,
Original file line number Diff line number Diff line change @@ -221,6 +221,14 @@ export function getEvmNetworkByChainId(chainId: number): string | undefined {
221221 else return undefined
222222}
223223
224+ export function getEvmNetworkId ( network : string ) : number | undefined {
225+ const found = Object . entries ( helpers . supportedNetworks ( ) ) . find (
226+ ( [ key ] : [ string , any ] ) => key . toLowerCase ( ) === network . toLowerCase ( ) ,
227+ )
228+ if ( found ) return ( found [ 1 ] as any ) ?. network_id ;
229+ else return undefined ;
230+ }
231+
224232export function getEvmNetworkSymbol ( network : string ) : string {
225233 const found = Object . entries ( helpers . supportedNetworks ( ) ) . find (
226234 ( [ key ] : [ string , any ] ) => key . toLowerCase ( ) === network . toLowerCase ( ) ,
You can’t perform that action at this time.
0 commit comments