forked from TrueCloudLab/frostfs-contract
f1f2101dc6
There are 2 approaches: 1. Use `storage.Find` to enumerate all containers. 2. Store a counter by a separate key. Here we implemented 1, because this method is readonly (thus GAS cost it not a problem) and simpler to implement. Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
58 lines
1.4 KiB
YAML
58 lines
1.4 KiB
YAML
name: "NeoFS Container"
|
|
safemethods: ["count", "get", "owner", "list", "eACL", "getContainerSize", "listContainerSizes", "version"]
|
|
permissions:
|
|
- methods: ["update", "addKey", "transferX",
|
|
"addRoot", "register", "addRecord", "deleteRecords"]
|
|
events:
|
|
- name: containerPut
|
|
parameters:
|
|
- name: container
|
|
type: ByteArray
|
|
- name: signature
|
|
type: Signature
|
|
- name: publicKey
|
|
type: PublicKey
|
|
- name: token
|
|
type: ByteArray
|
|
- name: PutSuccess
|
|
parameters:
|
|
- name: containerID
|
|
type: Hash256
|
|
- name: publicKey
|
|
type: PublicKey
|
|
- name: containerDelete
|
|
parameters:
|
|
- name: containerID
|
|
type: ByteArray
|
|
- name: signature
|
|
type: Signature
|
|
- name: token
|
|
type: ByteArray
|
|
- name: DeleteSuccess
|
|
parameters:
|
|
- name: containerID
|
|
type: ByteArray
|
|
- name: setEACL
|
|
parameters:
|
|
- name: eACL
|
|
type: ByteArray
|
|
- name: signature
|
|
type: Signature
|
|
- name: publicKey
|
|
type: PublicKey
|
|
- name: token
|
|
type: ByteArray
|
|
- name: SetEACLSuccess
|
|
parameters:
|
|
- name: containerID
|
|
type: ByteArray
|
|
- name: publicKey
|
|
type: PublicKey
|
|
- name: StartEstimation
|
|
parameters:
|
|
- name: epoch
|
|
type: Integer
|
|
- name: StopEstimation
|
|
parameters:
|
|
- name: epoch
|
|
type: Integer
|