-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: 1271 sig * chore: Update node * chore: Update ts * test: IUse vitest * removel lint temp
- Loading branch information
Showing
7 changed files
with
774 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ jobs: | |
- name: Setup Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14.x | ||
node-version: 18.x | ||
|
||
- name: Setup MongoDB | ||
uses: supercharge/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Address, Hex, createPublicClient, http } from "viem"; | ||
import { bsc } from "viem/chains"; | ||
|
||
const bscPublicClient = createPublicClient({ | ||
chain: bsc, | ||
transport: http("https://nodes.pancakeswap.info"), | ||
}); | ||
|
||
export async function verifyMessage( | ||
message: string, | ||
signature: Hex, | ||
address: Address | ||
): Promise<boolean> { | ||
return bscPublicClient.verifyMessage({ | ||
address, | ||
message, | ||
signature, | ||
}); | ||
} |
Oops, something went wrong.