Skip to content

Commit

Permalink
Merge pull request #14 from getsafle/feature-sign-txns
Browse files Browse the repository at this point in the history
Feature sign txns
  • Loading branch information
sshubhamagg authored Jul 25, 2024
2 parents 0b01905 + bea20ed commit f962b0a
Show file tree
Hide file tree
Showing 9 changed files with 427 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
test.js
.vscode/launch.json
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
- Added importWallet() to import account using privateKey
- Added initial test
- Added functionality to sign message
- Added get balance method to fetch SOL balance of an account
- Added get balance method to fetch SOL balance of an account
- Added functionality to sign SOL and fungible tokens transfer transaction
307 changes: 307 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"author": "",
"license": "MIT",
"dependencies": {
"@solana/spl-token": "^0.4.8",
"@solana/web3.js": "^1.95.1",
"bip39": "^3.1.0",
"bs58": "^5.0.0",
Expand Down
4 changes: 4 additions & 0 deletions src/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ module.exports = {
solana: {
HD_PATH: `m/44'/501'/0'/0'`,
},
solana_transaction: {
NATIVE_TRANSFER: "NATIVE_TRANSFER",
TOKEN_TRANSFER: "TOKEN_TRANSFER",
},
solana_connection: {
MAINNET: {
NETWORK: "MAINNET",
Expand Down
Loading

0 comments on commit f962b0a

Please sign in to comment.