-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
.devcontainer looking clean for docker and Windows 2025 requesting automatic merge to main #11261
Draft
bearycool11
wants to merge
213
commits into
actions:revert-10841-releases/macos-15-arm64/20241022-docs
Choose a base branch
from
bearycool11:main
base: revert-10841-releases/macos-15-arm64/20241022-docs
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.
Draft
.devcontainer looking clean for docker and Windows 2025 requesting automatic merge to main #11261
bearycool11
wants to merge
213
commits into
actions:revert-10841-releases/macos-15-arm64/20241022-docs
from
bearycool11:main
Conversation
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
Co-authored-by: Image generation service account. <[email protected]>
…/20241021-docs macOS 13 arm64 (20241021) Image Update
Co-authored-by: Image generation service account. <[email protected]> Co-authored-by: Actions service account <[email protected]>
Co-authored-by: Image generation service account. <[email protected]> Co-authored-by: Actions service account <[email protected]>
Co-authored-by: Ravi Akshintala <[email protected]>
Co-authored-by: Image generation service account. <[email protected]> Co-authored-by: Actions service account <[email protected]>
Co-authored-by: Image generation service account. <[email protected]> Co-authored-by: Actions service account <[email protected]>
Co-authored-by: Image generation service account. <[email protected]> Co-authored-by: Actions service account <[email protected]>
…ue-sarath [macOS] Add unxip for macOS13
Co-authored-by: Image generation service account. <[email protected]> Co-authored-by: Actions service account <[email protected]>
ci(Mergify): configuration update
Signed-off-by: J. K. Edwards <[email protected]>
…date ci(Mergify): configuration update
Signed-off-by: J. K. Edwards <[email protected]>
…date ci(Mergify): configuration update
Signed-off-by: J. K. Edwards <[email protected]>
…date ci(Mergify): configuration update
Signed-off-by: J. K. Edwards <[email protected]>
…date ci(Mergify): configuration update
…/config-update Revert "ci(Mergify): configuration update"
fixing merging forks
Signed-off-by: J. K. Edwards <[email protected]>
…date ci(Mergify): configuration update
#include <cosmwasm.hpp> #include <vector> #include <string> // Recipient structure struct Recipient { std::string address; uint64_t amount; // Amount in microATOM }; // Input message struct ReimburseMsg { std::vector<Recipient> recipients; }; // Main contract logic class Contract : public cosmwasm::Contract<Contract> { public: // Execute function cosmwasm::Response execute(const cosmwasm::MessageInfo& info, const ReimburseMsg& msg) { // Verify sender funds uint64_t total_amount = 0; for (const auto& recipient : msg.recipients) { total_amount += recipient.amount; } uint64_t sent_amount = info.funds.at(0).amount; if (sent_amount < total_amount) { throw std::runtime_error("Insufficient funds provided"); } // Generate bank send messages std::vector<cosmwasm::BankMsg> bank_msgs; for (const auto& recipient : msg.recipients) { bank_msgs.emplace_back(cosmwasm::BankMsg::Send{ recipient.address, {{ "uatom", recipient.amount }} }); } // Create response with messages return cosmwasm::Response() .add_messages(bank_msgs) .add_attribute("action", "reimburse") .add_attribute("sender", info.sender); } };
wasm wham!
wasm wham! the engine
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
New tool, Bug fixing, or Improvement?
Please include a summary of the change and which issue is fixed. Also include relevant motivation and context.
For new tools, please provide total size and installation time.
Related issue:
Check list