Splice.Testing.TokenStandard.WalletClient
Daml script test utilities for simulating the actions of wallet client based on the token standard.
NOTE: there are likely more functions that could/should be added to this module. PRs welcome.
Functions
- listHoldings
: Party -> InstrumentId -> Script [(ContractId Holding, HoldingView)]
List the hodlings of a party of a specific instrument.
- listLockedHoldings
: Party -> InstrumentId -> Script [(ContractId Holding, HoldingView)]
- listHoldingCids
: Party -> InstrumentId -> Script [ContractId Holding]
List the cids of the hodlings of a party of a specific instrument.
- checkHoldingWithAmountExists
: Party -> InstrumentId -> Decimal -> Script ()
Check that a holding with a specific amount exists for the given owner.
- checkBalanceBounds
: Party -> InstrumentId -> (Decimal, Decimal) -> Script ()
Check the bounds on a party’s total balance of all holdings of the given instrument.
- checkHolding
: Party -> ContractId Holding -> Decimal -> Script ()
Check the exact value of on an individual holding’s amount.
- checkHoldingBounds
: Party -> ContractId Holding -> (Decimal, Decimal) -> Script ()
Check the bounds on an individual holding’s amount.
- checkBalanceApprox
: Party -> InstrumentId -> Decimal -> Script ()
Check the approximate value (+/- 1.0) a party’s total balance of all holdings of the given instrument.
- checkHoldingApprox
: Party -> ContractId Holding -> Decimal -> Script ()
Check the approximate (+/- 1.0) amount of an individual holding.
- checkBalance
: Party -> InstrumentId -> Decimal -> Script ()
Check the exact value a party’s total balance of all holdings of the given instrument.
- listTransferOffers
: Party -> InstrumentId -> Script [(ContractId TransferInstruction, TransferInstructionView)]
List pending transfer offers (as sender or receiver)
- listRequestedAllocations
: Party -> InstrumentId -> Script [AllocationSpecification]
List all allocations requested from the owner for a specific instrument.
Comments