-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Feat: update typescript/app template to latest bindings #1855
Conversation
@@ -0,0 +1,15 @@ | |||
import { BaseEthereum } from "./wrap"; |
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.
This would go in npm sdk
|
||
const client = new PolywrapClient(); | ||
import { Ethereum } from "./ethereum"; | ||
import { Logger } from "./logger"; |
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.
This would be npm wrap sdk
|
||
import { CoreClient, PolywrapClient } from "@polywrap/client-js"; | ||
|
||
export class Ethereum extends BaseEthereum { |
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.
As an app developer, it feels weird that I have to do this every time. I would imagine that the code below would be the "sane defaults", and if I wanted to change it I could do something like:
import { Ethereum as DefaultEthereum } from "./wrap"
class Ethereum extends DefaultEthereum {
protected _getDefaultClient(): CoreClient {
// TODO: create your own custom client
}
}
No description provided.