-
Notifications
You must be signed in to change notification settings - Fork 0
FIrst version: v1.0 #13
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
Merged
Merged
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
* feat: implemented IPFS functions Added implementation with IPFS for: - load_file.go - check_pins.go for loading files to ipfs and checking pinned files * fix: remove explicit channel close * feat: added check_cid function, updated tests - added new check-cid function - updated tests - added utils files for tests --------- Co-authored-by: AleAstraKode <alessandro.sommaruga@astrakode.tech>
* SUI RPC Wrapper for Iota Rebased interaction + node health and status check tests * Address creation and retrieval from private_key and code for ping test and rebased clanup * Whitelist object: implemented get command * Whitelist object: New command for adding an address into the whitelist created * Whitelist: Added remove command and now making sure in add command that the address is not already present * feat: create cid command draft - added create cid command - implemented iota utils to invoke SC functions and get env variables - added LoadFileToIPFS do the ipfs utils * feat: implement cid listing and removal commands - added is-in-list and remove commands - added utils support command execution - unified smart contrac functions executions in a single utility - added .env reading * Wrapper and Whitelist refactor * Refactor of Whitelist logic: Separated command logic from functions * Expanded SUI/IOTA Rebased wrapper * WIP: Now using wrapper for whitelist handling * Wrapper: Now handling paid transactions with signature. Whitelist: Add and Remove use wrapper for contract calls * feat: update cid-related function with new wrapper * addresses are now created with wrapper * feat: transition epoch functionality - implemented command to transition from the current epoch to the next one, enabling funds withdrawl * fix: reorganize next-epoch under cid macro function * fix: remopve unused return value * Fixed address derivation mismatch * create_offer function added. fix on epoch computation for cid creation * Approve offer merge (#6) * Implemented approve_offer * Added open-offering-windows implementation * feat: add honor_offer and withdraw - added new honor_offer and withdraw commands - updated logic for default user address and provider address in approve_offer, submit_offer * file naming fix * chore: fix env references and clean up code formatting * refactor: call function in sui_wrapper, split MoveCallUnsigned - Updated multiple functions across the cid, offers, and whitelist packages to use the splitted function UnsafeMoveCallUnsigned instead of MoveCallUnsigned. - Improved code consistency and clarity by standardizing the transaction call method. * fix: gas coin creation during CID creation process - Replaced the splitCoin function with CreateGasCoin for creating a new gas coin during CID creation. - Adjusted comments, error and command output messages to reflect the new gas coin creation process. * feat: add funds function and check funds for offer approval - added add_funds command to add funds to a cid object - add check in approve_offer to avoid approving offers above the remaining funds - remove unneeded log * Fixing private key usage (#5) * all but withdraw functions now prompt to ask for prv key when signature is required * prvkey fix on withdra function * removed env load for prv_key * In account creation now displaying and saving to file the bech32 format used for signing Co-authored-by: Marco <mrc.xausa@gmail.com> Co-authored-by: AleAstraKode <alessandro.sommaruga@astrakode.tech>
* chore: add testsheet and adjust output for some functions - Added .env.example and testsheet.md for DCS CLI commands, - Updated error messages in offer commands and whitelist management, - Updated output format for ping, add to whitelist, remove from whitelist, - Rename WALLET_GAS_ID env variable to GC_WALLET_GAS_ID. * docs: update testsheet descriptions and add new CLI commands - Enhanced the testsheet.md with detailed descriptions for new CLI commands including faucet, import key, switch address, list addresses, and create gas coin object. - Clarified existing command descriptions and improved formatting for better readability. * refactor: standardize wallet retrieval and load params - Added wallet package for managing private keys and deriving addresses. - Updated offer commands to utilize the new wallet functions for private key resolution and address derivation. - Improved param loading for offer commands, aligning it with the other commands. - Removed redundant private key handling. - Added tests for wallet features about key management and address derivation. * refactor: align add funds param loading with the other commands - Updated the LoadAddFundsParams function to utilize the new wallet package for resolving private keys and signer addresses. - Improved the retrieval of gas coin IDs. * docs: update env var references in CLI command docs - Updated doc in testsheet.md to reflect changes in environment variable usage. - Improved clarity in command descriptions regarding the use of user and provider addresses and private keys. * docs: add notes to testsheet example scenario Renumbered sections for clarity and improved notes on offer status transitions during the testing process. * feat: add timestamp check on transition epoch - Added a function to check if epoch transitions are allowed based on the current timestamp (working for the testsheet only at section 5.7). - Enhanced error messages in the CLI commands to include visual indicators for success and failure. * chore: adjust console message format * refactor: standardize private key, address, gas ID flags across commands - Updated CLI commands to use `--signer-gas-id`, --`signer-private-key`, `--signer-address`. - Adjusted parameter loading functions to reflect the new flag naming convention. * feat: add amount parameter for CID creation command - Updated the `iota_sc cid create` command to include a new `--amount` flag for specifying the gas coin amount (default 100000). - Adjusted documentation in `testsheet.md` to reflect the new param and its usage. * fix: detect user not whitelisted error during CID creation - Fixed an error giving the wrong object ID when trying to create a new CID with a non-whitelisted user. - Improved the extraction of CID object IDs from tx responses. - Update .gitignore for env files. - Improve log messages for errors. * refactor: unify gas coin ID resolution across commands - Updated functions in `add_funds.go`, `create.go`, `remove.go`, `transition_epoch.go`, `withdraw.go`, and offer-related files to use the new `ResolveGasCoinId` method for gas coin ID resolution. - Improved error handling for gas coin ownership verification. * fix: update --cid-type cid research * fix: improve epoch transition error handling - Enhanced error handling in transition_epoch.go to provide clearer messages on epoch transition failures. - Updated CID references in testsheet.md example. * refactor: migrate withdraw to offers package - Updated the package in the `withdraw` command in `withdraw.go`. - Removed cid-type option (coming also for the other commands). - Added function txStatusOK to helpers.go since it's used by transition epoch * feat: remove cid-type cid option - Removed the `--cid-type` option from CID-related commands, which may cause ambiguity. - Updated command usage in `testsheet.md` to reflect changes. * feat: update add-funds updated add-funds command to take an amount instead of a coin-id as an input --------- Co-authored-by: AleAstraKode <alessandro.sommaruga@astrakode.tech>
- implement new API server to provide information on the ground control - updated CLI to invoke the api endpoint to retrieve ground control's info - restructured folder layout to encompass the api server
* Fix path traversal in account alias handling
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.
No description provided.