Skip to content

Instantly share code, notes, and snippets.

View ethanfrey's full-sized avatar

Ethan Frey ethanfrey

View GitHub Profile
@ethanfrey
ethanfrey / ibc_reply.rs
Created November 3, 2021 19:56
IBC Reply Error Handling
#[entry_point]
pub fn ibc_packet_receive(
deps: DepsMut,
_env: Env,
msg: IbcPacketReceiveMsg,
) -> Result<IbcReceiveResponse, Never> {
// other parse code here...
let msg = Cw20ExecuteMsg::Transfer {
recipient,
@ethanfrey
ethanfrey / PoE-Contracts.svg
Created January 12, 2022 19:09
PoE Contracts Basic
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ethanfrey
ethanfrey / send_packets.js
Created January 29, 2022 08:48
CW20 IBC transfer
#!/usr/bin/env node
/*jshint esversion: 8 */
/* eslint-disable @typescript-eslint/naming-convention */
const { toBase64, toUtf8 } = require('@cosmjs/encoding');
const axios = require('axios');
const { SigningCosmWasmClient } = require('@cosmjs/cosmwasm-stargate');
const { GasPrice } = require('@cosmjs/stargate');
const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');