Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove crypto, unpin deps, bump version #51

Merged
merged 6 commits into from
Dec 11, 2020
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
356 changes: 177 additions & 179 deletions .pnp.js

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"full:testnet": "cross-env CORE_PATH_CONFIG=./config/networks/testnet ark core:run --networkStart --env=test --network=testnet"
},
"dependencies": {
"@arkecosystem/core": "3.0.0-next.16",
"@arkecosystem/core-cli": "3.0.0-next.16"
"@arkecosystem/core": "^3.0.0-next",
"@arkecosystem/core-cli": "^3.0.0-next"
},
"devDependencies": {
"@sindresorhus/tsconfig": "^0.8.0",
Expand Down
20 changes: 10 additions & 10 deletions packages/guardian-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@protokol/guardian-api",
"version": "1.0.0-beta.35",
"version": "1.0.0-beta.36",
"description": "REST API For Guardian Functionality",
"license": "CC-BY-NC-SA-4.0",
"homepage": "https://docs.protokol.com/nft/",
Expand Down Expand Up @@ -41,9 +41,9 @@
"publish:beta": "yarn build && yarn npm publish --tag beta --access public --tolerate-republish"
},
"dependencies": {
"@arkecosystem/core-api": "3.0.0-next.16",
"@arkecosystem/core-kernel": "3.0.0-next.16",
"@arkecosystem/crypto": "3.0.0-next.16",
"@arkecosystem/core-api": "^3.0.0-next",
"@arkecosystem/core-kernel": "^3.0.0-next",
"@arkecosystem/crypto": "^3.0.0-next",
"@hapi/boom": "^9.1.0",
"@hapi/hapi": "^20.0.2",
"@hapi/joi": "^17.1.0",
Expand All @@ -52,12 +52,12 @@
"latest-version": "^5.1.0"
},
"devDependencies": {
"@arkecosystem/core-database": "3.0.0-next.16",
"@arkecosystem/core-kernel": "3.0.0-next.16",
"@arkecosystem/core-state": "3.0.0-next.16",
"@arkecosystem/core-test-framework": "3.0.0-next.16",
"@arkecosystem/core-transaction-pool": "3.0.0-next.16",
"@arkecosystem/core-transactions": "3.0.0-next.16",
"@arkecosystem/core-database": "^3.0.0-next",
"@arkecosystem/core-kernel": "^3.0.0-next",
"@arkecosystem/core-state": "^3.0.0-next",
"@arkecosystem/core-test-framework": "^3.0.0-next",
"@arkecosystem/core-transaction-pool": "^3.0.0-next",
"@arkecosystem/core-transactions": "^3.0.0-next",
"@sindresorhus/tsconfig": "^0.8.0",
"@types/eslint": "^7.2.5",
"@types/eslint-plugin-prettier": "^3.1.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/guardian-crypto/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@protokol/guardian-crypto",
"version": "1.0.0-beta.35",
"version": "1.0.0-beta.36",
"description": "Transaction Builders For Guardian Transaction Types",
"license": "CC-BY-NC-SA-4.0",
"homepage": "https://docs.protokol.com/nft/",
Expand Down Expand Up @@ -42,13 +42,13 @@
"publish:beta": "yarn build && yarn npm publish --tag beta --access public --tolerate-republish"
},
"dependencies": {
"@arkecosystem/crypto": "3.0.0-next.16",
"@arkecosystem/crypto": "^3.0.0-next",
"@protokol/utils": "1.0.0-beta.37",
"bytebuffer": "^5.0.1"
},
"devDependencies": {
"@arkecosystem/core-kernel": "3.0.0-next.16",
"@arkecosystem/core-test-framework": "3.0.0-next.16",
"@arkecosystem/core-kernel": "^3.0.0-next",
"@arkecosystem/core-test-framework": "^3.0.0-next",
"@sindresorhus/tsconfig": "~0.8.0",
"@types/jest": "~26.0.15",
"@types/node": "^14.14.8",
Expand Down
4 changes: 1 addition & 3 deletions packages/guardian-crypto/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import * as ARKCrypto from "@arkecosystem/crypto";

import * as Builders from "./builders";
import * as Defaults from "./defaults";
import * as Enums from "./enums";
import * as Interfaces from "./interfaces";
import * as Transactions from "./transactions";

export { ARKCrypto, Builders, Defaults, Enums, Interfaces, Transactions };
export { Builders, Defaults, Enums, Interfaces, Transactions };
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import "jest-extended";

import { Application, Container, Contracts, Providers } from "@arkecosystem/core-kernel";
import { Application, Container, Contracts, Providers, Utils } from "@arkecosystem/core-kernel";
import { Wallets } from "@arkecosystem/core-state";
import { Mocks, passphrases } from "@arkecosystem/core-test-framework";
import { Interfaces } from "@arkecosystem/crypto";
import { cloneDeep } from "@arkecosystem/utils";
import { Builders, Enums } from "@protokol/guardian-crypto";

import { Identifiers as GuardianIdentifiers, IGroupPermissions } from "../../src/interfaces";
Expand Down Expand Up @@ -249,7 +248,7 @@ describe("Guardian permission resolver tests", () => {
});

it("should allow transaction if it is first block", async () => {
const mockBlock = cloneDeep(defaultMockBlock);
const mockBlock = Utils.cloneDeep(defaultMockBlock);
mockBlock.data!.height = 1;
Mocks.StateStore.setBlock(mockBlock);

Expand All @@ -259,7 +258,7 @@ describe("Guardian permission resolver tests", () => {
});

it("should allow transaction if genesis", async () => {
const mockBlock = cloneDeep(defaultMockBlock);
const mockBlock = Utils.cloneDeep(defaultMockBlock);
mockBlock.transactions![0]!.data.senderPublicKey = senderWallet.publicKey;
Mocks.StateStore.setBlock(mockBlock);

Expand All @@ -269,7 +268,7 @@ describe("Guardian permission resolver tests", () => {
});

it("should use cached genesis publicKey to check permissions", async () => {
const mockBlock = cloneDeep(defaultMockBlock);
const mockBlock = Utils.cloneDeep(defaultMockBlock);
mockBlock.transactions![0]!.data.senderPublicKey = senderWallet.publicKey;
Mocks.StateStore.setBlock(mockBlock);

Expand Down
21 changes: 10 additions & 11 deletions packages/guardian-transactions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@protokol/guardian-transactions",
"version": "1.0.0-beta.35",
"version": "1.0.0-beta.36",
"description": "Transaction Types For Guardian Support",
"license": "CC-BY-NC-SA-4.0",
"homepage": "https://docs.protokol.com/nft/",
Expand Down Expand Up @@ -41,21 +41,20 @@
"publish:beta": "yarn build && yarn npm publish --tag beta --access public --tolerate-republish"
},
"dependencies": {
"@arkecosystem/core-database": "3.0.0-next.16",
"@arkecosystem/core-kernel": "3.0.0-next.16",
"@arkecosystem/core-state": "3.0.0-next.16",
"@arkecosystem/core-transactions": "3.0.0-next.16",
"@arkecosystem/crypto": "3.0.0-next.16",
"@arkecosystem/core-database": "^3.0.0-next",
"@arkecosystem/core-kernel": "^3.0.0-next",
"@arkecosystem/core-state": "^3.0.0-next",
"@arkecosystem/core-transactions": "^3.0.0-next",
"@arkecosystem/crypto": "^3.0.0-next",
"@protokol/guardian-crypto": "workspace:packages/guardian-crypto",
"ajv": "6.12.6",
"delay": "4.4.0"
},
"devDependencies": {
"@arkecosystem/core-kernel": "3.0.0-next.16",
"@arkecosystem/core-state": "3.0.0-next.16",
"@arkecosystem/core-test-framework": "3.0.0-next.16",
"@arkecosystem/core-transaction-pool": "3.0.0-next.16",
"@arkecosystem/utils": "1.2.1",
"@arkecosystem/core-kernel": "^3.0.0-next",
"@arkecosystem/core-state": "^3.0.0-next",
"@arkecosystem/core-test-framework": "^3.0.0-next",
"@arkecosystem/core-transaction-pool": "^3.0.0-next",
"@sindresorhus/tsconfig": "~0.8.0",
"@types/eslint": "^7.2.5",
"@types/eslint-plugin-prettier": "^3.1.0",
Expand Down
Loading