-
Notifications
You must be signed in to change notification settings - Fork 0
add doughnut to api.js to mirror substrate 2.0 changes #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| state: { | ||
| call(method: Text | string, data: Bytes | Uint8Array | string, block?: Hash | Uint8Array | string): Observable<Bytes>; | ||
| getChildKeys(childStorageKey: any, prefix: any, block?: Hash | Uint8Array | string): Observable<Vec<StorageKey>>; | ||
| getChildKeys(childStorageKey: any, key: any, block?: Hash | Uint8Array | string): Observable<Vec<StorageKey>>; |
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.
👍
| getChildStorageHash(childStorageKey: any, key: any, block?: Hash | Uint8Array | string): Observable<Hash>; | ||
| getChildStorageSize(childStorageKey: any, key: any, block?: Hash | Uint8Array | string): Observable<u64>; | ||
| getKeys(prefix: any, block?: Hash | Uint8Array | string): Observable<Vec<StorageKey>>; | ||
| getKeys(key: any, block?: Hash | Uint8Array | string): Observable<Vec<StorageKey>>; |
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.
👍
|
@ianhe8x please advise about the travisci errors |
| // We can ignore the properties, added via Struct.with | ||
| const _Payload: Constructor<SignerPayloadType> = Struct.with({ | ||
| address: 'Address', | ||
| doughnut: Option.with(Doughnut), |
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.
I suggest you use 'Option<Doughnut>' which will allow user replace the default implementation
|
I don't see doughnut is included anywhere in Extrinsic, the changes are all about having doughnut in signature. |
|
I also suggest not changing the default extrinsic implementation, which might make rebasing polkadotjs too much difficult. you can make a doughnut-type package or a doughnut folder in types to contain the modified version of extrinsic related classes, and change |
|
I'm not sure what happens to the ci, need more investigation. |
closes #23