Skip to content

API documentation of Agoric SDK / Exports / @agoric/smart-wallet / invitations

Module: invitations

Table of contents

Type Aliases

Functions

Type Aliases

AgoricContractInvitationSpec

Ƭ AgoricContractInvitationSpec: Object

source of invitation is a chain of calls starting with an agoricName

  • the start of the pipe is a lookup of instancePath within agoricNames
  • each entry in the callPipe executes a call on the preceding result
  • the end of the pipe is expected to return an Invitation

Type declaration

NameType
callPipe[methodName: string, methodArgs?: any[]][]
instancePathstring[]
source"agoricContract"

Defined in

invitations.js:22


ContinuingInvitationSpec

Ƭ ContinuingInvitationSpec: Object

continuing invitation in which the offer result from a previous invitation had an invitationMakers property

Type declaration

NameType
invitationArgs?any[]
invitationMakerNamestring
previousOfferoffers
source"continuing"

Defined in

invitations.js:49


ContractInvitationSpec

Ƭ ContractInvitationSpec: Object

source is a contract (in which case this takes an Instance to look up in zoe)

Type declaration

NameType
instanceInstance
invitationArgs?any[]
publicInvitationMakerstring
source"contract"

Defined in

invitations.js:33


InvitationSpec

Ƭ InvitationSpec: AgoricContractInvitationSpec | ContractInvitationSpec | PurseInvitationSpec | ContinuingInvitationSpec

Specify how to produce an invitation. See each type in the union for details.

Defined in

invitations.js:13


InvitationsPurseQuery

Ƭ InvitationsPurseQuery: Pick<InvitationDetails, "description" | "instance">

Defined in

invitations.js:54


PurseInvitationSpec

Ƭ PurseInvitationSpec: Object

the invitation is already in your Zoe "invitation" purse so we need to query it

  • use the find/query invitation by kvs thing

Type declaration

NameType
descriptionstring
instanceInstance
source"purse"

Defined in

invitations.js:40

Functions

makeInvitationsHelper

makeInvitationsHelper(zoe, agoricNames, invitationBrand, invitationsPurse, getInvitationContinuation): (spec: InvitationSpec) => ERef<Invitation<unknown, undefined>>

Parameters

NameType
zoeERef<ZoeService>
agoricNamesERef<NameHub>
invitationBrandBrand<"set">
invitationsPursePurse<"set">
getInvitationContinuation(fromOfferId: string) => InvitationMakers

Returns

fn

▸ (spec): ERef<Invitation<unknown, undefined>>

Parameters
NameType
specInvitationSpec
Returns

ERef<Invitation<unknown, undefined>>

Defined in

invitations.js:64