Skip to content
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
wants to merge 213 commits into
base: revert-10841-releases/macos-15-arm64/20241022-docs
Choose a base branch
from

Conversation

bearycool11
Copy link

@bearycool11 bearycool11 commented Jan 2, 2025

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

  • Related issue / work item is attached
  • Tests are written (if applicable)
  • Documentation is updated (if applicable)
  • Changes are tested and related VM images are successfully generated

459680 and others added 30 commits October 22, 2024 00:47
…/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: 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]>
Co-authored-by: Image generation service account. <[email protected]>
Co-authored-by: Actions service account <[email protected]>
…/config-update

Revert "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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.