CompareAndSwapInput
Defined in: src/storage/contract.ts:50
Input of CompareAndSwapKvStorage.compareAndSwap.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T |
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
expected |
T | null |
The value the key must hold (structurally), or null to require that it is absent. |
src/storage/contract.ts:54 |
key |
string |
The key to swap. | src/storage/contract.ts:52 |
next |
T |
The value to write when the expectation holds. | src/storage/contract.ts:56 |