-
Notifications
You must be signed in to change notification settings - Fork 3
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
Initial SDK release #10
Initial SDK release #10
Conversation
BOOST-3883 Protocol V2 SDK Creation Flow
Create
This is our current data structure for creation:
There's two different networks in play - the action network and the reward network. Assuming we're going to be using a node-based architecture with edges on each network we presumably don't need to monitor the chain-state. Initially it probably makes sense for the contract network to be the reward network. In the new architecture we handle this by passing There isn't currently a notion of This leaves all of the remaining fields that need to be represented on-chain in some fashion:
We need to create an Action that encodes all of this information. |
}), | ||
]); | ||
|
||
await core.write.createBoost([ |
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.
hell yeah this looking sexy af 🔥
packages/sdk/src/index.ts
Outdated
// // create simple budget | ||
// } | ||
|
||
// if (!payload.action) { |
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 is what I'm going to start working on today
packages/sdk/src/BoostClient.ts
Outdated
this.config = config; | ||
} | ||
|
||
public async *createBoost({ |
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 like an AsyncGenerator for this to provide incremental updates to the calling context, you could potentially feed them into SSE or websockets for good feedback, and you have better clarity into how far the task got if something went wrong.
2d42c2d
to
85d1e7f
Compare
@boostxyz/sdk
, v0 structure, functionality for all protocol artifacts (except ERC1155Incentive)