@0xcert/ethereum-asset-ledger
Advanced tools
Comparing version 1.7.4 to 2.0.0-alpha0
@@ -5,4 +5,4 @@ { | ||
{ | ||
"version": "1.7.4", | ||
"tag": "@0xcert/ethereum-asset-ledger_v1.7.4", | ||
"version": "2.0.0-alpha0", | ||
"tag": "@0xcert/ethereum-asset-ledger_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/ethereum-asset-ledger | ||
## 1.7.4 | ||
## 2.0.0-alpha0 | ||
Wed, 19 Jun 2019 10:31:05 GMT | ||
@@ -8,0 +8,0 @@ |
import { GenericProvider, Mutation } from '@0xcert/ethereum-generic-provider'; | ||
import { AssetLedgerAbility, AssetLedgerBase, AssetLedgerCapability, AssetLedgerDeployRecipe, AssetLedgerInfo, AssetLedgerItem, AssetLedgerItemRecipe, AssetLedgerObjectUpdateRecipe, AssetLedgerTransferRecipe, AssetLedgerUpdateRecipe, OrderGatewayBase } from '@0xcert/scaffold'; | ||
import { AssetLedgerAbility, AssetLedgerBase, AssetLedgerCapability, AssetLedgerDeployRecipe, AssetLedgerInfo, AssetLedgerItem, AssetLedgerItemRecipe, AssetLedgerObjectUpdateRecipe, AssetLedgerTransferRecipe, AssetLedgerUpdateRecipe, GatewayBase } from '@0xcert/scaffold'; | ||
export declare class AssetLedger implements AssetLedgerBase { | ||
@@ -20,10 +20,10 @@ protected _id: string; | ||
getAccountAssetIdAt(accountId: string, index: number): Promise<number>; | ||
isApprovedAccount(assetId: string, accountId: string | OrderGatewayBase): Promise<boolean>; | ||
isApprovedAccount(assetId: string, accountId: string | GatewayBase): Promise<boolean>; | ||
isTransferable(): Promise<boolean>; | ||
approveAccount(assetId: string, accountId: string | OrderGatewayBase): Promise<Mutation>; | ||
approveAccount(assetId: string, accountId: string | GatewayBase): Promise<Mutation>; | ||
disapproveAccount(assetId: string): Promise<Mutation>; | ||
grantAbilities(accountId: string | OrderGatewayBase, abilities: AssetLedgerAbility[]): Promise<Mutation>; | ||
grantAbilities(accountId: string | GatewayBase, abilities: AssetLedgerAbility[]): Promise<Mutation>; | ||
createAsset(recipe: AssetLedgerItemRecipe): Promise<Mutation>; | ||
destroyAsset(assetId: string): Promise<Mutation>; | ||
revokeAbilities(accountId: string | OrderGatewayBase, abilities: AssetLedgerAbility[]): Promise<Mutation>; | ||
revokeAbilities(accountId: string | GatewayBase, abilities: AssetLedgerAbility[]): Promise<Mutation>; | ||
revokeAsset(assetId: string): Promise<Mutation>; | ||
@@ -35,6 +35,6 @@ transferAsset(recipe: AssetLedgerTransferRecipe): Promise<Mutation>; | ||
update(recipe: AssetLedgerUpdateRecipe): Promise<Mutation>; | ||
approveOperator(accountId: string | OrderGatewayBase): Promise<Mutation>; | ||
disapproveOperator(accountId: string | OrderGatewayBase): Promise<Mutation>; | ||
isApprovedOperator(accountId: string, operatorId: string | OrderGatewayBase): Promise<boolean>; | ||
approveOperator(accountId: string | GatewayBase): Promise<Mutation>; | ||
disapproveOperator(accountId: string | GatewayBase): Promise<Mutation>; | ||
isApprovedOperator(accountId: string, operatorId: string | GatewayBase): Promise<boolean>; | ||
protected getProxyId(): number; | ||
} |
export { AssetLedgerBase, AssetLedgerDeployRecipe, AssetLedgerAbility, GeneralAssetLedgerAbility, SuperAssetLedgerAbility, AssetLedgerItem, AssetLedgerCapability, AssetLedgerInfo, AssetLedgerItemRecipe, AssetLedgerTransferRecipe, AssetLedgerObjectUpdateRecipe, AssetLedgerUpdateRecipe } from '@0xcert/scaffold'; | ||
export * from './core/ledger'; | ||
export * from './lib/capabilities'; |
@@ -11,2 +11,3 @@ "use strict"; | ||
__export(require("./core/ledger")); | ||
__export(require("./lib/capabilities")); | ||
//# sourceMappingURL=index.js.map |
import { GenericProvider } from '@0xcert/ethereum-generic-provider'; | ||
import { OrderGateway } from '@0xcert/ethereum-order-gateway'; | ||
import { Protocol } from '@0xcert/ethereum-sandbox'; | ||
import { Spec } from '@specron/spec'; | ||
import { AssetLedger } from '../../../core/ledger'; | ||
import { GatewayMock } from '../../mock/gateway-mock'; | ||
declare const spec: Spec<{ | ||
provider: GenericProvider; | ||
ledger: AssetLedger; | ||
gateway: OrderGateway; | ||
gateway: GatewayMock; | ||
protocol: Protocol; | ||
@@ -11,0 +11,0 @@ bob: string; |
@@ -12,6 +12,6 @@ "use strict"; | ||
const ethereum_generic_provider_1 = require("@0xcert/ethereum-generic-provider"); | ||
const ethereum_order_gateway_1 = require("@0xcert/ethereum-order-gateway"); | ||
const ethereum_sandbox_1 = require("@0xcert/ethereum-sandbox"); | ||
const spec_1 = require("@specron/spec"); | ||
const ledger_1 = require("../../../core/ledger"); | ||
const gateway_mock_1 = require("../../mock/gateway-mock"); | ||
const spec = new spec_1.Spec(); | ||
@@ -39,3 +39,3 @@ spec.before((stage) => __awaiter(this, void 0, void 0, function* () { | ||
stage.set('ledger', new ledger_1.AssetLedger(provider, ledgerId)); | ||
stage.set('gateway', new ethereum_order_gateway_1.OrderGateway(provider, orderGatewayId)); | ||
stage.set('gateway', new gateway_mock_1.GatewayMock(provider, orderGatewayId)); | ||
})); | ||
@@ -42,0 +42,0 @@ spec.before((stage) => __awaiter(this, void 0, void 0, function* () { |
import { GenericProvider } from '@0xcert/ethereum-generic-provider'; | ||
import { OrderGateway } from '@0xcert/ethereum-order-gateway'; | ||
import { Protocol } from '@0xcert/ethereum-sandbox'; | ||
import { Spec } from '@specron/spec'; | ||
import { AssetLedger } from '../../../core/ledger'; | ||
import { GatewayMock } from '../../mock/gateway-mock'; | ||
declare const spec: Spec<{ | ||
provider: GenericProvider; | ||
ledger: AssetLedger; | ||
gateway: OrderGateway; | ||
gateway: GatewayMock; | ||
protocol: Protocol; | ||
@@ -11,0 +11,0 @@ bob: string; |
@@ -12,6 +12,6 @@ "use strict"; | ||
const ethereum_generic_provider_1 = require("@0xcert/ethereum-generic-provider"); | ||
const ethereum_order_gateway_1 = require("@0xcert/ethereum-order-gateway"); | ||
const ethereum_sandbox_1 = require("@0xcert/ethereum-sandbox"); | ||
const spec_1 = require("@specron/spec"); | ||
const ledger_1 = require("../../../core/ledger"); | ||
const gateway_mock_1 = require("../../mock/gateway-mock"); | ||
const spec = new spec_1.Spec(); | ||
@@ -39,3 +39,3 @@ spec.before((stage) => __awaiter(this, void 0, void 0, function* () { | ||
stage.set('ledger', new ledger_1.AssetLedger(provider, ledgerId)); | ||
stage.set('gateway', new ethereum_order_gateway_1.OrderGateway(provider, orderGatewayId)); | ||
stage.set('gateway', new gateway_mock_1.GatewayMock(provider, orderGatewayId)); | ||
})); | ||
@@ -42,0 +42,0 @@ spec.test('approves operator', (ctx) => __awaiter(this, void 0, void 0, function* () { |
import { GenericProvider } from '@0xcert/ethereum-generic-provider'; | ||
import { OrderGateway } from '@0xcert/ethereum-order-gateway'; | ||
import { Protocol } from '@0xcert/ethereum-sandbox'; | ||
@@ -9,3 +8,2 @@ import { Spec } from '@specron/spec'; | ||
ledger: AssetLedger; | ||
gateway: OrderGateway; | ||
protocol: Protocol; | ||
@@ -12,0 +10,0 @@ bob: string; |
import { GenericProvider } from '@0xcert/ethereum-generic-provider'; | ||
import { OrderGateway } from '@0xcert/ethereum-order-gateway'; | ||
import { Protocol } from '@0xcert/ethereum-sandbox'; | ||
import { Spec } from '@specron/spec'; | ||
import { AssetLedger } from '../../../core/ledger'; | ||
import { GatewayMock } from '../../mock/gateway-mock'; | ||
declare const spec: Spec<{ | ||
provider: GenericProvider; | ||
ledger: AssetLedger; | ||
gateway: OrderGateway; | ||
gateway: GatewayMock; | ||
protocol: Protocol; | ||
@@ -11,0 +11,0 @@ bob: string; |
@@ -12,6 +12,6 @@ "use strict"; | ||
const ethereum_generic_provider_1 = require("@0xcert/ethereum-generic-provider"); | ||
const ethereum_order_gateway_1 = require("@0xcert/ethereum-order-gateway"); | ||
const ethereum_sandbox_1 = require("@0xcert/ethereum-sandbox"); | ||
const spec_1 = require("@specron/spec"); | ||
const ledger_1 = require("../../../core/ledger"); | ||
const gateway_mock_1 = require("../../mock/gateway-mock"); | ||
const spec = new spec_1.Spec(); | ||
@@ -39,3 +39,3 @@ spec.before((stage) => __awaiter(this, void 0, void 0, function* () { | ||
stage.set('ledger', new ledger_1.AssetLedger(provider, ledgerId)); | ||
stage.set('gateway', new ethereum_order_gateway_1.OrderGateway(provider, orderGatewayId)); | ||
stage.set('gateway', new gateway_mock_1.GatewayMock(provider, orderGatewayId)); | ||
})); | ||
@@ -42,0 +42,0 @@ spec.test('disapproves operator', (ctx) => __awaiter(this, void 0, void 0, function* () { |
import { GenericProvider } from '@0xcert/ethereum-generic-provider'; | ||
import { OrderGateway } from '@0xcert/ethereum-order-gateway'; | ||
import { Protocol } from '@0xcert/ethereum-sandbox'; | ||
import { Spec } from '@specron/spec'; | ||
import { AssetLedger } from '../../../core/ledger'; | ||
import { GatewayMock } from '../../mock/gateway-mock'; | ||
declare const spec: Spec<{ | ||
provider: GenericProvider; | ||
ledger: AssetLedger; | ||
gateway: OrderGateway; | ||
gateway: GatewayMock; | ||
protocol: Protocol; | ||
@@ -11,0 +11,0 @@ bob: string; |
@@ -12,3 +12,2 @@ "use strict"; | ||
const ethereum_generic_provider_1 = require("@0xcert/ethereum-generic-provider"); | ||
const ethereum_order_gateway_1 = require("@0xcert/ethereum-order-gateway"); | ||
const ethereum_sandbox_1 = require("@0xcert/ethereum-sandbox"); | ||
@@ -18,2 +17,3 @@ const scaffold_1 = require("@0xcert/scaffold"); | ||
const ledger_1 = require("../../../core/ledger"); | ||
const gateway_mock_1 = require("../../mock/gateway-mock"); | ||
const spec = new spec_1.Spec(); | ||
@@ -36,3 +36,3 @@ spec.before((stage) => __awaiter(this, void 0, void 0, function* () { | ||
stage.set('ledger', new ledger_1.AssetLedger(provider, ledgerId)); | ||
stage.set('gateway', new ethereum_order_gateway_1.OrderGateway(provider, orderGatewayId)); | ||
stage.set('gateway', new gateway_mock_1.GatewayMock(provider, orderGatewayId)); | ||
})); | ||
@@ -39,0 +39,0 @@ spec.before((stage) => __awaiter(this, void 0, void 0, function* () { |
import { GenericProvider } from '@0xcert/ethereum-generic-provider'; | ||
import { OrderGateway } from '@0xcert/ethereum-order-gateway'; | ||
import { Protocol } from '@0xcert/ethereum-sandbox'; | ||
import { Spec } from '@specron/spec'; | ||
import { AssetLedger } from '../../../core/ledger'; | ||
import { GatewayMock } from '../../mock/gateway-mock'; | ||
declare const spec: Spec<{ | ||
@@ -10,3 +10,3 @@ protocol: Protocol; | ||
ledger: AssetLedger; | ||
gateway: OrderGateway; | ||
gateway: GatewayMock; | ||
coinbase: string; | ||
@@ -13,0 +13,0 @@ bob: string; |
@@ -12,6 +12,6 @@ "use strict"; | ||
const ethereum_generic_provider_1 = require("@0xcert/ethereum-generic-provider"); | ||
const ethereum_order_gateway_1 = require("@0xcert/ethereum-order-gateway"); | ||
const ethereum_sandbox_1 = require("@0xcert/ethereum-sandbox"); | ||
const spec_1 = require("@specron/spec"); | ||
const ledger_1 = require("../../../core/ledger"); | ||
const gateway_mock_1 = require("../../mock/gateway-mock"); | ||
const spec = new spec_1.Spec(); | ||
@@ -39,3 +39,3 @@ spec.before((stage) => __awaiter(this, void 0, void 0, function* () { | ||
stage.set('ledger', new ledger_1.AssetLedger(provider, ledgerId)); | ||
stage.set('gateway', new ethereum_order_gateway_1.OrderGateway(provider, orderGatewayId)); | ||
stage.set('gateway', new gateway_mock_1.GatewayMock(provider, orderGatewayId)); | ||
})); | ||
@@ -42,0 +42,0 @@ spec.before((stage) => __awaiter(this, void 0, void 0, function* () { |
import { GenericProvider } from '@0xcert/ethereum-generic-provider'; | ||
import { OrderGateway } from '@0xcert/ethereum-order-gateway'; | ||
import { Protocol } from '@0xcert/ethereum-sandbox'; | ||
import { Spec } from '@specron/spec'; | ||
import { AssetLedger } from '../../../core/ledger'; | ||
import { GatewayMock } from '../../mock/gateway-mock'; | ||
declare const spec: Spec<{ | ||
@@ -10,3 +10,3 @@ protocol: Protocol; | ||
ledger: AssetLedger; | ||
gateway: OrderGateway; | ||
gateway: GatewayMock; | ||
coinbase: string; | ||
@@ -13,0 +13,0 @@ bob: string; |
@@ -12,6 +12,6 @@ "use strict"; | ||
const ethereum_generic_provider_1 = require("@0xcert/ethereum-generic-provider"); | ||
const ethereum_order_gateway_1 = require("@0xcert/ethereum-order-gateway"); | ||
const ethereum_sandbox_1 = require("@0xcert/ethereum-sandbox"); | ||
const spec_1 = require("@specron/spec"); | ||
const ledger_1 = require("../../../core/ledger"); | ||
const gateway_mock_1 = require("../../mock/gateway-mock"); | ||
const spec = new spec_1.Spec(); | ||
@@ -39,3 +39,3 @@ spec.before((stage) => __awaiter(this, void 0, void 0, function* () { | ||
stage.set('ledger', new ledger_1.AssetLedger(provider, ledgerId)); | ||
stage.set('gateway', new ethereum_order_gateway_1.OrderGateway(provider, orderGatewayId)); | ||
stage.set('gateway', new gateway_mock_1.GatewayMock(provider, orderGatewayId)); | ||
})); | ||
@@ -42,0 +42,0 @@ spec.test('checks if account is operator', (ctx) => __awaiter(this, void 0, void 0, function* () { |
import { GenericProvider } from '@0xcert/ethereum-generic-provider'; | ||
import { OrderGateway } from '@0xcert/ethereum-order-gateway'; | ||
import { Protocol } from '@0xcert/ethereum-sandbox'; | ||
import { Spec } from '@specron/spec'; | ||
import { AssetLedger } from '../../../core/ledger'; | ||
import { GatewayMock } from '../../mock/gateway-mock'; | ||
declare const spec: Spec<{ | ||
provider: GenericProvider; | ||
ledger: AssetLedger; | ||
gateway: OrderGateway; | ||
gateway: GatewayMock; | ||
protocol: Protocol; | ||
@@ -11,0 +11,0 @@ bob: string; |
@@ -12,3 +12,2 @@ "use strict"; | ||
const ethereum_generic_provider_1 = require("@0xcert/ethereum-generic-provider"); | ||
const ethereum_order_gateway_1 = require("@0xcert/ethereum-order-gateway"); | ||
const ethereum_sandbox_1 = require("@0xcert/ethereum-sandbox"); | ||
@@ -18,2 +17,3 @@ const scaffold_1 = require("@0xcert/scaffold"); | ||
const ledger_1 = require("../../../core/ledger"); | ||
const gateway_mock_1 = require("../../mock/gateway-mock"); | ||
const spec = new spec_1.Spec(); | ||
@@ -36,3 +36,3 @@ spec.before((stage) => __awaiter(this, void 0, void 0, function* () { | ||
stage.set('ledger', new ledger_1.AssetLedger(provider, ledgerId)); | ||
stage.set('gateway', new ethereum_order_gateway_1.OrderGateway(provider, orderGatewayId)); | ||
stage.set('gateway', new gateway_mock_1.GatewayMock(provider, orderGatewayId)); | ||
})); | ||
@@ -39,0 +39,0 @@ spec.before((stage) => __awaiter(this, void 0, void 0, function* () { |
{ | ||
"files": { | ||
"packages/0xcert-ethereum-asset-ledger/CHANGELOG.json": "67ee45839d10772b830e63afc11a625c1262e6e9", | ||
"packages/0xcert-ethereum-asset-ledger/CHANGELOG.md": "9351e143018037fd50873ab234d07f1d64e69f2f", | ||
"packages/0xcert-ethereum-asset-ledger/README.md": "7f751a931986bff784f467ec1ebb152fe52927b9", | ||
"packages/0xcert-ethereum-asset-ledger/nodemon.json": "82b893373db9861f1df4b55d8ea68a5d37b118de", | ||
"packages/0xcert-ethereum-asset-ledger/package.json": "9d00fe2f4cfb8fcd940eed4f8facbd2430fa13f2", | ||
"packages/0xcert-ethereum-asset-ledger/src/core/ledger.ts": "10033c351e1413ab115ba6022f529da181dbd190", | ||
"packages/0xcert-ethereum-asset-ledger/src/index.ts": "a2d8215cbe69119124b39c6426ce2a59f60e5078", | ||
"packages/0xcert-ethereum-asset-ledger/src/lib/capabilities.ts": "b2b5cac4e71a808dcd945e48c02704e3661106eb", | ||
"packages/0xcert-ethereum-asset-ledger/src/mutations/approve-account.ts": "a74b3f56ab87ffc6e317edfc6f287b15bdec2021", | ||
"packages/0xcert-ethereum-asset-ledger/src/mutations/create-asset.ts": "091a08bc1e77016edfca14360b99e2325f8b3434", | ||
"packages/0xcert-ethereum-asset-ledger/src/mutations/deploy.ts": "8e387a3deb8c3ba839042545645b6a7829e0969b", | ||
"packages/0xcert-ethereum-asset-ledger/src/mutations/destroy-asset.ts": "024c9bb612a87fdedab1f806d1947719a87c113f", | ||
"packages/0xcert-ethereum-asset-ledger/src/mutations/grant-abilities.ts": "3fb3e4b75106175ab35e7a97ef36181a3737b1e4", | ||
"packages/0xcert-ethereum-asset-ledger/src/mutations/revoke-abilities.ts": "3b31087031f5dc92b45b5ef85333e3ebfd1e3713", | ||
"packages/0xcert-ethereum-asset-ledger/src/mutations/revoke-asset.ts": "9364f2d5bcf52f61b357c59812c40ac5ea485a96", | ||
"packages/0xcert-ethereum-asset-ledger/src/mutations/safe-transfer.ts": "b73cfcac3dc7aad35ac81fa6ec1df3754565154d", | ||
"packages/0xcert-ethereum-asset-ledger/src/mutations/set-approval-for-all.ts": "0acd72a4d636a189111d452fbbaab9cdf5150362", | ||
"packages/0xcert-ethereum-asset-ledger/src/mutations/set-enabled.ts": "a72348c9f28edc5ff474780a48d310caf9b0bb31", | ||
"packages/0xcert-ethereum-asset-ledger/src/mutations/transfer.ts": "8eff2e43901760e76cbb2a2ac799505209b03148", | ||
"packages/0xcert-ethereum-asset-ledger/src/mutations/update-asset.ts": "8b3c6ba741133199a51b008c01dfef8e8f2d1894", | ||
"packages/0xcert-ethereum-asset-ledger/src/mutations/update.ts": "f49b116fc3e07d09928a253eb19b84638ff3ae5e", | ||
"packages/0xcert-ethereum-asset-ledger/src/queries/get-abilities.ts": "16dcf99829cfbf24de8479b5f5265f76e6ec4d11", | ||
"packages/0xcert-ethereum-asset-ledger/src/queries/get-account-asset-id-at.ts": "53878b572d36882f9e88d83ebb3f6df79da86bca", | ||
"packages/0xcert-ethereum-asset-ledger/src/queries/get-approved-account.ts": "08045a8df4b2ad7ab96d1542741ae76972bcfc09", | ||
"packages/0xcert-ethereum-asset-ledger/src/queries/get-asset-account.ts": "37280035539d422f3e1f6200c6e73ceb4203601b", | ||
"packages/0xcert-ethereum-asset-ledger/src/queries/get-asset-id-at.ts": "c3190e0fd70b3f827f9ccd5b10c567ae544439f1", | ||
"packages/0xcert-ethereum-asset-ledger/src/queries/get-asset.ts": "e9b305f3e852e35b458c610baaa6ad4bec632d39", | ||
"packages/0xcert-ethereum-asset-ledger/src/queries/get-balance.ts": "5b128fe96bceab55404471851746990ff0e1974d", | ||
"packages/0xcert-ethereum-asset-ledger/src/queries/get-capabilities.ts": "1080be38b0f7b47af9892fd5723016be056944c5", | ||
"packages/0xcert-ethereum-asset-ledger/src/queries/get-info.ts": "1061a82555cf8045324f9536ef4dcf5f38f755e7", | ||
"packages/0xcert-ethereum-asset-ledger/src/queries/is-approved-for-all.ts": "6f1b2d98e5072d0c7bbf1f685f8a5f4629cb6050", | ||
"packages/0xcert-ethereum-asset-ledger/src/queries/is-enabled.ts": "a4299687553908160ccb10a044c9b6b93c0a0885", | ||
"packages/0xcert-ethereum-asset-ledger/src/queries/kitty-index-to-approved.ts": "6726206e6ec571737640aa08575d5868d713ced0", | ||
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/approve-account-instance-method.test.ts": "020536a6486c349fbc2520fadd11fb0c067d11a1", | ||
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/approve-operator-instance-method.test.ts": "e89e7c3fd19a689b165ebe6ae7be2e531b5d74d6", | ||
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/create-asset-instance-method.test.ts": "4d8e60bc198f2b170806214f41a4205e65da752a", | ||
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/deploy-static-method.test.ts": "676ff48823a5f5d395832949c91eff1f04b4a97b", | ||
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/destroy-asset-instance-method.test.ts": "1c7f3cfc05d4ea08d5481e2b30b404629a8f24f7", | ||
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/disapprove-account-instance-method.test.ts": "01d7b9f16010d757198af7520a82008275b7f60d", | ||
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/disapprove-operator-instance-method.test.ts": "2bfb3f935ce87730408e726fda01395f94433919", | ||
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/get-abilities-instance-method.test.ts": "8f444119565165a1f379020e5d5808ea1205d6fc", | ||
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/get-account-asset-id-at-method.test.ts": "7738adfe12e4b67df7312eebb1153e414bda90a2", | ||
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/get-approved-account-instance-method.test.ts": "46d3c0f49425365c94c948f2a003d80893114aa9", | ||
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/get-asset-account-instance-method.test.ts": "4bc890208a87cadc10b72ad4686d20a24389203d", | ||
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/get-asset-id-at-method.test.ts": "1f64e5c15be58d969eee7bafd68b730d10a6617d", | ||
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/get-asset-instance-method.test.ts": "deef0ae4a7dc84f3a9bb2834cc629182f617aa58", | ||
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/get-balance-instance-method.test.ts": "5ef7ae2bbeb2f6b61e53842e4975367dc7664ee9", | ||
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/get-capabilities-instance-method.test.ts": "4332b91a470c0b8d54c9b7a8cb8b47e3553c8811", | ||
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/get-info-instance-method.test.ts": "ec50275f970c847cda842daad653c9c13e3e2742", | ||
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/get-transfer-state-instance-method.test.ts": "9e6ba933cbbb784003451674828cd2db213564a6", | ||
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/grant-abilities-instance-method.test.ts": "9c8716b83e0cb53004b1c5e22de57c1b76777f45", | ||
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/is-approved-account-instance-method.test.ts": "53209ba6502dd06210e2dd0fb0296ca40ce25311", | ||
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/is-approved-operator-instance-method.test.ts": "5d25dcc71d51b9975e384c5de5bcdd2822d5b73b", | ||
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/revoke-abilities-instance-method.test.ts": "ff2f16fa9942102f9982f4b2bb62eae28a3e2b6e", | ||
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/revoke-asset-instance-method.test.ts": "579fdcf0b071eaa31a99fb724685896801754a5d", | ||
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/set-transfer-state-instance-method.test.ts": "af29338d905287fb1cec79613529f0902bb79287", | ||
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/transfer-asset-instance-method.test.ts": "bcd506777f3f5746bc10457b35d3da481555f00f", | ||
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/update-asset-instance-method.test.ts": "5739b4735f213cb2b98c066a24dca505737a2a52", | ||
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/update-instance-method.test.ts": "268402e1c3513b3599a0321e4c3ee205b180f930", | ||
"packages/0xcert-ethereum-asset-ledger/src/tests/index.test.ts": "7caf462a4daf2ab20a250915cba6ff80a0862cfb", | ||
"packages/0xcert-ethereum-asset-ledger/tsconfig.json": "4aeac3c20e45b7e477e82012eb7788f7dbb11bf3", | ||
"packages/0xcert-ethereum-asset-ledger/tslint.json": "c57b3f0cdb7aa74ab2ab02888380f613589cbe66", | ||
"common/config/rush/npm-shrinkwrap.json": "f6a3eabad58bf49b38e3bbf921e585591f74fef1" | ||
}, | ||
"arguments": "npm run lint && npx nyc npx specron test " | ||
"files": {}, | ||
"arguments": "npm run clean && npx tsc " | ||
} |
{ | ||
"name": "@0xcert/ethereum-asset-ledger", | ||
"version": "1.7.4", | ||
"version": "2.0.0-alpha0", | ||
"description": "Asset ledger module for asset management on the Ethereum blockchain.", | ||
@@ -70,4 +70,3 @@ "main": "./dist/index.js", | ||
"devDependencies": { | ||
"@0xcert/ethereum-sandbox": "1.7.4", | ||
"@0xcert/ethereum-order-gateway": "1.7.4", | ||
"@0xcert/ethereum-sandbox": "2.0.0-alpha0", | ||
"@specron/cli": "^0.5.6", | ||
@@ -83,7 +82,7 @@ "@specron/spec": "^0.5.6", | ||
"dependencies": { | ||
"@0xcert/ethereum-generic-provider": "1.7.4", | ||
"@0xcert/ethereum-utils": "1.7.4", | ||
"@0xcert/scaffold": "1.7.4", | ||
"@0xcert/utils": "1.7.4" | ||
"@0xcert/ethereum-generic-provider": "2.0.0-alpha0", | ||
"@0xcert/ethereum-utils": "2.0.0-alpha0", | ||
"@0xcert/scaffold": "2.0.0-alpha0", | ||
"@0xcert/utils": "2.0.0-alpha0" | ||
} | ||
} |
@@ -6,3 +6,3 @@ import { GenericProvider, Mutation } from '@0xcert/ethereum-generic-provider'; | ||
AssetLedgerObjectUpdateRecipe, AssetLedgerTransferRecipe, | ||
AssetLedgerUpdateRecipe, OrderGatewayBase, SuperAssetLedgerAbility } from '@0xcert/scaffold'; | ||
AssetLedgerUpdateRecipe, GatewayBase, SuperAssetLedgerAbility } from '@0xcert/scaffold'; | ||
import approveAccount from '../mutations/approve-account'; | ||
@@ -172,3 +172,3 @@ import createAsset from '../mutations/create-asset'; | ||
*/ | ||
public async isApprovedAccount(assetId: string, accountId: string | OrderGatewayBase): Promise<boolean> { | ||
public async isApprovedAccount(assetId: string, accountId: string | GatewayBase): Promise<boolean> { | ||
if (typeof accountId !== 'string') { | ||
@@ -195,3 +195,3 @@ accountId = await (accountId as any).getProxyAccountId(this.getProxyId()); | ||
*/ | ||
public async approveAccount(assetId: string, accountId: string | OrderGatewayBase): Promise<Mutation> { | ||
public async approveAccount(assetId: string, accountId: string | GatewayBase): Promise<Mutation> { | ||
if (typeof accountId !== 'string') { | ||
@@ -219,3 +219,3 @@ accountId = await (accountId as any).getProxyAccountId(this.getProxyId()); | ||
*/ | ||
public async grantAbilities(accountId: string | OrderGatewayBase, abilities: AssetLedgerAbility[]): Promise<Mutation> { | ||
public async grantAbilities(accountId: string | GatewayBase, abilities: AssetLedgerAbility[]): Promise<Mutation> { | ||
if (typeof accountId !== 'string') { | ||
@@ -259,3 +259,3 @@ accountId = await (accountId as any).getProxyAccountId(0); // OrderGatewayProxy.XCERT_CREATE | ||
*/ | ||
public async revokeAbilities(accountId: string | OrderGatewayBase, abilities: AssetLedgerAbility[]): Promise<Mutation> { | ||
public async revokeAbilities(accountId: string | GatewayBase, abilities: AssetLedgerAbility[]): Promise<Mutation> { | ||
if (typeof accountId !== 'string') { | ||
@@ -340,3 +340,3 @@ accountId = await (accountId as any).getProxyAccountId(0); // OrderGatewayProxy.XCERT_CREATE | ||
*/ | ||
public async approveOperator(accountId: string | OrderGatewayBase): Promise<Mutation> { | ||
public async approveOperator(accountId: string | GatewayBase): Promise<Mutation> { | ||
if (typeof accountId !== 'string') { | ||
@@ -355,3 +355,3 @@ accountId = await (accountId as any).getProxyAccountId(this.getProxyId()); | ||
*/ | ||
public async disapproveOperator(accountId: string | OrderGatewayBase): Promise<Mutation> { | ||
public async disapproveOperator(accountId: string | GatewayBase): Promise<Mutation> { | ||
if (typeof accountId !== 'string') { | ||
@@ -371,3 +371,3 @@ accountId = await (accountId as any).getProxyAccountId(this.getProxyId()); | ||
*/ | ||
public async isApprovedOperator(accountId: string, operatorId: string | OrderGatewayBase): Promise<boolean> { | ||
public async isApprovedOperator(accountId: string, operatorId: string | GatewayBase): Promise<boolean> { | ||
if (typeof operatorId !== 'string') { | ||
@@ -374,0 +374,0 @@ operatorId = await (operatorId as any).getProxyAccountId(this.getProxyId()); |
@@ -6,1 +6,2 @@ export { AssetLedgerBase, AssetLedgerDeployRecipe, AssetLedgerAbility, GeneralAssetLedgerAbility, | ||
export * from './core/ledger'; | ||
export * from './lib/capabilities'; |
import { GenericProvider } from '@0xcert/ethereum-generic-provider'; | ||
import { OrderGateway } from '@0xcert/ethereum-order-gateway'; | ||
import { Protocol } from '@0xcert/ethereum-sandbox'; | ||
import { Spec } from '@specron/spec'; | ||
import { AssetLedger } from '../../../core/ledger'; | ||
import { GatewayMock } from '../../mock/gateway-mock'; | ||
@@ -10,3 +10,3 @@ const spec = new Spec<{ | ||
ledger: AssetLedger; | ||
gateway: OrderGateway; | ||
gateway: GatewayMock; | ||
protocol: Protocol; | ||
@@ -41,3 +41,3 @@ bob: string; | ||
stage.set('ledger', new AssetLedger(provider, ledgerId)); | ||
stage.set('gateway', new OrderGateway(provider, orderGatewayId)); | ||
stage.set('gateway', new GatewayMock(provider, orderGatewayId)); | ||
}); | ||
@@ -44,0 +44,0 @@ |
import { GenericProvider } from '@0xcert/ethereum-generic-provider'; | ||
import { OrderGateway } from '@0xcert/ethereum-order-gateway'; | ||
import { Protocol } from '@0xcert/ethereum-sandbox'; | ||
import { Spec } from '@specron/spec'; | ||
import { AssetLedger } from '../../../core/ledger'; | ||
import { GatewayMock } from '../../mock/gateway-mock'; | ||
@@ -10,3 +10,3 @@ const spec = new Spec<{ | ||
ledger: AssetLedger; | ||
gateway: OrderGateway; | ||
gateway: GatewayMock; | ||
protocol: Protocol; | ||
@@ -41,3 +41,3 @@ bob: string; | ||
stage.set('ledger', new AssetLedger(provider, ledgerId)); | ||
stage.set('gateway', new OrderGateway(provider, orderGatewayId)); | ||
stage.set('gateway', new GatewayMock(provider, orderGatewayId)); | ||
}); | ||
@@ -44,0 +44,0 @@ |
import { GenericProvider } from '@0xcert/ethereum-generic-provider'; | ||
import { OrderGateway } from '@0xcert/ethereum-order-gateway'; | ||
import { Protocol } from '@0xcert/ethereum-sandbox'; | ||
@@ -10,3 +9,2 @@ import { Spec } from '@specron/spec'; | ||
ledger: AssetLedger; | ||
gateway: OrderGateway; | ||
protocol: Protocol; | ||
@@ -13,0 +11,0 @@ bob: string; |
import { GenericProvider } from '@0xcert/ethereum-generic-provider'; | ||
import { OrderGateway } from '@0xcert/ethereum-order-gateway'; | ||
import { Protocol } from '@0xcert/ethereum-sandbox'; | ||
import { Spec } from '@specron/spec'; | ||
import { AssetLedger } from '../../../core/ledger'; | ||
import { GatewayMock } from '../../mock/gateway-mock'; | ||
@@ -10,3 +10,3 @@ const spec = new Spec<{ | ||
ledger: AssetLedger; | ||
gateway: OrderGateway; | ||
gateway: GatewayMock; | ||
protocol: Protocol; | ||
@@ -41,3 +41,3 @@ bob: string; | ||
stage.set('ledger', new AssetLedger(provider, ledgerId)); | ||
stage.set('gateway', new OrderGateway(provider, orderGatewayId)); | ||
stage.set('gateway', new GatewayMock(provider, orderGatewayId)); | ||
}); | ||
@@ -44,0 +44,0 @@ |
import { GenericProvider } from '@0xcert/ethereum-generic-provider'; | ||
import { OrderGateway } from '@0xcert/ethereum-order-gateway'; | ||
import { Protocol } from '@0xcert/ethereum-sandbox'; | ||
@@ -7,2 +6,3 @@ import { GeneralAssetLedgerAbility } from '@0xcert/scaffold'; | ||
import { AssetLedger } from '../../../core/ledger'; | ||
import { GatewayMock } from '../../mock/gateway-mock'; | ||
@@ -12,3 +12,3 @@ const spec = new Spec<{ | ||
ledger: AssetLedger; | ||
gateway: OrderGateway; | ||
gateway: GatewayMock; | ||
protocol: Protocol; | ||
@@ -36,3 +36,3 @@ bob: string; | ||
stage.set('ledger', new AssetLedger(provider, ledgerId)); | ||
stage.set('gateway', new OrderGateway(provider, orderGatewayId)); | ||
stage.set('gateway', new GatewayMock(provider, orderGatewayId)); | ||
}); | ||
@@ -39,0 +39,0 @@ |
import { GenericProvider } from '@0xcert/ethereum-generic-provider'; | ||
import { OrderGateway } from '@0xcert/ethereum-order-gateway'; | ||
import { Protocol } from '@0xcert/ethereum-sandbox'; | ||
import { Spec } from '@specron/spec'; | ||
import { AssetLedger } from '../../../core/ledger'; | ||
import { GatewayMock } from '../../mock/gateway-mock'; | ||
@@ -11,3 +11,3 @@ const spec = new Spec<{ | ||
ledger: AssetLedger; | ||
gateway: OrderGateway; | ||
gateway: GatewayMock; | ||
coinbase: string; | ||
@@ -41,3 +41,3 @@ bob: string; | ||
stage.set('ledger', new AssetLedger(provider, ledgerId)); | ||
stage.set('gateway', new OrderGateway(provider, orderGatewayId)); | ||
stage.set('gateway', new GatewayMock(provider, orderGatewayId)); | ||
}); | ||
@@ -44,0 +44,0 @@ |
import { GenericProvider } from '@0xcert/ethereum-generic-provider'; | ||
import { OrderGateway } from '@0xcert/ethereum-order-gateway'; | ||
import { Protocol } from '@0xcert/ethereum-sandbox'; | ||
import { Spec } from '@specron/spec'; | ||
import { AssetLedger } from '../../../core/ledger'; | ||
import { GatewayMock } from '../../mock/gateway-mock'; | ||
@@ -11,3 +11,3 @@ const spec = new Spec<{ | ||
ledger: AssetLedger; | ||
gateway: OrderGateway; | ||
gateway: GatewayMock; | ||
coinbase: string; | ||
@@ -41,3 +41,3 @@ bob: string; | ||
stage.set('ledger', new AssetLedger(provider, ledgerId)); | ||
stage.set('gateway', new OrderGateway(provider, orderGatewayId)); | ||
stage.set('gateway', new GatewayMock(provider, orderGatewayId)); | ||
}); | ||
@@ -44,0 +44,0 @@ |
import { GenericProvider } from '@0xcert/ethereum-generic-provider'; | ||
import { OrderGateway } from '@0xcert/ethereum-order-gateway'; | ||
import { Protocol } from '@0xcert/ethereum-sandbox'; | ||
@@ -7,2 +6,3 @@ import { GeneralAssetLedgerAbility, SuperAssetLedgerAbility } from '@0xcert/scaffold'; | ||
import { AssetLedger } from '../../../core/ledger'; | ||
import { GatewayMock } from '../../mock/gateway-mock'; | ||
@@ -12,3 +12,3 @@ const spec = new Spec<{ | ||
ledger: AssetLedger; | ||
gateway: OrderGateway; | ||
gateway: GatewayMock; | ||
protocol: Protocol; | ||
@@ -38,3 +38,3 @@ bob: string; | ||
stage.set('ledger', new AssetLedger(provider, ledgerId)); | ||
stage.set('gateway', new OrderGateway(provider, orderGatewayId)); | ||
stage.set('gateway', new GatewayMock(provider, orderGatewayId)); | ||
}); | ||
@@ -41,0 +41,0 @@ |
@@ -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
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
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
9
233
5814
353138
1
+ Added@0xcert/ethereum-generic-provider@2.0.0-alpha0(transitive)
+ Added@0xcert/ethereum-utils@2.0.0-alpha0(transitive)
+ Added@0xcert/scaffold@2.0.0-alpha0(transitive)
+ Added@0xcert/utils@2.0.0-alpha0(transitive)
- Removed@0xcert/ethereum-generic-provider@1.7.4(transitive)
- Removed@0xcert/ethereum-utils@1.7.4(transitive)
- Removed@0xcert/scaffold@1.7.4(transitive)
- Removed@0xcert/utils@1.7.4(transitive)
Updated@0xcert/utils@2.0.0-alpha0