@agoric/zoe
Version:
Zoe: the Smart Contract Framework for Offer Enforcement
104 lines • 3.48 kB
TypeScript
export function makeInstanceAdminStorage(baggage: import("@agoric/vat-data").Baggage): import("@endo/exo").GuardedKit<{
accessor: {
getPublicFacet(instance: any): any;
getBrands(instance: any): any;
getIssuers(instance: any): any;
getTerms(instance: any): any;
getOfferFilter(instance: any): any;
getInstallation(instance: any): any;
getInstanceAdmin(instance: any): any;
};
updater: {
initInstanceAdmin(instance: any, instanceAdmin: any): Promise<void>;
deleteInstanceAdmin(instance: any): void;
};
}>;
export function makeInstanceAdminMaker(zoeBaggage: import("@agoric/vat-data").Baggage, seatHandleToZoeSeatAdmin: WeakMapStore<SeatHandle, ZoeSeatAdmin>): (instanceHandle: any, zoeInstanceStorageManager: any, adminNode: any) => import("@agoric/swingset-liveslots").KindFacet<{
getPublicFacet: ({ state }: {
state: any;
}) => any;
getTerms: ({ state }: {
state: any;
}) => any;
getIssuers: ({ state }: {
state: any;
}) => any;
getBrands: ({ state }: {
state: any;
}) => any;
initDelayedState: ({ state }: {
state: any;
}, handleOfferObj: any, publicFacet: any) => void;
getInstallation: ({ state }: {
state: any;
}) => any;
getInstance: ({ state }: {
state: any;
}) => any;
assertAcceptingOffers: ({ state }: {
state: any;
}) => void;
exitAllSeats: ({ state }: {
state: any;
}, completion: any) => void;
failAllSeats: ({ state }: {
state: any;
}, reason: any) => void;
stopAcceptingOffers: ({ state }: {
state: any;
}) => void;
makeUserSeat: ({ state, facets: { helper } }: {
state: any;
facets: {
helper: any;
};
}, invitationHandle: any, initialAllocation: any, proposal: any, offerArgs?: undefined) => import("@endo/exo").Guarded<{
getProposal(): Promise<any>;
getPayouts(): Promise<any>;
getPayout(keyword: any): Promise<any>;
getOfferResult(): Promise<any>;
hasExited(): Promise<any>;
tryExit(): Promise<any>;
numWantsSatisfied(): Promise<any>;
getExitSubscriber(): any;
getFinalAllocation(): any;
}>;
makeNoEscrowSeat: ({ state, facets: { helper } }: {
state: any;
facets: {
helper: any;
};
}, initialAllocation: any, proposal: any, exitObj: any, seatHandle: any) => import("@endo/exo").Guarded<{
getProposal(): Promise<any>;
getPayouts(): Promise<any>;
getPayout(keyword: any): Promise<any>;
getOfferResult(): Promise<any>;
hasExited(): Promise<any>;
tryExit(): Promise<any>;
numWantsSatisfied(): Promise<any>;
getExitSubscriber(): any;
getFinalAllocation(): any;
}>;
getOfferFilter: ({ state }: {
state: any;
}) => any;
setOfferFilter: ({ state }: {
state: any;
}, strings: any) => void;
isBlocked: ({ state }: {
state: any;
}, string: any) => any;
}>;
export type ImmutableState = Readonly<{
publicFacet: unknown;
handlerOfferObj: unknown;
}>;
export type MutableState = {
offerFilterStrings: string[];
};
export type State = MutableState & ImmutableState;
export type MethodContext = {
state: State;
};
import type { WeakMapStore } from '@agoric/store';
//# sourceMappingURL=instanceAdminStorage.d.ts.map