Skip to content

Instantly share code, notes, and snippets.

0x0 = "Lamport balance below rent-exempt threshold"
0x1 = "Insufficient funds"
0x2 = "Invalid Mint"
0x3 = "Account not associated with this Mint"
0x4 = "Owner does not match"
0x5 = "Fixed supply"
0x6 = "Already in use"
0x7 = "Invalid number of provided signers"
0x8 = "Invalid number of required signers"

0x9 = "State is uninitialized"

@alexroan
alexroan / bytesSwap.sol
Created October 23, 2020 15:23
bytesSwap.sol
pragma solidity ^0.7.0;
library bytesSwap {
function bytes32ToString(bytes32 _bytes32) public pure returns (string memory) {
uint8 i = 0;
while(i < 32 && _bytes32[i] != 0) {
i++;
}
bytes memory bytesArray = new bytes(i);
@jim380
jim380 / cosmos_dashboard.json
Created December 20, 2018 11:18
Cosmos monitoring dashboard built on Grafana
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active March 18, 2026 19:31
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example