-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: name services: agoricNames, namesByAddress, board (WIP) #913
Conversation
const { instance } = await E(zoe).startInstance(myNewContract); | ||
const { brands: { Thing: thingBrand } } = await E(zoe).getTerms(instance); | ||
const brandAdmin = E(agoricNamesAdmin).lookupAdmin('brand'); | ||
await E(brandAdmin).update('Thing', thingBrand); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bad example. BLD staker governance should not approve meaningless names such as Thing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also TODO: note the risk of registering under a name such as BTC a brand for an asset that I just made up and that the market will not value at 1 BTC.
The keys of `agoricNames` include: | ||
- `brand` - IST, BLD, Invitation (Zoe invitation brand), timer (a TimerBrand, not an ERTP brand) | ||
- `issuer` - IST, BLD, Invitation, ... | ||
- `vbankAsset` - IST, BLD, USDC, ATOM, ... - including info about corresponding cosmos denom |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: give the type of the values of the vbankAsset
namehub
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
```js | ||
const bobAddress = 'agoric1...'; | ||
const anInvitationPayment = await zcf.makeInvitation(...); | ||
const bobDepositFacet = E(namesByAddress).lookup(bobAddress, 'depositFacet'); | ||
const amtReceived = await E(bobDepositFacet).receive(anInvitationPayment); | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ideally, these would be tested snippets of an example dapp
But dapp-offer-up doesn't use namesByAddress.
Deploying with Cloudflare Pages
|
fixes #807
DRAFT until
integrations/
is a reasonable place to put this)stretch goals: