Skip to content

Instantly share code, notes, and snippets.

@webmaster128
webmaster128 / TOUR_COMSJS_STARGATE.md
Last active March 10, 2025 03:18
CosmJS + Stargate – A guided tour

Support for Cosmos SDK Stargate in CosmJS has been ongoing work for several months now. Stargate is released and CosmJS is here to connect to it.

Starting points

Let's explore what is new for Stargate support:

@CatTail
CatTail / genschema.js
Last active August 29, 2015 13:57
Handy script to auto generate mongoose schema from existing data
var prefix = Math.random();
function parse(obj) {
var key, value, type, schema;
type = obj.constructor.name;
switch (type) {
case 'Object':
schema = {};
for (key in obj) {
value = parseKey(key, obj);
if (value !== undefined) schema[key] = value;