@0xcert/scaffold
Advanced tools
Comparing version 2.0.0-alpha7 to 2.0.0-alpha8
@@ -1,1 +0,1 @@ | ||
{"processes":{"c6038be9-6bcf-4913-a45a-7f5467bde353":{"parent":null,"children":[]}},"files":{"/Users/xpepermint/Downloads/framework-1-multi-sig/packages/0xcert-scaffold/src/index.ts":["c6038be9-6bcf-4913-a45a-7f5467bde353"],"/Users/xpepermint/Downloads/framework-1-multi-sig/packages/0xcert-scaffold/src/core/provider.ts":["c6038be9-6bcf-4913-a45a-7f5467bde353"],"/Users/xpepermint/Downloads/framework-1-multi-sig/packages/0xcert-scaffold/src/core/asset-ledger.ts":["c6038be9-6bcf-4913-a45a-7f5467bde353"],"/Users/xpepermint/Downloads/framework-1-multi-sig/packages/0xcert-scaffold/src/core/mutation.ts":["c6038be9-6bcf-4913-a45a-7f5467bde353"],"/Users/xpepermint/Downloads/framework-1-multi-sig/packages/0xcert-scaffold/src/core/gateway.ts":["c6038be9-6bcf-4913-a45a-7f5467bde353"]},"externalIds":{}} | ||
{"processes":{"5df6e3fa-abec-482c-88d8-895268908d18":{"parent":null,"children":[]}},"files":{"/Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-scaffold/src/index.ts":["5df6e3fa-abec-482c-88d8-895268908d18"],"/Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-scaffold/src/core/provider.ts":["5df6e3fa-abec-482c-88d8-895268908d18"],"/Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-scaffold/src/core/asset-ledger.ts":["5df6e3fa-abec-482c-88d8-895268908d18"],"/Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-scaffold/src/core/mutation.ts":["5df6e3fa-abec-482c-88d8-895268908d18"],"/Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-scaffold/src/core/gateway.ts":["5df6e3fa-abec-482c-88d8-895268908d18"]},"externalIds":{}} |
{ | ||
"files": {}, | ||
"files": { | ||
"packages/0xcert-scaffold/CHANGELOG.json": "e5cc9b5e57e86ea68c0c7b022b7cfdfdd3816744", | ||
"packages/0xcert-scaffold/CHANGELOG.md": "6adfd888dff62be257e0514f1dabc09fcd635d2e", | ||
"packages/0xcert-scaffold/README.md": "7bfbd2643bbb937d12c739e2a406f80a4a2651b6", | ||
"packages/0xcert-scaffold/nodemon.json": "82b893373db9861f1df4b55d8ea68a5d37b118de", | ||
"packages/0xcert-scaffold/package.json": "9353ab18d03a220cf2a23ee81bd22dfa6c9e6c33", | ||
"packages/0xcert-scaffold/src/assets/metadata.ts": "f42e8c108ed586ffc13f1f0a6f3170e86fb69977", | ||
"packages/0xcert-scaffold/src/core/asset-ledger.ts": "9fcf4891c03db2edcd838f2b7359f198559bbfad", | ||
"packages/0xcert-scaffold/src/core/gateway.ts": "68a7552011b50a4b7dcb836251ae75e30f433f5e", | ||
"packages/0xcert-scaffold/src/core/mutation.ts": "a10f292c0bb32ac05b729d098b254fec93537f42", | ||
"packages/0xcert-scaffold/src/core/provider.ts": "94b32d34c321b6e8502ef5e052d75b978bb9f7e7", | ||
"packages/0xcert-scaffold/src/core/value-ledger.ts": "0f424113dfe6a16a22b09f230d2b6febb466bf12", | ||
"packages/0xcert-scaffold/src/index.ts": "bca32984b67edd5c57ee258b4a14ad04d6327b20", | ||
"packages/0xcert-scaffold/src/tests/index.test.ts": "704984a6d673fabaf81d796043ee1eed922a2bb0", | ||
"packages/0xcert-scaffold/tsconfig.json": "aaa461c172cf0c93d58ffeef8e3ead76fe299b2e", | ||
"packages/0xcert-scaffold/tslint.json": "c57b3f0cdb7aa74ab2ab02888380f613589cbe66", | ||
"common/config/rush/npm-shrinkwrap.json": "8b9585d2bdf7320d42e6281484f9f74a408e0560" | ||
}, | ||
"arguments": "npm run clean && npx tsc " | ||
} |
{ | ||
"files": {}, | ||
"files": { | ||
"packages/0xcert-scaffold/CHANGELOG.json": "e5cc9b5e57e86ea68c0c7b022b7cfdfdd3816744", | ||
"packages/0xcert-scaffold/CHANGELOG.md": "6adfd888dff62be257e0514f1dabc09fcd635d2e", | ||
"packages/0xcert-scaffold/README.md": "7bfbd2643bbb937d12c739e2a406f80a4a2651b6", | ||
"packages/0xcert-scaffold/nodemon.json": "82b893373db9861f1df4b55d8ea68a5d37b118de", | ||
"packages/0xcert-scaffold/package.json": "9353ab18d03a220cf2a23ee81bd22dfa6c9e6c33", | ||
"packages/0xcert-scaffold/src/assets/metadata.ts": "f42e8c108ed586ffc13f1f0a6f3170e86fb69977", | ||
"packages/0xcert-scaffold/src/core/asset-ledger.ts": "9fcf4891c03db2edcd838f2b7359f198559bbfad", | ||
"packages/0xcert-scaffold/src/core/gateway.ts": "68a7552011b50a4b7dcb836251ae75e30f433f5e", | ||
"packages/0xcert-scaffold/src/core/mutation.ts": "a10f292c0bb32ac05b729d098b254fec93537f42", | ||
"packages/0xcert-scaffold/src/core/provider.ts": "94b32d34c321b6e8502ef5e052d75b978bb9f7e7", | ||
"packages/0xcert-scaffold/src/core/value-ledger.ts": "0f424113dfe6a16a22b09f230d2b6febb466bf12", | ||
"packages/0xcert-scaffold/src/index.ts": "bca32984b67edd5c57ee258b4a14ad04d6327b20", | ||
"packages/0xcert-scaffold/src/tests/index.test.ts": "704984a6d673fabaf81d796043ee1eed922a2bb0", | ||
"packages/0xcert-scaffold/tsconfig.json": "aaa461c172cf0c93d58ffeef8e3ead76fe299b2e", | ||
"packages/0xcert-scaffold/tslint.json": "c57b3f0cdb7aa74ab2ab02888380f613589cbe66", | ||
"common/config/rush/npm-shrinkwrap.json": "8b9585d2bdf7320d42e6281484f9f74a408e0560" | ||
}, | ||
"arguments": "npm run lint && npx nyc npx hayspec test " | ||
} |
@@ -5,4 +5,4 @@ { | ||
{ | ||
"version": "2.0.0-alpha7", | ||
"tag": "@0xcert/scaffold_v2.0.0-alpha7", | ||
"version": "2.0.0-alpha8", | ||
"tag": "@0xcert/scaffold_v2.0.0-alpha8", | ||
"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-alpha7 | ||
## 2.0.0-alpha8 | ||
Wed, 19 Jun 2019 10:31:05 GMT | ||
@@ -8,0 +8,0 @@ |
@@ -12,18 +12,15 @@ import { AssetLedgerAbility, AssetLedgerCapability } from './asset-ledger'; | ||
claim(order: Order): Promise<string>; | ||
perform(order: Order, claim: string | string[]): Promise<MutationBase>; | ||
perform(order: Order, claim: string): Promise<MutationBase>; | ||
cancel(order: Order): Promise<MutationBase>; | ||
} | ||
export declare type ActionsOrderAction = DynamicActionsOrderAction | FixedActionsOrderAction; | ||
export declare type DynamicActionsOrderAction = DynamicActionsOrderActionCreateAsset | DynamicActionsOrderActionTransferAsset | DynamicActionsOrderActionTransferValue | DynamicActionsOrderActionUpdateAssetImprint | DynamicActionsOrderActionSetAbilities; | ||
export interface DynamicActionsOrderActionSetAbilities { | ||
export declare type ActionsOrderAction = ActionsOrderActionCreateAsset | ActionsOrderActionTransferAsset | ActionsOrderActionTransferValue | ActionsOrderActionUpdateAssetImprint | ActionsOrderActionSetAbilities; | ||
export interface ActionsOrderActionSetAbilities { | ||
kind: ActionsOrderActionKind.SET_ABILITIES; | ||
ledgerId: string; | ||
senderId?: string; | ||
receiverId?: string; | ||
abilities: AssetLedgerAbility[]; | ||
} | ||
export interface DynamicActionsOrderActionCreateAsset { | ||
export interface ActionsOrderActionCreateAsset { | ||
kind: ActionsOrderActionKind.CREATE_ASSET; | ||
ledgerId: string; | ||
senderId?: string; | ||
receiverId?: string; | ||
@@ -33,3 +30,3 @@ assetId: string; | ||
} | ||
export interface DynamicActionsOrderActionTransferAsset { | ||
export interface ActionsOrderActionTransferAsset { | ||
kind: ActionsOrderActionKind.TRANSFER_ASSET; | ||
@@ -41,10 +38,9 @@ ledgerId: string; | ||
} | ||
export interface DynamicActionsOrderActionUpdateAssetImprint { | ||
export interface ActionsOrderActionUpdateAssetImprint { | ||
kind: ActionsOrderActionKind.UPDATE_ASSET_IMPRINT; | ||
ledgerId: string; | ||
senderId?: string; | ||
assetImprint: string; | ||
assetId: string; | ||
} | ||
export interface DynamicActionsOrderActionTransferValue { | ||
export interface ActionsOrderActionTransferValue { | ||
kind: ActionsOrderActionKind.TRANSFER_VALUE; | ||
@@ -56,77 +52,16 @@ ledgerId: string; | ||
} | ||
export declare type FixedActionsOrderAction = FixedActionsOrderActionCreateAsset | FixedActionsOrderActionTransferAsset | FixedActionsOrderActionTransferValue | FixedActionsOrderActionUpdateAssetImprint | FixedActionsOrderActionSetAbilities; | ||
export interface FixedActionsOrderActionSetAbilities { | ||
kind: ActionsOrderActionKind.SET_ABILITIES; | ||
ledgerId: string; | ||
senderId?: string; | ||
receiverId: string; | ||
abilities: AssetLedgerAbility[]; | ||
} | ||
export interface FixedActionsOrderActionCreateAsset { | ||
kind: ActionsOrderActionKind.CREATE_ASSET; | ||
ledgerId: string; | ||
senderId?: string; | ||
receiverId: string; | ||
assetId: string; | ||
assetImprint: string; | ||
} | ||
export interface FixedActionsOrderActionTransferAsset { | ||
kind: ActionsOrderActionKind.TRANSFER_ASSET; | ||
ledgerId: string; | ||
senderId: string; | ||
receiverId: string; | ||
assetId: string; | ||
} | ||
export interface FixedActionsOrderActionUpdateAssetImprint { | ||
kind: ActionsOrderActionKind.UPDATE_ASSET_IMPRINT; | ||
ledgerId: string; | ||
senderId?: string; | ||
assetImprint: string; | ||
assetId: string; | ||
} | ||
export interface FixedActionsOrderActionTransferValue { | ||
kind: ActionsOrderActionKind.TRANSFER_VALUE; | ||
ledgerId: string; | ||
senderId: string; | ||
receiverId: string; | ||
value: string; | ||
} | ||
export declare type ActionsOrder = FixedActionsOrder | SignedFixedActionsOrder | SignedDynamicActionsOrder | DynamicActionsOrder; | ||
export declare type Order = AssetLedgerDeployOrder | ValueLedgerDeployOrder | ActionsOrder; | ||
export declare type Order = ActionsOrder | AssetLedgerDeployOrder | ValueLedgerDeployOrder; | ||
export declare enum OrderKind { | ||
ASSET_LEDGER_DEPLOY_ORDER = 1, | ||
VALUE_LEDGER_DEPLOY_ORDER = 2, | ||
FIXED_ACTIONS_ORDER = 3, | ||
DYNAMIC_ACTIONS_ORDER = 4, | ||
SIGNED_FIXED_ACTIONS_ORDER = 5, | ||
SIGNED_DYNAMIC_ACTIONS_ORDER = 6 | ||
ACTIONS_ORDER = 1, | ||
ASSET_LEDGER_DEPLOY_ORDER = 2, | ||
VALUE_LEDGER_DEPLOY_ORDER = 3 | ||
} | ||
export declare class DynamicActionsOrder { | ||
kind: OrderKind.DYNAMIC_ACTIONS_ORDER; | ||
signers: string[]; | ||
actions: DynamicActionsOrderAction[]; | ||
export declare class ActionsOrder { | ||
kind: OrderKind.ACTIONS_ORDER; | ||
makerId: string; | ||
takerId?: string; | ||
actions: ActionsOrderAction[]; | ||
seed: number; | ||
expiration: number; | ||
} | ||
export declare class SignedDynamicActionsOrder { | ||
kind: OrderKind.SIGNED_DYNAMIC_ACTIONS_ORDER; | ||
signers: string[]; | ||
actions: DynamicActionsOrderAction[]; | ||
seed: number; | ||
expiration: number; | ||
} | ||
export declare class FixedActionsOrder { | ||
kind: OrderKind.FIXED_ACTIONS_ORDER; | ||
signers: string[]; | ||
actions: FixedActionsOrderAction[]; | ||
seed: number; | ||
expiration: number; | ||
} | ||
export declare class SignedFixedActionsOrder { | ||
kind: OrderKind.SIGNED_FIXED_ACTIONS_ORDER; | ||
signers: string[]; | ||
actions: FixedActionsOrderAction[]; | ||
seed: number; | ||
expiration: number; | ||
} | ||
export declare class AssetLedgerDeployOrder { | ||
@@ -133,0 +68,0 @@ kind: OrderKind.ASSET_LEDGER_DEPLOY_ORDER; |
@@ -13,21 +13,9 @@ "use strict"; | ||
(function (OrderKind) { | ||
OrderKind[OrderKind["ASSET_LEDGER_DEPLOY_ORDER"] = 1] = "ASSET_LEDGER_DEPLOY_ORDER"; | ||
OrderKind[OrderKind["VALUE_LEDGER_DEPLOY_ORDER"] = 2] = "VALUE_LEDGER_DEPLOY_ORDER"; | ||
OrderKind[OrderKind["FIXED_ACTIONS_ORDER"] = 3] = "FIXED_ACTIONS_ORDER"; | ||
OrderKind[OrderKind["DYNAMIC_ACTIONS_ORDER"] = 4] = "DYNAMIC_ACTIONS_ORDER"; | ||
OrderKind[OrderKind["SIGNED_FIXED_ACTIONS_ORDER"] = 5] = "SIGNED_FIXED_ACTIONS_ORDER"; | ||
OrderKind[OrderKind["SIGNED_DYNAMIC_ACTIONS_ORDER"] = 6] = "SIGNED_DYNAMIC_ACTIONS_ORDER"; | ||
OrderKind[OrderKind["ACTIONS_ORDER"] = 1] = "ACTIONS_ORDER"; | ||
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 = {})); | ||
class DynamicActionsOrder { | ||
class ActionsOrder { | ||
} | ||
exports.DynamicActionsOrder = DynamicActionsOrder; | ||
class SignedDynamicActionsOrder { | ||
} | ||
exports.SignedDynamicActionsOrder = SignedDynamicActionsOrder; | ||
class FixedActionsOrder { | ||
} | ||
exports.FixedActionsOrder = FixedActionsOrder; | ||
class SignedFixedActionsOrder { | ||
} | ||
exports.SignedFixedActionsOrder = SignedFixedActionsOrder; | ||
exports.ActionsOrder = ActionsOrder; | ||
class AssetLedgerDeployOrder { | ||
@@ -34,0 +22,0 @@ } |
{ | ||
"name": "@0xcert/scaffold", | ||
"version": "2.0.0-alpha7", | ||
"version": "2.0.0-alpha8", | ||
"description": "Overarching module with types, enums, and interfaces for easier development of interoperable modules.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -31,3 +31,3 @@ import { AssetLedgerAbility, AssetLedgerCapability } from './asset-ledger'; | ||
*/ | ||
perform(order: Order, claim: string | string[]): Promise<MutationBase>; | ||
perform(order: Order, claim: string): Promise<MutationBase>; | ||
@@ -44,14 +44,9 @@ /** | ||
*/ | ||
export type ActionsOrderAction = DynamicActionsOrderAction | FixedActionsOrderAction; | ||
export type ActionsOrderAction = ActionsOrderActionCreateAsset | ActionsOrderActionTransferAsset | ||
| ActionsOrderActionTransferValue | ActionsOrderActionUpdateAssetImprint | ActionsOrderActionSetAbilities; | ||
/** | ||
* Different dynamic order actions. | ||
*/ | ||
export type DynamicActionsOrderAction = DynamicActionsOrderActionCreateAsset | DynamicActionsOrderActionTransferAsset | ||
| DynamicActionsOrderActionTransferValue | DynamicActionsOrderActionUpdateAssetImprint | DynamicActionsOrderActionSetAbilities; | ||
/** | ||
* Order create asset data definitio. | ||
*/ | ||
export interface DynamicActionsOrderActionSetAbilities { | ||
export interface ActionsOrderActionSetAbilities { | ||
@@ -69,7 +64,2 @@ /** | ||
/** | ||
* Id (address) of the sender - setter of abilitites. | ||
*/ | ||
senderId?: string; | ||
/** | ||
* Id (address) of account we are setting abilitites to. | ||
@@ -88,3 +78,3 @@ */ | ||
*/ | ||
export interface DynamicActionsOrderActionCreateAsset { | ||
export interface ActionsOrderActionCreateAsset { | ||
@@ -102,7 +92,2 @@ /** | ||
/** | ||
* Id (address) of the sender - creator. | ||
*/ | ||
senderId?: string; | ||
/** | ||
* Id (address) of the receiver. | ||
@@ -126,3 +111,3 @@ */ | ||
*/ | ||
export interface DynamicActionsOrderActionTransferAsset { | ||
export interface ActionsOrderActionTransferAsset { | ||
@@ -158,3 +143,3 @@ /** | ||
*/ | ||
export interface DynamicActionsOrderActionUpdateAssetImprint { | ||
export interface ActionsOrderActionUpdateAssetImprint { | ||
@@ -172,7 +157,2 @@ /** | ||
/** | ||
* Id (address) of the sender - updator. | ||
*/ | ||
senderId?: string; | ||
/** | ||
* Merkle tree root of asset proof. | ||
@@ -191,3 +171,3 @@ */ | ||
*/ | ||
export interface DynamicActionsOrderActionTransferValue { | ||
export interface ActionsOrderActionTransferValue { | ||
@@ -221,174 +201,5 @@ /** | ||
/** | ||
* Different fixed order actions. | ||
*/ | ||
export type FixedActionsOrderAction = FixedActionsOrderActionCreateAsset | FixedActionsOrderActionTransferAsset | ||
| FixedActionsOrderActionTransferValue | FixedActionsOrderActionUpdateAssetImprint | FixedActionsOrderActionSetAbilities; | ||
/** | ||
* Order create asset data definitio. | ||
*/ | ||
export interface FixedActionsOrderActionSetAbilities { | ||
/** | ||
* Type od order action. | ||
*/ | ||
kind: ActionsOrderActionKind.SET_ABILITIES; | ||
/** | ||
* Id (address) of the smart contract that represents the assetLedger. | ||
*/ | ||
ledgerId: string; | ||
/** | ||
* Id (address) of the sender - setter of abilitites. | ||
*/ | ||
senderId?: string; | ||
/** | ||
* Id (address) of account we are setting abilitites to. | ||
*/ | ||
receiverId: string; | ||
/** | ||
* Abilities we want to set. | ||
*/ | ||
abilities: AssetLedgerAbility[]; | ||
} | ||
/** | ||
* Order create asset data definitio. | ||
*/ | ||
export interface FixedActionsOrderActionCreateAsset { | ||
/** | ||
* Type od order action. | ||
*/ | ||
kind: ActionsOrderActionKind.CREATE_ASSET; | ||
/** | ||
* Id (address) of the smart contract that represents the assetLedger. | ||
*/ | ||
ledgerId: string; | ||
/** | ||
* Id (address) of the sender - creator. | ||
*/ | ||
senderId?: string; | ||
/** | ||
* Id (address) of the receiver. | ||
*/ | ||
receiverId: string; | ||
/** | ||
* Unique asset Id. | ||
*/ | ||
assetId: string; | ||
/** | ||
* Merkle tree root of asset proof. | ||
*/ | ||
assetImprint: string; | ||
} | ||
/** | ||
* Order transfer asset data definition. | ||
*/ | ||
export interface FixedActionsOrderActionTransferAsset { | ||
/** | ||
* Type od order action. | ||
*/ | ||
kind: ActionsOrderActionKind.TRANSFER_ASSET; | ||
/** | ||
* Id (address) of the smart contract that represents the assetLedger. | ||
*/ | ||
ledgerId: string; | ||
/** | ||
* Id (address) of the sender. | ||
*/ | ||
senderId: string; | ||
/** | ||
* Id (address) of the receiver. | ||
*/ | ||
receiverId: string; | ||
/** | ||
* Unique asset Id. | ||
*/ | ||
assetId: string; | ||
} | ||
/** | ||
* Order transfer asset data definition. | ||
*/ | ||
export interface FixedActionsOrderActionUpdateAssetImprint { | ||
/** | ||
* Type od order action. | ||
*/ | ||
kind: ActionsOrderActionKind.UPDATE_ASSET_IMPRINT; | ||
/** | ||
* Id (address) of the smart contract that represents the assetLedger. | ||
*/ | ||
ledgerId: string; | ||
/** | ||
* Id (address) of the sender - updator. | ||
*/ | ||
senderId?: string; | ||
/** | ||
* Merkle tree root of asset proof. | ||
*/ | ||
assetImprint: string; | ||
/** | ||
* Unique asset Id. | ||
*/ | ||
assetId: string; | ||
} | ||
/** | ||
* Order transfer value data definition. | ||
*/ | ||
export interface FixedActionsOrderActionTransferValue { | ||
/** | ||
* Type od order action. | ||
*/ | ||
kind: ActionsOrderActionKind.TRANSFER_VALUE; | ||
/** | ||
* Id (address) of the smart contract that represents the assetLedger. | ||
*/ | ||
ledgerId: string; | ||
/** | ||
* Id (address) of the sender. | ||
*/ | ||
senderId: string; | ||
/** | ||
* Id (address) of the receiver. | ||
*/ | ||
receiverId: string; | ||
/** | ||
* The amount of value(erc20 tokens). | ||
*/ | ||
value: string; // TODO BN.js | ||
} | ||
export type ActionsOrder = FixedActionsOrder | SignedFixedActionsOrder | | ||
SignedDynamicActionsOrder | DynamicActionsOrder; | ||
/** | ||
* Different order actions. | ||
*/ | ||
export type Order = AssetLedgerDeployOrder | ValueLedgerDeployOrder | ActionsOrder; | ||
export type Order = ActionsOrder | AssetLedgerDeployOrder | ValueLedgerDeployOrder; | ||
@@ -399,8 +210,5 @@ /** | ||
export enum OrderKind { | ||
ASSET_LEDGER_DEPLOY_ORDER = 1, | ||
VALUE_LEDGER_DEPLOY_ORDER = 2, | ||
FIXED_ACTIONS_ORDER = 3, | ||
DYNAMIC_ACTIONS_ORDER = 4, | ||
SIGNED_FIXED_ACTIONS_ORDER = 5, | ||
SIGNED_DYNAMIC_ACTIONS_ORDER = 6, | ||
ACTIONS_ORDER = 1, | ||
ASSET_LEDGER_DEPLOY_ORDER = 2, | ||
VALUE_LEDGER_DEPLOY_ORDER = 3, | ||
} | ||
@@ -411,3 +219,3 @@ | ||
*/ | ||
export class DynamicActionsOrder { | ||
export class ActionsOrder { | ||
@@ -417,44 +225,18 @@ /** | ||
*/ | ||
public kind: OrderKind.DYNAMIC_ACTIONS_ORDER; | ||
public kind: OrderKind.ACTIONS_ORDER; | ||
/** | ||
* Array of order signers. | ||
* Address of the order maker. | ||
*/ | ||
public signers: string[]; | ||
public makerId: string; | ||
/** | ||
* Array of actions that will execute in this order. | ||
* Address of the order taker. | ||
*/ | ||
public actions: DynamicActionsOrderAction[]; | ||
public takerId?: string; | ||
/** | ||
* Nonce for hash generation - usually current timestamp. | ||
*/ | ||
public seed: number; | ||
/** | ||
* Timestamp of order expiration. | ||
*/ | ||
public expiration: number; | ||
} | ||
/** | ||
* Order definition. | ||
*/ | ||
export class SignedDynamicActionsOrder { | ||
/** | ||
* Type of order. | ||
*/ | ||
public kind: OrderKind.SIGNED_DYNAMIC_ACTIONS_ORDER; | ||
/** | ||
* Array of order signers. | ||
*/ | ||
public signers: string[]; | ||
/** | ||
* Array of actions that will execute in this order. | ||
*/ | ||
public actions: DynamicActionsOrderAction[]; | ||
public actions: ActionsOrderAction[]; | ||
@@ -473,64 +255,2 @@ /** | ||
/** | ||
* Order definition. | ||
*/ | ||
export class FixedActionsOrder { | ||
/** | ||
* Type of order. | ||
*/ | ||
public kind: OrderKind.FIXED_ACTIONS_ORDER; | ||
/** | ||
* Array of order signers. | ||
*/ | ||
public signers: string[]; | ||
/** | ||
* Array of actions that will execute in this order. | ||
*/ | ||
public actions: FixedActionsOrderAction[]; | ||
/** | ||
* Nonce for hash generation - usually current timestamp. | ||
*/ | ||
public seed: number; | ||
/** | ||
* Timestamp of order expiration. | ||
*/ | ||
public expiration: number; | ||
} | ||
/** | ||
* Order definition. | ||
*/ | ||
export class SignedFixedActionsOrder { | ||
/** | ||
* Type of order. | ||
*/ | ||
public kind: OrderKind.SIGNED_FIXED_ACTIONS_ORDER; | ||
/** | ||
* Array of order signers. | ||
*/ | ||
public signers: string[]; | ||
/** | ||
* Array of actions that will execute in this order. | ||
*/ | ||
public actions: FixedActionsOrderAction[]; | ||
/** | ||
* Nonce for hash generation - usually current timestamp. | ||
*/ | ||
public seed: number; | ||
/** | ||
* Timestamp of order expiration. | ||
*/ | ||
public expiration: number; | ||
} | ||
/** | ||
* Asset ledger deploy definition. | ||
@@ -537,0 +257,0 @@ */ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
69296
1719