Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

chore: high level api speccing #107

Closed
wants to merge 6 commits into from
Closed

Conversation

harrysolovay
Copy link
Contributor

No description provided.

Comment on lines +1 to +17
export const enum NodeKind {
Chain = "Chain",
Metadata = "Metadata",
Pallet = "Pallet",
Block = "Block",
StorageItem = "StorageItem",
StorageMap = "StorageMap",
StorageMapValue = "StorageMapValue",
StorageMapKeysPage = "StorageMapKeysPage",
Access = "Access",
ExtrinsicFactory = "ExtrinsicFactory",
Extrinsic = "Extrinsic",
SignedExtrinsic = "SignedExtrinsic",
Event = "Event",
Read = "Read",
Subscribe = "Subscribe",
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought I had rid this land of these pests!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops. String literals from here on out. Fingers crossed!

Comment on lines +19 to +21
sign(sign: (message: Uint8Array) => Uint8Array): SignedExtrinsic {
return new SignedExtrinsic(this as Extrinsic, sign);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to also take extra and additional

@tjjfvi
Copy link
Contributor

tjjfvi commented Jun 13, 2022

I think all of these node classes should be named FooNode to reduce clashes

@harrysolovay
Copy link
Contributor Author

Technically, these will ultimately be effects (or at least the result of the final chained method call). Perhaps we prefix with Es?

@tjjfvi
Copy link
Contributor

tjjfvi commented Jun 13, 2022

I think the _node property on SyncEffect/AsyncEffect is a good paradigm to keep, in which case Node postfix makes sense.

@harrysolovay
Copy link
Contributor Author

Closing in favor of #132

@tjjfvi tjjfvi deleted the high-level-api-speccing branch September 17, 2022 20:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants