@layerzerolabs/devtools-evm
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -5,2 +5,3 @@ import { Bytes32, Address, WithEid, OmniPoint, Factory, IOmniSDK as IOmniSDK$1, EndpointBasedFactory, OmniTransaction, OmniSigner, OmniTransactionResponse } from '@layerzerolabs/devtools'; | ||
import { TransactionReceipt, BaseProvider, JsonRpcProvider } from '@ethersproject/providers'; | ||
import { Logger } from '@layerzerolabs/io-devtools'; | ||
import { z } from 'zod'; | ||
@@ -142,2 +143,3 @@ import { BigNumberish, BigNumber } from '@ethersproject/bignumber/lib/bignumber'; | ||
readonly contract: OmniContract; | ||
protected readonly logger: Logger; | ||
/** | ||
@@ -163,3 +165,3 @@ * Registers a `OmniContractErrorParserFactory` function to be used when | ||
static createErrorParser(contract: OmniContract | null | undefined): OmniContractErrorParser | Promise<OmniContractErrorParser>; | ||
constructor(contract: OmniContract); | ||
constructor(contract: OmniContract, logger?: Logger); | ||
get point(): OmniPoint; | ||
@@ -166,0 +168,0 @@ protected createTransaction(data: string): OmniTransaction; |
@@ -213,8 +213,9 @@ 'use strict'; | ||
var formatOmniContract = (contract) => `EVM contract at ${devtools.formatOmniPoint(omniContractToPoint(contract))}`; | ||
// src/omnigraph/sdk.ts | ||
var _errorParserFactory; | ||
var OmniSDK = class { | ||
constructor(contract) { | ||
constructor(contract, logger = ioDevtools.createModuleLogger( | ||
`EVM SDK ${new.target.name} @ ${formatOmniContract(contract)}` | ||
)) { | ||
this.contract = contract; | ||
this.logger = logger; | ||
} | ||
@@ -221,0 +222,0 @@ /** |
{ | ||
"name": "@layerzerolabs/devtools-evm", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Utilities for LayerZero EVM projects", | ||
@@ -79,4 +79,4 @@ "repository": { | ||
"lint": "$npm_execpath eslint '**/*.{js,ts,json}'", | ||
"test": "jest" | ||
"test": "jest --ci" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
90290
790