public class StorageContext extends java.lang.Object implements ApiInterface
Storage methods.| Constructor and Description |
|---|
StorageContext() |
| Modifier and Type | Method and Description |
|---|---|
StorageContext |
asReadOnly()
Gets this StorageContext in read-only mode, meaning that after calling this method,
write access to the contract's storage is denied.
|
StorageMap |
createMap(byte prefix)
Creates a new
StorageMap from entries with the given prefix in this
StorageContext. |
StorageMap |
createMap(byte[] prefix)
Creates a new
StorageMap from entries with the given prefix in this
StorageContext. |
StorageMap |
createMap(java.lang.String prefix)
Creates a new
StorageMap from entries with the given prefix in this
StorageContext. |
public StorageContext asReadOnly()
public StorageMap createMap(java.lang.String prefix)
StorageMap from entries with the given prefix in this
StorageContext.prefix - The prefix.StorageMappublic StorageMap createMap(byte[] prefix)
StorageMap from entries with the given prefix in this
StorageContext.prefix - The prefix.StorageMappublic StorageMap createMap(byte prefix)
StorageMap from entries with the given prefix in this
StorageContext.prefix - The prefix.StorageMap