Theese instructions are to replace the data directory on pruning nodes that had corrupted dbs.
- ~150GB of available space
| module github.com/kava-labs/kava-testnet-scripts/kava-9/terra-snapshots | |
| go 1.18 | |
| require ( | |
| github.com/cosmos/cosmos-sdk v0.44.5 | |
| github.com/kava-labs/kava v0.16.1 | |
| github.com/tendermint/tendermint v0.34.15 | |
| ) |
| [global] | |
| log_level = 'info' | |
| [mode] | |
| [mode.clients] | |
| enabled = true | |
| refresh = true | |
| misbehaviour = false |
| package main | |
| import ( | |
| "errors" | |
| "fmt" | |
| "github.com/cosmos/cosmos-sdk/codec" | |
| sdk "github.com/cosmos/cosmos-sdk/types" | |
| auctiontypes "github.com/kava-labs/kava/x/auction/types" | |
| cdptypes "github.com/kava-labs/kava/x/cdp/types" |
| TxHash=40E10C7CF56A738C0B8AD4EE30EA8008C7B2334B3ADA195083F8CB18BD3911A0 Gas=729000 FeePerGas=0.11134106816568039 Signature=6386A3893BEB6A5A64E0677F406634E791DEE78D49CF30581AE5281D4094E495E671647EF5E7FD2D207AB8EBA0EA693703E9C368402731BE99E81BDB748EA662 | |
| TxHash=4B2B252899DC689106C8FCEA3E24E4AFFC597D2B4E701F99EB8CD909217D323F Gas=834000 FeePerGas=0.27503931836911927 Signature=88B520FC81B8F8D1FD7B1F42B38481426CB5CE7C27F4A03F51C4A4710A0DC5FA3127E3DE20A818555CE74470A3420E39F65FE7D5053FBBC7C2151A3F22081A5B | |
| TxHash=F75F133F149FDA7DEB391B2446C5196E7C704F45456E69312C310C72893F5B6A Gas=303000 FeePerGas=0.13954792852514392 Signature=E7CF053A8E21351EFE0C52869AFDDD79BF57E92AE918C38ECA8744FD640B1D8D7FF40DF296C2280C71FA78BF5F2A72E33D17C279D30CEAFC7F205521D2B96678 | |
| TxHash=16633D0A25ECA886F100A34BA5C43366732836E6E7B140159298C71CF78309F9 Gas=179000 FeePerGas=0.6767094874229113 Signature=0B27A09EFFD07C035152EE4431066F2418735F4BAEB290E9F099EA0967133F471C10C21E86E8F28B674E2CB67E4A489BB46B7BCA44D8C670928CCF8A3567D443 |
| func (k Keeper) DecrementBorrowedCoins(ctx sdk.Context, coins sdk.Coins) error { | |
| borrowedCoins, found := k.GetBorrowedCoins(ctx) | |
| if !found { | |
| return sdkerrors.Wrapf(types.ErrBorrowedCoinsNotFound, "cannot repay coins if no coins are currently borrowed") | |
| } | |
| updatedBorrowedCoins := sdk.NewCoins() | |
| for _, coin := range coins { | |
| // If amount is greater than total borrowed amount due to rounding, set total borrowed amount to 0 | |
| // by skipping the coin such that it's not included in the updatedBorrowedCoins object |
| const { BncClient, crypto } = require('@binance-chain/javascript-sdk'); | |
| (async () => { | |
| // Start Binance Chain client | |
| const bnbClient = await new BncClient('http://localhost:8080'); | |
| bnbClient.chooseNetwork('mainnet'); | |
| const privateKey = crypto.getPrivateKeyFromMnemonic( | |
| 'village fiscal december liquid better drink disorder unusual tent ivory cage diesel bike slab tilt spray wife neck oak science beef upper chapter blade' | |
| ); | |
| await bnbClient.setPrivateKey(privateKey); |
| parameter (pair mutez signature); | |
| storage | |
| (pair :storage | |
| (or :status %status (unit %Open) (unit %Closed)) | |
| (pair (key %signingKey) (pair (key %sender2) (key %recipient)))); | |
| code { DUP ; | |
| DIP { CDR @storage_slash_1 } ; | |
| CAR @action_slash_2 ; | |
| DUP @action ; | |
| DUP ; |
| sudo rm -rf /usr/local/go | |
| wget https://dl.google.com/go/go1.11.2.linux-amd64.tar.gz | |
| sudo tar -C /usr/local -xzf go1.11.2.linux-amd64.tar.gz | |
| cd $GOPATH/src/github.com/lightningnetwork/lnd | |
| git pull | |
| make clean && make && make install | |
| lncli stop | |
| lncli unlock |
| import * as Benchmarkify from "benchmarkify"; | |
| import Web3 = require("web3"); | |
| import { | |
| instantiateSecp256k1, | |
| Secp256k1, | |
| RecoverableSignature | |
| } from "bitcoin-ts"; | |
| import EthCrypto from 'eth-crypto'; | |
| import { keccak256 } from "js-sha3"; | |
| import secp256k1 = require("secp256k1"); |