@0xcert/scaffold
Advanced tools
Comparing version 2.0.0-alpha0 to 2.0.0-alpha1
@@ -5,4 +5,4 @@ { | ||
{ | ||
"version": "2.0.0-alpha0", | ||
"tag": "@0xcert/scaffold_v2.0.0-alpha0", | ||
"version": "2.0.0-alpha1", | ||
"tag": "@0xcert/scaffold_v2.0.0-alpha1", | ||
"date": "Wed, 19 Jun 2019 10:31:05 GMT", | ||
@@ -9,0 +9,0 @@ "comments": {} |
@@ -5,3 +5,3 @@ # Change Log - @0xcert/scaffold | ||
## 2.0.0-alpha0 | ||
## 2.0.0-alpha1 | ||
Wed, 19 Jun 2019 10:31:05 GMT | ||
@@ -8,0 +8,0 @@ |
@@ -42,6 +42,7 @@ import { AssetLedgerCapability } from './asset-ledger'; | ||
} | ||
export declare type Order = MultiOrder | AssetLedgerDeployOrder; | ||
export declare type Order = MultiOrder | AssetLedgerDeployOrder | ValueLedgerDeployOrder; | ||
export declare enum OrderKind { | ||
MULTI_ORDER = 1, | ||
ASSET_LEDGER_DEPLOY_ORDER = 2 | ||
ASSET_LEDGER_DEPLOY_ORDER = 2, | ||
VALUE_LEDGER_DEPLOY_ORDER = 3 | ||
} | ||
@@ -65,2 +66,11 @@ export declare class MultiOrder { | ||
} | ||
export declare class ValueLedgerDeployOrder { | ||
kind: OrderKind.VALUE_LEDGER_DEPLOY_ORDER; | ||
makerId: string; | ||
takerId?: string; | ||
valueLedgerData: ValueLedgerData; | ||
tokenTransferData: TokenTransferData; | ||
seed: number; | ||
expiration: number; | ||
} | ||
export interface AssetLedgerData { | ||
@@ -74,2 +84,9 @@ name: string; | ||
} | ||
export interface ValueLedgerData { | ||
name: string; | ||
symbol: string; | ||
supply: string; | ||
decimals: string; | ||
owner: string; | ||
} | ||
export interface TokenTransferData { | ||
@@ -76,0 +93,0 @@ ledgerId: string; |
@@ -14,2 +14,3 @@ "use strict"; | ||
OrderKind[OrderKind["ASSET_LEDGER_DEPLOY_ORDER"] = 2] = "ASSET_LEDGER_DEPLOY_ORDER"; | ||
OrderKind[OrderKind["VALUE_LEDGER_DEPLOY_ORDER"] = 3] = "VALUE_LEDGER_DEPLOY_ORDER"; | ||
})(OrderKind = exports.OrderKind || (exports.OrderKind = {})); | ||
@@ -22,2 +23,5 @@ class MultiOrder { | ||
exports.AssetLedgerDeployOrder = AssetLedgerDeployOrder; | ||
class ValueLedgerDeployOrder { | ||
} | ||
exports.ValueLedgerDeployOrder = ValueLedgerDeployOrder; | ||
//# sourceMappingURL=gateway.js.map |
{ | ||
"files": {}, | ||
"arguments": "npm run clean && npx tsc " | ||
"arguments": "npm run lint && npx nyc npx hayspec test " | ||
} |
{ | ||
"name": "@0xcert/scaffold", | ||
"version": "2.0.0-alpha0", | ||
"version": "2.0.0-alpha1", | ||
"description": "Overarching module with types, enums, and interfaces for easier development of interoperable modules.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -167,3 +167,3 @@ import { AssetLedgerCapability } from './asset-ledger'; | ||
*/ | ||
export type Order = MultiOrder | AssetLedgerDeployOrder; | ||
export type Order = MultiOrder | AssetLedgerDeployOrder | ValueLedgerDeployOrder; | ||
@@ -176,2 +176,3 @@ /** | ||
ASSET_LEDGER_DEPLOY_ORDER = 2, | ||
VALUE_LEDGER_DEPLOY_ORDER = 3, | ||
} | ||
@@ -216,3 +217,3 @@ | ||
/** | ||
* Deploy definition. | ||
* Asset ledger deploy definition. | ||
*/ | ||
@@ -258,2 +259,43 @@ export class AssetLedgerDeployOrder { | ||
/** | ||
* Asset ledger deploy definition. | ||
*/ | ||
export class ValueLedgerDeployOrder { | ||
/** | ||
* Type of order. | ||
*/ | ||
public kind: OrderKind.VALUE_LEDGER_DEPLOY_ORDER; | ||
/** | ||
* Address of the order maker. | ||
*/ | ||
public makerId: string; | ||
/** | ||
* Address of the order taker. | ||
*/ | ||
public takerId?: string; | ||
/** | ||
* Data from which a new value ledger will be created. | ||
*/ | ||
public valueLedgerData: ValueLedgerData; | ||
/** | ||
* Data defining a fungible token transfer. | ||
*/ | ||
public tokenTransferData: TokenTransferData; | ||
/** | ||
* Nonce for hash generation - usually current timestamp. | ||
*/ | ||
public seed: number; | ||
/** | ||
* Timestamp of order expiration. | ||
*/ | ||
public expiration: number; | ||
} | ||
/** | ||
* Asset ledger deploy data definition. | ||
@@ -297,2 +339,33 @@ */ | ||
/** | ||
* Value ledger deploy data definition. | ||
*/ | ||
export interface ValueLedgerData { | ||
/** | ||
* Value Ledger name. | ||
*/ | ||
name: string; | ||
/** | ||
* Value Ledger symbol/ticker. | ||
*/ | ||
symbol: string; | ||
/** | ||
* Value ledger supply | ||
*/ | ||
supply: string; | ||
/** | ||
* Value ledger number of decimals. | ||
*/ | ||
decimals: string; | ||
/** | ||
* Id (address) of the owner of this value ledger (will own the whole supply at deploy). | ||
*/ | ||
owner: string; | ||
} | ||
/** | ||
* Token transfer data definition. | ||
@@ -299,0 +372,0 @@ */ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62585
42
1603