Skip to content
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

feat: publish issuer/brand under arbitrary name #11

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

dckc
Copy link
Collaborator

@dckc dckc commented Jan 12, 2024

fixes #10

story: Larry needs a way for people to make smart wallet offers to trade in the new BRD token he's launching (get it? 🏀 ). So he offers 100 IST to the arbAssetName contract to add BRD to agoricNames; it tells him (in the offer result) that the name there is board0371.

~/projects/ag-power-tools/contract$ TRACK_TURNS=enabled DEBUG=track-turns yarn test test/test-arbAssetNames.js
...
  ✔ launcher Larry publishes his asset type 
...
    ℹ publish bundle arbAssetNames b1-d7fc9
    ℹ instance arbAssetName: new Promise
    ℹ instance arbAssetName settled; remaining: []
    ℹ Object @Alleged: InstanceHandle {}
    ℹ Larry launched {
        brand: Object @Alleged: BRD brand {},
        issuer: Object @Alleged: BRD issuer {},
      }
    ℹ Larry offers {
        brand: Object @Alleged: ZDEFAULT brand {},
        value: 100000000n,
      } to publish
    ℹ Larry published as board0371
    ℹ Object @Alleged: BRD brand {} at board0371

@dckc dckc force-pushed the dc-arb-asset-naming branch 3 times, most recently from 3656165 to c69d6ff Compare January 13, 2024 05:14
@dckc
Copy link
Collaborator Author

dckc commented Jan 13, 2024

good progress:

story: Larry needs a way for people to make smart wallet offers to trade in the new BRD token he's launching (get it? 🏀 ). So he uses the arbAssetName contract to add BRD to agoricNames; it tells him the name there is board0371.

~/projects/ag-power-tools/contract$ TRACK_TURNS=enabled DEBUG=track-turns yarn test test/test-arbAssetNames.js
...
  ✔ launcher Larry publishes his asset type 
...
    ℹ publish bundle arbAssetNames b1-d7fc9
    ℹ instance arbAssetName: new Promise
    ℹ instance arbAssetName settled; remaining: []
    ℹ Object @Alleged: InstanceHandle {}
    ℹ Larry launched {
        brand: Object @Alleged: BRD brand {},
        issuer: Object @Alleged: BRD issuer {},
      }
    ℹ Larry offers {
        brand: Object @Alleged: ZDEFAULT brand {},
        value: 100000000n,
      } to publish
    ℹ Larry published as board0371
    ℹ Object @Alleged: BRD brand {} at board0371

@dckc dckc changed the title Dc arb asset naming WIP feat: publish issuer/brand under arbitrary name Jan 13, 2024
@dckc dckc marked this pull request as ready for review January 13, 2024 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

prototype decentralized issuer naming using boardIds in agoricNames
1 participant