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

feat: Tezos Provider #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

feat: Tezos Provider #1

wants to merge 1 commit into from

Conversation

dianasavvatina
Copy link
Collaborator

@dianasavvatina dianasavvatina commented Oct 18, 2024

Adding Tezos Provider for WalletConnect SDK.
See README for usage examples.

Usage example: reown-com/web-examples#697

Testing:

yarn prettier
yarn lint
yarn test
yarn build

Moved tezosProvider from WalletConnect Monorepo, PR#5357

@@ -0,0 +1,6 @@
{
"tabWidth": 2,
Copy link
Collaborator

Choose a reason for hiding this comment

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

it's more of an editorconfig thing

@@ -0,0 +1,6 @@
{
"tabWidth": 2,
"useTabs": false,
Copy link
Collaborator

Choose a reason for hiding this comment

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

and this

"tabWidth": 2,
"useTabs": false,
"trailingComma": "all",
"printWidth": 100
Copy link
Collaborator

Choose a reason for hiding this comment

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

and this

},
files: ["**/*.ts"],
rules: {
"@typescript-eslint/ban-ts-ignore": ["off"],
Copy link
Collaborator

Choose a reason for hiding this comment

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

are you confident of turning all of those off?

],
"scripts": {
"clean": "rm -rf dist",
"build": "tsup-node --dts",
Copy link
Collaborator

Choose a reason for hiding this comment

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

you can puts the dts setting into the tsup config itself down below

return await this.tezosSend(op);
};

public tezosSendProposal = async (op: TezosProposalOperation): Promise<TezosSendResponse> => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

not sure if all those methods need the tezos prefix. it's obvious from the class name that it's tezos related

return await this.tezosSend(op);
};

public tezosSendIncreasePaidStorage = async (
Copy link
Collaborator

Choose a reason for hiding this comment

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

there is no need to await unless you want to catch errors or something. so it should be

public async sendIncreasePaidStorage(op: PartialTezosIncreasePaidStorageOperation) {
  return this.tezosSend(op);
}

},
"devDependencies": {
"@jest/globals": "^29.7.0",
"@swc/core": "^1.7.35",
Copy link
Collaborator

Choose a reason for hiding this comment

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

so do you use swc or tsup in the end?

"ignoreDeprecations": "5.0"

},
"include": ["./src/**/*.ts", "./src"],
Copy link
Collaborator

Choose a reason for hiding this comment

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

"include": ["src"]

"include": ["./src/**/*.ts", "./src"],
"exclude": [
"node_modules",
"test",
Copy link
Collaborator

Choose a reason for hiding this comment

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

don't exclude test

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