Closed 0xpatrickdev closed 7 months ago
See #667 for the original issue
@erights asked about "call pipe"
call pipe is a poor-man's expression language used to encode things like E(E(vaultFactory).getCollateralManager(atomBrand)).makeVaultInvitation()
see AgoricContractInvitationSpec https://github.com/Agoric/agoric-sdk/blob/master/packages/smart-wallet/src/invitations.js#L25
I'm struggling to find tests. I think they use this utility...
invitationSpec: {
source: 'agoricContract',
instancePath: ['VaultFactory'],
callPipe: [
['getCollateralManager', [collateralBrand]],
['makeVaultInvitation'],
],
},
oops... I merged the invitation spec docs that I added to #999 on governance without review, didn't I?
@0xPatrick @turadg @sam @hibbert showed interest at various times.
Please see InvitationSpec Usage under Specifying Offers.
As a developer, I should be able to learn about Invitation Specs and design patterns for communicating offers to and from a smart-wallet.