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.7.4 to 2.0.0-alpha0

dist/core/gateway.d.ts

4

CHANGELOG.json

@@ -5,4 +5,4 @@ {

{
"version": "1.7.4",
"tag": "@0xcert/scaffold_v1.7.4",
"version": "2.0.0-alpha0",
"tag": "@0xcert/scaffold_v2.0.0-alpha0",
"date": "Wed, 19 Jun 2019 10:31:05 GMT",

@@ -9,0 +9,0 @@ "comments": {}

@@ -5,3 +5,3 @@ # Change Log - @0xcert/scaffold

## 1.7.4
## 2.0.0-alpha0
Wed, 19 Jun 2019 10:31:05 GMT

@@ -8,0 +8,0 @@

@@ -0,3 +1,3 @@

import { GatewayBase } from './gateway';
import { MutationBase } from './mutation';
import { OrderGatewayBase } from './order-gateway';
export declare type AssetLedgerAbility = SuperAssetLedgerAbility | GeneralAssetLedgerAbility;

@@ -24,4 +24,4 @@ export declare enum GeneralAssetLedgerAbility {

readonly id: string;
approveAccount(assetId: string, accountId: string | OrderGatewayBase): Promise<MutationBase>;
approveOperator(accountId: string | OrderGatewayBase): Promise<MutationBase>;
approveAccount(assetId: string, accountId: string | GatewayBase): Promise<MutationBase>;
approveOperator(accountId: string | GatewayBase): Promise<MutationBase>;
grantAbilities(accountId: string, abilities: AssetLedgerAbility[]): Promise<MutationBase>;

@@ -31,3 +31,3 @@ createAsset(recipe: AssetLedgerItemRecipe): Promise<MutationBase>;

disapproveAccount(assetId: string): Promise<MutationBase>;
disapproveOperator(accountId: string | OrderGatewayBase): Promise<MutationBase>;
disapproveOperator(accountId: string | GatewayBase): Promise<MutationBase>;
disableTransfers(): Promise<MutationBase>;

@@ -42,4 +42,4 @@ enableTransfers(): Promise<MutationBase>;

getInfo(): Promise<AssetLedgerInfo>;
isApprovedAccount(assetId: string, accountId: string | OrderGatewayBase): Promise<boolean>;
isApprovedOperator(accountId: string, operatorId: string | OrderGatewayBase): Promise<boolean>;
isApprovedAccount(assetId: string, accountId: string | GatewayBase): Promise<boolean>;
isApprovedOperator(accountId: string, operatorId: string | GatewayBase): Promise<boolean>;
isTransferable(): Promise<boolean>;

@@ -46,0 +46,0 @@ revokeAbilities(accountId: string, abilities: AssetLedgerAbility[]): Promise<MutationBase>;

@@ -0,11 +1,11 @@

import { GatewayBase } from './gateway';
import { MutationBase } from './mutation';
import { OrderGatewayBase } from './order-gateway';
export interface ValueLedgerBase {
readonly id: string;
approveValue(value: string, accountId: string | OrderGatewayBase): Promise<MutationBase>;
disapproveValue(accountId: string | OrderGatewayBase): Promise<MutationBase>;
approveValue(value: string, accountId: string | GatewayBase): Promise<MutationBase>;
disapproveValue(accountId: string | GatewayBase): Promise<MutationBase>;
getApprovedValue(accountId: string, spenderId: string): Promise<String>;
getBalance(accountId: string): Promise<string>;
getInfo(): Promise<ValueLedgerInfo>;
isApprovedValue(value: string, accountId: string | OrderGatewayBase, spenderId: string): Promise<Boolean>;
isApprovedValue(value: string, accountId: string | GatewayBase, spenderId: string): Promise<Boolean>;
transferValue(recipe: ValueLedgerTransferRecipe): Promise<MutationBase>;

@@ -12,0 +12,0 @@ }

@@ -5,3 +5,3 @@ export * from './assets/metadata';

export * from './core/mutation';
export * from './core/order-gateway';
export * from './core/gateway';
export * from './core/value-ledger';

@@ -9,3 +9,3 @@ "use strict";

__export(require("./core/mutation"));
__export(require("./core/order-gateway"));
__export(require("./core/gateway"));
//# sourceMappingURL=index.js.map
{
"files": {
"packages/0xcert-scaffold/CHANGELOG.json": "dc0bbdb7323677effd16b01f3b065f4271237709",
"packages/0xcert-scaffold/CHANGELOG.md": "54bd8b9da09795828a3a041928bfc209fd473226",
"packages/0xcert-scaffold/README.md": "7bfbd2643bbb937d12c739e2a406f80a4a2651b6",
"packages/0xcert-scaffold/nodemon.json": "82b893373db9861f1df4b55d8ea68a5d37b118de",
"packages/0xcert-scaffold/package.json": "3aef2e21045bbdc194bcbb76d96452fa30650d14",
"packages/0xcert-scaffold/src/assets/metadata.ts": "f42e8c108ed586ffc13f1f0a6f3170e86fb69977",
"packages/0xcert-scaffold/src/core/asset-ledger.ts": "e20732f2399ec1b0763401b3ab085d0355229ad3",
"packages/0xcert-scaffold/src/core/mutation.ts": "70cf6a4339e2e99da28fb7d2ab3dcfb88cbcb59c",
"packages/0xcert-scaffold/src/core/order-gateway.ts": "3354831fb1a8b0a85741c61e490392615118ee17",
"packages/0xcert-scaffold/src/core/provider.ts": "94b32d34c321b6e8502ef5e052d75b978bb9f7e7",
"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": "f6a3eabad58bf49b38e3bbf921e585591f74fef1"
},
"arguments": "npm run lint && npx nyc npx hayspec test "
"files": {},
"arguments": "npm run clean && npx tsc "
}
{
"name": "@0xcert/scaffold",
"version": "1.7.4",
"version": "2.0.0-alpha0",
"description": "Overarching module with types, enums, and interfaces for easier development of interoperable modules.",

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

@@ -0,3 +1,3 @@

import { GatewayBase } from './gateway';
import { MutationBase } from './mutation';
import { OrderGatewayBase } from './order-gateway';

@@ -53,3 +53,3 @@ export type AssetLedgerAbility = SuperAssetLedgerAbility | GeneralAssetLedgerAbility;

*/
approveAccount(assetId: string, accountId: string | OrderGatewayBase): Promise<MutationBase>;
approveAccount(assetId: string, accountId: string | GatewayBase): Promise<MutationBase>;

@@ -60,3 +60,3 @@ /**

*/
approveOperator(accountId: string | OrderGatewayBase): Promise<MutationBase>;
approveOperator(accountId: string | GatewayBase): Promise<MutationBase>;

@@ -92,3 +92,3 @@ /**

*/
disapproveOperator(accountId: string | OrderGatewayBase): Promise<MutationBase>;
disapproveOperator(accountId: string | GatewayBase): Promise<MutationBase>;

@@ -150,3 +150,3 @@ /**

*/
isApprovedAccount(assetId: string, accountId: string | OrderGatewayBase): Promise<boolean>;
isApprovedAccount(assetId: string, accountId: string | GatewayBase): Promise<boolean>;

@@ -158,3 +158,3 @@ /**

*/
isApprovedOperator(accountId: string, operatorId: string | OrderGatewayBase): Promise<boolean>;
isApprovedOperator(accountId: string, operatorId: string | GatewayBase): Promise<boolean>;

@@ -161,0 +161,0 @@ /**

@@ -0,3 +1,3 @@

import { GatewayBase } from './gateway';
import { MutationBase } from './mutation';
import { OrderGatewayBase } from './order-gateway';

@@ -19,3 +19,3 @@ /**

*/
approveValue(value: string, accountId: string | OrderGatewayBase): Promise<MutationBase>;
approveValue(value: string, accountId: string | GatewayBase): Promise<MutationBase>;

@@ -26,3 +26,3 @@ /**

*/
disapproveValue(accountId: string | OrderGatewayBase): Promise<MutationBase>;
disapproveValue(accountId: string | GatewayBase): Promise<MutationBase>;

@@ -53,3 +53,3 @@ /**

*/
isApprovedValue(value: string, accountId: string | OrderGatewayBase, spenderId: string): Promise<Boolean>;
isApprovedValue(value: string, accountId: string | GatewayBase, spenderId: string): Promise<Boolean>;

@@ -56,0 +56,0 @@ /**

@@ -5,3 +5,3 @@ export * from './assets/metadata';

export * from './core/mutation';
export * from './core/order-gateway';
export * from './core/gateway';
export * from './core/value-ledger';

@@ -10,4 +10,5 @@ {

"declaration": true,
"experimentalDecorators": true
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true
}
}
}

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