1.1.2 • Published 3 years ago

@_koi/kohaku v1.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

kohaku

SmartWeave Incremental Cache Wrapper

Check it out on npm here: https://www.npmjs.com/package/@_koi/kohaku

Kohaku acts as a wrapper over SmartWeave but adds 4 rules to make cross-contract reading non-recursive.

  1. Reads can only happen at the current height or greater
  2. Transactions are only processed for a contract after it is registered in Kohaku's cache
  3. Contracts are registered the first time they are read by Kohaku, whether internally or externally
  4. Contracts that don't contain "readContractState" within its source are read from block 0 to global cache height

Failure to design around these rules will result in non-deterministic or incorrect contract states.

Installation

  • npm: npm i @_koi/kohaku
  • yarn: yarn add @_koi/kohaku
1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.14-beta.0

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.2

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago