본문으로 건너뛰기

libraries/eosiolib/capi/eosio/security_group.h

Functions

Name
attribute((eosio_wasm_import) ) const

Attributes

Name
uint32_tdatalen

Functions Documentation

function attribute

__attribute__(
(eosio_wasm_import)
) const

Parameters:

  • data - the buffer containing the packed participants.
  • datalen - size of the packed participants
  • data - the buffer containing the packed participants.
  • datalen - size of the packed participants
  • data - the buffer containing the packed participants.
  • datalen - size of the packed participants
  • data - the output buffer containing the packed security group.
  • datalen - size of the data buffer

Return:

  • -1 if proposing a new security group was unsuccessful, otherwise returns 0.
  • -1 if proposing a new security group was unsuccessful, otherwise returns 0.
  • Returns true if the specified accounts are all in the active security group.
  • Returns the size required in the buffer (if the buffer is too small, nothing is written).

Precondition:

  • data is a valid pointer to a range of memory at least datalen bytes long that contains packed participants data
  • data is a valid pointer to a range of memory at least datalen bytes long that contains packed participants data

Propose new participants to the security group.

Propose to remove participants from the security group.

Check if the specified accounts are all in the active security group.

Gets the active security group

Attributes Documentation

variable datalen

uint32_t datalen;

Source code

#pragma once
#include "types.h"
#ifdef __cplusplus
extern "C" {
#endif

__attribute__((eosio_wasm_import))
int64_t add_security_group_participants(const char* data, uint32_t datalen);

__attribute__((eosio_wasm_import))
int64_t remove_security_group_participants(const char* data, uint32_t datalen);

__attribute__((eosio_wasm_import))
bool in_active_security_group(const char* data, uint32_t datalen);

__attribute__((eosio_wasm_import))
uint32_t get_active_security_group(char* data, uint32_t datalen);

#ifdef __cplusplus
}
#endif

Updated on 2022-12-05 at 15:38:08 +0000