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
de176a8c
Commit
de176a8c
authored
4 years ago
by
Roman Khlopkov
🔜
Browse files
Options
Downloads
Patches
Plain Diff
[+] New tx out item header
parent
418be8e0
Loading
Loading
1 merge request
!86
features-2844
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/common/include/dap_chain_datum_tx_out_ext.h
+43
-0
43 additions, 0 deletions
modules/common/include/dap_chain_datum_tx_out_ext.h
with
43 additions
and
0 deletions
modules/common/include/dap_chain_datum_tx_out_ext.h
0 → 100644
+
43
−
0
View file @
de176a8c
/*
* Authors:
* Roman Khlopkov <roman.khlopkov@demlabs.net>
* DeM Labs Inc. https://demlabs.net
* DeM Labs Open source community https://gitlab.demlabs.net
* Copyright (c) 2017-2020
* All rights reserved.
This file is part of DAP (Deus Applications Prototypes) the open source project
DAP (Deus Applicaions Prototypes) is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
DAP is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with any DAP based project. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include
<stdint.h>
#include
"dap_common.h"
#include
"dap_chain_common.h"
#include
"dap_chain_datum_tx.h"
/**
* @struct dap_chain_tx_out_ext
* @brief Multichannel transaction item output
*/
typedef
struct
dap_chain_tx_out_ext
{
struct
{
dap_chain_tx_item_type_t
type
:
8
;
// Transaction item type - should be TX_ITEM_TYPE_OUT_EXT
uint64_t
value
;
// Number of Datoshis ( DAP/10^9 ) to be transfered
}
header
;
// Only header's hash is used for verification
dap_chain_addr_t
addr
;
// Address to transfer to
char
token
[
DAP_CHAIN_TICKER_SIZE_MAX
];
// Which token is transferred
}
DAP_ALIGN_PACKED
dap_chain_tx_out_ext_t
;
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