Jesulonimi21 / Swift-Algorand-Sdk

A Swift Sdk for interacting with the Algorand Blockchain
MIT License
19 stars 13 forks source link

Changes to optional handling within throwing functions to propagate e… #1

Closed Kcarter787 closed 3 years ago

Kcarter787 commented 3 years ago
Jesulonimi21 commented 3 years ago

Thanks a lot for this PR, your contribution is always welcome.

Kcarter787 commented 3 years ago

Glad to help! What do you have planned for upcoming changes/improvements?

I think there are things I could help with, but I wouldn't want to clash with your efforts.

Jesulonimi21 commented 3 years ago

Glad to help! What do you have planned for upcoming changes/improvements?

I think there are things I could help with, but I wouldn't want to clash with your efforts.

Am presently trying to make sure all Algod functions are available then after that, I'll be working on Stateful smart contracts, Application call transactions and then KMD

BTW, are you familiar with Algorand Tech?

Kcarter787 commented 3 years ago

I'm familiar with the tech at a high level but I've only done the basic Python sdk and pyteal tutorials so there are a lot of details I'm not familiar with. However I'm very familiar with Swift and developing SDKs.

Lately, I've been familiarizing myself with the v2 rest endpoints and how each official sdk interfaces with them so that I can better understand what's happening and where.

I thought it might be helpful to create a 1:1 api wrapper using Swift Codable structs that match the api request/response schema. Although it wouldn't add any functionality directly it seems like it would be helpful for development and possibly as a fallback for features the sdk doesn't support fully yet. Any thoughts on this?

Jesulonimi21 commented 3 years ago

I think a lot of the work for the request/response schema for the v2 API has already been done, especially for the Indexer, although this was done using Classes that implement the codable protocol, not structs.