-
Notifications
You must be signed in to change notification settings - Fork 49
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: check withdraw fee in Swap, callMulti example, universal NFT/FT #229
base: main
Are you sure you want to change the base?
Changes from 7 commits
c7ba7e5
142c36c
926a9f9
d07edd7
05d2288
272329d
21cd7be
c0a77f4
63b4a4b
de77a5f
4799aec
c181622
947d450
81325b3
a34b866
d8732f7
0272470
468bece
846d720
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
"@typescript-eslint/eslint-plugin": "^5.59.9", | ||
"@typescript-eslint/parser": "^5.59.9", | ||
"@zetachain/localnet": "4.0.0-rc6", | ||
"@zetachain/toolkit": "13.0.0-rc7", | ||
"@zetachain/toolkit": "13.0.0-rc12", | ||
"axios": "^1.3.6", | ||
"chai": "^4.2.0", | ||
"dotenv": "^16.0.3", | ||
|
@@ -57,6 +57,8 @@ | |
"@solana-developers/helpers": "^2.4.0", | ||
"@solana/spl-memo": "^0.2.5", | ||
"@solana/web3.js": "^1.95.8", | ||
"@zetachain/protocol-contracts": "11.0.0-rc3" | ||
"@zetachain/networks": "10.0.0-rc4", | ||
"@zetachain/protocol-contracts": "11.0.0-rc3", | ||
"@zetachain/protocol-contracts-solana": "2.0.0-rc1" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Remove or document unused Solana dependency The
🔗 Analysis chainVerify Solana contract integration requirements. The addition of Run this script to check for Solana-related configuration and documentation: 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check for Solana configuration and documentation
# Check for Solana configuration files
echo "Checking for Solana configuration files:"
fd -e yaml -e json "solana" examples/call/
# Check for Solana documentation
echo -e "\nChecking for Solana documentation:"
rg -i "solana" examples/call/README.md || echo "No Solana documentation found in README"
Length of output: 346 Script: #!/bin/bash
# Check for imports and usage of Solana contracts
echo "Checking for Solana contract imports and usage:"
rg -i "@zetachain/protocol-contracts-solana" examples/call/ -A 2
echo -e "\nChecking for Solana-related code patterns:"
rg -i "solana" examples/call/ --type ts --type js --type tsx --type jsx
Length of output: 1163 |
||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -93,13 +93,13 @@ task( | |||||
.addOptionalParam( | ||||||
"txOptionsGasPrice", | ||||||
"The gas price for the transaction", | ||||||
10000000000, | ||||||
20000000000, | ||||||
types.int | ||||||
) | ||||||
.addOptionalParam( | ||||||
"txOptionsGasLimit", | ||||||
"The gas limit for the transaction", | ||||||
7000000, | ||||||
500000, | ||||||
types.int | ||||||
) | ||||||
.addFlag("callOnRevert", "Whether to call on revert") | ||||||
|
@@ -116,14 +116,14 @@ task( | |||||
.addOptionalParam( | ||||||
"onRevertGasLimit", | ||||||
"The gas limit for the revert transaction", | ||||||
7000000, | ||||||
50000, | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Inconsistent onRevertGasLimit value The Apply this fix to maintain consistency: - 50000,
+ 500000, 📝 Committable suggestion
Suggested change
|
||||||
types.int | ||||||
) | ||||||
.addFlag("callOptionsIsArbitraryCall", "Call any function") | ||||||
.addOptionalParam( | ||||||
"callOptionsGasLimit", | ||||||
"The gas limit for the call", | ||||||
7000000, | ||||||
500000, | ||||||
types.int | ||||||
) | ||||||
.addParam("function", `Function to call (example: "hello(string)")`) | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
Version inconsistency detected in example projects
The
@zetachain/toolkit
package has inconsistent versions across examples:13.0.0-rc12
: hello, swap, call13.0.0-rc8
: nft, tokenConsider updating all examples to use the latest release candidate version
13.0.0-rc12
for consistency.🔗 Analysis chain
Ensure version consistency across example projects.
The changes introduce multiple release candidate dependencies:
@zetachain/toolkit
to13.0.0-rc12
@zetachain/networks
at10.0.0-rc4
@zetachain/protocol-contracts-solana
at2.0.0-rc1
Run this script to verify version consistency across all example projects:
Also applies to: 60-62
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 3335
Script:
Length of output: 2613