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
20
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
6f68203c
Commit
6f68203c
authored
2 years ago
by
alexey.stratulat
Browse files
Options
Downloads
Patches
Plain Diff
[*] Moved changes dap_chain_datum_token.h from branch master.
parent
ee66ac84
No related branches found
Branches containing commit
No related tags found
2 merge requests
!897
hotfix-6925
,
!803
Transferring changes of many modules to develop.
Pipeline
#17709
failed with stage
in 19 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/common/include/dap_chain_datum_token.h
+18
-7
18 additions, 7 deletions
modules/common/include/dap_chain_datum_token.h
with
18 additions
and
7 deletions
modules/common/include/dap_chain_datum_token.h
+
18
−
7
View file @
6f68203c
...
...
@@ -103,6 +103,14 @@ typedef struct dap_chain_datum_token{
byte_t
data_n_tsd
[];
// Signs and/or types-size-data sections
}
DAP_ALIGN_PACKED
dap_chain_datum_token_t
;
typedef
struct
dap_chain_datum_token_tsd_delegate_from_stake_lock
{
char
ticker_token_from
[
DAP_CHAIN_TICKER_SIZE_MAX
];
// dap_hash_fast_t hash_token_from;//TODO: ???
uint256_t
emission_rate
;
// In "coins", 1^18 == 1.0
int
flags
;
// Some emission flags for future
byte_t
padding
[
256
];
// Some free space for future
}
DAP_ALIGN_PACKED
dap_chain_datum_token_tsd_delegate_from_stake_lock_t
;
// Token declaration type
// Simple private token decl
#define DAP_CHAIN_DATUM_TOKEN_TYPE_OLD_SIMPLE 0x0001
...
...
@@ -199,21 +207,24 @@ extern const char *c_dap_chain_datum_token_flag_str[];
/// -------- General tsd types ----
// Flags set/unsed
#define DAP_CHAIN_DATUM_TOKEN_TSD_TYPE_SET_FLAGS 0x0001
#define DAP_CHAIN_DATUM_TOKEN_TSD_TYPE_UNSET_FLAGS 0x0002
#define DAP_CHAIN_DATUM_TOKEN_TSD_TYPE_SET_FLAGS
0x0001
#define DAP_CHAIN_DATUM_TOKEN_TSD_TYPE_UNSET_FLAGS
0x0002
// Total supply limits
#define DAP_CHAIN_DATUM_TOKEN_TSD_TYPE_TOTAL_SUPPLY_OLD 0x0003 // 128
#define DAP_CHAIN_DATUM_TOKEN_TSD_TYPE_TOTAL_SUPPLY 0x0026 // 256
#define DAP_CHAIN_DATUM_TOKEN_TSD_TYPE_TOTAL_SUPPLY_OLD
0x0003 // 128
#define DAP_CHAIN_DATUM_TOKEN_TSD_TYPE_TOTAL_SUPPLY
0x0026 // 256
// Set total signs count value to set to be valid
#define DAP_CHAIN_DATUM_TOKEN_TSD_TYPE_TOTAL_SIGNS_VALID 0x0004
#define DAP_CHAIN_DATUM_TOKEN_TSD_TYPE_TOTAL_SIGNS_VALID
0x0004
// Remove owner signature by pkey fingerprint
#define DAP_CHAIN_DATUM_TOKEN_TSD_TYPE_TOTAL_SIGNS_REMOVE 0x0005
#define DAP_CHAIN_DATUM_TOKEN_TSD_TYPE_TOTAL_SIGNS_REMOVE
0x0005
// Add owner signature's pkey fingerprint
#define DAP_CHAIN_DATUM_TOKEN_TSD_TYPE_TOTAL_SIGNS_ADD 0x0006
#define DAP_CHAIN_DATUM_TOKEN_TSD_TYPE_TOTAL_SIGNS_ADD 0x0006
// Emission for delegated token
#define DAP_CHAIN_DATUM_TOKEN_TSD_TYPE_DELEGATE_EMISSION_FROM_STAKE_LOCK 0x0026
...
...
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