-
Notifications
You must be signed in to change notification settings - Fork 11
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
Currently the primary use-case flow for wallet integrators is that they set up the party and right after setup preapproval. We should allow to make this configurable early one so that:
const receiver = await sdk.userLedger?.signAndAllocateExternalParty(
keyPairReceiver.privateKey,
'bob'
)
const transferPreApprovalProposal =
await sdk.userLedger?.createTransferPreapprovalCommand(
validatorOperatorParty!,
receiver?.partyId!,
instrumentAdminPartyId
)
await sdk.userLedger?.prepareSignExecuteAndWaitFor(
[transferPreApprovalProposal],
keyPairReceiver.privateKey,
v4()
)
becomes a single command call.
const receiver = await sdk.userLedger?.signAndAllocateExternalPartyWithPreapproval(
keyPairReceiver.privateKey,
'bob'
)
(this can only be done for the case where privateKey is provided, so for offline signed transactions they would need to do the normal flow)
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request