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

Release notes on update hook #45

Open
wants to merge 3 commits into
base: feature/cosmos-wallet
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion packages/connector/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rarimo/rarime-connector",
"version": "2.1.0-rc.13",
"version": "2.1.0-rc.15",
"description": "Facilitates interaction between a DApp and RariMe MetaMask snap",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/connector/src/version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "2.1.0-rc.13"
"version": "2.1.0-rc.15"
}
2 changes: 1 addition & 1 deletion packages/snap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rarimo/rarime",
"version": "2.1.0-rc.13",
"version": "2.1.0-rc.15",
"description": "RariMe is a MetaMask Snap that safely holds any of your credentials and allows you to prove your identity without revealing any personal data. Powered by Rarimo Protocol and Zero-Knowledge Proof technology.",
"repository": {
"type": "git",
Expand Down
7 changes: 4 additions & 3 deletions packages/snap/snap.manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"version": "2.1.0-rc.13",
"version": "2.1.0-rc.15",
"description": "Securely store and manage all of your identity credentials. Use them across chains with ZK-protected privacy guarantees.",
"proposedName": "RariMe",
"repository": {
"type": "git",
"url": "https://github.com/rarimo/rarime.git"
},
"source": {
"shasum": "ABVTZiQu17L4Wp76l5HtJdnF9Oy/QeqaFccW0pLykv0=",
"shasum": "HCQY+s8gv6YX5IKmEFvZokMhmYJcMWiEQOKpuIrtGP8=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand All @@ -33,7 +33,8 @@
"endowment:network-access": {},
"endowment:webassembly": {},
"endowment:ethereum-provider": {},
"snap_getEntropy": {}
"snap_getEntropy": {},
"endowment:lifecycle-hooks": {}
},
"manifestVersion": "0.1"
}
21 changes: 21 additions & 0 deletions packages/snap/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// eslint-disable-next-line import/no-unassigned-import
import './polyfill';

import type { OnUpdateHandler } from '@metamask/snaps-sdk';
import { panel, text } from '@metamask/snaps-sdk';
import type { JsonRpcRequest } from '@metamask/utils';
import { RPCMethods } from '@rarimo/rarime-connector';

Expand Down Expand Up @@ -98,3 +100,22 @@ export const onRpcRequest = async ({
throw new Error('Method not found.');
}
};

export const onUpdate: OnUpdateHandler = async (args: {
request: JsonRpcRequest;
}) => {
console.log('onUpdate', JSON.stringify(args));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delet


await snap.request({
method: 'snap_dialog',
params: {
type: 'confirmation',
content: panel([
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add the version an move the text to a constant for the ease of updating

text('New features added in this version:'),
text('• Cosmos compatible wallet'),
text('• Import & Export identity'),
text('• Remove credentials'),
]),
},
});
};
2 changes: 1 addition & 1 deletion packages/zkp-iden3/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rarimo/zkp-iden3",
"version": "2.1.0-rc.13",
"version": "2.1.0-rc.15",
"description": "Tools that generate zero-knowledge proofs for the Iden3 protocol.",
"repository": {
"type": "git",
Expand Down
Loading