Skip to content

Commit

Permalink
New Tool: Build a Flow SDK [Rust] - Milestone 2 (#60)
Browse files Browse the repository at this point in the history
* Flow.rs Milestone 2

* Update with link to repo
  • Loading branch information
fee1-dead authored Nov 10, 2021
1 parent c81dca8 commit 7f982b3
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions submissions/issue-20/milestone-2/fee1-dead/20211010-milestone-2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# `flow-sdk` status update

See [the flow.rs repository](https://github.com/fee1-dead/flow.rs).

Instead of using `prost`, a new crate named `otopr` has been built from scratch.
Since `otopr` does not yet have the capability to generate Rust sources from `.proto` files,
entities are implemented by hand.

User stories checklist:

Blocks - See [`examples/blocks.rs`](https://github.com/fee1-dead/flow.rs/blob/master/examples/blocks.rs):
- [x] retrieve a block by ID
- [x] retrieve a block by height
- [x] retrieve the latest block

Collections - See [`examples/collections.rs`](https://github.com/fee1-dead/flow.rs/blob/master/examples/collections.rs):
- [x] retrieve a collection by ID

Events - See [`examples/events.rs`](https://github.com/fee1-dead/flow.rs/blob/master/examples/events.rs):
- [x] retrieve events by name in the block height range

Scripts:
- [ ] submit a script and parse the response - Needs parsing
- [ ] submit a script with arguments and parse the response - Needs parsing

Accounts - See [`examples/accounts.rs`](https://github.com/fee1-dead/flow.rs/blob/master/examples/accounts.rs):
- [x] retrieve an account by address
- [ ] create a new account - A transaction with provided cadence template
- [ ] deploy a new contract to the account - A transaction with provided cadence template
- [ ] remove a contract from the account - A transaction with provided cadence template
- [ ] update an existing contract on the account - A transaction with provided cadence template

Transactions - See [`examples/transactions.rs`](https://github.com/fee1-dead/flow.rs/blob/master/examples/transactions.rs):
- [ ] retrieve a transaction by ID - Arguments of the transaction will eventually be parsed or used as plain text only
- [x] sign a transaction (single payer, proposer, authorizer or combination of multiple)
- [x] submit a signed transaction
- [ ] sign a transaction with arguments and submit it - Requires Cryptography and Access API - Arguments need to be serialized as Cadence-JSON

0 comments on commit 7f982b3

Please sign in to comment.