Skip to content
Snippets Groups Projects
Commit 4f82f435 authored by alexey.stratulat's avatar alexey.stratulat
Browse files

The implementation of the token with the decree type was moved from the branch master.

parent f0f292aa
No related branches found
No related tags found
2 merge requests!897hotfix-6925,!803Transferring changes of many modules to develop.
Pipeline #17632 failed with stage
in 24 seconds
......@@ -39,6 +39,9 @@
/// Transaction header section
#define DAP_CHAIN_DATUM_TX 0x0100
/// Network decree for governance
#define DAP_CHAIN_DATUM_DECREE 0x0200
/// Transaction request section
#define DAP_CHAIN_DATUM_TX_REQUEST 0x0300
......
......@@ -20,3 +20,36 @@
along with any CellFrame SDK based project. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include "dap_chain_common.h"
#include "dap_common.h"
#include "dap_math_ops.h"
#include "dap_time.h"
#include <stdint.h>
// Governance decree
typedef struct dap_chain_datum_decree {
struct {
dap_time_t ts_created;
uint16_t type;
union {
dap_chain_net_srv_uid_t srv_id;
dap_chain_net_id_t net_id;
dap_chain_cell_id_t cell_id;
};
uint16_t action;
} DAP_ALIGN_PACKED header;
byte_t tsd_sections[];
} DAP_ALIGN_PACKED dap_chain_datum_decree_t;
#define DAP_CHAIN_DATUM_DECREE_TYPE_COMMON 0x0001
#define DAP_CHAIN_DATUM_DECREE_TYPE_SERVICE 0x0002
// Create from scratch, reset all previous values
#define DAP_CHAIN_DATUM_DECREE_ACTION_CREATE 0x0001
#define DAP_CHAIN_DATUM_DECREE_ACTION_UPDATE 0x0002
#define DAP_CHAIN_DATUM_DECREE_ACTION_DELETE 0x0003
#define DAP_CHAIN_DATUM_DECREE_TSD_TYPE_SIGN 0x0001
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment