Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@0xcert/scaffold

Package Overview
Dependencies
Maintainers
2
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0xcert/scaffold - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

.nyc_output/3aa2c414-599e-4b9e-87ab-81006e484dac.json

6

CHANGELOG.json

@@ -5,2 +5,8 @@ {

{
"version": "1.4.1",
"tag": "@0xcert/scaffold_v1.4.1",
"date": "Fri, 03 May 2019 09:59:39 GMT",
"comments": {}
},
{
"version": "1.4.0",

@@ -7,0 +13,0 @@ "tag": "@0xcert/scaffold_v1.4.0",

7

CHANGELOG.md
# Change Log - @0xcert/scaffold
This log was last generated on Tue, 23 Apr 2019 15:50:38 GMT and should not be manually modified.
This log was last generated on Fri, 03 May 2019 09:59:39 GMT and should not be manually modified.
## 1.4.1
Fri, 03 May 2019 09:59:39 GMT
*Version update only*
## 1.4.0

@@ -6,0 +11,0 @@ Tue, 23 Apr 2019 15:50:38 GMT

3

dist/core/asset-ledger.d.ts

@@ -10,3 +10,4 @@ import { MutationBase } from './mutation';

ALLOW_CREATE_ASSET = 32,
UPDATE_URI_BASE = 64
UPDATE_URI_BASE = 64,
ALLOW_UPDATE_ASSET_IMPRINT = 128
}

@@ -13,0 +14,0 @@ export declare enum SuperAssetLedgerAbility {

@@ -11,2 +11,3 @@ "use strict";

GeneralAssetLedgerAbility[GeneralAssetLedgerAbility["UPDATE_URI_BASE"] = 64] = "UPDATE_URI_BASE";
GeneralAssetLedgerAbility[GeneralAssetLedgerAbility["ALLOW_UPDATE_ASSET_IMPRINT"] = 128] = "ALLOW_UPDATE_ASSET_IMPRINT";
})(GeneralAssetLedgerAbility = exports.GeneralAssetLedgerAbility || (exports.GeneralAssetLedgerAbility = {}));

@@ -13,0 +14,0 @@ var SuperAssetLedgerAbility;

@@ -5,3 +5,4 @@ import { MutationBase } from './mutation';

TRANSFER_ASSET = 2,
TRANSFER_VALUE = 3
TRANSFER_VALUE = 3,
UPDATE_ASSET_IMPRINT = 4
}

@@ -14,8 +15,7 @@ export interface OrderGatewayBase {

}
export declare type OrderAction = OrderActionCreateAsset | OrderActionTransferAsset | OrderActionTransferValue;
export declare type OrderAction = OrderActionCreateAsset | OrderActionTransferAsset | OrderActionTransferValue | OrderActionUpdateAssetImprint;
export interface OrderActionCreateAsset {
kind: OrderActionKind.CREATE_ASSET;
ledgerId: string;
senderId: string;
receiverId: string;
receiverId?: string;
assetId: string;

@@ -27,11 +27,17 @@ assetImprint: string;

ledgerId: string;
senderId: string;
receiverId: string;
senderId?: string;
receiverId?: string;
assetId: string;
}
export interface OrderActionUpdateAssetImprint {
kind: OrderActionKind.UPDATE_ASSET_IMPRINT;
ledgerId: string;
assetImprint: string;
assetId: string;
}
export interface OrderActionTransferValue {
kind: OrderActionKind.TRANSFER_VALUE;
ledgerId: string;
senderId: string;
receiverId: string;
senderId?: string;
receiverId?: string;
value: string;

@@ -41,3 +47,3 @@ }

makerId: string;
takerId: string;
takerId?: string;
actions: OrderAction[];

@@ -44,0 +50,0 @@ seed: number;

@@ -8,2 +8,3 @@ "use strict";

OrderActionKind[OrderActionKind["TRANSFER_VALUE"] = 3] = "TRANSFER_VALUE";
OrderActionKind[OrderActionKind["UPDATE_ASSET_IMPRINT"] = 4] = "UPDATE_ASSET_IMPRINT";
})(OrderActionKind = exports.OrderActionKind || (exports.OrderActionKind = {}));

@@ -10,0 +11,0 @@ class Order {

@@ -9,3 +9,4 @@ export interface ProviderBase {

export declare enum ProviderIssue {
GENERAL = 0
GENERAL = 0,
WRONG_INPUT = 1
}

@@ -12,0 +13,0 @@ export declare class ProviderError extends Error {

@@ -11,2 +11,3 @@ "use strict";

ProviderIssue[ProviderIssue["GENERAL"] = 0] = "GENERAL";
ProviderIssue[ProviderIssue["WRONG_INPUT"] = 1] = "WRONG_INPUT";
})(ProviderIssue = exports.ProviderIssue || (exports.ProviderIssue = {}));

@@ -13,0 +14,0 @@ class ProviderError extends Error {

{
"files": {
"packages/0xcert-scaffold/CHANGELOG.json": "e0668e0146a8ed73146c060b995acd20834d9dea",
"packages/0xcert-scaffold/CHANGELOG.md": "a404fef8f548efef2e0040248a86c145aba809f3",
"packages/0xcert-scaffold/README.md": "7bfbd2643bbb937d12c739e2a406f80a4a2651b6",
"packages/0xcert-scaffold/nodemon.json": "82b893373db9861f1df4b55d8ea68a5d37b118de",
"packages/0xcert-scaffold/package.json": "4d1f80b0b2b76b0ae4070e132391252a2360f372",
"packages/0xcert-scaffold/src/assets/metadata.ts": "f42e8c108ed586ffc13f1f0a6f3170e86fb69977",
"packages/0xcert-scaffold/src/core/asset-ledger.ts": "afedb116b2951c85fcb345542f98be9b81c690f6",
"packages/0xcert-scaffold/src/core/mutation.ts": "70cf6a4339e2e99da28fb7d2ab3dcfb88cbcb59c",
"packages/0xcert-scaffold/src/core/order-gateway.ts": "cd23e3d56c268718e07170880c239e98ef7237f7",
"packages/0xcert-scaffold/src/core/provider.ts": "5905b1808e4009b2cb2882fe7f21c5c7ea1e224f",
"packages/0xcert-scaffold/src/core/value-ledger.ts": "e24545dd4528da48859594e27c870d6ec74d219b",
"packages/0xcert-scaffold/src/index.ts": "c49becb92b845c5678dbb1aac124c4ad184e9b1d",
"packages/0xcert-scaffold/src/tests/index.test.ts": "704984a6d673fabaf81d796043ee1eed922a2bb0",
"packages/0xcert-scaffold/tsconfig.json": "99f0fa2e7cf44aa40828236230bc6f15d8648bc6",
"packages/0xcert-scaffold/tslint.json": "c57b3f0cdb7aa74ab2ab02888380f613589cbe66",
"common/config/rush/npm-shrinkwrap.json": "a9d3c16f50f2564e76b2b744f9f73ebf3f32b96a"
},
"files": {},
"arguments": "npm run lint && npx nyc npx hayspec test "
}
{
"name": "@0xcert/scaffold",
"version": "1.4.0",
"version": "1.4.1",
"description": "Overarching module with types, enums, and interfaces for easier development of interoperable modules.",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

@@ -17,2 +17,3 @@ import { MutationBase } from './mutation';

UPDATE_URI_BASE = 64,
ALLOW_UPDATE_ASSET_IMPRINT = 128,
}

@@ -19,0 +20,0 @@

@@ -10,2 +10,3 @@ import { MutationBase } from './mutation';

TRANSFER_VALUE = 3,
UPDATE_ASSET_IMPRINT = 4,
}

@@ -47,3 +48,3 @@

export type OrderAction = OrderActionCreateAsset | OrderActionTransferAsset
| OrderActionTransferValue;
| OrderActionTransferValue | OrderActionUpdateAssetImprint;

@@ -66,10 +67,5 @@ /**

/**
* Id (address) of the sender.
*/
senderId: string;
/**
* Id (address) of the receiver.
*/
receiverId: string;
receiverId?: string;

@@ -105,3 +101,3 @@ /**

*/
senderId: string;
senderId?: string;

@@ -111,3 +107,3 @@ /**

*/
receiverId: string;
receiverId?: string;

@@ -121,2 +117,28 @@ /**

/**
* Order transfer asset data definition.
*/
export interface OrderActionUpdateAssetImprint {
/**
* Type od order action.
*/
kind: OrderActionKind.UPDATE_ASSET_IMPRINT;
/**
* Id (address) of the smart contract that represents the assetLedger.
*/
ledgerId: string;
/**
* Merkle tree root of asset proof.
*/
assetImprint: string;
/**
* Unique asset Id.
*/
assetId: string;
}
/**
* Order transfer value data definition.

@@ -139,3 +161,3 @@ */

*/
senderId: string;
senderId?: string;

@@ -145,3 +167,3 @@ /**

*/
receiverId: string;
receiverId?: string;

@@ -167,3 +189,3 @@ /**

*/
public takerId: string;
public takerId?: string;

@@ -170,0 +192,0 @@ /**

@@ -21,2 +21,3 @@ /**

GENERAL = 0,
WRONG_INPUT = 1,
}

@@ -23,0 +24,0 @@

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc