-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add bytesToBool function (#152)
- Loading branch information
Showing
9 changed files
with
151 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import type { BaseContract, Signer, utils } from "ethers"; | ||
|
||
import type { Listener, Provider } from "@ethersproject/providers"; | ||
import type { | ||
TypedEventFilter, | ||
TypedEvent, | ||
TypedListener, | ||
OnEvent, | ||
} from "../common"; | ||
|
||
export interface BytesHelperLibInterface extends utils.Interface { | ||
functions: {}; | ||
|
||
events: {}; | ||
} | ||
|
||
export interface BytesHelperLib extends BaseContract { | ||
connect(signerOrProvider: Signer | Provider | string): this; | ||
attach(addressOrName: string): this; | ||
deployed(): Promise<this>; | ||
|
||
interface: BytesHelperLibInterface; | ||
|
||
queryFilter<TEvent extends TypedEvent>( | ||
event: TypedEventFilter<TEvent>, | ||
fromBlockOrBlockhash?: string | number | undefined, | ||
toBlock?: string | number | undefined | ||
): Promise<Array<TEvent>>; | ||
|
||
listeners<TEvent extends TypedEvent>( | ||
eventFilter?: TypedEventFilter<TEvent> | ||
): Array<TypedListener<TEvent>>; | ||
listeners(eventName?: string): Array<Listener>; | ||
removeAllListeners<TEvent extends TypedEvent>( | ||
eventFilter: TypedEventFilter<TEvent> | ||
): this; | ||
removeAllListeners(eventName?: string): this; | ||
off: OnEvent<this>; | ||
on: OnEvent<this>; | ||
once: OnEvent<this>; | ||
removeListener: OnEvent<this>; | ||
|
||
functions: {}; | ||
|
||
callStatic: {}; | ||
|
||
filters: {}; | ||
|
||
estimateGas: {}; | ||
|
||
populateTransaction: {}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
typechain-types/factories/contracts/BytesHelperLib__factory.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; | ||
import type { Provider, TransactionRequest } from "@ethersproject/providers"; | ||
import type { PromiseOrValue } from "../../common"; | ||
import type { | ||
BytesHelperLib, | ||
BytesHelperLibInterface, | ||
} from "../../contracts/BytesHelperLib"; | ||
|
||
const _abi = [ | ||
{ | ||
inputs: [], | ||
name: "OffsetOutOfBounds", | ||
type: "error", | ||
}, | ||
] as const; | ||
|
||
const _bytecode = | ||
"0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220db9c0f1b135916f15772ca92fae45f42347adcdba0acca9f1f72dea8794c690664736f6c63430008070033"; | ||
|
||
type BytesHelperLibConstructorParams = | ||
| [signer?: Signer] | ||
| ConstructorParameters<typeof ContractFactory>; | ||
|
||
const isSuperArgs = ( | ||
xs: BytesHelperLibConstructorParams | ||
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1; | ||
|
||
export class BytesHelperLib__factory extends ContractFactory { | ||
constructor(...args: BytesHelperLibConstructorParams) { | ||
if (isSuperArgs(args)) { | ||
super(...args); | ||
} else { | ||
super(_abi, _bytecode, args[0]); | ||
} | ||
} | ||
|
||
override deploy( | ||
overrides?: Overrides & { from?: PromiseOrValue<string> } | ||
): Promise<BytesHelperLib> { | ||
return super.deploy(overrides || {}) as Promise<BytesHelperLib>; | ||
} | ||
override getDeployTransaction( | ||
overrides?: Overrides & { from?: PromiseOrValue<string> } | ||
): TransactionRequest { | ||
return super.getDeployTransaction(overrides || {}); | ||
} | ||
override attach(address: string): BytesHelperLib { | ||
return super.attach(address) as BytesHelperLib; | ||
} | ||
override connect(signer: Signer): BytesHelperLib__factory { | ||
return super.connect(signer) as BytesHelperLib__factory; | ||
} | ||
|
||
static readonly bytecode = _bytecode; | ||
static readonly abi = _abi; | ||
static createInterface(): BytesHelperLibInterface { | ||
return new utils.Interface(_abi) as BytesHelperLibInterface; | ||
} | ||
static connect( | ||
address: string, | ||
signerOrProvider: Signer | Provider | ||
): BytesHelperLib { | ||
return new Contract(address, _abi, signerOrProvider) as BytesHelperLib; | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
typechain-types/factories/contracts/shared/MockZRC20__factory.ts
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters