updateWalletState method

  1. @override
Future<void> updateWalletState(
  1. String lockPredicate,
  2. String lockAddress,
  3. String? routine,
  4. String? vk,
  5. Indices indices,
)

Update the wallet state with a new set of Predicate Lock, Lock Address, and their associated Indices

lockPredicate The lock predicate to add to the wallet state lockAddress The lock address to add to the wallet state routine The routine to add to the wallet state vk The verification key to add to the wallet state indices The indices to add to the wallet state

Implementation

@override
Future<void> updateWalletState(String lockPredicate, String lockAddress,
    String? routine, String? vk, Indices indices) async {
  await cartesiansStore.add(
    _instance,
    Cartesian(
            xFellowship: indices.x,
            yContract: indices.y,
            zState: indices.z,
            lockPredicate: lockPredicate,
            address: lockAddress,
            routine: routine,
            vk: vk)
        .toSembast,
  );
}