Comments (4)
How is the status on this Issue? We have had some updates since it was opened and I'm thinking that things may have changed or it this issue has been resolved.
I would appreciate an update when you get a chance
Thanks!
from stellar-docs.
stellar/stellar-xdr#70 completely overhauled the scval system since this issue was written. There are two ways Option
is represented in xdr.
In the ContractSpec (what you get if you do a soroban contract inspect
), there is an ScSpecTypeOption type, which acts like rust's Option<T>
In the actual invocation xdr, there is no explicit Option type. Instead there is an ScVoid value, which you can pass for any value that should be None
. This roughly means that in the arguments every argument is implicitly optional. But if you make the wrong one optional the transaction will be rejected.
We should probably think of a good way to explain this to people.
Good luck 🤷
from stellar-docs.
Add to this page https://developers.stellar.org/docs/smart-contracts/example-contracts/custom-types
from stellar-docs.
Should add to this page too: https://developers.stellar.org/docs/tools/sdks/build-your-own
from stellar-docs.
Related Issues (20)
- Internally inconsistent docs on state archival restore HOT 1
- Move List All Payments in Horizon docs to top-level HOT 1
- Add documentation for `network container start/stop/logs` HOT 7
- Add spell checker/grammar checker to stellar-docs in github actions ci/cd or precommit hooks HOT 1
- 💱 Update, modernize SDEX encyclopedia HOT 1
- Improve Docs Homepage HOT 5
- 🖼 Organize images into folders HOT 4
- Update Getting Started section to include Stellar Wallet Kit HOT 7
- 🗳️ Prettify, contextualize SCP page HOT 1
- ✒ Document extra signer logic
- Add Interactive course in Docs -> Learn ->Interactive learning page HOT 7
- Green checkmark needs more left padding when "Copy" button is clicked on a code sample HOT 1
- How-To Guide shenanigans
- On Mobile, At the bottom of the menu the discord and github logos are not aligned and on 2 seperate lines
- 🌐 Detail historic lumen metrics
- 🪙 XLM physical coin image HOT 7
- 🎨 Create CONTRIBUTING.md guide for open source contribution HOT 2
- Provide in depth coverage of the specific of Stellar-flavoured XDR types. HOT 1
- Move Liquify up to the table for all RPC providers HOT 1
- Fix soroban getTransactions method documentation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stellar-docs.