Skip to content

Commit

Permalink
updates package versions
Browse files Browse the repository at this point in the history
  • Loading branch information
koshikraj committed Feb 13, 2023
1 parent 32cee11 commit 2ac017d
Show file tree
Hide file tree
Showing 28 changed files with 691 additions and 655 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,28 @@ jobs:
- uses: actions/checkout@v3
# these if statements ensure that a publication only occurs when
# a new release is created:
# if: ${{ steps.release.outputs.releases_created }}
if: ${{ steps.release.outputs.releases_created }}

- uses: actions/setup-node@v3
with:
cache: 'yarn'
node-version: 16
registry-url: 'https://registry.npmjs.org'
# if: ${{ steps.release.outputs.releases_created }}
if: ${{ steps.release.outputs.releases_created }}

- run: corepack enable

- run: yarn install
# if: ${{ steps.release.outputs.releases_created }}
if: ${{ steps.release.outputs.releases_created }}

- run: yarn build
# if: ${{ steps.release.outputs.releases_created }}
if: ${{ steps.release.outputs.releases_created }}

- env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
# if: ${{ steps.release.outputs.releases_created }}
if: ${{ steps.release.outputs.releases_created }}
run: |
echo npmAuthToken: "$NODE_AUTH_TOKEN" >> ./.yarnrc.yml
- run: yarn workspaces foreach -v --exclude root --no-private npm publish --tolerate-republish --access public
# if: ${{ steps.release.outputs.releases_created }}
if: ${{ steps.release.outputs.releases_created }}
29 changes: 0 additions & 29 deletions .github/workflows/cf-deploy.yaml

This file was deleted.

51 changes: 0 additions & 51 deletions .github/workflows/ci-workflow.yaml

This file was deleted.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"node": ">=16.0.0"
},
"scripts": {
"manifest": "yarn workspace @safient/snap manifest",
"build:snap": "yarn workspace @safient/snap build",
"build:adapter": "yarn workspace @safient/wallet-adapter build",
"start:snap": "yarn workspace @safient/snap serve",
"manifest": "yarn workspace @safient/metasafe-snap manifest",
"build:snap": "yarn workspace @safient/metasafe-snap build",
"build:adapter": "yarn workspace @safient/metasafe-adapter build",
"start:snap": "yarn workspace @safient/metasafe-snap serve",
"start:client": "REACT_APP_SNAP=local yarn workspace client start",
"predemo": "yarn run build:snap && yarn run build:adapter",
"build": "yarn workspaces foreach -vpt run build",
Expand Down
10 changes: 5 additions & 5 deletions packages/adapter/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "@safient/wallet-adapter",
"version": "2.1.2",
"name": "@safient/metasafe-adapter",
"version": "0.1.0-beta",
"main": "./build/index.js",
"module": "./build/index.js",
"types": "./build/index.d.ts",
"author": "chainsafe <info@chainsafe.io>",
"author": "Safient <hello@safient.io>",
"license": "(Apache-2.0 AND MIT)",
"homepage": "https://github.com/chainsafe/filecoin-metamask-snap/tree/master/packages/adapter",
"homepage": "https://github.com/safient/metasafe-snap/tree/master/packages/adapter",
"keywords": [
"filecoin",
"metamask",
Expand All @@ -29,7 +29,7 @@
"test": "exit 0"
},
"dependencies": {
"@safient/snap-types": "workspace:^"
"@safient/metasafe-types": "workspace:^"
},
"devDependencies": {
"@types/node": "^12.12.35",
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SnapConfig } from "@safient/snap-types";
import { SnapConfig } from "@safient/metasafe-types";
import {
hasMetaMask,
isMetamaskSnapsSupported,
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter/src/methods.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
MetamaskFilecoinRpcRequest,
} from "@safient/snap-types";
} from "@safient/metasafe-types";
import { MetamaskSafientSnap } from "./snap";

async function sendSnapMethod<T>(
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter/src/snap.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SafientSnapApi } from "@safient/snap-types";
import { SafientSnapApi } from "@safient/metasafe-types";
import {
exportPrivateKey,
getAddress,
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SnapRpcMethodRequest } from "@safient/snap-types";
import { SnapRpcMethodRequest } from "@safient/metasafe-types";

