Skip to content

Instantly share code, notes, and snippets.

View zeuslawyer's full-sized avatar
💭
Ka-Boom!

Zubin zeuslawyer

💭
Ka-Boom!
View GitHub Profile
@zeuslawyer
zeuslawyer / config.testnet.yaml
Created April 16, 2025 06:24
Workflow configuration
# How often the workflow triggers (e.g., every 2 minutes below)
cronExpression: "0 */2 * * * *"
# Provide the location or city. We'll pass this to Weatherstack.
weatherCity: "Adelaide"
# Address of a pre-deployed contract that expects (uint256 Temperature)[] in onReport(...)
consumerAddress: "0x6fc40D2398e917EC1F1beE2EB60Ca0F43dFFC7A2"
# Identifies which chain-writer capability to use
@zeuslawyer
zeuslawyer / binary.wasm.br.b64
Created April 16, 2025 06:24
Compiled workflow WASM binary
This file has been truncated, but you can view the full file.
@zeuslawyer
zeuslawyer / encrypted.secrets.json
Created April 16, 2025 05:57
Encrypted secrets for DON
{
"encryptedSecrets": {
"25639ae1de024fa6f16de92d3c5473e82d3fcb148264dfb88df523d40ac17213": "Rm3yIH/kl637Ifj7fAcQZKlU3jSup2lBD4fZj2ldaB3UjVyN4axpcwS/OdWQu1pyRULBwztQiggsnzQBbfNGs9PUSK1g93UbURGq09iSeAz1a7Zbri5W7oGY2XcnDQIppaf/ITI9lSJNBWyDZ1IIXllyWNBylb6QjK7g8KJSc3LVHvgfKOauFpC17BDNom1FrqvGS2cch+qVXgr8jzEcnzKnaootyozE8iSpcWhfuH5fu782",
"297319a9e75473da28360c7cb217a58e7db533e4cab2df13fef21ebbf8cee4d0": "iI0vF4kY+8fGqFTPmFRe7gXhrO5kStPI/3QIJDgZwQoRukTXqj5zwebxUylm1m9uadbIl7lar9lhMpraw+ERDNd48+r8K+0ICsAkORe7jsO52UP8Yo9t6YHUvAsXc9agrdHZ2IdcTZatKZS/A/Y8lpFSz6+1jF43QR9BduUlhXWJMi/PGgd84JwiaWq+t/AOmMKVk2F2d6YZourb9MmfVfZ4vrDDSULNHhC+guxSfKzLIrH8",
"3d0d92d96a07601ae50f6136f7ff607498d1f2e2c2efe5094b5db3c2e10ace87": "MxFYTXqVWnHxAuBnUX82ujjFUwpErmhfBRmjNJGny2S9Oo52D+g4lA2xl8hkN0pMmXyA0yCgNr1w29S/0I51Jgw18V93ZPQdewCKGUJ97+XbVvWG6h66WIhmbSDSHxsdaoCoQeDh7hcsECn9vugQ93ZYkpGqhlxPQ/1DzgiqX3559hQ8VmQzv4Uoh8XHBjmRcCls4HsG9duHYCQI97W/bKP0nKDTc4Dc9bVaJaU16jzMt4CC",
"45c60e309800f98623395c5745dbec51d89a18ab63a6f
@zeuslawyer
zeuslawyer / config.testnet.yaml
Created March 25, 2025 03:57
Workflow configuration
cronTriggerInterval: 60
dataFeedsCacheContractAddress: 0xb79288ce6a58b7af2230a77f296f6a13b78a0292
feedId: 0x029BFA81517000400000000000000000
endpointTimeoutMilliseconds: 5000
chainWriterCapabilityLabel: [email protected]
cronExpression: "0 */2 * * * *" # Every 2 minutes
myUniqueValue: 1981 # Your custom integer [0..1000]
consumerAddress: "0x9bE25CED8524eaaF1d51b967893F982214161896" # A pre-deployed consumer contract for this example
chainWriterLabel: "[email protected]"
@zeuslawyer
zeuslawyer / binary.wasm.br
Created March 25, 2025 03:57
Compiled workflow WASM binary
This file has been truncated, but you can view the full file.
@zeuslawyer
zeuslawyer / config.staging.yaml
Created March 20, 2025 05:54
Workflow configuration
cronTriggerInterval: 60
dataFeedsCacheContractAddress: 0xb79288ce6a58b7af2230a77f296f6a13b78a0292
feedId: 0x029BFA81517000400000000000000000
endpointTimeoutMilliseconds: 5000
chainWriterCapabilityLabel: [email protected]
cronExpression: "0 */2 * * * *" # Every 2 minutes
myUniqueValue: 1981 # Your custom integer [0..1000]
consumerAddress: "0x9bE25CED8524eaaF1d51b967893F982214161896" # A pre-deployed consumer contract for this example
chainWriterLabel: "[email protected]"
@zeuslawyer
zeuslawyer / binary.wasm.br
Created March 20, 2025 05:54
Compiled workflow WASM binary
This file has been truncated, but you can view the full file.
@zeuslawyer
zeuslawyer / GetGift.Sol
Created February 23, 2025 23:46
GetGift.Sol-EthDenver2025
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
import {FunctionsClient} from "@chainlink/contracts/src/v0.8/functions/v1_0_0/FunctionsClient.sol";
import {FunctionsRequest} from "@chainlink/contracts/src/v0.8/functions/v1_0_0/libraries/FunctionsRequest.sol";
import {ERC721} from "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.9.5/contracts/token/ERC721/ERC721.sol";
import {ERC721URIStorage} from "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.9.5/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
/**
* THIS IS AN EXAMPLE CONTRACT THAT USES HARDCODED VALUES FOR CLARITY.
@zeuslawyer
zeuslawyer / config.staging.yaml
Created February 13, 2025 03:01
Workflow configuration
cronTriggerInterval: 60
dataFeedsCacheContractAddress: 0xb79288ce6a58b7af2230a77f296f6a13b78a0292
feedId: 0x029BFA81517000400000000000000000
endpointTimeoutMilliseconds: 5000
chainWriterCapabilityLabel: [email protected]
@zeuslawyer
zeuslawyer / binary.wasm.br
Created February 13, 2025 03:00
Compiled workflow WASM binary
This file has been truncated, but you can view the full file.