-
Notifications
You must be signed in to change notification settings - Fork 206
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
9212 chain helpers #9439
9212 chain helpers #9439
Conversation
Deploying agoric-sdk with Cloudflare Pages
|
e1f08bb
to
d6390e4
Compare
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.
makeAccount()
in the facade should return a local object
refs: #9212 ## Description #9439 needs some of the fakes in the network tests. This wraps them up a bit for re-use elsewhere. ### Security Considerations n/a, test code <!-- Does this change introduce new assumptions or dependencies that, if violated, could introduce security vulnerabilities? How does this PR change the boundaries between mutually-suspicious components? What new authorities are introduced by this change, perhaps by new API calls? --> ### Scaling Considerations n/a, test code <!-- Does this change require or encourage significant increase in consumption of CPU cycles, RAM, on-chain storage, message exchanges, or other scarce resources? If so, can that be prevented or mitigated? --> ### Documentation Considerations API docs may show these ### Testing Considerations per se ### Upgrade Considerations n/a, test code
d6390e4
to
454f184
Compare
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.
I'm a little fuzzy on how all the pieces relate, but I suppose they're OK.
}, | ||
}); | ||
|
||
// TODO find a way to wait until completionTime, so we can check the count has gone back down |
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.
We can query and then wait like we do for blocks etc.
It's 21 days, so we probably want to reduce it to something like 15sec first.
$ agd query staking params -o json | jq .unbonding_time
"1814400s"
packages/orchestration/src/facade.js
Outdated
const addressStr = await E(account).getAddress(); | ||
return { | ||
address: addressStr, | ||
chainId: 'agoric-3', |
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.
chainId
will be agoriclocal
in a3p, right? seems like chainId
should be passed in. Or a TODO or something.
send(toAccount, amount) { | ||
// FIXME implement | ||
console.log('send got', toAccount, amount); | ||
}, |
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.
local-chain-account-kit implements send()
, right? are we not ready to wire it up?
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.
To know it's covered I've been leaning to writing a breaking test first and then implementing until green
await t.throwsAsync(E(account).getBalances(), { | ||
message: 'not yet implemented', |
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.
I suppose this has an implicit TODO
454f184
to
e0e2a82
Compare
e0e2a82
to
ab9e449
Compare
console.error( | ||
'FIXME deposit noop until https://github.com/Agoric/agoric-sdk/issues/9193', | ||
); |
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.
I don't think we'll have deposit
or getPurse
with 9193. The plan is to demonstrate how to use a LocalChainAccount to deposit (and transfer) ERTP assets to a ChainAccount.
portAllocator, | ||
protocol, | ||
when, | ||
}; |
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.
🙌
refs: #9212
Description
Incremental progress on #9212
Plus some drive-by improvements
Security Considerations
Scaling Considerations
Documentation Considerations
Testing Considerations
Upgrade Considerations