Skip to content
Snippets Groups Projects
Commit a3173384 authored by Aleksandr Lysikov's avatar Aleksandr Lysikov
Browse files

added datum dap_chain_datum_tx_service_receipt_t

parent 934711e1
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,7 @@ typedef enum dap_chain_tx_item_type {
TX_ITEM_TYPE_TOKEN = 0x40,
TX_ITEM_TYPE_IN_COND = 0x50, /// @brief Transaction: conditon inputs
TX_ITEM_TYPE_OUT_COND = 0x60, /// @brief Transaction: conditon outputs
TX_ITEM_TYPE_OUT_SERVICE_RECEIPT = 0x70,
TX_ITEM_TYPE_ANY = 0xff,
} dap_chain_tx_item_type_t;
......
......@@ -39,6 +39,7 @@
#include "dap_chain_datum_tx_sig.h"
#include "dap_chain_datum_tx_pkey.h"
#include "dap_chain_datum_tx_token.h"
#include "dap_chain_datum_tx_service_receipt.h"
/**
* Get item type
......
/*
* Authors:
* Dmitriy A. Gearasimov <kahovski@gmail.com>
* Dmitriy A. Gearasimov <gerasimov.dmitriy@demlabs.net>
* Alexander Lysikov <alexander.lysikov@demlabs.net>
* DeM Labs Inc. https://demlabs.net
* DeM Labs Open source community https://github.com/demlabsinc
* Copyright (c) 2017-2019
......
/*
* Authors:
* Dmitriy A. Gearasimov <kahovski@gmail.com>
* Dmitriy A. Gearasimov <gerasimov.dmitriy@demlabs.net>
* Alexander Lysikov <alexander.lysikov@demlabs.net>
* DeM Labs Inc. https://demlabs.net
* DeM Labs Open source community https://github.com/demlabsinc
* Copyright (c) 2017-2019
......
/*
* Authors:
* Dmitriy A. Gearasimov <gerasimov.dmitriy@demlabs.net>
* Alexander Lysikov <alexander.lysikov@demlabs.net>
* DeM Labs Inc. https://demlabs.net
* DeM Labs Open source community https://github.com/demlabsinc
* Copyright (c) 2017-2019
* 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_chain_common.h"
#include "dap_chain_datum_tx.h"
/**
* @struct dap_chain_tx_out
* @brief Transaction item out_cond
*/
typedef struct dap_chain_datum_tx_service_receipt {
struct {
dap_chain_tx_item_type_t type :8; // Transaction item type
} header;
dap_chain_hash_fast_t tx_hash_cond; // Hash of the dap_chain_tx_out_cond_t transaction.
uint64_t units; // Unit of service (seconds, megabytes, etc.) Only for SERV_CLASS_PERMANENT
}DAP_ALIGN_PACKED dap_chain_datum_tx_service_receipt_t;
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