-
Notifications
You must be signed in to change notification settings - Fork 122
Conversation
.gitignore
Outdated
@@ -2,3 +2,4 @@ node_modules | |||
dist | |||
yarn-error.log | |||
*.DS_Store | |||
.idea |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is .idea
? Can you remove it?
src/index.d.ts
Outdated
provider: ethers.providers.Provider; | ||
signer: any; | ||
ens: any; | ||
name(name: any): Name; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name: any
should be name: string
src/index.d.ts
Outdated
signer: any; | ||
ens: any; | ||
name(name: any): Name; | ||
resolver(address: any): Resolver; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
address: any
should be address:string
src/index.d.ts
Outdated
ens: any; | ||
name(name: any): Name; | ||
resolver(address: any): Resolver; | ||
getName(address: any): Promise<{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
address: any
should be address:string
src/index.d.ts
Outdated
getName(address: any): Promise<{ | ||
name: any; | ||
}>; | ||
getNameWithResolver(address: any, resolverAddr: any): Promise<{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
both address
and resolverAddress
should be string
src/index.d.ts
Outdated
getNameWithResolver(address: any, resolverAddr: any): Promise<{ | ||
name: any; | ||
}>; | ||
setReverseRecord(name: any, overrides: any): Promise<any>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name
should be string
src/index.d.ts
Outdated
namehash: string; | ||
ens: any; | ||
ensWithSigner: any; | ||
name: any; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name
should be string
src/index.d.ts
Outdated
signer: any; | ||
resolver: any; | ||
getOwner(): Promise<any>; | ||
setOwner(address: any): Promise<any>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
address: any
should be address:string
src/index.d.ts
Outdated
getOwner(): Promise<any>; | ||
setOwner(address: any): Promise<any>; | ||
getResolver(): Promise<any>; | ||
setResolver(address: any): Promise<any>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
address: any
should be address:string
src/index.d.ts
Outdated
setResolver(address: any): Promise<any>; | ||
getTTL(): Promise<any>; | ||
getResolverAddr(): Promise<any>; | ||
getAddress(coinId: any): Promise<any>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
coinId
is number
src/index.d.ts
Outdated
getTTL(): Promise<any>; | ||
getResolverAddr(): Promise<any>; | ||
getAddress(coinId: any): Promise<any>; | ||
setAddress(key: any, address: any): Promise<any>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
key
and address
should be string
src/index.d.ts
Outdated
setSubnodeOwner(label: any, newOwner: any): Promise<any>; | ||
setSubnodeRecord(label: any, newOwner: any, resolver: any, ttl?: number): Promise<any>; | ||
createSubdomain(label: any): Promise<any>; | ||
deleteSubdomain(label: any): Promise<any>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All label
, newOwner
, resolverand
keyabove should be
string`
} | ||
declare class Resolver { | ||
constructor({ address, ens }: { | ||
address: any; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
address: any
should be address:string
address: any; | ||
ens: any; | ||
}); | ||
address: any; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
address: any
should be address:string
src/index.d.ts
Outdated
}); | ||
address: any; | ||
ens: any; | ||
name(name: any): Name; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name: any
should be name:string
src/index.js
Outdated
/** | ||
* Get ENS Contract | ||
* | ||
* // todo is Provider here meant to be provider from web3-core ? (may need to upgrade web3 library) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Save as above
src/index.js
Outdated
@@ -19,10 +19,25 @@ function getEnsAddress(networkId) { | |||
} | |||
} | |||
|
|||
/** | |||
* Get Resolver Contract | |||
* // todo is Provider here meant to be provider from web3-core ? (may need to upgrade web3 library) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The provider
is used at ethers.Contract
so whatever the type definition ethers.io uses. Ethers.js is written in Type script so probably you can import type from there?
src/utils/contents.d.ts
Outdated
@@ -0,0 +1,12 @@ | |||
export function decodeContenthash(encoded: any): { | |||
protocolType: any; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
string
Do we need any instruction on README on how to use this type definitions? |
…enerated by contributors who may use an IDE
Why was this closed? |
@martriay, I made an error, it is still open, but here: |
No description provided.