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

added core package to implement user #79

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Ankush523
Copy link

No description provided.

packages/core/src/users.ts Outdated Show resolved Hide resolved
packages/core/index.ts Outdated Show resolved Hide resolved
packages/core/package.json Outdated Show resolved Hide resolved
{
"name": "core",
"version": "1.0.0",
"description": "",
Copy link
Contributor

Choose a reason for hiding this comment

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

Add description

"The core components for dApp-SDK. These are required by almost every other package".


abstract createUser(userInput: object | any): void;
abstract getUser(userInput: object | any): void;
abstract fetchChats(fetchChatInput: object | any): void;
Copy link
Contributor

Choose a reason for hiding this comment

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

These abstract functions are in the messaging class and not needed here. So the messaging-core would extend this "User" and have these functions defined.
Then the specific messaging package can extend on these functions.

Copy link
Contributor

@r4881t r4881t left a comment

Choose a reason for hiding this comment

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

You will also need to bump up the messaging-push and messaging-interface versions

"dist/**/*"
],
"author": "",
"license": "ISC"
Copy link
Contributor

Choose a reason for hiding this comment

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

MIT License

yarn.lock Outdated
@@ -491,6 +491,12 @@ __metadata:
languageName: unknown
linkType: soft

"@dapp-sdk/core@workspace:packages/core":
version: 0.0.0-use.local
Copy link
Contributor

Choose a reason for hiding this comment

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

What does it do? Can we use simply 1.0.0 as thats the version of the package?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants