-
Notifications
You must be signed in to change notification settings - Fork 11.7k
Claude/add new features 011 c us g5 q nga m jt ztf qteqdb #24197
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
Open
pavlenkotm
wants to merge
22
commits into
MystenLabs:main
Choose a base branch
from
pavlenkotm:claude/add-new-features-011CUsG5QNgaMJtZtfQTEQDB
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Claude/add new features 011 c us g5 q nga m jt ztf qteqdb #24197
pavlenkotm
wants to merge
22
commits into
MystenLabs:main
from
pavlenkotm:claude/add-new-features-011CUsG5QNgaMJtZtfQTEQDB
Conversation
This file contains hidden or 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
Add comprehensive address validation utilities including: - Hex string validation - Sui address normalization - Address equality comparison - Address shortening for display
Add comprehensive coin utilities including: - MIST to SUI conversion and vice versa - Balance formatting and parsing - Sum and percentage calculations - Sorting coins by balance
Add comprehensive NFT utilities including: - Metadata extraction and validation - NFT display name generation - IPFS URL conversion to HTTP gateways - NFT grouping and filtering by attributes - Sorting and collection management
Add comprehensive transaction utilities including: - Transaction summary extraction - Gas cost calculation - Object ID extraction from effects - Transaction status checking - Explorer URL generation - Transaction grouping and analysis
Add comprehensive event utilities including: - Event filtering by type, sender, and timestamp - Event type parsing and pattern matching - Grouping and sorting events - Event frequency analysis - Field extraction from event data
Implement peer-to-peer token swap contract featuring: - Creation of swap offers with deposited tokens - Acceptance of swaps by providing requested tokens - Cancellation by offer creator - View functions for swap details
Implement decentralized voting contract featuring: - Proposal creation with title, description, and deadline - One vote per address (yes/no/abstain) - Quorum requirements - Proposal execution after voting ends - View functions for vote tracking
Implement token staking contract featuring: - Staking pool creation with reward funding - Token staking with position tracking - Reward calculation based on time and amount - Claiming rewards without unstaking - Full unstaking with automatic reward claim
Add comprehensive event validation utilities including: - EventValidator for checking expected events - Event order validation - EventCounter for frequency tracking - Assertion helpers for event counts - Unit tests for all utilities
Add comprehensive test data generation utilities: - Random address, object ID, and digest generators - Predictable address generator with counter - Mock transaction, object, and event builders - Batch generation helpers - Unit tests for all generators
Add convenient script for checking SUI balance: - Support for multiple networks (devnet/testnet/mainnet) - Simple usage with address parameter - Error handling and validation
Add script for transferring SUI to multiple addresses: - Read addresses from file (one per line) - Batch processing with progress tracking - Confirmation prompt before execution - Success/failure statistics - Rate limiting protection
Add automated setup script for Sui development: - Prerequisites checking (Rust, Cargo, Git) - Automated build process - Configuration directory setup - Client initialization - Interactive confirmation prompts - Helpful next steps information
Add comprehensive example for parallel operations: - Fetching multiple objects concurrently - Checking balances for multiple addresses - Batch transfer preparation - Transaction monitoring - Parallel event queries
Add comprehensive NFT management example: - Fetching NFTs owned by an address - NFT metadata extraction and display - Collection grouping and organization - NFT transfer operations (commented) - Event querying for NFT transfers
Implement on-chain lottery contract featuring: - Lottery creation with ticket price and end time - Ticket purchasing with SUI - Prize pool accumulation - Winner drawing with epoch-based randomness - Prize claiming by winner - View functions for lottery state
Implement multi-signature wallet contract featuring: - Wallet creation with multiple owners and threshold - Fund deposits to shared wallet - Transaction proposals by owners - Approval mechanism with threshold - Safe execution after threshold reached - View functions for wallet and proposal state
Add detailed documentation including: - Overview of all examples - Installation and setup instructions - Usage examples for each script - Network configuration guide - Common patterns and best practices
Centralize all utility exports in single index file: - Address validation and formatting utilities - Coin and balance operations - NFT metadata and collection helpers - Transaction analysis utilities - Event filtering and grouping - Convenient single-point import access
Implement time-delayed transfer contract featuring: - Fund locking with future unlock time - Full withdrawal after unlock epoch - Partial withdrawal support - Recipient verification - Time-based access control - View functions for lock status and timing
Add unified test execution script featuring: - Rust unit and integration tests - TypeScript SDK tests - Move package tests - Selective test execution (rust/typescript/move/all) - Dependency checking - Clear progress reporting
Add comprehensive SDK configuration helpers: - Predefined network configurations - Network detection from RPC URL - Configuration validation - Environment variable loading - Configuration merging with defaults - Helper functions for network URLs
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Describe the changes or additions included in this PR.
Test plan
How did you test the new or updated feature?
Release notes
Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.
For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.