Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cellframe-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
16
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cellframe
cellframe-sdk
Commits
4f82f435
Commit
4f82f435
authored
2 years ago
by
alexey.stratulat
Browse files
Options
Downloads
Patches
Plain Diff
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
!897
hotfix-6925
,
!803
Transferring changes of many modules to develop.
Pipeline
#17632
failed with stage
in 24 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/common/include/dap_chain_datum.h
+3
-0
3 additions, 0 deletions
modules/common/include/dap_chain_datum.h
modules/common/include/dap_chain_datum_decree.h
+33
-0
33 additions, 0 deletions
modules/common/include/dap_chain_datum_decree.h
with
36 additions
and
0 deletions
modules/common/include/dap_chain_datum.h
+
3
−
0
View file @
4f82f435
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
modules/common/include/dap_chain_datum_decree.h
+
33
−
0
View file @
4f82f435
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment