Skip to content

Commit

Permalink
add types to package
Browse files Browse the repository at this point in the history
  • Loading branch information
ququzone committed Oct 7, 2023
1 parent dcfaafa commit d53734a
Show file tree
Hide file tree
Showing 104 changed files with 30,860 additions and 5 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Compiler files
cache/
out/
types/
foundry-out/

# Ignores development broadcast logs
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "smart-accounts",
"version": "0.1.1",
"version": "0.1.2",
"author": "ququzone <[email protected]>",
"license": "MIT",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions src/p256.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ export const sign = (keyPair: any, message: any) => {

export class P2565Signer implements Signer {
private keyPair: any
private signerAddr: string
private validatorAddr: string

constructor(keyPair: any, address: string) {
this.keyPair = keyPair
this.signerAddr = address
this.validatorAddr = address
}

address(): string {
return this.signerAddr
return this.validatorAddr
}

async data(): Promise<BytesLike> {
Expand Down
46 changes: 46 additions & 0 deletions types/Authority.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */

import {
ethers,
EventFilter,
Signer,
BigNumber,
BigNumberish,
PopulatedTransaction,
} from "ethers";
import { Contract, ContractTransaction } from "@ethersproject/contracts";
import { BytesLike } from "@ethersproject/bytes";
import { Listener, Provider } from "@ethersproject/providers";
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";

interface AuthorityInterface extends ethers.utils.Interface {
functions: {};

events: {};
}

export class Authority extends Contract {
connect(signerOrProvider: Signer | Provider | string): this;
attach(addressOrName: string): this;
deployed(): Promise<this>;

on(event: EventFilter | string, listener: Listener): this;
once(event: EventFilter | string, listener: Listener): this;
addListener(eventName: EventFilter | string, listener: Listener): this;
removeAllListeners(eventName: EventFilter | string): this;
removeListener(eventName: any, listener: Listener): this;

interface: AuthorityInterface;

functions: {};

callStatic: {};

filters: {};

estimateGas: {};

populateTransaction: {};
}
Loading

0 comments on commit d53734a

Please sign in to comment.