-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
solana: add docker for generating governance instructions
- Loading branch information
Showing
5 changed files
with
149 additions
and
8 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
import "./side-effects"; | ||
export * from "./ntt"; | ||
export * from "./quoter"; | ||
export * from "./quoter"; |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// <sigh> | ||
// when the native secp256k1 is missing, the eccrypto library decides TO PRINT A MESSAGE TO STDOUT: | ||
// https://github.com/bitchan/eccrypto/blob/a4f4a5f85ef5aa1776dfa1b7801cad808264a19c/index.js#L23 | ||
// | ||
// do you use a CLI tool that depends on that library and try to pipe the output | ||
// of the tool into another? tough luck | ||
// | ||
// for lack of a better way to stop this, we patch the console.info function to | ||
// drop that particular message... | ||
// </sigh> | ||
const info = console.info; | ||
console.info = function (x: string) { | ||
if (x !== "secp256k1 unavailable, reverting to browser version") { | ||
info(x); | ||
} | ||
}; | ||
|
||
const warn = console.warn; | ||
console.warn = function (x: string) { | ||
if ( | ||
x !== | ||
"bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?)" | ||
) { | ||
warn(x); | ||
} | ||
}; |
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