Comments (6)
Why not just add this to the stellar.toml ?
from stellar-protocol.
That might be a better option yes, that seems like a different but simpler implementation.
The main thing I wanted with this issue, is to start (and log) a conversation about handling assets in wallets.
from stellar-protocol.
This is related to this conversation: #20
And this #23
Basically I think we only need 2 modes. decimal or integer. Being able to move the decimal arbitrarily I don't think buys us much since the range of decimals that humans can deal with is pretty limited.
from stellar-protocol.
Having had a few of these conversations and seeing the same responses.
The 12 character asset code made up by the person issuing the credit cannot uniquely identify the asset the credit line is referencing. It identifies what the issuer called their credit line.
If IssuerA puts out USD and IssuerB puts out USDollars; we humans in the United States can kind of tell that's "probably" the same underlying asset being credited. We can't expect a Wallet to figure that out.
It's the distinction between the "credit line asset" and "the asset referenced in the credit line".
What we have a balance for is a "credit line asset", the underlying referenced asset is completely missing.
Basically I think we only need 2 modes. decimal or integer.
Has little to do with "identifying" the referenced asset for a Wallet.
Why not just add this to the stellar.toml ?
Again, unless I'm misunderstanding how that works; this would tell you about the credit line identifier from the issuer; not the asset being credited; and you'd to search the entire data set to find the identifier you had to get any associated data; that's a lot of effort/work to expect from a Wallet when var details = GetAssetDetails(assetReference);
would be so much easier.
[EDIT: And I should have mentioned that while using Federation is a way to shoehorn the concept into the system; it's an important enough concept that Asset Detail Records should have their own first class entity records that can be shared in common (controlled by the issuer).]
from stellar-protocol.
What the asset is is ultimately up to the issuer. If I issue an asset called "USD" but only redeem it for olives. I'm issuing olives not dollars despite the name. My point is I don't see what it buys you to store this extra info in the ledger. The issuer can provide extra info about what they mean by USD outside the system since this ultimately the only place that it matters. It is also not something that needs to be globally known.
Of course I hope that people follow conventions about what they call assets. For example I hope when someone issues dollars they call it USD and if they are issuing something called USD they mean dollars but there are no operations on the ledger that require this to be true so it doesn't seem like the extra info belongs in the ledger.
from stellar-protocol.
Try this: http://76.230.245.107:8000/federation?q=IBM*&type=TICKER
You should get back every exchange listing globally that uses "IBM" as their Ticker.
It still needs to translate the exchange code to the appropriate MIC for the exchange.
The Name, Sector, and the Security Type fields are probably the most interesting for now.
Other identifiers like SEDOL, CUSIP, and ISIN are also supported by the query API.
The full list is here:
https://www.openfigi.com/api#supported-identifiers
These IBM results have another company that uses the IBM Ticker somewhere and some Money Market Assets. I don't recognize either of them.
Software would deduplicate these results based on the shareClassFIGI key which is linked to a specific company issued asset (as opposed to all the places that asset is traded).
[The CompositeFIGI is specific to the Country/Region where the asset is registered, and the FIGI is unique to a specific listing on a particular exchange (which is why there are so many results).]
The federation server can also generate its own FIGI-like identifier for accounts in Stellar.
The goal is coming up with some kind of "short code" for people to use to link to accounts and assets.
The thinking here is moving toward creating "Assets" as objects within the system just like "Accounts".
Not all asset codes necessarily get object status; sometimes all you want is named numeric value (like credits in an arcade or something); but when those Asset Codes are supposed to represent or be linked to actual assets in the real world; then creating an object to store some basic data about that asset makes complete sense to help coordinate our shared understanding of it.
from stellar-protocol.
Related Issues (20)
- SEPs (6, 12, 24, 31): Update callback header from `X-Stellar-Signature` to `Signature` HOT 4
- SEP-9: define a generalized account identifier format HOT 4
- SEP-9: add `bank_account_type` field HOT 2
- SEP-6: /deposit and /withdraw IDs should map to list of transactions rather than a single transaction HOT 22
- SEP-24: make `account` for deposit request optional to match withdraw request
- Add SEP for Soroban token interface HOT 1
- Nice
- SEP-7: thoughts on using "web+stellar://" instead of "web+stellar:"? HOT 1
- SEP-6: standardize structured off-chain deposit instructions for users HOT 1
- SEP-6: Providing deposit instructions asynchronously
- security HOT 1
- SEP-24: Layered fee structure HOT 1
- SEP-24: Configure fees by payment method HOT 1
- SEP-9: support `organization.referrer`
- Add deviation parameter instead of pure uniform periods HOT 8
- Support for `memo` field in SEP-9 Financial Account Fields
- Prettier SEP CI workflow failing suddenly HOT 1
- Blog
- SEP-24 improvements HOT 3
- Prettier should output what the diff is required to make it pass 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-protocol.