Skip to content

Instantly share code, notes, and snippets.

View ahermida's full-sized avatar

Albert Hermida ahermida

View GitHub Profile
// SPDX-License-Identifier: UNLICENSED
// This is an interface for interacting with the Receiver contract from Switchboard's Pull Model
pragma solidity ^0.8.9;
// Struct representing a result for a feed and interval
struct Result {
int256 value; // The value of the feed result
uint256 timestamp; // The timestamp of the result
uint256 updatedAt; // The timestamp when the result was last updated
@ahermida
ahermida / txix
Created September 21, 2022 18:39
{
"keys": [
{
"pubkey": "L57ecexSPaXqZ3ubfMrjjyWJnCo5ByiSd8hfiTSvXyV",
"isSigner": false,
"isWritable": true
},
{
"pubkey": "4upkSuPTUWJ7uk6TxzmAoqRbW2t1vPrUD7RWkYVNYMWz",
"isSigner": true,
@ahermida
ahermida / txix
Created September 21, 2022 18:39
One chunk
{
"keys": [
{
"pubkey": "L57ecexSPaXqZ3ubfMrjjyWJnCo5ByiSd8hfiTSvXyV",
"isSigner": false,
"isWritable": true
},
{
"pubkey": "4upkSuPTUWJ7uk6TxzmAoqRbW2t1vPrUD7RWkYVNYMWz",
"isSigner": true,
@ahermida
ahermida / job
Created September 21, 2022 16:26
Will fetch a value from on-chain and put it back on-chain!
{
"tasks": [
{
"httpTask": {
"url": "https://fullnode.testnet.aptoslabs.com/v1/accounts/0x790e386260446eeea471da8050103df2b1cbb884a8a120478e04b8c9ff253f2/resource/0xb27f7bbf7caf2368b08032d005e8beab151a885054cdca55c4cc644f0a308d2b::aggregator::Aggregator",
"method": "METHOD_GET"
}
},
{
"jsonParseTask": {
@ahermida
ahermida / genesis.blob
Created September 19, 2022 00:53
genesis
Ä%aclfl°Î  
0:@6v^‘ Ùàá
è ïí
ß
 
 

 

 aclerrorvectorACLaddassert_containscontainsemptyremovelistinvalid_argumentindex_ofaptos::metadata_v0sECONTAIN%The ACL already contains the address. ENOT_CONTAIN%The ACL does not contain the address.
import { Client } from '@elastic/elasticsearch';
import { posts } from 'aleph-js';
import * as fs from 'fs';
const client = new Client({ node: 'http://localhost:9200' });
// Track what has been posted to aleph (by id)
const saved = JSON.parse(fs.readFileSync('~/saved.json', 'utf-8'));
async function run() {

Keybase proof

I hereby claim:

  • I am ahermida on github.
  • I am herm (https://keybase.io/herm) on keybase.
  • I have a public key ASDAZ0ENeYAqRlCZL84HcO6m7eOHZ9LHvyh3q6IWsb7PdAo

To claim this, I am signing this object: