Skip to content

Commit

Permalink
validate genesis on rewards module
Browse files Browse the repository at this point in the history
  • Loading branch information
faneaatiku committed Mar 26, 2024
1 parent 4859465 commit 5bb41b7
Show file tree
Hide file tree
Showing 4 changed files with 158 additions and 95 deletions.
64 changes: 32 additions & 32 deletions vue/src/store/generated/bze.tokenfactory.v1/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,42 +165,42 @@ export default {
},


async sendMsgMint({ rootGetters }, { value, fee = [], memo = '' }) {
async sendMsgBurn({ rootGetters }, { value, fee = [], memo = '' }) {
try {
const client=await initClient(rootGetters)
const result = await client.BzeTokenfactoryV1.tx.sendMsgMint({ value, fee: {amount: fee, gas: "200000"}, memo })
const result = await client.BzeTokenfactoryV1.tx.sendMsgBurn({ value, fee: {amount: fee, gas: "200000"}, memo })
return result
} catch (e) {
if (e == MissingWalletError) {
throw new Error('TxClient:MsgMint:Init Could not initialize signing client. Wallet is required.')
throw new Error('TxClient:MsgBurn:Init Could not initialize signing client. Wallet is required.')
}else{
throw new Error('TxClient:MsgMint:Send Could not broadcast Tx: '+ e.message)
throw new Error('TxClient:MsgBurn:Send Could not broadcast Tx: '+ e.message)
}
}
},
async sendMsgBurn({ rootGetters }, { value, fee = [], memo = '' }) {
async sendMsgChangeAdmin({ rootGetters }, { value, fee = [], memo = '' }) {
try {
const client=await initClient(rootGetters)
const result = await client.BzeTokenfactoryV1.tx.sendMsgBurn({ value, fee: {amount: fee, gas: "200000"}, memo })
const result = await client.BzeTokenfactoryV1.tx.sendMsgChangeAdmin({ value, fee: {amount: fee, gas: "200000"}, memo })
return result
} catch (e) {
if (e == MissingWalletError) {
throw new Error('TxClient:MsgBurn:Init Could not initialize signing client. Wallet is required.')
throw new Error('TxClient:MsgChangeAdmin:Init Could not initialize signing client. Wallet is required.')
}else{
throw new Error('TxClient:MsgBurn:Send Could not broadcast Tx: '+ e.message)
throw new Error('TxClient:MsgChangeAdmin:Send Could not broadcast Tx: '+ e.message)
}
}
},
async sendMsgSetDenomMetadata({ rootGetters }, { value, fee = [], memo = '' }) {
async sendMsgMint({ rootGetters }, { value, fee = [], memo = '' }) {
try {
const client=await initClient(rootGetters)
const result = await client.BzeTokenfactoryV1.tx.sendMsgSetDenomMetadata({ value, fee: {amount: fee, gas: "200000"}, memo })
const result = await client.BzeTokenfactoryV1.tx.sendMsgMint({ value, fee: {amount: fee, gas: "200000"}, memo })
return result
} catch (e) {
if (e == MissingWalletError) {
throw new Error('TxClient:MsgSetDenomMetadata:Init Could not initialize signing client. Wallet is required.')
throw new Error('TxClient:MsgMint:Init Could not initialize signing client. Wallet is required.')
}else{
throw new Error('TxClient:MsgSetDenomMetadata:Send Could not broadcast Tx: '+ e.message)
throw new Error('TxClient:MsgMint:Send Could not broadcast Tx: '+ e.message)
}
}
},
Expand All @@ -217,56 +217,56 @@ export default {
}
}
},
async sendMsgChangeAdmin({ rootGetters }, { value, fee = [], memo = '' }) {
async sendMsgSetDenomMetadata({ rootGetters }, { value, fee = [], memo = '' }) {
try {
const client=await initClient(rootGetters)
const result = await client.BzeTokenfactoryV1.tx.sendMsgChangeAdmin({ value, fee: {amount: fee, gas: "200000"}, memo })
const result = await client.BzeTokenfactoryV1.tx.sendMsgSetDenomMetadata({ value, fee: {amount: fee, gas: "200000"}, memo })
return result
} catch (e) {
if (e == MissingWalletError) {
throw new Error('TxClient:MsgChangeAdmin:Init Could not initialize signing client. Wallet is required.')
throw new Error('TxClient:MsgSetDenomMetadata:Init Could not initialize signing client. Wallet is required.')
}else{
throw new Error('TxClient:MsgChangeAdmin:Send Could not broadcast Tx: '+ e.message)
throw new Error('TxClient:MsgSetDenomMetadata:Send Could not broadcast Tx: '+ e.message)
}
}
},

async MsgMint({ rootGetters }, { value }) {
async MsgBurn({ rootGetters }, { value }) {
try {
const client=initClient(rootGetters)
const msg = await client.BzeTokenfactoryV1.tx.msgMint({value})
const msg = await client.BzeTokenfactoryV1.tx.msgBurn({value})
return msg
} catch (e) {
if (e == MissingWalletError) {
throw new Error('TxClient:MsgMint:Init Could not initialize signing client. Wallet is required.')
throw new Error('TxClient:MsgBurn:Init Could not initialize signing client. Wallet is required.')
} else{
throw new Error('TxClient:MsgMint:Create Could not create message: ' + e.message)
throw new Error('TxClient:MsgBurn:Create Could not create message: ' + e.message)
}
}
},
async MsgBurn({ rootGetters }, { value }) {
async MsgChangeAdmin({ rootGetters }, { value }) {
try {
const client=initClient(rootGetters)
const msg = await client.BzeTokenfactoryV1.tx.msgBurn({value})
const msg = await client.BzeTokenfactoryV1.tx.msgChangeAdmin({value})
return msg
} catch (e) {
if (e == MissingWalletError) {
throw new Error('TxClient:MsgBurn:Init Could not initialize signing client. Wallet is required.')
throw new Error('TxClient:MsgChangeAdmin:Init Could not initialize signing client. Wallet is required.')
} else{
throw new Error('TxClient:MsgBurn:Create Could not create message: ' + e.message)
throw new Error('TxClient:MsgChangeAdmin:Create Could not create message: ' + e.message)
}
}
},
async MsgSetDenomMetadata({ rootGetters }, { value }) {
async MsgMint({ rootGetters }, { value }) {
try {
const client=initClient(rootGetters)
const msg = await client.BzeTokenfactoryV1.tx.msgSetDenomMetadata({value})
const msg = await client.BzeTokenfactoryV1.tx.msgMint({value})
return msg
} catch (e) {
if (e == MissingWalletError) {
throw new Error('TxClient:MsgSetDenomMetadata:Init Could not initialize signing client. Wallet is required.')
throw new Error('TxClient:MsgMint:Init Could not initialize signing client. Wallet is required.')
} else{
throw new Error('TxClient:MsgSetDenomMetadata:Create Could not create message: ' + e.message)
throw new Error('TxClient:MsgMint:Create Could not create message: ' + e.message)
}
}
},
Expand All @@ -283,16 +283,16 @@ export default {
}
}
},
async MsgChangeAdmin({ rootGetters }, { value }) {
async MsgSetDenomMetadata({ rootGetters }, { value }) {
try {
const client=initClient(rootGetters)
const msg = await client.BzeTokenfactoryV1.tx.msgChangeAdmin({value})
const msg = await client.BzeTokenfactoryV1.tx.msgSetDenomMetadata({value})
return msg
} catch (e) {
if (e == MissingWalletError) {
throw new Error('TxClient:MsgChangeAdmin:Init Could not initialize signing client. Wallet is required.')
throw new Error('TxClient:MsgSetDenomMetadata:Init Could not initialize signing client. Wallet is required.')
} else{
throw new Error('TxClient:MsgChangeAdmin:Create Could not create message: ' + e.message)
throw new Error('TxClient:MsgSetDenomMetadata:Create Could not create message: ' + e.message)
}
}
},
Expand Down
32 changes: 16 additions & 16 deletions vue/src/store/generated/bze.tradebin.v1/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,29 +383,29 @@ export default {
},


async sendMsgCreateMarket({ rootGetters }, { value, fee = [], memo = '' }) {
async sendMsgCreateOrder({ rootGetters }, { value, fee = [], memo = '' }) {
try {
const client=await initClient(rootGetters)
const result = await client.BzeTradebinV1.tx.sendMsgCreateMarket({ value, fee: {amount: fee, gas: "200000"}, memo })
const result = await client.BzeTradebinV1.tx.sendMsgCreateOrder({ value, fee: {amount: fee, gas: "200000"}, memo })
return result
} catch (e) {
if (e == MissingWalletError) {
throw new Error('TxClient:MsgCreateMarket:Init Could not initialize signing client. Wallet is required.')
throw new Error('TxClient:MsgCreateOrder:Init Could not initialize signing client. Wallet is required.')
}else{
throw new Error('TxClient:MsgCreateMarket:Send Could not broadcast Tx: '+ e.message)
throw new Error('TxClient:MsgCreateOrder:Send Could not broadcast Tx: '+ e.message)
}
}
},
async sendMsgCreateOrder({ rootGetters }, { value, fee = [], memo = '' }) {
async sendMsgCreateMarket({ rootGetters }, { value, fee = [], memo = '' }) {
try {
const client=await initClient(rootGetters)
const result = await client.BzeTradebinV1.tx.sendMsgCreateOrder({ value, fee: {amount: fee, gas: "200000"}, memo })
const result = await client.BzeTradebinV1.tx.sendMsgCreateMarket({ value, fee: {amount: fee, gas: "200000"}, memo })
return result
} catch (e) {
if (e == MissingWalletError) {
throw new Error('TxClient:MsgCreateOrder:Init Could not initialize signing client. Wallet is required.')
throw new Error('TxClient:MsgCreateMarket:Init Could not initialize signing client. Wallet is required.')
}else{
throw new Error('TxClient:MsgCreateOrder:Send Could not broadcast Tx: '+ e.message)
throw new Error('TxClient:MsgCreateMarket:Send Could not broadcast Tx: '+ e.message)
}
}
},
Expand All @@ -423,29 +423,29 @@ export default {
}
},

async MsgCreateMarket({ rootGetters }, { value }) {
async MsgCreateOrder({ rootGetters }, { value }) {
try {
const client=initClient(rootGetters)
const msg = await client.BzeTradebinV1.tx.msgCreateMarket({value})
const msg = await client.BzeTradebinV1.tx.msgCreateOrder({value})
return msg
} catch (e) {
if (e == MissingWalletError) {
throw new Error('TxClient:MsgCreateMarket:Init Could not initialize signing client. Wallet is required.')
throw new Error('TxClient:MsgCreateOrder:Init Could not initialize signing client. Wallet is required.')
} else{
throw new Error('TxClient:MsgCreateMarket:Create Could not create message: ' + e.message)
throw new Error('TxClient:MsgCreateOrder:Create Could not create message: ' + e.message)
}
}
},
async MsgCreateOrder({ rootGetters }, { value }) {
async MsgCreateMarket({ rootGetters }, { value }) {
try {
const client=initClient(rootGetters)
const msg = await client.BzeTradebinV1.tx.msgCreateOrder({value})
const msg = await client.BzeTradebinV1.tx.msgCreateMarket({value})
return msg
} catch (e) {
if (e == MissingWalletError) {
throw new Error('TxClient:MsgCreateOrder:Init Could not initialize signing client. Wallet is required.')
throw new Error('TxClient:MsgCreateMarket:Init Could not initialize signing client. Wallet is required.')
} else{
throw new Error('TxClient:MsgCreateOrder:Create Could not create message: ' + e.message)
throw new Error('TxClient:MsgCreateMarket:Create Could not create message: ' + e.message)
}
}
},
Expand Down

0 comments on commit 5bb41b7

Please sign in to comment.