Skip to content

Commit

Permalink
feat: 🎸 move withMethod to utils packag
Browse files Browse the repository at this point in the history
BREAKING CHANGE: 🧨 move withMethod to utils packag
  • Loading branch information
waynewyang committed Dec 18, 2023
1 parent b2de8d0 commit 6109855
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 83 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"dependencies": {
"@dataswapcore/abi": "^0.1.2",
"@glif/filecoin-rpc-client": "^2.0.43",
"@unipackage/utils": "^1.1.1",
"@unipackage/utils": "^1.4.0",
"ethers": "^6.8.1",
"web3": "^4.0.3"
},
Expand Down
2 changes: 1 addition & 1 deletion src/evm/withMethod/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
********************************************************************************/

import { isEvmTransactionOptions } from "../interface"
import { withMethods } from "../../shared/withMethods"
import { withMethods } from "@unipackage/utils"

/**
* withSendMethod:Decorator function to dynamically add methods to a class prototype.
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export { withRequestMethod } from "./rpc/withMethod"
export { Rpc } from "./rpc/"
export { AbstractRpc } from "./rpc/abstract"

export { withMethods } from "./shared/withMethods"
export { InputParams } from "./shared/types/params"

export {
Expand Down
2 changes: 1 addition & 1 deletion src/rpc/withMethod/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
********************************************************************************/

import { isRPCOptions } from "../interface"
import { withMethods } from "../../shared/withMethods"
import { withMethods } from "@unipackage/utils"

/**
* Decorator function to dynamically add methods to a class prototype.
Expand Down
75 changes: 0 additions & 75 deletions src/shared/withMethods/index.ts

This file was deleted.

0 comments on commit 6109855

Please sign in to comment.