@0xcert/scaffold
Advanced tools
Comparing version 2.0.0 to 2.0.1-beta0
{ | ||
"files": { | ||
"packages/0xcert-scaffold/CHANGELOG.json": "b4b9e338397c62b28d4ec9c1bfb01a4d31c31667", | ||
"packages/0xcert-scaffold/CHANGELOG.md": "91166904f60e13aca07d53481591c44cc12ab66c", | ||
"packages/0xcert-scaffold/README.md": "f6adc75b3c351b4924ad222e7d2db2440aaba126", | ||
"packages/0xcert-scaffold/nodemon.json": "82b893373db9861f1df4b55d8ea68a5d37b118de", | ||
"packages/0xcert-scaffold/package.json": "a4e9859af15043e7644e640704cf0bcacd06439a", | ||
"packages/0xcert-scaffold/src/assets/metadata.ts": "f42e8c108ed586ffc13f1f0a6f3170e86fb69977", | ||
"packages/0xcert-scaffold/src/core/asset-ledger.ts": "60d8571063d91ef25067e595c79dce5ef92f9dc1", | ||
"packages/0xcert-scaffold/src/core/gateway.ts": "7ad3c857038c2a50956598c38bd0d0eada5c687f", | ||
"packages/0xcert-scaffold/src/core/issues.ts": "3583933e13ded869079a8182f140d357de24af39", | ||
"packages/0xcert-scaffold/src/core/messages.ts": "9cc1a17565e54e8f384bfd8f5ab80cd73752d890", | ||
"packages/0xcert-scaffold/src/core/mutation.ts": "56dae3a22074d055d0379c83a7f0a7c033bbf1ed", | ||
"packages/0xcert-scaffold/src/core/provider.ts": "ba2f50efe5e091d2a4e1d75e0c75260e39baeba5", | ||
"packages/0xcert-scaffold/src/core/value-ledger.ts": "4a07d5be5a43da318a737ae3a1b0a90d3ee3eb54", | ||
"packages/0xcert-scaffold/src/index.ts": "c7633311f61c7095fb1d24246772879a6ecb639b", | ||
"packages/0xcert-scaffold/src/tests/index.test.ts": "704984a6d673fabaf81d796043ee1eed922a2bb0", | ||
"packages/0xcert-scaffold/tsconfig.json": "aaa461c172cf0c93d58ffeef8e3ead76fe299b2e", | ||
"packages/0xcert-scaffold/tslint.json": "c57b3f0cdb7aa74ab2ab02888380f613589cbe66" | ||
}, | ||
"files": {}, | ||
"arguments": "npm run clean && npx tsc " | ||
} |
@@ -105,3 +105,3 @@ import { AssetLedgerAbility, AssetLedgerCapability } from './asset-ledger'; | ||
export declare type ActionsOrder = FixedActionsOrder | SignedFixedActionsOrder | SignedDynamicActionsOrder | DynamicActionsOrder; | ||
export declare type Order = AssetLedgerDeployOrder | ValueLedgerDeployOrder | ActionsOrder | AssetSetOperatorOrder; | ||
export declare type Order = AssetLedgerDeployOrder | ValueLedgerDeployOrder | ActionsOrder | AssetSetOperatorOrder | DappValueApproveOrder; | ||
export declare enum OrderKind { | ||
@@ -114,4 +114,16 @@ ASSET_LEDGER_DEPLOY_ORDER = 1, | ||
SIGNED_DYNAMIC_ACTIONS_ORDER = 6, | ||
ASSET_SET_OPERATOR_ORDER = 7 | ||
ASSET_SET_OPERATOR_ORDER = 7, | ||
DAPP_VALUE_APPROVE_ORDER = 8 | ||
} | ||
export declare class DappValueApproveOrder { | ||
kind: OrderKind.DAPP_VALUE_APPROVE_ORDER; | ||
ledgerId: string; | ||
approver: string; | ||
spender: string; | ||
value: string; | ||
feeRecipient?: string; | ||
feeValue: string; | ||
seed: number; | ||
expiration: number; | ||
} | ||
export declare class AssetSetOperatorOrder { | ||
@@ -118,0 +130,0 @@ kind: OrderKind.ASSET_SET_OPERATOR_ORDER; |
@@ -21,3 +21,7 @@ "use strict"; | ||
OrderKind[OrderKind["ASSET_SET_OPERATOR_ORDER"] = 7] = "ASSET_SET_OPERATOR_ORDER"; | ||
OrderKind[OrderKind["DAPP_VALUE_APPROVE_ORDER"] = 8] = "DAPP_VALUE_APPROVE_ORDER"; | ||
})(OrderKind = exports.OrderKind || (exports.OrderKind = {})); | ||
class DappValueApproveOrder { | ||
} | ||
exports.DappValueApproveOrder = DappValueApproveOrder; | ||
class AssetSetOperatorOrder { | ||
@@ -24,0 +28,0 @@ } |
@@ -69,2 +69,8 @@ export declare enum ProviderIssue { | ||
DAPP_TOKEN_NOT_ABLE_TO_MIGRATE = "010006", | ||
DAPP_TOKEN_INVALID_SIGNATURE = "010007", | ||
DAPP_TOKEN_CLAIM_PERFORMED = "010008", | ||
DAPP_TOKEN_CLAIM_EXPIRED = "010009", | ||
DAPP_TOKEN_INVALID_SIGNATURE_KIND = "010010", | ||
DAPP_TOKEN_CLAIM_CANCELED = "010011", | ||
DAPP_TOKEN_NOT_APPROVER = "010012", | ||
ERC20_DEPLOY_GATEWAY_INVALID_SIGNATURE_KIND = "011001", | ||
@@ -71,0 +77,0 @@ ERC20_DEPLOY_GATEWAY_TAKER_NOT_EQUAL_TO_SENDER = "011002", |
@@ -72,2 +72,8 @@ "use strict"; | ||
ProviderIssue["DAPP_TOKEN_NOT_ABLE_TO_MIGRATE"] = "010006"; | ||
ProviderIssue["DAPP_TOKEN_INVALID_SIGNATURE"] = "010007"; | ||
ProviderIssue["DAPP_TOKEN_CLAIM_PERFORMED"] = "010008"; | ||
ProviderIssue["DAPP_TOKEN_CLAIM_EXPIRED"] = "010009"; | ||
ProviderIssue["DAPP_TOKEN_INVALID_SIGNATURE_KIND"] = "010010"; | ||
ProviderIssue["DAPP_TOKEN_CLAIM_CANCELED"] = "010011"; | ||
ProviderIssue["DAPP_TOKEN_NOT_APPROVER"] = "010012"; | ||
ProviderIssue["ERC20_DEPLOY_GATEWAY_INVALID_SIGNATURE_KIND"] = "011001"; | ||
@@ -74,0 +80,0 @@ ProviderIssue["ERC20_DEPLOY_GATEWAY_TAKER_NOT_EQUAL_TO_SENDER"] = "011002"; |
@@ -68,2 +68,8 @@ import { ProviderIssue } from './issues'; | ||
"010006": string; | ||
"010007": string; | ||
"010008": string; | ||
"010009": string; | ||
"010010": string; | ||
"010011": string; | ||
"010012": string; | ||
"011001": string; | ||
@@ -70,0 +76,0 @@ "011002": string; |
@@ -70,2 +70,8 @@ "use strict"; | ||
[issues_1.ProviderIssue.DAPP_TOKEN_NOT_ABLE_TO_MIGRATE]: 'Migration cannot be performed. Please notify token owner.', | ||
[issues_1.ProviderIssue.DAPP_TOKEN_INVALID_SIGNATURE]: 'Provided signature is invalid.', | ||
[issues_1.ProviderIssue.DAPP_TOKEN_CLAIM_PERFORMED]: 'This order was already performed.', | ||
[issues_1.ProviderIssue.DAPP_TOKEN_CLAIM_EXPIRED]: 'This order has expired.', | ||
[issues_1.ProviderIssue.DAPP_TOKEN_INVALID_SIGNATURE_KIND]: 'Provided signature kind is invalid.', | ||
[issues_1.ProviderIssue.DAPP_TOKEN_CLAIM_CANCELED]: 'This order was canceled.', | ||
[issues_1.ProviderIssue.DAPP_TOKEN_NOT_APPROVER]: 'Sender is the the orders `approver`.', | ||
[issues_1.ProviderIssue.ERC20_DEPLOY_GATEWAY_INVALID_SIGNATURE_KIND]: 'Provided signature kind is invalid.', | ||
@@ -72,0 +78,0 @@ [issues_1.ProviderIssue.ERC20_DEPLOY_GATEWAY_TAKER_NOT_EQUAL_TO_SENDER]: 'Sender is not allowed to execute this order.', |
{ | ||
"name": "@0xcert/scaffold", | ||
"version": "2.0.0", | ||
"version": "2.0.1-beta0", | ||
"description": "Overarching module with types, enums, and interfaces for easier development of interoperable modules.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -444,3 +444,3 @@ import { AssetLedgerAbility, AssetLedgerCapability } from './asset-ledger'; | ||
*/ | ||
export type Order = AssetLedgerDeployOrder | ValueLedgerDeployOrder | ActionsOrder | AssetSetOperatorOrder; | ||
export type Order = AssetLedgerDeployOrder | ValueLedgerDeployOrder | ActionsOrder | AssetSetOperatorOrder | DappValueApproveOrder; | ||
@@ -458,4 +458,59 @@ /** | ||
ASSET_SET_OPERATOR_ORDER = 7, | ||
DAPP_VALUE_APPROVE_ORDER = 8, | ||
} | ||
/** | ||
* DappValueApproveOrder definition. | ||
*/ | ||
export class DappValueApproveOrder { | ||
/** | ||
* Type of order. | ||
*/ | ||
public kind: OrderKind.DAPP_VALUE_APPROVE_ORDER; | ||
/** | ||
* Id (address) of the smart contract that represents the dapp token value ledger. | ||
*/ | ||
public ledgerId: string; | ||
/** | ||
* Address that is approving value. | ||
*/ | ||
public approver: string; | ||
/** | ||
* Address what will get approved. | ||
*/ | ||
public spender: string; | ||
/** | ||
* Amount for which approver is approving spender. | ||
*/ | ||
public value: string; | ||
/** | ||
* Recipient of the fee for performing this order. | ||
*/ | ||
public feeRecipient?: string; | ||
/** | ||
* Amount of fee recipient will receive. | ||
*/ | ||
public feeValue: string; | ||
/** | ||
* Nonce for hash generation - usually current timestamp. | ||
*/ | ||
public seed: number; | ||
/** | ||
* Timestamp of order expiration. | ||
*/ | ||
public expiration: number; | ||
} | ||
/** | ||
* AssetSetOperatorOrder definition. | ||
*/ | ||
export class AssetSetOperatorOrder { | ||
@@ -462,0 +517,0 @@ |
@@ -86,2 +86,8 @@ /** | ||
DAPP_TOKEN_NOT_ABLE_TO_MIGRATE = '010006', | ||
DAPP_TOKEN_INVALID_SIGNATURE = '010007', | ||
DAPP_TOKEN_CLAIM_PERFORMED = '010008', | ||
DAPP_TOKEN_CLAIM_EXPIRED = '010009', | ||
DAPP_TOKEN_INVALID_SIGNATURE_KIND = '010010', | ||
DAPP_TOKEN_CLAIM_CANCELED = '010011', | ||
DAPP_TOKEN_NOT_APPROVER = '010012', | ||
// ERC20 deploy gateway contract errors. | ||
@@ -88,0 +94,0 @@ ERC20_DEPLOY_GATEWAY_INVALID_SIGNATURE_KIND = '011001', |
@@ -69,2 +69,8 @@ import { ProviderIssue } from './issues'; | ||
[ProviderIssue.DAPP_TOKEN_NOT_ABLE_TO_MIGRATE]: 'Migration cannot be performed. Please notify token owner.', | ||
[ProviderIssue.DAPP_TOKEN_INVALID_SIGNATURE]: 'Provided signature is invalid.', | ||
[ProviderIssue.DAPP_TOKEN_CLAIM_PERFORMED]: 'This order was already performed.', | ||
[ProviderIssue.DAPP_TOKEN_CLAIM_EXPIRED]: 'This order has expired.', | ||
[ProviderIssue.DAPP_TOKEN_INVALID_SIGNATURE_KIND]: 'Provided signature kind is invalid.', | ||
[ProviderIssue.DAPP_TOKEN_CLAIM_CANCELED]: 'This order was canceled.', | ||
[ProviderIssue.DAPP_TOKEN_NOT_APPROVER]: 'Sender is the the orders `approver`.', | ||
[ProviderIssue.ERC20_DEPLOY_GATEWAY_INVALID_SIGNATURE_KIND]: 'Provided signature kind is invalid.', | ||
@@ -71,0 +77,0 @@ [ProviderIssue.ERC20_DEPLOY_GATEWAY_TAKER_NOT_EQUAL_TO_SENDER]: 'Sender is not allowed to execute this order.', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
2777
111692
49
1