Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::chain::authority Struct Reference

#include <authority.hpp>

Collaboration diagram for sysio::chain::authority:

Public Member Functions

 authority (public_key_type k, uint32_t delay_sec=0)
 
 authority (permission_level p, uint32_t delay_sec=0)
 
 authority (uint32_t t, vector< key_weight > k, vector< permission_level_weight > p={}, vector< wait_weight > w={})
 
 authority ()
 

Public Attributes

uint32_t threshold = 0
 
vector< key_weightkeys
 
vector< permission_level_weightaccounts
 
vector< wait_weightwaits
 

Friends

bool operator== (const authority &lhs, const authority &rhs)
 
bool operator!= (const authority &lhs, const authority &rhs)
 

Detailed Description

Definition at line 165 of file authority.hpp.

Constructor & Destructor Documentation

◆ authority() [1/4]

sysio::chain::authority::authority ( public_key_type k,
uint32_t delay_sec = 0 )
inline

Definition at line 166 of file authority.hpp.

167 :threshold(1),keys({{k,1}})
168 {
169 if( delay_sec > 0 ) {
170 threshold = 2;
171 waits.push_back(wait_weight{delay_sec, 1});
172 }
173 }
vector< wait_weight > waits
vector< key_weight > keys

◆ authority() [2/4]

sysio::chain::authority::authority ( permission_level p,
uint32_t delay_sec = 0 )
inline

Definition at line 175 of file authority.hpp.

176 :threshold(1),accounts({{p,1}})
177 {
178 if( delay_sec > 0 ) {
179 threshold = 2;
180 waits.push_back(wait_weight{delay_sec, 1});
181 }
182 }
const mie::Vuint & p
Definition bn.cpp:27
vector< permission_level_weight > accounts

◆ authority() [3/4]

sysio::chain::authority::authority ( uint32_t t,
vector< key_weight > k,
vector< permission_level_weight > p = {},
vector< wait_weight > w = {} )
inline

Definition at line 184 of file authority.hpp.

184 {}, vector<wait_weight> w = {} )
185 :threshold(t),keys(move(k)),accounts(move(p)),waits(move(w)){}

◆ authority() [4/4]

sysio::chain::authority::authority ( )
inline

Definition at line 186 of file authority.hpp.

186{}

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( const authority & lhs,
const authority & rhs )
friend

Definition at line 197 of file authority.hpp.

197 {
198 return tie( lhs.threshold, lhs.keys, lhs.accounts, lhs.waits ) != tie( rhs.threshold, rhs.keys, rhs.accounts, rhs.waits );
199 }

◆ operator==

bool operator== ( const authority & lhs,
const authority & rhs )
friend

Definition at line 193 of file authority.hpp.

193 {
194 return tie( lhs.threshold, lhs.keys, lhs.accounts, lhs.waits ) == tie( rhs.threshold, rhs.keys, rhs.accounts, rhs.waits );
195 }

Member Data Documentation

◆ accounts

vector<permission_level_weight> sysio::chain::authority::accounts

Definition at line 190 of file authority.hpp.

◆ keys

vector<key_weight> sysio::chain::authority::keys

Definition at line 189 of file authority.hpp.

◆ threshold

uint32_t sysio::chain::authority::threshold = 0

Definition at line 188 of file authority.hpp.

◆ waits

vector<wait_weight> sysio::chain::authority::waits

Definition at line 191 of file authority.hpp.


The documentation for this struct was generated from the following file: