"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.searchCosmosLogs = exports._platform = void 0;
/**
 * Runtime value for the Cosmwasm Platform
 */
exports._platform = "Cosmwasm";
const searchCosmosLogs = (key, logs) => {
    for (const log of logs) {
        for (const ev of log.events) {
            for (const attr of ev.attributes) {
                if (attr.key === key)
                    return attr.value;
            }
        }
    }
    return null;
};
exports.searchCosmosLogs = searchCosmosLogs;
//# sourceMappingURL=types.js.map