-
Notifications
You must be signed in to change notification settings - Fork 208
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
fix(orchestration): remove cancelToken
+ rename createAccount
-> makeAccount
#9312
Changes from all commits
be14fa5
330ebea
f951cde
05cce52
f2a6d41
678f21f
39a980a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,17 +47,17 @@ export const start = async (zcf, privateArgs, baggage) => { | |
zcf, | ||
); | ||
|
||
async function createAccount() { | ||
const account = await E(orchestration).createAccount( | ||
async function makeAccount() { | ||
const account = await E(orchestration).makeAccount( | ||
hostConnectionId, | ||
controllerConnectionId, | ||
); | ||
const accountAddress = await E(account).getAccountAddress(); | ||
trace('account address', accountAddress); | ||
const address = await E(account).getAddress(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. btw feel free to name the variable There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On second thought, since I am going to change things to use |
||
trace('chain address', address); | ||
const { holder, invitationMakers } = makeStakingAccountKit( | ||
account, | ||
storageNode, | ||
accountAddress, | ||
address, | ||
); | ||
return { | ||
publicSubscribers: holder.getPublicTopics(), | ||
|
@@ -69,20 +69,20 @@ export const start = async (zcf, privateArgs, baggage) => { | |
const publicFacet = zone.exo( | ||
'StakeAtom', | ||
M.interface('StakeAtomI', { | ||
createAccount: M.callWhen().returns(M.remotable('ChainAccount')), | ||
makeCreateAccountInvitation: M.call().returns(M.promise()), | ||
makeAccount: M.callWhen().returns(M.remotable('ChainAccount')), | ||
makeAcountInvitationMaker: M.call().returns(M.promise()), | ||
}), | ||
{ | ||
async createAccount() { | ||
trace('createAccount'); | ||
return createAccount().then(({ account }) => account); | ||
async makeAccount() { | ||
trace('makeAccount'); | ||
return makeAccount().then(({ account }) => account); | ||
}, | ||
makeCreateAccountInvitation() { | ||
makeAcountInvitationMaker() { | ||
trace('makeCreateAccountInvitation'); | ||
return zcf.makeInvitation( | ||
async seat => { | ||
seat.exit(); | ||
return createAccount(); | ||
return makeAccount(); | ||
}, | ||
'wantStakingAccount', | ||
undefined, | ||
|
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.
Why does this need EV?
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.
EV is a testing utility for bootstrap tests
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.
It's like
E
but works through RunUtils.agoric-sdk/packages/SwingSet/tools/run-utils.js
Lines 55 to 61 in 231416e