Skip to content

Instantly share code, notes, and snippets.

import { SigningStargateClient, StdFee, coin } from "@cosmjs/stargate";
import { chains } from "chain-registry";
import { getOfflineSignerProto } from "cosmjs-utils";
import { cosmwasm } from "osmojs";
import { ExecuteMsg } from "./contracts/WbtcController.types";
const { executeContract } = cosmwasm.wasm.v1.MessageComposer.withTypeUrl;
async function main() {
// get offline signer
#include <cs50.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <limits.h>
int main(int argc, string argv[])
{
if (argc != 2)
{
#include <cs50.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
int count_sentences(string text);
int count_words(string text);
int count_letters(string text);
int main(void)
#include <ctype.h>
#include <cs50.h>
#include <stdio.h>
#include <string.h>
// Points assigned to each letter of the alphabet
int POINTS[] = {1, 3, 3, 2, 1, 4, 2, 4, 1, 8, 5, 1, 3, 1, 1, 3, 10, 1, 1, 1, 1, 4, 4, 8, 4, 10};
int compute_score(string word);
@iboss-ptk
iboss-ptk / credit.c
Last active November 27, 2022 04:10
#include <cs50.h>
#include <stdio.h>
#include <math.h>
long exp10(int exponent);
long get_digit(long cc_num, int pos);
bool has_exact_digit(long cc_num, int digit);
string check_credit_card_number(long cc_num);
int main(void)
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
struct Pool {
id: String,
address: String,
pool_params: osmosis_std::types::osmosis::gamm::v1beta1::PoolParams,
future_pool_governor: String,
pool_assets: Vec<osmosis_std::types::osmosis::gamm::v1beta1::PoolAsset>,
total_shares: osmosis_std::types::cosmos::base::v1beta1::Coin,
total_weight: String,

What is Protostar SDK

CosmWasm is multi-chain smart contract platform building for Cosmos ecosystem. While being powerful as it is, a lot of things needs to be wired manually when developing CosmWasm contracts and dapps. To provide seamless CosmWasm development experience, Protostar is designed to be a swiss-army knife for building custom dev tool for CosmWasm on each specific blockchain.

What is Membrane

Membrane will use Protostar SDK to build development toolset that specializes in developing CosmWasm on Osmosis. Optimize for deeper integration with Osmosis to facilitate building the best dapps that really augment Osmosis, not just any dapps possible; for example:

  • testing/simulation for IBC and Bridges interaction
  • deep integration with LP interaction

Resources

Articles / Videos

Overview

Terrain is a Terra development environment for better smart contract development experience.

Terrain will help:

  • scaffold your dapp project
  • ease the development and deployment process
  • create custom task for blockchain and contract interaction with less boilerplate code
  • using terra.js directly could be cumbersome, Terrain gives you extensions and utilities to help you