1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- import { BaseClient } from './BaseClient'
- import { MsgExecute } from '@initia/initia.js'
- export abstract class JennieModule extends BaseClient {
- constructor(mnemonic: string) {
- super(mnemonic)
- }
- async drawFood() {
- const msg = new MsgExecute(
- this.key.accAddress,
- '0x9065fda28f52bb14ade545411f02e8e07a9cb4ba',
- 'jennie',
- 'draw_food',
- [],
- ['AQ=='],
- )
- await this.broadcast(msg)
- }
- async feedJennie() {
- const msg = new MsgExecute(
- this.key.accAddress,
- '0x9065fda28f52bb14ade545411f02e8e07a9cb4ba',
- 'jennie',
- 'feed_jennie',
- [],
- ['AQ=='],
- )
- await this.broadcast(msg)
- }
- async mintJennie() {
- const msg = new MsgExecute(
- this.key.accAddress,
- '0x9065fda28f52bb14ade545411f02e8e07a9cb4ba',
- 'jennie',
- 'mint_jennie',
- [],
- [],
- )
- await this.broadcast(msg)
- }
- }
|