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
0. Upgrade node to resease 1.0.0 Using docs: | |
https://github.com/public-awesome/mainnet/tree/main/stargaze-1 | |
1. setup cosmovisor | |
cd ~ | |
git clone https://github.com/cosmos/cosmos-sdk | |
cd cosmos-sdk | |
git checkout v0.42.7 |
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
// NOTE: This is now rolled up in a package and supports more scenarios: https://github.com/dsherret/using-statement | |
interface IDisposable { | |
dispose(); | |
} | |
function using<T extends IDisposable>(resource: T, func: (resource: T) => void) { | |
try { | |
func(resource); | |
} finally { |