Expand description
Database functions
Functionsยง
- db_
contains_ key - Check if a key is contained in the on-chain key-value store given a
DbHandleandkey. - db_
contains_ ๐ โkey_ - db_
contains_ ๐key_ internal - Internal function for
db_contains_keywhich branches to either on-chain or transaction-local. - db_
contains_ key_ local - Check if a key is contained in the tx-local key-value store given a
DbHandleandkey. - db_
contains_ ๐ โkey_ local_ - db_del
- Remove a key from the on-chain database given a
DbHandleandkey. - db_del_ ๐ โ
- db_
del_ ๐internal - Internal function for
db_delwhich branches to either on-chain or transaction-local. - db_
del_ local - Remove a key from the tx-local database given a
DbHandleandkey. - db_
del_ ๐ โlocal_ - db_get
- Read a key from the on-chain key-value store given a
DbHandleandkey. - db_get_ ๐ โ
- db_
get_ ๐internal - Internal function for
db_getwhich branches to either on-chain or transaction-local. - db_
get_ local - Read a key from the tx-local key-value store given a
DbHandleandkey. - db_
get_ ๐ โlocal_ - db_init
- Create a new on-chain database instance for the given contract. A contract is only able to create a db for itself.
- db_
init_ ๐ โ - db_
lookup - Open an existing on-chain database instance for the given contract. A contract is able to read any on-chain database.
- db_
lookup_ ๐ โ - db_
lookup_ ๐internal - Internal function for
db_lookupwhich branches to either on-chain or transaction-local. - db_
lookup_ local - Open a tx-local database instance for the given contract. A contract is able to read any tx-local database.
- db_
lookup_ ๐ โlocal_ - db_set
- Set a key and value in the on-chain database for the given
DbHandle. - db_set_ ๐ โ
- db_
set_ ๐internal - Internal function for
db_setwhich branches to either on-chain or transaction-local. - db_
set_ local - Set a key and value in the tx-local database for the given
DbHandle. - db_
set_ ๐ โlocal_ - zkas_
db_ set - Given a zkas circuit, create a VerifyingKey and insert them both into the on-chain db.
- zkas_
db_ ๐ โset_