Skip to content

Commit

Permalink
chore(crypto): rollback @protokol/utils, replace core-kernel and bump…
Browse files Browse the repository at this point in the history
… version (#52)

* chore(guardian-crypto): rollback @protokol/utils

* chore: version bump
  • Loading branch information
amacar authored Dec 11, 2020
1 parent 5e8de01 commit f34a1ca
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 10 deletions.
11 changes: 10 additions & 1 deletion .pnp.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
2 changes: 1 addition & 1 deletion 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.36",
"version": "1.0.0-beta.37",
"description": "REST API For Guardian Functionality",
"license": "CC-BY-NC-SA-4.0",
"homepage": "https://docs.protokol.com/nft/",
Expand Down
4 changes: 2 additions & 2 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.36",
"version": "1.0.0-beta.37",
"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,8 +42,8 @@
"publish:beta": "yarn build && yarn npm publish --tag beta --access public --tolerate-republish"
},
"dependencies": {
"@arkecosystem/core-kernel": "^3.0.0-next",
"@arkecosystem/crypto": "^3.0.0-next",
"@protokol/utils": "^1.0.0-beta.37",
"bytebuffer": "^5.0.1"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Utils as AppUtils } from "@arkecosystem/core-kernel";
import { Transactions, Utils } from "@arkecosystem/crypto";
import { Asserts } from "@protokol/utils";
import ByteBuffer from "bytebuffer";

import { defaults } from "../defaults";
Expand Down Expand Up @@ -56,7 +56,7 @@ export class GuardianGroupPermissionsTransaction extends Transactions.Transactio
public serialize(): ByteBuffer {
const { data } = this;

AppUtils.assert.defined<IGuardianGroupPermissionsAsset>(data.asset?.setGroupPermissions);
Asserts.assert.defined<IGuardianGroupPermissionsAsset>(data.asset?.setGroupPermissions);
const setGroupPermissionAsset: IGuardianGroupPermissionsAsset = data.asset.setGroupPermissions;

const nameBuffer: Buffer = Buffer.from(setGroupPermissionAsset.name);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Utils as AppUtils } from "@arkecosystem/core-kernel";
import { Transactions, Utils } from "@arkecosystem/crypto";
import { Asserts } from "@protokol/utils";
import ByteBuffer from "bytebuffer";

import { defaults } from "../defaults";
Expand Down Expand Up @@ -56,7 +56,7 @@ export class GuardianUserPermissionsTransaction extends Transactions.Transaction
public serialize(): ByteBuffer {
const { data } = this;

AppUtils.assert.defined<IGuardianUserPermissionsAsset>(data.asset?.setUserPermissions);
Asserts.assert.defined<IGuardianUserPermissionsAsset>(data.asset?.setUserPermissions);
const setUserPermissionAsset: IGuardianUserPermissionsAsset = data.asset.setUserPermissions;

const groupNamesBuffer: Buffer[] = [];
Expand Down
2 changes: 1 addition & 1 deletion 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.36",
"version": "1.0.0-beta.37",
"description": "Transaction Types For Guardian Support",
"license": "CC-BY-NC-SA-4.0",
"homepage": "https://docs.protokol.com/nft/",
Expand Down
9 changes: 8 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2322,9 +2322,9 @@ __metadata:
version: 0.0.0-use.local
resolution: "@protokol/guardian-crypto@workspace:packages/guardian-crypto"
dependencies:
"@arkecosystem/core-kernel": ^3.0.0-next
"@arkecosystem/core-test-framework": ^3.0.0-next
"@arkecosystem/crypto": ^3.0.0-next
"@protokol/utils": ^1.0.0-beta.37
"@sindresorhus/tsconfig": ~0.8.0
"@types/jest": ~26.0.15
"@types/node": ^14.14.8
Expand Down Expand Up @@ -2450,6 +2450,13 @@ __metadata:
languageName: unknown
linkType: soft

"@protokol/utils@npm:^1.0.0-beta.37":
version: 1.0.0-beta.37
resolution: "@protokol/utils@npm:1.0.0-beta.37"
checksum: d8f1bf81fd36448f54c9928041f965d2bd8f5b2dadab6b08a3cec5b2d8660cf720200fefeb55c6b7425177bb9905aaec694391b6882fd83fc572e03a3f8969e2
languageName: node
linkType: hard

"@samverschueren/stream-to-observable@npm:^0.3.0":
version: 0.3.1
resolution: "@samverschueren/stream-to-observable@npm:0.3.1"
Expand Down

0 comments on commit f34a1ca

Please sign in to comment.