UNPKG

@cosmology/ast

Version:
54 lines (53 loc) 1.88 kB
"use strict"; var _index = require("./index"); var _case = require("case"); var _utils = require("@cosmology/utils"); var _testUtils = require("../../../../test-utils"); var store = (0, _testUtils.getTestProtoStore)(); store.traverseAll(); describe('osmosis/gamm/v1beta1/tx', function () { var _prepareContext = (0, _testUtils.prepareContext)(store, 'osmosis/gamm/v1beta1/tx.proto'), context = _prepareContext.context, protos = _prepareContext.protos; it('Interfaces', function () { context.options.aminoEncoding.casingFn = _utils.camel; (0, _testUtils.expectCode)((0, _index.makeAminoTypeInterface)({ context: context, proto: protos.find(function (p) { return p.name === 'MsgJoinPool'; }) })); }); }); describe('cosmos/staking/v1beta1/tx', function () { var _prepareContext2 = (0, _testUtils.prepareContext)(store, 'cosmos/staking/v1beta1/tx.proto'), context = _prepareContext2.context, protos = _prepareContext2.protos; it('MsgCreateValidator', function () { context.options.aminoEncoding.casingFn = _case.snake; (0, _testUtils.expectCode)((0, _index.makeAminoTypeInterface)({ context: context, proto: protos.find(function (p) { return p.name === 'MsgCreateValidator'; }) })); }); it('MsgEditValidator', function () { context.options.aminoEncoding.casingFn = _case.snake; (0, _testUtils.expectCode)((0, _index.makeAminoTypeInterface)({ context: context, proto: protos.find(function (p) { return p.name === 'MsgEditValidator'; }) })); }); it('MsgUndelegate', function () { context.options.aminoEncoding.casingFn = _case.snake; (0, _testUtils.expectCode)((0, _index.makeAminoTypeInterface)({ context: context, proto: protos.find(function (p) { return p.name === 'MsgUndelegate'; }) })); }); });