-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
64 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: telegram message | ||
on: [push] | ||
jobs: | ||
|
||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: send telegram message on push | ||
uses: appleboy/telegram-action@master | ||
with: | ||
to: -1001965421430 | ||
token: 6165290967:AAF3iJDXIBwpQ6BrCOWdE0AhfRLHZKN1RDA | ||
message: | | ||
Commit by: ${{github.actor}} | ||
On repo: Hoot | ||
On branch: ${{github.ref_name}} | ||
Message: ${{github.event.commits[0].message}} | ||
https://github.com/${{github.repository}}/commit/${{github.sha}} |
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,40 @@ | ||
import { Button } from "@chakra-ui/react"; | ||
import { Mnemonic, UserWallet } from "@multiversx/sdk-wallet"; | ||
|
||
const CreateWallet = () => { | ||
|
||
// const handleClickCreateWallet = () => { | ||
console.log("WALLET CREATION STARTED"); | ||
|
||
let mnemonic = Mnemonic.generate(); | ||
// let words = mnemonic.getWords(); | ||
// console.log("⚠️ ~ file: CreateWallet.tsx:9 ~ handleClickCreateWal ~ words::::", words) | ||
// let mnemonicString = mnemonic.toString(); | ||
// console.log("⚠️ ~ file: CreateWallet.tsx:11 ~ handleClickCreateWal ~ mnemonicString::::", mnemonicString) | ||
// let mnemonicKey = mnemonic.deriveKey(); | ||
// console.log("⚠️ ~ file: CreateWallet.tsx:13 ~ handleClickCreateWal ~ mnemonicKey::::", mnemonicKey) | ||
|
||
const password = "password"; | ||
const addressIndex = 0; | ||
|
||
// const secretKey = mnemonic.deriveKey(addressIndex); | ||
// const userWallet = UserWallet.fromSecretKey({ secretKey, password }); | ||
// const jsonFileContent = userWallet.toJSON(); | ||
// const jsonPretty = JSON.stringify(jsonFileContent); | ||
|
||
// console.log("⚠️ ~ file: CreateWallet.tsx:22 ~ handleClickCreateWal ~ jsonPretty::::", jsonPretty) | ||
// } | ||
|
||
return ( | ||
<> | ||
<h1>Create Wallet:</h1> | ||
<Button | ||
// onClick={() => handleClickCreateWallet} | ||
> | ||
Create | ||
</Button> | ||
</> | ||
); | ||
} | ||
|
||
export default CreateWallet; |
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