dotnet-stellar-sdk icon indicating copy to clipboard operation
dotnet-stellar-sdk copied to clipboard

Soroban

Open jopmiddelkamp opened this issue 1 year ago • 11 comments

Are there any plans to support Soroban in the near future?

jopmiddelkamp avatar Apr 04 '23 20:04 jopmiddelkamp

There is basic support on the soroban branch where we merged in the soroban XDR changes.

elucidsoft avatar Apr 08 '23 02:04 elucidsoft

https://github.com/elucidsoft/dotnet-stellar-sdk/tree/soroban-support

elucidsoft avatar Apr 08 '23 02:04 elucidsoft

TBH we could use help on adding more.

elucidsoft avatar Apr 08 '23 02:04 elucidsoft

TBH we could use help on adding more.

We just added some research time into our SCF request to free up some time to investigate how the SDK code works in detail. This way we could also contribute to maintaining the .NET SDK as well.

jopmiddelkamp avatar Apr 11 '23 13:04 jopmiddelkamp

That's awesome! Having more contributors to this project will definitely keep it going! Thank you!

elucidsoft avatar Apr 12 '23 14:04 elucidsoft

is there any update for the soroban support? I wish to contribute but I'm new in Stellar, any direction given would be appreciated. Thank you.

xsoul avatar Jun 21 '23 23:06 xsoul

@elucidsoft is a little occupied with other things lately. But maybe I can guide you a little. I don't know a lot yet of this either I'm currently also exploring a little on how I can support the development of this SDK as well. So far my latest knowledge is:

As far as I know there is not any update on anything Soroban related.But, you can of course contribute if you like just remember, contributions to this repository should follow its contributing guidelines, security policy, and code of conduct.

To add support for Soroban you need to understand the XDR serialisation. I think we need to update the XDR files with the latest XDR files released by Stellar that include all data related to Soroban. Then new XDR object need to be generaged based on those XDR files. When the XDR files have been generated we need to write the actual implementation for which we should look at other repositories like for example the JavaScript, Java and/or Dart SDKs and how they've implemented it already.

jopmiddelkamp avatar Jun 22 '23 10:06 jopmiddelkamp

I'm writing Soroban Client class in C#, if you need my code to put into the contribution effort, I will be happy to do so

xsoul avatar Jun 29 '23 04:06 xsoul

I tried to add the latest XDR and run the xdrgen command, but i have the following error, anything I did wrongly?

command used: dotnet-stellar-sdk-master\dotnet-stellar-sdk-master>xdrgen -o=./stellar-dotnet-sdk-xdr/generated -l=csharp -n=stellar_dotnet_sdk.xdr ./stellar-dotnet-sdk-xdr/*.x

Error:

C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/xdrgen-0.0.1.pre.dev/lib/xdrgen/parser.rb:14:in `block in parse': Couldn't parse, failed at: 2340:46 (Xdrgen::ParseError)
Expected one of void, opaque, string, int, hyper, unsigned int, unsigned hyper, float, double, quadruple, bool, enum, struct, union, case, const, default, switch, typedef, unsigned, [a-zA-Z] at line 2340, column 46 (byte 54629) after namespace stellar

xsoul avatar Jun 29 '23 09:06 xsoul

I'm running MacOS.. @elucidsoft do you have any idea?

jopmiddelkamp avatar Jul 14 '23 07:07 jopmiddelkamp

There is a branch for Soroban with the .x files updated. @Kirbyrawr Did all of that so I don't know much about it at the moment.

elucidsoft avatar Jul 31 '23 14:07 elucidsoft