Function prepareSmartWallet
- prepareSmartWallet(baggage, shared): ((uniqueWithoutChildNodes) => Promise<Guarded<{
getCurrentSubscriber(): Subscriber<CurrentWalletRecord>;
getDepositFacet(): Guarded<{
receive(payment): Promise<Amount<AssetKind>>;
}>;
getOffersFacet(): Guarded<{
executeOffer(offerSpec): Promise<void>;
tryExitOffer(offerId): Promise<void>;
}>;
getPublicTopics(): {
current: {
description: string;
storagePath: Promise<string>;
subscriber: Subscriber<CurrentWalletRecord>;
};
updates: {
description: string;
storagePath: Promise<string>;
subscriber: Subscriber<UpdateRecord>;
};
};
getUpdatesSubscriber(): Subscriber<UpdateRecord>;
handleBridgeAction(actionCapData, canSpend?): Promise<void>;
repairWalletForIncarnation2(key): void;
}>>) Returns ((uniqueWithoutChildNodes) => Promise<Guarded<{
getCurrentSubscriber(): Subscriber<CurrentWalletRecord>;
getDepositFacet(): Guarded<{
receive(payment): Promise<Amount<AssetKind>>;
}>;
getOffersFacet(): Guarded<{
executeOffer(offerSpec): Promise<void>;
tryExitOffer(offerId): Promise<void>;
}>;
getPublicTopics(): {
current: {
description: string;
storagePath: Promise<string>;
subscriber: Subscriber<CurrentWalletRecord>;
};
updates: {
description: string;
storagePath: Promise<string>;
subscriber: Subscriber<UpdateRecord>;
};
};
getUpdatesSubscriber(): Subscriber<UpdateRecord>;
handleBridgeAction(actionCapData, canSpend?): Promise<void>;
repairWalletForIncarnation2(key): void;
}>>)
- (uniqueWithoutChildNodes): Promise<Guarded<{
getCurrentSubscriber(): Subscriber<CurrentWalletRecord>;
getDepositFacet(): Guarded<{
receive(payment): Promise<Amount<AssetKind>>;
}>;
getOffersFacet(): Guarded<{
executeOffer(offerSpec): Promise<void>;
tryExitOffer(offerId): Promise<void>;
}>;
getPublicTopics(): {
current: {
description: string;
storagePath: Promise<string>;
subscriber: Subscriber<CurrentWalletRecord>;
};
updates: {
description: string;
storagePath: Promise<string>;
subscriber: Subscriber<UpdateRecord>;
};
};
getUpdatesSubscriber(): Subscriber<UpdateRecord>;
handleBridgeAction(actionCapData, canSpend?): Promise<void>;
repairWalletForIncarnation2(key): void;
}>> Parameters
uniqueWithoutChildNodes: Omit<UniqueParams, "currentStorageNode" | "walletStorageNode"> & {
walletStorageNode: ERef<StorageNode>;
}
Returns Promise<Guarded<{
getCurrentSubscriber(): Subscriber<CurrentWalletRecord>;
getDepositFacet(): Guarded<{
receive(payment): Promise<Amount<AssetKind>>;
}>;
getOffersFacet(): Guarded<{
executeOffer(offerSpec): Promise<void>;
tryExitOffer(offerId): Promise<void>;
}>;
getPublicTopics(): {
current: {
description: string;
storagePath: Promise<string>;
subscriber: Subscriber<CurrentWalletRecord>;
};
updates: {
description: string;
storagePath: Promise<string>;
subscriber: Subscriber<UpdateRecord>;
};
};
getUpdatesSubscriber(): Subscriber<UpdateRecord>;
handleBridgeAction(actionCapData, canSpend?): Promise<void>;
repairWalletForIncarnation2(key): void;
}>>