diff --git a/scripts/lp-hub/create-alliance.ts b/scripts/lp-hub/create-alliance.ts new file mode 100644 index 0000000..58c8177 --- /dev/null +++ b/scripts/lp-hub/create-alliance.ts @@ -0,0 +1,69 @@ +import * as dotenv from 'dotenv' +import { MnemonicKey, LCDClient, MsgSubmitProposal, Coins, MsgExecuteContract, MsgCreateAlliance } from '@terra-money/feather.js'; +import * as fs from 'fs'; + +dotenv.config() + +const init = async () => { + // Check if the hub contract is deployed + // and with the proper information stored in the file + if (!fs.existsSync('.lp-hub-addr.log') + || fs.readFileSync('.lp-hub-addr.log').toString('utf-8') == "") { + console.log(`Pleae deploy the hub contract first or add it's address to the .lp-hub-addr.log file to run this script`); + return; + } + + // Create the LCD Client to interact with the blockchain + const lcd = LCDClient.fromDefaultConfig("testnet"); + + const govAccountAddr = (await lcd.auth.moduleAccountInfo("pisco-1", "gov"))?.baseAccount?.address; + if (govAccountAddr == undefined) { + console.log(`Something went wrong retreiving the governance account from on-chain`); + return; + } + + // Get all information from the deployer wallet + const mk = new MnemonicKey({ mnemonic: process.env.MNEMONIC }); + const wallet = lcd.wallet(mk); + const accAddress = wallet.key.accAddress("terra"); + + try { + const hubAddress = fs.readFileSync('.lp-hub-addr.log').toString('utf-8'); + + const govProposal = new MsgCreateAlliance( + govAccountAddr, + "factory/" + hubAddress + "/ualliancelp", + "100000000000000", + "0", + "1", + undefined, + { + max: "100000000000000", + min: "100000000000000", + } + ) + + const msgSubmitProposal = new MsgSubmitProposal( + [govProposal as any], + Coins.fromString("512000000uluna"), + accAddress, + "Just whitelisting an alliance", + "Just whitelisting an alliance", + "Just whitelisting an alliance", + ); + + const tx = await wallet.createAndSignTx({ + msgs: [msgSubmitProposal], + memo: "Just whitelisting an alliance", + chainID: "pisco-1", + }); + const result = await lcd.tx.broadcastSync(tx, "pisco-1"); + console.log(`Proposal to whitelist an Alliance + - Tx Hash: ${result.txhash}`); + } + catch (e) { + console.log(e) + return; + } +} +init(); \ No newline at end of file diff --git a/scripts/lp-hub/delegate-alliance.ts b/scripts/lp-hub/delegate-alliance.ts new file mode 100644 index 0000000..0a2effc --- /dev/null +++ b/scripts/lp-hub/delegate-alliance.ts @@ -0,0 +1,59 @@ +import * as dotenv from 'dotenv' +import { MnemonicKey, LCDClient, MsgExecuteContract } from '@terra-money/feather.js'; +import * as fs from 'fs'; + +dotenv.config() + +const init = async () => { + // Check if the hub contract is deployed + // and with the proper information stored in the file + if (!fs.existsSync('.lp-hub-addr.log') + || fs.readFileSync('.lp-hub-addr.log').toString('utf-8') == "") { + console.log(`Pleae deploy the hub contract first or add it's address to the .lp-hub-addr.log file to run this script`); + return; + } + + // Create the LCD Client to interact with the blockchain + const lcd = LCDClient.fromDefaultConfig("testnet"); + + // Get all information from the deployer wallet + const mk = new MnemonicKey({ mnemonic: process.env.MNEMONIC}); + const wallet = lcd.wallet(mk); + const accAddress = wallet.key.accAddress("terra"); + + try { + const hubAddress = fs.readFileSync('.lp-hub-addr.log').toString('utf-8'); + const msgExecute = new MsgExecuteContract( + accAddress, + hubAddress, + { + "alliance_delegate" : { + "delegations": [{ + "validator": "terravaloper1zdpgj8am5nqqvht927k3etljyl6a52kwqndjz2", + "amount": "10000000" + }] + } + }, + ); + + const tx = await wallet.createAndSignTx({ + msgs: [msgExecute], + memo: "Stake to Alliance Module", + chainID: "pisco-1", + }); + const result = await lcd.tx.broadcastSync(tx, "pisco-1"); + console.log(`Stake to Alliance Module submitted on chain + - Tx Hash: ${result.txhash}`); + } + catch (e) { + console.log(e) + return; + } +} + +try { + init(); +} +catch (e) { + console.log(e) +} \ No newline at end of file diff --git a/scripts/lp-hub/instantiate.ts b/scripts/lp-hub/instantiate.ts new file mode 100644 index 0000000..63be891 --- /dev/null +++ b/scripts/lp-hub/instantiate.ts @@ -0,0 +1,49 @@ +import * as dotenv from 'dotenv' +import { MnemonicKey, LCDClient, MsgInstantiateContract, Coins } from '@terra-money/feather.js'; +import fs from "fs"; + +dotenv.config() + +const init = async () => { + // Create the LCD Client to interact with the blockchain + const lcd = LCDClient.fromDefaultConfig("testnet") + + // Get all information from the deployer wallet + const mk = new MnemonicKey({ mnemonic: process.env.MNEMONIC }); + const wallet = lcd.wallet(mk); + const accAddress = wallet.key.accAddress("terra"); + console.log(`Wallet address: ${accAddress}`) + + try { + // Create the message and broadcast the transaction on chain + const tx = await wallet.createAndSignTx({ + msgs: [new MsgInstantiateContract( + accAddress, + accAddress, + 12893, + { + governance: "terra10d07y265gmmuvt4z0w9aw880jnsr700juxf95n", + controller: accAddress, + astro_reward_denom: "terra167dsqkh2alurx997wmycw9ydkyu54gyswe3ygmrs4lwume3vmwks8ruqnv", + astro_incentives_addr: "terra1ujqta8jx4w7z224q0heunfx4rz57e92kkeyrgmry3yz2qf5z3xlsnrk0eq", + alliance_reward_denom: "uluna", + }, + Coins.fromString("10000000uluna"), + "Instantiate Alliance LP Hub Contract", + )], + memo: "Alliance LP Hub", + chainID: "pisco-1", + }); + const result = await lcd.tx.broadcastSync(tx, "pisco-1") + console.log(`Instantiate tx hash ${result.txhash}`); + await new Promise(resolve => setTimeout(resolve, 7000)) + const txResult : any = await lcd.tx.txInfo(result.txhash, "pisco-1"); + const contractAddr = txResult.logs[0].eventsByType?.instantiate._contract_address[0]; + console.log("Contract stored on chain with contractAddr", contractAddr) + fs.writeFileSync(".lp-hub-addr.log", contractAddr); + } + catch (e) { + console.log(e) + } +} +init(); \ No newline at end of file diff --git a/scripts/lp-hub/migrate.ts b/scripts/lp-hub/migrate.ts new file mode 100644 index 0000000..16887da --- /dev/null +++ b/scripts/lp-hub/migrate.ts @@ -0,0 +1,52 @@ +import * as dotenv from 'dotenv' +import { MnemonicKey, LCDClient, MsgMigrateContract } from '@terra-money/feather.js'; +import * as fs from 'fs'; + +dotenv.config() + +const init = async () => { + // Check if the hub contract is deployed + // and with the proper information stored in the file + if (!fs.existsSync('.lp-hub-addr.log') + || fs.readFileSync('.lp-hub-addr.log').toString('utf-8') == "") { + console.log(`Pleae deploy the hub contract first or add it's address to the .lp-hub-addr.log file to run this script`); + return; + } + + // Create the LCD Client to interact with the blockchain + const lcd = LCDClient.fromDefaultConfig("testnet") + + // Get all information from the deployer wallet + const mk = new MnemonicKey({ mnemonic: process.env.MNEMONIC}); + const wallet = lcd.wallet(mk); + const accAddress = wallet.key.accAddress("terra"); + + try { + const hubAddress = fs.readFileSync('.lp-hub-addr.log').toString('utf-8'); + const hubCode = fs.readFileSync('.lp-hub-code-id.log').toString('utf-8'); + + const tx = await wallet.createAndSignTx({ + msgs: [new MsgMigrateContract( + accAddress, + hubAddress, + Number(hubCode), + {} + )], + memo: "Migrate Alliance LP Hub", + chainID: "pisco-1", + }); + const result = await lcd.tx.broadcastSync(tx, "pisco-1"); + console.log(`Migration for Alliance LP Hub submitted on chain ${result.txhash}`); + } + catch (e) { + console.log(e) + return; + } +} + +try { + init(); +} +catch (e) { + console.log(e) +}2 \ No newline at end of file diff --git a/scripts/lp-hub/modify-pairs.ts b/scripts/lp-hub/modify-pairs.ts new file mode 100644 index 0000000..1a6d067 --- /dev/null +++ b/scripts/lp-hub/modify-pairs.ts @@ -0,0 +1,86 @@ +import * as dotenv from 'dotenv' +import { MnemonicKey, LCDClient, MsgSubmitProposal, Coins, MsgExecuteContract } from '@terra-money/feather.js'; +import * as fs from 'fs'; + +dotenv.config() + +const init = async () => { + // Check if the hub contract is deployed + // and with the proper information stored in the file + if (!fs.existsSync('.lp-hub-addr.log') + || fs.readFileSync('.lp-hub-addr.log').toString('utf-8') == "") { + console.log(`Pleae deploy the hub contract first or add it's address to the .lp-hub-addr.log file to run this script`); + return; + } + + // Create the LCD Client to interact with the blockchain + const lcd = LCDClient.fromDefaultConfig("testnet"); + + const govAccountAddr = (await lcd.auth.moduleAccountInfo("pisco-1", "gov"))?.baseAccount?.address; + if (govAccountAddr == undefined) { + console.log(`Something went wrong retreiving the governance account from on-chain`); + return; + } + + // Get all information from the deployer wallet + const mk = new MnemonicKey({ mnemonic: process.env.MNEMONIC }); + const wallet = lcd.wallet(mk); + const accAddress = wallet.key.accAddress("terra"); + + try { + const hubAddress = fs.readFileSync('.lp-hub-addr.log').toString('utf-8'); + + const govProposal = new MsgExecuteContract( + govAccountAddr, + hubAddress, + { + "modify_asset_pairs": [ + { + asset_info: { native: "factory/terra1zdpgj8am5nqqvht927k3etljyl6a52kwqup0je/stDeck" }, + reward_asset_info: { native: "uluna" }, + delete: false + }, { + asset_info: { cw20: "terra15npavsvzqsnphnda67v5jpr2md4fp7gyexeffnv08wp8tlxn88xsjvxkgx" }, // VKR-ULUN-LP + reward_asset_info: { native: "uluna" }, + delete: false + }, { + asset_info: { cw20: "terra15npavsvzqsnphnda67v5jpr2md4fp7gyexeffnv08wp8tlxn88xsjvxkgx" }, // VKR-ULUN-LP + reward_asset_info: { cw20: "terra167dsqkh2alurx997wmycw9ydkyu54gyswe3ygmrs4lwume3vmwks8ruqnv" }, + delete: false + }, { + asset_info: { cw20: "terra1k2gv5ae4pk7ecc04qs9c5yqkw28cl09mqn85447amt5t2slm7uastaxagl" }, // WETH-ULUN-LP + reward_asset_info: { native: "uluna" }, + delete: false + }, { + asset_info: { cw20: "terra1k2gv5ae4pk7ecc04qs9c5yqkw28cl09mqn85447amt5t2slm7uastaxagl" }, // WETH-ULUN-LP + reward_asset_info: { cw20: "terra167dsqkh2alurx997wmycw9ydkyu54gyswe3ygmrs4lwume3vmwks8ruqnv" }, + delete: false + } + ] + } + ) + + const msgSubmitProposal = new MsgSubmitProposal( + [govProposal as any], + Coins.fromString("512000000uluna"), + accAddress, + "Just enabling some random assets in Alliance LP Hub Contract", + "Just enabling some random assets in Alliance LP Hub Contract", + "Just enabling some random assets in Alliance LP Hub Contract", + ); + + const tx = await wallet.createAndSignTx({ + msgs: [msgSubmitProposal], + memo: "Just enabling some random assets in Alliance LP Hub Contract", + chainID: "pisco-1", + }); + const result = await lcd.tx.broadcastSync(tx, "pisco-1"); + console.log(`Proposal to whitelist some random assets in Alliance LP Hub Contract + - Tx Hash: ${result.txhash}`); + } + catch (e) { + console.log(e) + return; + } +} +init(); \ No newline at end of file diff --git a/scripts/lp-hub/stake.ts b/scripts/lp-hub/stake.ts new file mode 100644 index 0000000..e674e0f --- /dev/null +++ b/scripts/lp-hub/stake.ts @@ -0,0 +1,72 @@ +import * as dotenv from 'dotenv' +import { MnemonicKey, LCDClient, MsgExecuteContract, Coins } from '@terra-money/feather.js'; +import * as fs from 'fs'; + +dotenv.config() + +const init = async () => { + // Check if the hub contract is deployed + // and with the proper information stored in the file + if (!fs.existsSync('.lp-hub-addr.log') + || fs.readFileSync('.lp-hub-addr.log').toString('utf-8') == "") { + console.log(`Pleae deploy the hub contract first or add it's address to the .lp-hub-addr.log file to run this script`); + return; + } + + // Create the LCD Client to interact with the blockchain + const lcd = LCDClient.fromDefaultConfig("testnet"); + + // Get all information from the deployer wallet + const mk = new MnemonicKey({ mnemonic: process.env.MNEMONIC }); + const wallet = lcd.wallet(mk); + const accAddress = wallet.key.accAddress("terra"); + + try { + const hubAddress = fs.readFileSync('.lp-hub-addr.log').toString('utf-8'); + + const stakeCoins = new MsgExecuteContract( + accAddress, + hubAddress, + { "stake": {} }, + Coins.fromString("10factory/terra1zdpgj8am5nqqvht927k3etljyl6a52kwqup0je/stDeck") + ); + + const stakeTokens = new MsgExecuteContract( + accAddress, + "terra15npavsvzqsnphnda67v5jpr2md4fp7gyexeffnv08wp8tlxn88xsjvxkgx", + { + "send": { + "contract": hubAddress, + "amount": "10", + "msg": "" + } + } + ); + + const stakeTokens2 = new MsgExecuteContract( + accAddress, + "terra1k2gv5ae4pk7ecc04qs9c5yqkw28cl09mqn85447amt5t2slm7uastaxagl", + { + "send": { + "contract": hubAddress, + "amount": "10", + "msg": "" + } + } + ); + + const tx = await wallet.createAndSignTx({ + msgs: [stakeCoins, stakeTokens, stakeTokens2], + memo: "Just Staking some tokens", + chainID: "pisco-1", + }); + const result = await lcd.tx.broadcastSync(tx, "pisco-1"); + console.log(`Transaction executed successfully with hash: + - Tx Hash: ${result.txhash}`); + } + catch (e) { + console.log(e) + return; + } +} +init(); \ No newline at end of file diff --git a/scripts/lp-hub/store-code.ts b/scripts/lp-hub/store-code.ts new file mode 100644 index 0000000..3c0852f --- /dev/null +++ b/scripts/lp-hub/store-code.ts @@ -0,0 +1,39 @@ +import * as dotenv from 'dotenv' +import { MnemonicKey, MsgStoreCode, LCDClient } from '@terra-money/feather.js'; +import * as fs from 'fs'; + +dotenv.config() + +const init = async () => { + // Create the LCD Client to interact with the blockchain + const lcd = LCDClient.fromDefaultConfig("testnet") + + // Get all information from the deployer wallet + const mk = new MnemonicKey({ mnemonic: process.env.MNEMONIC }); + const wallet = lcd.wallet(mk); + const accAddress = wallet.key.accAddress("terra"); + console.log(`Wallet address: ${accAddress}`) + + try { + + // Create the message and broadcast the transaction on chain + let tx = await wallet.createAndSignTx({ + msgs: [new MsgStoreCode( + accAddress, + fs.readFileSync('./artifacts/alliance_lp_hub.wasm').toString('base64') + )], + memo: "Alliance LP Hub Contracts", + chainID: "pisco-1", + }); + let result = await lcd.tx.broadcastSync(tx, "pisco-1") + await new Promise(resolve => setTimeout(resolve, 7000)) + const txResult : any = await lcd.tx.txInfo(result.txhash, "pisco-1"); + const codeId = txResult.logs[0].events[1].attributes[1].value; + console.log("Contract stored on chain with CodeId", codeId) + fs.writeFileSync(".lp-hub-code-id.log", codeId); + } + catch (e) { + console.log(e) + } +}; +init(); \ No newline at end of file diff --git a/scripts/lp-hub/update-rewards.ts b/scripts/lp-hub/update-rewards.ts new file mode 100644 index 0000000..64051a2 --- /dev/null +++ b/scripts/lp-hub/update-rewards.ts @@ -0,0 +1,47 @@ +import * as dotenv from 'dotenv' +import { MnemonicKey, LCDClient, MsgExecuteContract, Coins } from '@terra-money/feather.js'; +import * as fs from 'fs'; + +dotenv.config() + +const init = async () => { + // Check if the hub contract is deployed + // and with the proper information stored in the file + if (!fs.existsSync('.lp-hub-addr.log') + || fs.readFileSync('.lp-hub-addr.log').toString('utf-8') == "") { + console.log(`Pleae deploy the hub contract first or add it's address to the .lp-hub-addr.log file to run this script`); + return; + } + + // Create the LCD Client to interact with the blockchain + const lcd = LCDClient.fromDefaultConfig("testnet"); + + // Get all information from the deployer wallet + const mk = new MnemonicKey({ mnemonic: process.env.MNEMONIC }); + const wallet = lcd.wallet(mk); + const accAddress = wallet.key.accAddress("terra"); + + try { + const hubAddress = fs.readFileSync('.lp-hub-addr.log').toString('utf-8'); + + const updateRewards = new MsgExecuteContract( + accAddress, + hubAddress, + { "update_rewards": {} } + ); + + const tx = await wallet.createAndSignTx({ + msgs: [updateRewards], + memo: "Updating rewards", + chainID: "pisco-1", + }); + const result = await lcd.tx.broadcastSync(tx, "pisco-1"); + console.log(`Transaction executed successfully with hash: + - Tx Hash: ${result.txhash}`); + } + catch (e) { + console.log(e) + return; + } +} +init(); \ No newline at end of file diff --git a/scripts/package-lock.json b/scripts/package-lock.json index a937d9d..eb72abb 100644 --- a/scripts/package-lock.json +++ b/scripts/package-lock.json @@ -5,7 +5,7 @@ "packages": { "": { "dependencies": { - "@terra-money/feather.js": "2.0.0-beta.7", + "@terra-money/feather.js": "^2.0.2", "dotenv": "^16.1.4", "ts-node": "^10.9.1" } @@ -20,678 +20,6 @@ "node": ">=12" } }, - "node_modules/@ethersproject/abi": { - "version": "5.7.0", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "dependencies": { - "@ethersproject/address": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/constants": "^5.7.0", - "@ethersproject/hash": "^5.7.0", - "@ethersproject/keccak256": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/strings": "^5.7.0" - } - }, - "node_modules/@ethersproject/abstract-provider": { - "version": "5.7.0", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "dependencies": { - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/networks": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/transactions": "^5.7.0", - "@ethersproject/web": "^5.7.0" - } - }, - "node_modules/@ethersproject/abstract-signer": { - "version": "5.7.0", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "dependencies": { - "@ethersproject/abstract-provider": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0" - } - }, - "node_modules/@ethersproject/address": { - "version": "5.7.0", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "dependencies": { - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/keccak256": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/rlp": "^5.7.0" - } - }, - "node_modules/@ethersproject/base64": { - "version": "5.7.0", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "dependencies": { - "@ethersproject/bytes": "^5.7.0" - } - }, - "node_modules/@ethersproject/basex": { - "version": "5.7.0", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "dependencies": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/properties": "^5.7.0" - } - }, - "node_modules/@ethersproject/bignumber": { - "version": "5.7.0", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "dependencies": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "bn.js": "^5.2.1" - } - }, - "node_modules/@ethersproject/bignumber/node_modules/bn.js": { - "version": "5.2.1", - "license": "MIT" - }, - "node_modules/@ethersproject/bytes": { - "version": "5.7.0", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "dependencies": { - "@ethersproject/logger": "^5.7.0" - } - }, - "node_modules/@ethersproject/constants": { - "version": "5.7.0", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "dependencies": { - "@ethersproject/bignumber": "^5.7.0" - } - }, - "node_modules/@ethersproject/contracts": { - "version": "5.7.0", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "dependencies": { - "@ethersproject/abi": "^5.7.0", - "@ethersproject/abstract-provider": "^5.7.0", - "@ethersproject/abstract-signer": "^5.7.0", - "@ethersproject/address": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/constants": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/transactions": "^5.7.0" - } - }, - "node_modules/@ethersproject/hash": { - "version": "5.7.0", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "dependencies": { - "@ethersproject/abstract-signer": "^5.7.0", - "@ethersproject/address": "^5.7.0", - "@ethersproject/base64": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/keccak256": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/strings": "^5.7.0" - } - }, - "node_modules/@ethersproject/hdnode": { - "version": "5.7.0", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "dependencies": { - "@ethersproject/abstract-signer": "^5.7.0", - "@ethersproject/basex": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/pbkdf2": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/sha2": "^5.7.0", - "@ethersproject/signing-key": "^5.7.0", - "@ethersproject/strings": "^5.7.0", - "@ethersproject/transactions": "^5.7.0", - "@ethersproject/wordlists": "^5.7.0" - } - }, - "node_modules/@ethersproject/json-wallets": { - "version": "5.7.0", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "dependencies": { - "@ethersproject/abstract-signer": "^5.7.0", - "@ethersproject/address": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/hdnode": "^5.7.0", - "@ethersproject/keccak256": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/pbkdf2": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/random": "^5.7.0", - "@ethersproject/strings": "^5.7.0", - "@ethersproject/transactions": "^5.7.0", - "aes-js": "3.0.0", - "scrypt-js": "3.0.1" - } - }, - "node_modules/@ethersproject/keccak256": { - "version": "5.7.0", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "dependencies": { - "@ethersproject/bytes": "^5.7.0", - "js-sha3": "0.8.0" - } - }, - "node_modules/@ethersproject/logger": { - "version": "5.7.0", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT" - }, - "node_modules/@ethersproject/networks": { - "version": "5.7.1", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "dependencies": { - "@ethersproject/logger": "^5.7.0" - } - }, - "node_modules/@ethersproject/pbkdf2": { - "version": "5.7.0", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "dependencies": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/sha2": "^5.7.0" - } - }, - "node_modules/@ethersproject/properties": { - "version": "5.7.0", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "dependencies": { - "@ethersproject/logger": "^5.7.0" - } - }, - "node_modules/@ethersproject/providers": { - "version": "5.7.2", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "dependencies": { - "@ethersproject/abstract-provider": "^5.7.0", - "@ethersproject/abstract-signer": "^5.7.0", - "@ethersproject/address": "^5.7.0", - "@ethersproject/base64": "^5.7.0", - "@ethersproject/basex": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/constants": "^5.7.0", - "@ethersproject/hash": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/networks": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/random": "^5.7.0", - "@ethersproject/rlp": "^5.7.0", - "@ethersproject/sha2": "^5.7.0", - "@ethersproject/strings": "^5.7.0", - "@ethersproject/transactions": "^5.7.0", - "@ethersproject/web": "^5.7.0", - "bech32": "1.1.4", - "ws": "7.4.6" - } - }, - "node_modules/@ethersproject/providers/node_modules/bech32": { - "version": "1.1.4", - "license": "MIT" - }, - "node_modules/@ethersproject/providers/node_modules/ws": { - "version": "7.4.6", - "license": "MIT", - "engines": { - "node": ">=8.3.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/@ethersproject/random": { - "version": "5.7.0", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "dependencies": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0" - } - }, - "node_modules/@ethersproject/rlp": { - "version": "5.7.0", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "dependencies": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0" - } - }, - "node_modules/@ethersproject/sha2": { - "version": "5.7.0", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "dependencies": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "hash.js": "1.1.7" - } - }, - "node_modules/@ethersproject/signing-key": { - "version": "5.7.0", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "dependencies": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "bn.js": "^5.2.1", - "elliptic": "6.5.4", - "hash.js": "1.1.7" - } - }, - "node_modules/@ethersproject/signing-key/node_modules/bn.js": { - "version": "5.2.1", - "license": "MIT" - }, - "node_modules/@ethersproject/solidity": { - "version": "5.7.0", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "dependencies": { - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/keccak256": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/sha2": "^5.7.0", - "@ethersproject/strings": "^5.7.0" - } - }, - "node_modules/@ethersproject/strings": { - "version": "5.7.0", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "dependencies": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/constants": "^5.7.0", - "@ethersproject/logger": "^5.7.0" - } - }, - "node_modules/@ethersproject/transactions": { - "version": "5.7.0", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "dependencies": { - "@ethersproject/address": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/constants": "^5.7.0", - "@ethersproject/keccak256": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/rlp": "^5.7.0", - "@ethersproject/signing-key": "^5.7.0" - } - }, - "node_modules/@ethersproject/units": { - "version": "5.7.0", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "dependencies": { - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/constants": "^5.7.0", - "@ethersproject/logger": "^5.7.0" - } - }, - "node_modules/@ethersproject/wallet": { - "version": "5.7.0", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "dependencies": { - "@ethersproject/abstract-provider": "^5.7.0", - "@ethersproject/abstract-signer": "^5.7.0", - "@ethersproject/address": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/hash": "^5.7.0", - "@ethersproject/hdnode": "^5.7.0", - "@ethersproject/json-wallets": "^5.7.0", - "@ethersproject/keccak256": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/random": "^5.7.0", - "@ethersproject/signing-key": "^5.7.0", - "@ethersproject/transactions": "^5.7.0", - "@ethersproject/wordlists": "^5.7.0" - } - }, - "node_modules/@ethersproject/web": { - "version": "5.7.1", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "dependencies": { - "@ethersproject/base64": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/strings": "^5.7.0" - } - }, - "node_modules/@ethersproject/wordlists": { - "version": "5.7.0", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "dependencies": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/hash": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/strings": "^5.7.0" - } - }, "node_modules/@improbable-eng/grpc-web": { "version": "0.14.1", "license": "Apache-2.0", @@ -776,11 +104,10 @@ "license": "BSD-3-Clause" }, "node_modules/@terra-money/feather.js": { - "version": "2.0.0-beta.7", - "resolved": "https://registry.npmjs.org/@terra-money/feather.js/-/feather.js-2.0.0-beta.7.tgz", - "integrity": "sha512-j7AS6D+1nAA9Jgn6W4/R5xnG5tWHrYxRWE0UQPD6WJk8DwXzdLS8EQx0OgCV9rWJd34NN3+wiIig+YDVcWCx6w==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@terra-money/feather.js/-/feather.js-2.0.3.tgz", + "integrity": "sha512-zrQEEJCm2vGSJmROUazadxVgX9eDrekO53nKjLAohxKlixBO8K7KVhfQg+jq//UiYxa5b3uqPCJ8CQ9fu5NPXA==", "dependencies": { - "@ethersproject/bytes": "^5.7.0", "@terra-money/legacy.proto": "npm:@terra-money/terra.proto@^0.1.7", "@terra-money/terra.proto": "^4.0.4", "assert": "^2.0.0", @@ -791,7 +118,6 @@ "bufferutil": "^4.0.3", "crypto-browserify": "^3.12.0", "decimal.js": "^10.2.1", - "ethers": "^5.7.2", "jscrypto": "^1.0.1", "keccak256": "^1.0.6", "long": "^5.2.3", @@ -871,10 +197,6 @@ "node": ">=0.4.0" } }, - "node_modules/aes-js": { - "version": "3.0.0", - "license": "MIT" - }, "node_modules/arg": { "version": "4.1.3", "license": "MIT" @@ -1297,52 +619,6 @@ "minimalistic-crypto-utils": "^1.0.1" } }, - "node_modules/ethers": { - "version": "5.7.2", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "dependencies": { - "@ethersproject/abi": "5.7.0", - "@ethersproject/abstract-provider": "5.7.0", - "@ethersproject/abstract-signer": "5.7.0", - "@ethersproject/address": "5.7.0", - "@ethersproject/base64": "5.7.0", - "@ethersproject/basex": "5.7.0", - "@ethersproject/bignumber": "5.7.0", - "@ethersproject/bytes": "5.7.0", - "@ethersproject/constants": "5.7.0", - "@ethersproject/contracts": "5.7.0", - "@ethersproject/hash": "5.7.0", - "@ethersproject/hdnode": "5.7.0", - "@ethersproject/json-wallets": "5.7.0", - "@ethersproject/keccak256": "5.7.0", - "@ethersproject/logger": "5.7.0", - "@ethersproject/networks": "5.7.1", - "@ethersproject/pbkdf2": "5.7.0", - "@ethersproject/properties": "5.7.0", - "@ethersproject/providers": "5.7.2", - "@ethersproject/random": "5.7.0", - "@ethersproject/rlp": "5.7.0", - "@ethersproject/sha2": "5.7.0", - "@ethersproject/signing-key": "5.7.0", - "@ethersproject/solidity": "5.7.0", - "@ethersproject/strings": "5.7.0", - "@ethersproject/transactions": "5.7.0", - "@ethersproject/units": "5.7.0", - "@ethersproject/wallet": "5.7.0", - "@ethersproject/web": "5.7.1", - "@ethersproject/wordlists": "5.7.0" - } - }, "node_modules/evp_bytestokey": { "version": "1.0.3", "license": "MIT", @@ -1624,10 +900,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/js-sha3": { - "version": "0.8.0", - "license": "MIT" - }, "node_modules/jscrypto": { "version": "1.0.3", "license": "MIT", @@ -1927,10 +1199,6 @@ "version": "2.1.2", "license": "MIT" }, - "node_modules/scrypt-js": { - "version": "3.0.1", - "license": "MIT" - }, "node_modules/secp256k1": { "version": "4.0.3", "hasInstallScript": true, @@ -2149,336 +1417,6 @@ "@jridgewell/trace-mapping": "0.3.9" } }, - "@ethersproject/abi": { - "version": "5.7.0", - "requires": { - "@ethersproject/address": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/constants": "^5.7.0", - "@ethersproject/hash": "^5.7.0", - "@ethersproject/keccak256": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/strings": "^5.7.0" - } - }, - "@ethersproject/abstract-provider": { - "version": "5.7.0", - "requires": { - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/networks": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/transactions": "^5.7.0", - "@ethersproject/web": "^5.7.0" - } - }, - "@ethersproject/abstract-signer": { - "version": "5.7.0", - "requires": { - "@ethersproject/abstract-provider": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0" - } - }, - "@ethersproject/address": { - "version": "5.7.0", - "requires": { - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/keccak256": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/rlp": "^5.7.0" - } - }, - "@ethersproject/base64": { - "version": "5.7.0", - "requires": { - "@ethersproject/bytes": "^5.7.0" - } - }, - "@ethersproject/basex": { - "version": "5.7.0", - "requires": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/properties": "^5.7.0" - } - }, - "@ethersproject/bignumber": { - "version": "5.7.0", - "requires": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "bn.js": "^5.2.1" - }, - "dependencies": { - "bn.js": { - "version": "5.2.1" - } - } - }, - "@ethersproject/bytes": { - "version": "5.7.0", - "requires": { - "@ethersproject/logger": "^5.7.0" - } - }, - "@ethersproject/constants": { - "version": "5.7.0", - "requires": { - "@ethersproject/bignumber": "^5.7.0" - } - }, - "@ethersproject/contracts": { - "version": "5.7.0", - "requires": { - "@ethersproject/abi": "^5.7.0", - "@ethersproject/abstract-provider": "^5.7.0", - "@ethersproject/abstract-signer": "^5.7.0", - "@ethersproject/address": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/constants": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/transactions": "^5.7.0" - } - }, - "@ethersproject/hash": { - "version": "5.7.0", - "requires": { - "@ethersproject/abstract-signer": "^5.7.0", - "@ethersproject/address": "^5.7.0", - "@ethersproject/base64": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/keccak256": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/strings": "^5.7.0" - } - }, - "@ethersproject/hdnode": { - "version": "5.7.0", - "requires": { - "@ethersproject/abstract-signer": "^5.7.0", - "@ethersproject/basex": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/pbkdf2": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/sha2": "^5.7.0", - "@ethersproject/signing-key": "^5.7.0", - "@ethersproject/strings": "^5.7.0", - "@ethersproject/transactions": "^5.7.0", - "@ethersproject/wordlists": "^5.7.0" - } - }, - "@ethersproject/json-wallets": { - "version": "5.7.0", - "requires": { - "@ethersproject/abstract-signer": "^5.7.0", - "@ethersproject/address": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/hdnode": "^5.7.0", - "@ethersproject/keccak256": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/pbkdf2": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/random": "^5.7.0", - "@ethersproject/strings": "^5.7.0", - "@ethersproject/transactions": "^5.7.0", - "aes-js": "3.0.0", - "scrypt-js": "3.0.1" - } - }, - "@ethersproject/keccak256": { - "version": "5.7.0", - "requires": { - "@ethersproject/bytes": "^5.7.0", - "js-sha3": "0.8.0" - } - }, - "@ethersproject/logger": { - "version": "5.7.0" - }, - "@ethersproject/networks": { - "version": "5.7.1", - "requires": { - "@ethersproject/logger": "^5.7.0" - } - }, - "@ethersproject/pbkdf2": { - "version": "5.7.0", - "requires": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/sha2": "^5.7.0" - } - }, - "@ethersproject/properties": { - "version": "5.7.0", - "requires": { - "@ethersproject/logger": "^5.7.0" - } - }, - "@ethersproject/providers": { - "version": "5.7.2", - "requires": { - "@ethersproject/abstract-provider": "^5.7.0", - "@ethersproject/abstract-signer": "^5.7.0", - "@ethersproject/address": "^5.7.0", - "@ethersproject/base64": "^5.7.0", - "@ethersproject/basex": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/constants": "^5.7.0", - "@ethersproject/hash": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/networks": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/random": "^5.7.0", - "@ethersproject/rlp": "^5.7.0", - "@ethersproject/sha2": "^5.7.0", - "@ethersproject/strings": "^5.7.0", - "@ethersproject/transactions": "^5.7.0", - "@ethersproject/web": "^5.7.0", - "bech32": "1.1.4", - "ws": "7.4.6" - }, - "dependencies": { - "bech32": { - "version": "1.1.4" - }, - "ws": { - "version": "7.4.6", - "requires": {} - } - } - }, - "@ethersproject/random": { - "version": "5.7.0", - "requires": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0" - } - }, - "@ethersproject/rlp": { - "version": "5.7.0", - "requires": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0" - } - }, - "@ethersproject/sha2": { - "version": "5.7.0", - "requires": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "hash.js": "1.1.7" - } - }, - "@ethersproject/signing-key": { - "version": "5.7.0", - "requires": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "bn.js": "^5.2.1", - "elliptic": "6.5.4", - "hash.js": "1.1.7" - }, - "dependencies": { - "bn.js": { - "version": "5.2.1" - } - } - }, - "@ethersproject/solidity": { - "version": "5.7.0", - "requires": { - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/keccak256": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/sha2": "^5.7.0", - "@ethersproject/strings": "^5.7.0" - } - }, - "@ethersproject/strings": { - "version": "5.7.0", - "requires": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/constants": "^5.7.0", - "@ethersproject/logger": "^5.7.0" - } - }, - "@ethersproject/transactions": { - "version": "5.7.0", - "requires": { - "@ethersproject/address": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/constants": "^5.7.0", - "@ethersproject/keccak256": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/rlp": "^5.7.0", - "@ethersproject/signing-key": "^5.7.0" - } - }, - "@ethersproject/units": { - "version": "5.7.0", - "requires": { - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/constants": "^5.7.0", - "@ethersproject/logger": "^5.7.0" - } - }, - "@ethersproject/wallet": { - "version": "5.7.0", - "requires": { - "@ethersproject/abstract-provider": "^5.7.0", - "@ethersproject/abstract-signer": "^5.7.0", - "@ethersproject/address": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/hash": "^5.7.0", - "@ethersproject/hdnode": "^5.7.0", - "@ethersproject/json-wallets": "^5.7.0", - "@ethersproject/keccak256": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/random": "^5.7.0", - "@ethersproject/signing-key": "^5.7.0", - "@ethersproject/transactions": "^5.7.0", - "@ethersproject/wordlists": "^5.7.0" - } - }, - "@ethersproject/web": { - "version": "5.7.1", - "requires": { - "@ethersproject/base64": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/strings": "^5.7.0" - } - }, - "@ethersproject/wordlists": { - "version": "5.7.0", - "requires": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/hash": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/strings": "^5.7.0" - } - }, "@improbable-eng/grpc-web": { "version": "0.14.1", "requires": { @@ -2536,11 +1474,10 @@ "version": "1.1.0" }, "@terra-money/feather.js": { - "version": "2.0.0-beta.7", - "resolved": "https://registry.npmjs.org/@terra-money/feather.js/-/feather.js-2.0.0-beta.7.tgz", - "integrity": "sha512-j7AS6D+1nAA9Jgn6W4/R5xnG5tWHrYxRWE0UQPD6WJk8DwXzdLS8EQx0OgCV9rWJd34NN3+wiIig+YDVcWCx6w==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@terra-money/feather.js/-/feather.js-2.0.3.tgz", + "integrity": "sha512-zrQEEJCm2vGSJmROUazadxVgX9eDrekO53nKjLAohxKlixBO8K7KVhfQg+jq//UiYxa5b3uqPCJ8CQ9fu5NPXA==", "requires": { - "@ethersproject/bytes": "^5.7.0", "@terra-money/legacy.proto": "npm:@terra-money/terra.proto@^0.1.7", "@terra-money/terra.proto": "^4.0.4", "assert": "^2.0.0", @@ -2551,7 +1488,6 @@ "bufferutil": "^4.0.3", "crypto-browserify": "^3.12.0", "decimal.js": "^10.2.1", - "ethers": "^5.7.2", "jscrypto": "^1.0.1", "keccak256": "^1.0.6", "long": "^5.2.3", @@ -2609,9 +1545,6 @@ "acorn-walk": { "version": "8.2.0" }, - "aes-js": { - "version": "3.0.0" - }, "arg": { "version": "4.1.3" }, @@ -2917,41 +1850,6 @@ "minimalistic-crypto-utils": "^1.0.1" } }, - "ethers": { - "version": "5.7.2", - "requires": { - "@ethersproject/abi": "5.7.0", - "@ethersproject/abstract-provider": "5.7.0", - "@ethersproject/abstract-signer": "5.7.0", - "@ethersproject/address": "5.7.0", - "@ethersproject/base64": "5.7.0", - "@ethersproject/basex": "5.7.0", - "@ethersproject/bignumber": "5.7.0", - "@ethersproject/bytes": "5.7.0", - "@ethersproject/constants": "5.7.0", - "@ethersproject/contracts": "5.7.0", - "@ethersproject/hash": "5.7.0", - "@ethersproject/hdnode": "5.7.0", - "@ethersproject/json-wallets": "5.7.0", - "@ethersproject/keccak256": "5.7.0", - "@ethersproject/logger": "5.7.0", - "@ethersproject/networks": "5.7.1", - "@ethersproject/pbkdf2": "5.7.0", - "@ethersproject/properties": "5.7.0", - "@ethersproject/providers": "5.7.2", - "@ethersproject/random": "5.7.0", - "@ethersproject/rlp": "5.7.0", - "@ethersproject/sha2": "5.7.0", - "@ethersproject/signing-key": "5.7.0", - "@ethersproject/solidity": "5.7.0", - "@ethersproject/strings": "5.7.0", - "@ethersproject/transactions": "5.7.0", - "@ethersproject/units": "5.7.0", - "@ethersproject/wallet": "5.7.0", - "@ethersproject/web": "5.7.1", - "@ethersproject/wordlists": "5.7.0" - } - }, "evp_bytestokey": { "version": "1.0.3", "requires": { @@ -3103,9 +2001,6 @@ "which-typed-array": "^1.1.11" } }, - "js-sha3": { - "version": "0.8.0" - }, "jscrypto": { "version": "1.0.3" }, @@ -3303,9 +2198,6 @@ "safer-buffer": { "version": "2.1.2" }, - "scrypt-js": { - "version": "3.0.1" - }, "secp256k1": { "version": "4.0.3", "requires": { diff --git a/scripts/package.json b/scripts/package.json index d6d93d3..08fc647 100644 --- a/scripts/package.json +++ b/scripts/package.json @@ -1,6 +1,24 @@ { + "name": "alliance-contract-scripts", + "private": false, + "scripts": { + "protocol:store" : "ts-node protocol/store-code.ts", + "protocol:migrate" : "ts-node protocol/migrate-contracts.ts", + "protocol:whitelist" : "ts-node protocol/whitelist.ts", + "protocol:delegate" : "ts-node protocol/delegate-alliance-asset.ts", + "protocol:feeshare" : "ts-node protocol/feeshare.ts", + + "lp-hub:store" : "ts-node lp-hub/store-code.ts", + "lp-hub:instantiate" : "ts-node lp-hub/instantiate.ts", + "lp-hub:modify-pairs" : "ts-node lp-hub/modify-pairs.ts", + "lp-hub:create-alliance": "ts-node lp-hub/create-alliance.ts", + "lp-hub:stake": "ts-node lp-hub/stake.ts", + "lp-hub:migrate": "ts-node lp-hub/migrate.ts", + "lp-hub:delegate-alliance": "ts-node lp-hub/delegate-alliance.ts", + "lp-hub:update-rewards": "ts-node lp-hub/update-rewards.ts" + }, "dependencies": { - "@terra-money/feather.js": "2.0.0-beta.7", + "@terra-money/feather.js": "^2.0.2", "dotenv": "^16.1.4", "ts-node": "^10.9.1" } diff --git a/scripts/execute-alliance-delegate-asset.ts b/scripts/protocol/delegate-alliance-asset.ts similarity index 92% rename from scripts/execute-alliance-delegate-asset.ts rename to scripts/protocol/delegate-alliance-asset.ts index 768074c..eb7df55 100644 --- a/scripts/execute-alliance-delegate-asset.ts +++ b/scripts/protocol/delegate-alliance-asset.ts @@ -1,5 +1,5 @@ import * as dotenv from 'dotenv' -import { MnemonicKey, LCDClient, MsgExecuteContract, ExecuteContractProposal, MsgSubmitProposal, Coins } from '@terra-money/feather.js'; +import { MnemonicKey, LCDClient, MsgExecuteContract } from '@terra-money/feather.js'; import * as fs from 'fs'; dotenv.config() diff --git a/scripts/register-feeshare.ts b/scripts/protocol/feeshare.ts similarity index 92% rename from scripts/register-feeshare.ts rename to scripts/protocol/feeshare.ts index 0720a4e..d6d397e 100644 --- a/scripts/register-feeshare.ts +++ b/scripts/protocol/feeshare.ts @@ -1,5 +1,5 @@ import * as dotenv from 'dotenv' -import { MnemonicKey, LCDClient, MsgRegisterFeeShare, MsgUpdateFeeShare } from '@terra-money/feather.js'; +import { MnemonicKey, LCDClient, MsgUpdateFeeShare } from '@terra-money/feather.js'; import * as fs from 'fs'; dotenv.config() diff --git a/scripts/execute-migrate-contracts.ts b/scripts/protocol/migrate-contracts.ts similarity index 100% rename from scripts/execute-migrate-contracts.ts rename to scripts/protocol/migrate-contracts.ts diff --git a/scripts/store-code.ts b/scripts/protocol/store-code.ts similarity index 100% rename from scripts/store-code.ts rename to scripts/protocol/store-code.ts diff --git a/scripts/execute-proposal-whitelist-assets.ts b/scripts/protocol/whitelist.ts similarity index 92% rename from scripts/execute-proposal-whitelist-assets.ts rename to scripts/protocol/whitelist.ts index 527b38c..31d9511 100644 --- a/scripts/execute-proposal-whitelist-assets.ts +++ b/scripts/protocol/whitelist.ts @@ -1,5 +1,5 @@ import * as dotenv from 'dotenv' -import { MnemonicKey, LCDClient, ExecuteContractProposal, MsgSubmitProposal, Coins } from '@terra-money/feather.js'; +import { MnemonicKey, LCDClient, MsgSubmitProposal, Coins, ExecuteContractProposal } from '@terra-money/feather.js'; import * as fs from 'fs'; dotenv.config() @@ -55,9 +55,12 @@ const init = async () => { ) const msgSubmitProposal = new MsgSubmitProposal( - govProposal, + [govProposal], Coins.fromString("512000000uluna"), - accAddress + accAddress, + "", + "", + "", ); const tx = await wallet.createAndSignTx({