Skip to content

Features 2564

alexey.stratulat requested to merge features-2564 into master

This merge request includes the wrapping of the following structures and functions.

The dap_chain_ledger wrapping is complete.

The Chain object this is wrapper over the dap_chain_t structure has a constructor (PyDapChainObject_new) and a destructor (PyDapChainObject_dealloc) and function

  1. findById - dap_chain_find_by_id
  2. loadFromCfg - dap_chain_load_from_cfg
  3. hasFileStore - dap_chain_has_file_store
  4. saveAll - dap_chain_save_all
  5. loadAll - dap_chain_load_all

The ChainType object this is wrapper dap_chain_type has a function

  1. CHAIN_TYPE_FIRST - return 0
  2. CHAIN_TYPE_TOKEN - return 1
  3. CHAIN_TYPE_EMISSION - return 2
  4. CHAIN_TYPE_TX - return 3
  5. CHAIN_TYPE_LAST - return 4

The ChainAtomIter object this is wrapper dap_chain_atom_iter_t.

The ChainCell object this is wrapper dap_chain_cell has a functions

  1. load - dap_chain_cell_load
  2. update - dap_chain_cell_file_update
  3. append - dap_chain_cell_file_append

The DapChainCellDeclReq object this is wrapper dap_chain_cell_decl_req_t.

The DapChainCellDecl object this is wrapper dap_chain_cell_decl_t.

The ChainCommon object this is wrapper dap_chain_common has a functions

  1. hashSlowToStr - dap_chain_hash_slow_to_str
  2. strTpHashFast - dap_chain_str_to_hash_fast
  3. addrToStr - dap_chain_addr_to_str
  4. addrFromStr - dap_chain_addr_from_str
  5. addrFill - dap_chain_addr_fill
  6. addrCheckSum - dap_chain_addr_check_sum

The ChainID object this is wrapper dap_chain_id_t.

The ChainCellID object this is wrapper dap_chain_cell_id_t.

The ChainNodeAddr object this is wrapper dap_chain_node_addr_t.

The ChainNetID object this is wrapper dap_chain_net_id_t.

The ChainHashSlow object this is wrapper dap_chain_hash_slow_t.

The ChainHashFast object this is wrapper dap_chain_hash_fast_t.

The ChainHashSlowKind object this is wrapper dap_chain_hash_slow_kind_t.

The ChainPkeyType object this is wrapper dap_chain_pkey_type_t.

The ChainPkey object this is wrapper dap_chain_pkey_t.

The ChainSignType object this is wrapper dap_chain_sign_type_t.

The ChainAddr object this is wrapper dap_chain_addr_t.

The dap_chain_cs wrapping is complete.

The ChainDatumTypeId object this is wrapper dap_chain_datum_typeid_t.

The ChainDatum object this is wrapper dap_chain_datum_t a has constructor DapChainDatumObject_new.

The ChainDatumIter object this is wrapper dap_chain_datum_iter_t.

The ChainDatumTokenObject object this is wrapper dap_chain_datum_token_t.

The ChainDatumTokenEmission object this is wrapper dap_chain_datum_token_emission_t.

The ChainTxItemType this is wrapper dap_chain_tx_item_type has a functions

  1. TX_ITEM_TYPE_IN
  2. TX_ITEM_TYPE_OUT
  3. TX_ITEM_TYPE_PKEY
  4. TX_ITEM_TYPE_SIG
  5. TX_ITEM_TYPE_TOKEN
  6. TX_ITEM_TYPE_IN_COND
  7. TX_ITEM_TYPE_OUT_COND
  8. TX_ITEM_TYPE_OUT_SERVICE_RECEIPT

The ChainTxCondType object this is wrapper dap_chain_tx_cond_type_t.

The ChainTxOutCond object this is wrapper dap_chain_tx_out_cond_t.

The ChainDatumTx object this is wrapper over the dap_chain_datum_tx_t structure has a constructor ((PyDapChainDatumTxObject_create) and a destructor ((PyDapChainDatumTxObject_delete) and function

  1. getSize - dap_chain_datum_tx_get_size
  2. addItem - dap_chain_datum_tx_add_item
  3. addInItem - dap_chain_datum_tx_add_in_item
  4. addOutItem - dap_chain_datum_tx_add_out_item
  5. addOutCond - dap_chain_datum_tx_add_out_cond_item
  6. addSignItem - dap_chain_datum_tx_add_sign_item
  7. verifySign - dap_chain_datum_tx_verify_sign

Merge request reports

Loading