- Beaker's guideline*
- play along with the example would be the quickest way to get started with cosmwasm
- can use Beaker for the rest of the excercise
- cosmwasm book*
- very helpful, especially explanation in the actor model section
- terra academy: cosmwasm (video / excercise) *
- not a comprehensive course, but good starting point, some part might be outdated but the idea persist
- wasmd
- wasmvm spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { SigningCosmWasmClient } from "@cosmjs/cosmwasm-stargate"; | |
const rpcURL = "https://rpc.osmosis.zone:443"; | |
const contractAddress = | |
"osmo1em6xs47hd82806f5cxgyufguxrrc7l0aqx7nzzptjuqgswczk8csavdxek"; | |
const client = await SigningCosmWasmClient.connect(rpcURL); | |
type Limiter = [[string, string], { static_limiter: { upper_limit: string } }]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cs50.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <ctype.h> | |
#include <limits.h> | |
int main(int argc, string argv[]) | |
{ | |
if (argc != 2) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[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, |
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.
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
- Finematics (youtube channel about many import aspect of DeFi)
- Whiteboard Crypto (similar to finematics but includes broader aspects)
- Binanace Academy (good list of basics and jargons)
- Original Bitcoin Whitepaper (short and sweet good starting point to understand the root but more technical)
- DeFi Product Management (we are not really defi ourselves but gives good idea of where the industry is going)
- Paradigm bleeding edge stuffs
- a16z crypto playlist many good overviews of the industry
NewerOlder