declare global {
interface Window {
Expand Down
4 changes: 2 additions & 2 deletions packages/snap/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@

* The following workspace dependencies were updated
* devDependencies
* @safient/snap-types bumped from ^2.1.1 to ^2.1.2
* @safient/metasafe-types bumped from ^2.1.1 to ^2.1.2

## [2.2.0](https://github.com/ChainSafe/filsnap/compare/filsnap-v2.1.0...filsnap-v2.2.0) (2022-04-07)

Expand All @@ -108,4 +108,4 @@

* The following workspace dependencies were updated
* devDependencies
* @safient/snap-types bumped from ^2.1.0 to ^2.1.1
* @safient/metasafe-types bumped from ^2.1.0 to ^2.1.1
18 changes: 9 additions & 9 deletions packages/snap/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@safient/snap",
"version": "2.3.10",
"name": "@safient/metasafe-snap",
"version": "0.1.0-beta",
"license": "(Apache-2.0 AND MIT)",
"description": "Filsnap - Metamask snap to interact with Filecoin dapps.",
"description": "Metasafe - Snap to enable MetaMask users to create recovery and inheritance plans for their accounts.",
"main": "build/index.js",
"scripts": {
"snap": "mm-snap",
Expand Down Expand Up @@ -31,24 +31,24 @@
},
"repository": {
"type": "git",
"url": "https://github.com/Chainsafe/filsnap.git"
"url": "https://github.com/safient/metasafe-snap.git"
},
"keywords": [
"metamask",
"snap",
"dapp",
"recovery",
"wallet",
"plugin"
],
"author": "chainsafe <info@chainsafe.io>",
"author": "Safient <hello@safient.io>",
"bugs": {
"url": "https://github.com/chainsafe/filecoin-metamask-snap/issues"
"url": "https://github.com/safient/metasafe-snap/issues"
},
"homepage": "https://github.com/chainsafe/filecoin-metamask-snap#readme",
"homepage": "https://github.com/safient/metasafe-snap#readme",
"devDependencies": {
"@metamask/providers": "^9.0.0",
"@metamask/snaps-cli": "^0.18.1",
"@safient/snap-types": "workspace:^",
"@safient/metasafe-types": "workspace:^",
"@types/bn.js": "^4.11.6",
"@types/chai": "^4.2.10",
"@types/mocha": "^9.1.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/snap/snap.manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.3.10",
"version": "0.1.0-beta",
"proposedName": "SafientSnap",
"description": "The Safient snap.",
"repository": {
Expand All @@ -11,7 +11,7 @@
"location": {
"npm": {
"filePath": "dist/bundle.js",
"packageName": "@safient/snap",
"packageName": "@safient/metasafe-snap",
"registry": "https://registry.npmjs.org/"
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/snap/src/configuration/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SnapConfig } from "@safient/snap-types";
import { SnapConfig } from "@safient/metasafe-types";
import { SnapProvider } from "@metamask/snap-types";
import { MetamaskState } from "../interfaces";
import {
Expand Down
2 changes: 1 addition & 1 deletion packages/snap/src/configuration/predefined.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SnapConfig } from "@safient/snap-types";
import { SnapConfig } from "@safient/metasafe-types";

export const ethereumMainnetConfiguration: SnapConfig = {
derivationPath: "m/44'/60'/0'/0/0",
Expand Down
2 changes: 1 addition & 1 deletion packages/snap/src/ethereum/account.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { keyRecover } from "@zondax/filecoin-signing-tools/js";
import { KeyPair } from "@safient/snap-types";
import { KeyPair } from "@safient/metasafe-types";
import {
getBIP44AddressKeyDeriver,
JsonBIP44CoinTypeNode,
Expand Down
2 changes: 1 addition & 1 deletion packages/snap/src/ethereum/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
ProviderOptions,
} from "@filecoin-shipyard/lotus-client-provider-nodejs";
import { testnet } from "@filecoin-shipyard/lotus-client-schema";
import { SnapConfig } from "@safient/snap-types";
import { SnapConfig } from "@safient/metasafe-types";
import { SnapProvider } from "@metamask/snap-types";
import { getConfiguration } from "../configuration";
import { LotusRpcApi } from "./types";
Expand Down
2 changes: 1 addition & 1 deletion packages/snap/src/ethereum/message.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MessageStatus } from "@safient/snap-types";
import { MessageStatus } from "@safient/metasafe-types";
import { SnapProvider } from "@metamask/snap-types";
import { MetamaskState } from "../interfaces";

Expand Down
2 changes: 1 addition & 1 deletion packages/snap/src/ethereum/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Message, SignedMessage } from "@safient/snap-types";
import { Message, SignedMessage } from "@safient/metasafe-types";

export interface LotusRpcApi {
version(): Promise<VersionResponse>;
Expand Down
2 changes: 1 addition & 1 deletion packages/snap/src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
MessageStatus,
MetamaskFilecoinRpcRequest,
SnapConfig,
} from "@safient/snap-types";
} from "@safient/metasafe-types";
import { defaultConfiguration } from "./configuration/predefined";

export type FMethodCallback = (
Expand Down
2 changes: 1 addition & 1 deletion packages/snap/src/util/params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
MessageRequest,
SignedMessage,
SnapConfig,
} from "@safient/snap-types";
} from "@safient/metasafe-types";

type WithRequired<T, K extends keyof T> = T & { [P in K]-?: T[P] };

Expand Down
2 changes: 1 addition & 1 deletion packages/snap/test/unit/filecoin/account.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// import { SnapConfig } from "@safient/snap-types";
// import { SnapConfig } from "@safient/metasafe-types";
// import chai, { expect } from "chai";
// import sinonChai from "sinon-chai";
// import { getKeyPair } from "../../../src/filecoin/account";
Expand Down
2 changes: 1 addition & 1 deletion packages/snap/test/unit/filecoin/message.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// import { Message, MessageStatus } from "@safient/snap-types";
// import { Message, MessageStatus } from "@safient/metasafe-types";
// import chai, { expect } from "chai";
// import sinonChai from "sinon-chai";
// import { updateMessageInState } from "../../../src/filecoin/message";
Expand Down
2 changes: 1 addition & 1 deletion packages/snap/test/unit/rpc/configure.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// import { SnapConfig } from "@safient/snap-types";
// import { SnapConfig } from "@safient/metasafe-types";
// import chai, { expect } from "chai";
// import sinonChai from "sinon-chai";
// import { filecoinTestnetConfiguration } from "../../../src/configuration/predefined";
Expand Down
2 changes: 1 addition & 1 deletion packages/snap/test/unit/rpc/getAddress.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// import chai, { expect } from "chai";
// import sinonChai from "sinon-chai";
// import { SnapConfig } from "@safient/snap-types";
// import { SnapConfig } from "@safient/metasafe-types";
// import { getAddress } from "../../../src/rpc/getAddress";
// import { mockSnapProvider } from "../wallet.mock.test";
// import {
Expand Down
2 changes: 1 addition & 1 deletion packages/snap/test/unit/rpc/signMessage.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// import chai, { expect } from "chai";
// import sinonChai from "sinon-chai";
// import { MessageRequest } from "@safient/snap-types";
// import { MessageRequest } from "@safient/metasafe-types";
// import { Message } from "@zondax/filecoin-signing-tools/js";
// import { signMessage } from "../../../src/rpc/signMessage";
// import { LotusApiMock } from "../lotusapi.mock.test";
Expand Down
2 changes: 1 addition & 1 deletion packages/snap/test/unit/wallet.mock.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// import { SnapConfig } from "@safient/snap-types";
// import { SnapConfig } from "@safient/metasafe-types";
// import { SnapProvider } from "@metamask/snap-types";
// import sinon from "sinon";
// import {
Expand Down
8 changes: 4 additions & 4 deletions packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@safient/snap-types",
"version": "2.1.2",
"name": "@safient/metasafe-types",
"version": "0.1.0-beta",
"types": "./index.d.ts",
"license": "(Apache-2.0 AND MIT)",
"author": "chainsafe <info@chainsafe.io>",
"author": "Safient <hello@safient.io>",
"publishConfig": {
"access": "public"
},
"description": "Types for Filsnap.",
"description": "Types for MetaSafe.",
"keywords": [
"filecoin",
"metamask",
Expand Down
Loading

0 comments on commit 2ac017d

Please sign in to comment.