1.0.0-beta.4 • Published 3 years ago

@quantnetwork/overledger-dlt-corda v1.0.0-beta.4

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
3 years ago

@quantnetwork/overledger-dlt-ethereum

Overledger SDK module for interaction with the Ethereum distributed ledger technology.

Installation

Install using npm:

npm install @quantnetwork/overledger-dlt-ethereum

Or, if you prefer using yarn:

yarn add @quantnetwork/overledger-dlt-ethereum

API Reference

Modules

Typedefs

overledger-dlt-corda

overledger-dlt-corda.CordaTypeOptions

overledger-dlt-corda.default

Development package for Corda.

overledger-dlt-corda~Corda

new Corda(sdk)

ParamTypeDescription
sdkanythe sdk instance

corda.name

Name of the DLT

corda.symbol

Symbol of the DLT

corda.createAccount()

Create an Corda account

Returns: Account - the new Corda account

corda.setAccount(accountInfo)

ParamTypeDescription
accountInfoAccountThe standardised account information

Set an account for this specific DLT

corda.buildTransaction()

Takes the Overledger definition of a transaction and converts it into a specific Corda transaction

corda.buildWorkflow(thisTransaction)

ParamTypeDescription
thisTransactionWorkflowCordadetails on the information to include in this workflow for the Corda distributed ledger node

Takes the Overledger definition of a Corda workflow and converts it into a specific Corda Workflow

Returns: Workflow - the Corda transaction

corda.create_UUID()

Creates a new UUID

corda._transactionValidation()

validates an OVL transactionRequest according to Corda specific rules

corda.getTransactionQueryInfo()

Get the information required to query for a particular transaction hash

corda.workflowValidation(thisWorkflow)

ParamTypeDescription
thisWorkflowWorkflowCordaThe workflow details

validates an OVL Corda workflow according to Corda specific rules

corda._sign(thisTransaction)

ParamTypeDescription
thisTransactionTransactionRequestan instantiated overledger definition of an Corda transaction

Takes in an overledger definition of a transaction for Corda, converts it into a form that the Corda distributed ledger will understand, and then signs the transaction

corda._smartContractQueryValidation()

validates an OVL smart contract query according to Corda specific rules

corda._buildSmartContractQuery()

Allows a user to build a smart contract query for the Corda distributed ledger

CordaParam

Properties

NameTypeDescription
typeobjectinformation on the selectedType from the valid options. If an integer or byte type was chosen then further information is required on the exact number of bytes being used. If an integer is used, then selectedIntegerLength is required. If a byte is used then selectedBytesLength is required
valueobjectinformation on the parameter's value
namestringthe parameter's name

A description of an Corda smart contract function parameter.