mirror of
https://github.com/BiPhan4/DefiHackathon-2022.git
synced 2025-04-02 10:41:42 -04:00
10 lines
376 B
JavaScript
10 lines
376 B
JavaScript
const { task, terrajs } = require("@iboss/terrain");
|
|
|
|
// terrajs is basically re-exported terra.js (https://terra-money.github.io/terra.js/)
|
|
|
|
task(async ({ wallets, refs, config, client }) => {
|
|
console.log("creating new key");
|
|
const key = terrajs.MnemonicKey();
|
|
console.log("private key", key.privateKey.toString("base64"));
|
|
console.log("mnemonic", key.mnemonic);
|
|
});
|