Socket
Socket
Sign inDemoInstall

@terra-money/terra.js

Package Overview
Dependencies
111
Maintainers
10
Versions
230
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.1.4 to 3.1.5

dist/core/vesting/index.d.ts

8

dist/client/lcd/api/FeeGrantAPI.d.ts

@@ -18,2 +18,10 @@ import { AccAddress } from '../../../core';

allowance(granter: AccAddress, grantee: AccAddress): Promise<Allowance>;
allowancesByGranter(granter: AccAddress, params?: Partial<PaginationOptions>): Promise<{
allowances: {
granter: AccAddress;
grantee: AccAddress;
allowance: Allowance;
}[];
pagination: Pagination;
}>;
}

@@ -90,2 +90,22 @@ "use strict";

};
FeeGrantAPI.prototype.allowancesByGranter = function (granter, params) {
if (params === void 0) { params = {}; }
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
if (this.lcd.config.isClassic) {
throw new Error('Not supported for the network');
}
return [2 /*return*/, this.c
.get("/cosmos/feegrant/v1beta1/issued/".concat(granter), params)
.then(function (d) { return ({
allowances: d.allowances.map(function (allowance) { return ({
granter: allowance.granter,
grantee: allowance.grantee,
allowance: allowances_1.Allowance.fromData(allowance.allowance),
}); }),
pagination: d.pagination,
}); })];
});
});
};
return FeeGrantAPI;

@@ -92,0 +112,0 @@ }(BaseAPI_1.BaseAPI));

4

dist/core/auth/BaseAccount.d.ts

@@ -32,4 +32,4 @@ import { PublicKey } from '../PublicKey';

static fromProto(baseAccountProto: BaseAccount.Proto, _?: boolean): BaseAccount;
packAny(_?: boolean): Any;
static unpackAny(pubkeyAny: Any, _?: boolean): BaseAccount;
packAny(isClassic?: boolean): Any;
static unpackAny(pubkeyAny: Any, isClassic?: boolean): BaseAccount;
}

@@ -36,0 +36,0 @@ export declare namespace BaseAccount {

@@ -127,12 +127,10 @@ "use strict";

};
BaseAccount.prototype.packAny = function (_) {
_;
BaseAccount.prototype.packAny = function (isClassic) {
return any_1.Any.fromPartial({
typeUrl: '/cosmos.auth.v1beta1.BaseAccount',
value: auth_1.BaseAccount.encode(this.toProto()).finish(),
value: auth_1.BaseAccount.encode(this.toProto(isClassic)).finish(),
});
};
BaseAccount.unpackAny = function (pubkeyAny, _) {
_;
return BaseAccount.fromProto(auth_1.BaseAccount.decode(pubkeyAny.value));
BaseAccount.unpackAny = function (pubkeyAny, isClassic) {
return BaseAccount.fromProto(auth_1.BaseAccount.decode(pubkeyAny.value), isClassic);
};

@@ -139,0 +137,0 @@ return BaseAccount;

@@ -148,3 +148,3 @@ "use strict";

typeUrl: '/cosmos.vesting.v1beta1.ContinuousVestingAccount',
value: vesting_1.ContinuousVestingAccount.encode(this.toProto()).finish(),
value: vesting_1.ContinuousVestingAccount.encode(this.toProto(isClassic)).finish(),
});

@@ -156,3 +156,3 @@ };

}
return ContinuousVestingAccount.fromProto(vesting_1.ContinuousVestingAccount.decode(pubkeyAny.value));
return ContinuousVestingAccount.fromProto(vesting_1.ContinuousVestingAccount.decode(pubkeyAny.value), isClassic);
};

@@ -159,0 +159,0 @@ return ContinuousVestingAccount;

@@ -120,3 +120,3 @@ "use strict";

typeUrl: '/cosmos.vesting.v1beta1.DelayedVestingAccount',
value: vesting_1.DelayedVestingAccount.encode(this.toProto()).finish(),
value: vesting_1.DelayedVestingAccount.encode(this.toProto(isClassic)).finish(),
});

@@ -128,3 +128,3 @@ };

}
return DelayedVestingAccount.fromProto(vesting_1.DelayedVestingAccount.decode(pubkeyAny.value));
return DelayedVestingAccount.fromProto(vesting_1.DelayedVestingAccount.decode(pubkeyAny.value), isClassic);
};

@@ -131,0 +131,0 @@ return DelayedVestingAccount;

@@ -29,4 +29,4 @@ import { Denom } from '../Denom';

static fromProto(lazyGradedVestingAccountProto: LazyGradedVestingAccount.Proto, _?: boolean): LazyGradedVestingAccount;
packAny(_?: boolean): Any;
static unpackAny(pubkeyAny: Any, _?: boolean): LazyGradedVestingAccount;
packAny(isClassic?: boolean): Any;
static unpackAny(pubkeyAny: Any, isClassic?: boolean): LazyGradedVestingAccount;
}

@@ -33,0 +33,0 @@ export declare namespace LazyGradedVestingAccount {

@@ -137,12 +137,10 @@ "use strict";

};
LazyGradedVestingAccount.prototype.packAny = function (_) {
_;
LazyGradedVestingAccount.prototype.packAny = function (isClassic) {
return any_1.Any.fromPartial({
typeUrl: '/terra.vesting.v1beta1.LazyGradedVestingAccount',
value: vesting_1.LazyGradedVestingAccount.encode(this.toProto()).finish(),
value: vesting_1.LazyGradedVestingAccount.encode(this.toProto(isClassic)).finish(),
});
};
LazyGradedVestingAccount.unpackAny = function (pubkeyAny, _) {
_;
return LazyGradedVestingAccount.fromProto(vesting_1.LazyGradedVestingAccount.decode(pubkeyAny.value));
LazyGradedVestingAccount.unpackAny = function (pubkeyAny, isClassic) {
return LazyGradedVestingAccount.fromProto(vesting_1.LazyGradedVestingAccount.decode(pubkeyAny.value), isClassic);
};

@@ -149,0 +147,0 @@ return LazyGradedVestingAccount;

@@ -156,3 +156,3 @@ "use strict";

typeUrl: '/cosmos.vesting.v1beta1.PeriodicVestingAccount',
value: vesting_1.PeriodicVestingAccount.encode(this.toProto()).finish(),
value: vesting_1.PeriodicVestingAccount.encode(this.toProto(isClassic)).finish(),
});

@@ -164,3 +164,3 @@ };

}
return PeriodicVestingAccount.fromProto(vesting_1.PeriodicVestingAccount.decode(pubkeyAny.value));
return PeriodicVestingAccount.fromProto(vesting_1.PeriodicVestingAccount.decode(pubkeyAny.value), isClassic);
};

@@ -167,0 +167,0 @@ return PeriodicVestingAccount;

@@ -13,4 +13,4 @@ import { JSONSerializable } from '../../../util/json';

toProto(_?: boolean): GenericAuthorization.Proto;
packAny(_?: boolean): Any;
static unpackAny(msgAny: Any, _?: boolean): GenericAuthorization;
packAny(isClassic?: boolean): Any;
static unpackAny(msgAny: Any, isClassic?: boolean): GenericAuthorization;
}

@@ -17,0 +17,0 @@ export declare namespace GenericAuthorization {

@@ -66,12 +66,10 @@ "use strict";

};
GenericAuthorization.prototype.packAny = function (_) {
_;
GenericAuthorization.prototype.packAny = function (isClassic) {
return any_1.Any.fromPartial({
typeUrl: '/cosmos.authz.v1beta1.GenericAuthorization',
value: authz_1.GenericAuthorization.encode(this.toProto()).finish(),
value: authz_1.GenericAuthorization.encode(this.toProto(isClassic)).finish(),
});
};
GenericAuthorization.unpackAny = function (msgAny, _) {
_;
return GenericAuthorization.fromProto(authz_1.GenericAuthorization.decode(msgAny.value));
GenericAuthorization.unpackAny = function (msgAny, isClassic) {
return GenericAuthorization.fromProto(authz_1.GenericAuthorization.decode(msgAny.value), isClassic);
};

@@ -78,0 +76,0 @@ return GenericAuthorization;

@@ -14,4 +14,4 @@ import { JSONSerializable } from '../../../util/json';

toProto(_?: boolean): SendAuthorization.Proto;
packAny(_?: boolean): Any;
static unpackAny(msgAny: Any, _?: boolean): SendAuthorization;
packAny(isClassic?: boolean): Any;
static unpackAny(msgAny: Any, isClassic?: boolean): SendAuthorization;
}

@@ -18,0 +18,0 @@ export declare namespace SendAuthorization {

@@ -67,12 +67,10 @@ "use strict";

};
SendAuthorization.prototype.packAny = function (_) {
_;
SendAuthorization.prototype.packAny = function (isClassic) {
return any_1.Any.fromPartial({
typeUrl: '/cosmos.bank.v1beta1.SendAuthorization',
value: authz_1.SendAuthorization.encode(this.toProto()).finish(),
value: authz_1.SendAuthorization.encode(this.toProto(isClassic)).finish(),
});
};
SendAuthorization.unpackAny = function (msgAny, _) {
_;
return SendAuthorization.fromProto(authz_1.SendAuthorization.decode(msgAny.value));
SendAuthorization.unpackAny = function (msgAny, isClassic) {
return SendAuthorization.fromProto(authz_1.SendAuthorization.decode(msgAny.value), isClassic);
};

@@ -79,0 +77,0 @@ return SendAuthorization;

@@ -61,4 +61,4 @@ import { JSONSerializable } from '../../../util/json';

toProto(_?: boolean): MsgMultiSend.Proto;
packAny(_?: boolean): Any;
static unpackAny(msgAny: Any, _?: boolean): MsgMultiSend;
packAny(isClassic?: boolean): Any;
static unpackAny(msgAny: Any, isClassic?: boolean): MsgMultiSend;
}

@@ -65,0 +65,0 @@ export declare namespace MsgMultiSend {

@@ -119,12 +119,10 @@ "use strict";

};
MsgMultiSend.prototype.packAny = function (_) {
_;
MsgMultiSend.prototype.packAny = function (isClassic) {
return any_1.Any.fromPartial({
typeUrl: '/cosmos.bank.v1beta1.MsgMultiSend',
value: tx_1.MsgMultiSend.encode(this.toProto()).finish(),
value: tx_1.MsgMultiSend.encode(this.toProto(isClassic)).finish(),
});
};
MsgMultiSend.unpackAny = function (msgAny, _) {
_;
return MsgMultiSend.fromProto(tx_1.MsgMultiSend.decode(msgAny.value));
MsgMultiSend.unpackAny = function (msgAny, isClassic) {
return MsgMultiSend.fromProto(tx_1.MsgMultiSend.decode(msgAny.value), isClassic);
};

@@ -131,0 +129,0 @@ return MsgMultiSend;

@@ -28,4 +28,4 @@ import { Coins } from '../../Coins';

toProto(_?: boolean): MsgSend.Proto;
packAny(_?: boolean): Any;
static unpackAny(msgAny: Any, _?: boolean): MsgSend;
packAny(isClassic?: boolean): Any;
static unpackAny(msgAny: Any, isClassic?: boolean): MsgSend;
}

@@ -32,0 +32,0 @@ export declare namespace MsgSend {

@@ -86,12 +86,10 @@ "use strict";

};
MsgSend.prototype.packAny = function (_) {
_;
MsgSend.prototype.packAny = function (isClassic) {
return any_1.Any.fromPartial({
typeUrl: '/cosmos.bank.v1beta1.MsgSend',
value: tx_1.MsgSend.encode(this.toProto()).finish(),
value: tx_1.MsgSend.encode(this.toProto(isClassic)).finish(),
});
};
MsgSend.unpackAny = function (msgAny, _) {
_;
return MsgSend.fromProto(tx_1.MsgSend.decode(msgAny.value));
MsgSend.unpackAny = function (msgAny, isClassic) {
return MsgSend.fromProto(tx_1.MsgSend.decode(msgAny.value), isClassic);
};

@@ -98,0 +96,0 @@ return MsgSend;

@@ -24,4 +24,4 @@ import { JSONSerializable } from '../../util/json';

toProto(_?: boolean): MsgVerifyInvariant.Proto;
packAny(_?: boolean): Any;
static unpackAny(msgAny: Any, _?: boolean): MsgVerifyInvariant;
packAny(isClassic?: boolean): Any;
static unpackAny(msgAny: Any, isClassic?: boolean): MsgVerifyInvariant;
}

@@ -28,0 +28,0 @@ export declare namespace MsgVerifyInvariant {

@@ -72,12 +72,10 @@ "use strict";

};
MsgVerifyInvariant.prototype.packAny = function (_) {
_;
MsgVerifyInvariant.prototype.packAny = function (isClassic) {
return any_1.Any.fromPartial({
typeUrl: '/cosmos.crisis.v1beta1.MsgVerifyInvariant',
value: tx_1.MsgVerifyInvariant.encode(this.toProto()).finish(),
value: tx_1.MsgVerifyInvariant.encode(this.toProto(isClassic)).finish(),
});
};
MsgVerifyInvariant.unpackAny = function (msgAny, _) {
_;
return MsgVerifyInvariant.fromProto(tx_1.MsgVerifyInvariant.decode(msgAny.value));
MsgVerifyInvariant.unpackAny = function (msgAny, isClassic) {
return MsgVerifyInvariant.fromProto(tx_1.MsgVerifyInvariant.decode(msgAny.value), isClassic);
};

@@ -84,0 +82,0 @@ return MsgVerifyInvariant;

@@ -20,4 +20,4 @@ import { JSONSerializable } from '../../../util/json';

toProto(_?: boolean): MsgFundCommunityPool.Proto;
packAny(_?: boolean): Any;
static unpackAny(msgAny: Any, _?: boolean): MsgFundCommunityPool;
packAny(isClassic?: boolean): Any;
static unpackAny(msgAny: Any, isClassic?: boolean): MsgFundCommunityPool;
}

@@ -24,0 +24,0 @@ export declare namespace MsgFundCommunityPool {

@@ -80,12 +80,10 @@ "use strict";

};
MsgFundCommunityPool.prototype.packAny = function (_) {
_;
MsgFundCommunityPool.prototype.packAny = function (isClassic) {
return any_1.Any.fromPartial({
typeUrl: '/cosmos.distribution.v1beta1.MsgFundCommunityPool',
value: tx_1.MsgFundCommunityPool.encode(this.toProto()).finish(),
value: tx_1.MsgFundCommunityPool.encode(this.toProto(isClassic)).finish(),
});
};
MsgFundCommunityPool.unpackAny = function (msgAny, _) {
_;
return MsgFundCommunityPool.fromProto(tx_1.MsgFundCommunityPool.decode(msgAny.value));
MsgFundCommunityPool.unpackAny = function (msgAny, isClassic) {
return MsgFundCommunityPool.fromProto(tx_1.MsgFundCommunityPool.decode(msgAny.value), isClassic);
};

@@ -92,0 +90,0 @@ return MsgFundCommunityPool;

@@ -24,4 +24,4 @@ import { JSONSerializable } from '../../../util/json';

toProto(_?: boolean): MsgSetWithdrawAddress.Proto;
packAny(_?: boolean): Any;
static unpackAny(msgAny: Any, _?: boolean): MsgSetWithdrawAddress;
packAny(isClassic?: boolean): Any;
static unpackAny(msgAny: Any, isClassic?: boolean): MsgSetWithdrawAddress;
}

@@ -28,0 +28,0 @@ export declare namespace MsgSetWithdrawAddress {

@@ -84,12 +84,10 @@ "use strict";

};
MsgSetWithdrawAddress.prototype.packAny = function (_) {
_;
MsgSetWithdrawAddress.prototype.packAny = function (isClassic) {
return any_1.Any.fromPartial({
typeUrl: '/cosmos.distribution.v1beta1.MsgSetWithdrawAddress',
value: tx_1.MsgSetWithdrawAddress.encode(this.toProto()).finish(),
value: tx_1.MsgSetWithdrawAddress.encode(this.toProto(isClassic)).finish(),
});
};
MsgSetWithdrawAddress.unpackAny = function (msgAny, _) {
_;
return MsgSetWithdrawAddress.fromProto(tx_1.MsgSetWithdrawAddress.decode(msgAny.value));
MsgSetWithdrawAddress.unpackAny = function (msgAny, isClassic) {
return MsgSetWithdrawAddress.fromProto(tx_1.MsgSetWithdrawAddress.decode(msgAny.value), isClassic);
};

@@ -96,0 +94,0 @@ return MsgSetWithdrawAddress;

@@ -26,4 +26,4 @@ import { JSONSerializable } from '../../../util/json';

toProto(_?: boolean): MsgWithdrawDelegatorReward.Proto;
packAny(_?: boolean): Any;
static unpackAny(msgAny: Any, _?: boolean): MsgWithdrawDelegatorReward;
packAny(isClassic?: boolean): Any;
static unpackAny(msgAny: Any, isClassic?: boolean): MsgWithdrawDelegatorReward;
}

@@ -30,0 +30,0 @@ export declare namespace MsgWithdrawDelegatorReward {

@@ -86,12 +86,10 @@ "use strict";

};
MsgWithdrawDelegatorReward.prototype.packAny = function (_) {
_;
MsgWithdrawDelegatorReward.prototype.packAny = function (isClassic) {
return any_1.Any.fromPartial({
typeUrl: '/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward',
value: tx_1.MsgWithdrawDelegatorReward.encode(this.toProto()).finish(),
value: tx_1.MsgWithdrawDelegatorReward.encode(this.toProto(isClassic)).finish(),
});
};
MsgWithdrawDelegatorReward.unpackAny = function (msgAny, _) {
_;
return MsgWithdrawDelegatorReward.fromProto(tx_1.MsgWithdrawDelegatorReward.decode(msgAny.value));
MsgWithdrawDelegatorReward.unpackAny = function (msgAny, isClassic) {
return MsgWithdrawDelegatorReward.fromProto(tx_1.MsgWithdrawDelegatorReward.decode(msgAny.value), isClassic);
};

@@ -98,0 +96,0 @@ return MsgWithdrawDelegatorReward;

@@ -22,4 +22,4 @@ import { JSONSerializable } from '../../../util/json';

toProto(_?: boolean): MsgWithdrawValidatorCommission.Proto;
packAny(_?: boolean): Any;
static unpackAny(msgAny: Any, _?: boolean): MsgWithdrawValidatorCommission;
packAny(isClassic?: boolean): Any;
static unpackAny(msgAny: Any, isClassic?: boolean): MsgWithdrawValidatorCommission;
}

@@ -26,0 +26,0 @@ export declare namespace MsgWithdrawValidatorCommission {

@@ -77,12 +77,10 @@ "use strict";

};
MsgWithdrawValidatorCommission.prototype.packAny = function (_) {
_;
MsgWithdrawValidatorCommission.prototype.packAny = function (isClassic) {
return any_1.Any.fromPartial({
typeUrl: '/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission',
value: tx_1.MsgWithdrawValidatorCommission.encode(this.toProto()).finish(),
value: tx_1.MsgWithdrawValidatorCommission.encode(this.toProto(isClassic)).finish(),
});
};
MsgWithdrawValidatorCommission.unpackAny = function (msgAny, _) {
_;
return MsgWithdrawValidatorCommission.fromProto(tx_1.MsgWithdrawValidatorCommission.decode(msgAny.value));
MsgWithdrawValidatorCommission.unpackAny = function (msgAny, isClassic) {
return MsgWithdrawValidatorCommission.fromProto(tx_1.MsgWithdrawValidatorCommission.decode(msgAny.value), isClassic);
};

@@ -89,0 +87,0 @@ return MsgWithdrawValidatorCommission;

@@ -28,4 +28,4 @@ import { JSONSerializable } from '../../../util/json';

toProto(_?: boolean): CommunityPoolSpendProposal.Proto;
packAny(_?: boolean): Any;
static unpackAny(msgAny: Any, _?: boolean): CommunityPoolSpendProposal;
packAny(isClassic?: boolean): Any;
static unpackAny(msgAny: Any, isClassic?: boolean): CommunityPoolSpendProposal;
}

@@ -32,0 +32,0 @@ export declare namespace CommunityPoolSpendProposal {

@@ -94,12 +94,10 @@ "use strict";

};
CommunityPoolSpendProposal.prototype.packAny = function (_) {
_;
CommunityPoolSpendProposal.prototype.packAny = function (isClassic) {
return any_1.Any.fromPartial({
typeUrl: '/cosmos.distribution.v1beta1.CommunityPoolSpendProposal',
value: distribution_1.CommunityPoolSpendProposal.encode(this.toProto()).finish(),
value: distribution_1.CommunityPoolSpendProposal.encode(this.toProto(isClassic)).finish(),
});
};
CommunityPoolSpendProposal.unpackAny = function (msgAny, _) {
_;
return CommunityPoolSpendProposal.fromProto(distribution_1.CommunityPoolSpendProposal.decode(msgAny.value));
CommunityPoolSpendProposal.unpackAny = function (msgAny, isClassic) {
return CommunityPoolSpendProposal.fromProto(distribution_1.CommunityPoolSpendProposal.decode(msgAny.value), isClassic);
};

@@ -106,0 +104,0 @@ return CommunityPoolSpendProposal;

@@ -21,6 +21,6 @@ import { JSONSerializable } from '../../../util/json';

toData(_?: boolean): AllowedMsgAllowance.Data;
static fromProto(proto: AllowedMsgAllowance.Proto, _?: boolean): AllowedMsgAllowance;
toProto(_?: boolean): AllowedMsgAllowance.Proto;
packAny(_?: boolean): Any;
static unpackAny(msgAny: Any, _?: boolean): AllowedMsgAllowance;
static fromProto(proto: AllowedMsgAllowance.Proto, isClassic?: boolean): AllowedMsgAllowance;
toProto(isClassic?: boolean): AllowedMsgAllowance.Proto;
packAny(isClassic?: boolean): Any;
static unpackAny(msgAny: Any, isClassic?: boolean): AllowedMsgAllowance;
}

@@ -27,0 +27,0 @@ export declare namespace AllowedMsgAllowance {

@@ -74,27 +74,23 @@ "use strict";

};
AllowedMsgAllowance.fromProto = function (proto, _) {
_;
AllowedMsgAllowance.fromProto = function (proto, isClassic) {
var allowance = proto.allowance;
return new AllowedMsgAllowance((allowance === null || allowance === void 0 ? void 0 : allowance.typeUrl) === '/cosmos.feegrant.v1beta1.BasicAllowance'
? BasicAllowance_1.BasicAllowance.unpackAny(allowance)
: PeriodicAllowance_1.PeriodicAllowance.unpackAny(allowance), proto.allowedMessages);
? BasicAllowance_1.BasicAllowance.unpackAny(allowance, isClassic)
: PeriodicAllowance_1.PeriodicAllowance.unpackAny(allowance, isClassic), proto.allowedMessages);
};
AllowedMsgAllowance.prototype.toProto = function (_) {
_;
AllowedMsgAllowance.prototype.toProto = function (isClassic) {
var _a = this, allowance = _a.allowance, allowed_messages = _a.allowed_messages;
return feegrant_1.AllowedMsgAllowance.fromPartial({
allowance: allowance.packAny(),
allowance: allowance.packAny(isClassic),
allowedMessages: allowed_messages,
});
};
AllowedMsgAllowance.prototype.packAny = function (_) {
_;
AllowedMsgAllowance.prototype.packAny = function (isClassic) {
return any_1.Any.fromPartial({
typeUrl: '/cosmos.feegrant.v1beta1.AllowedMsgAllowance',
value: feegrant_1.AllowedMsgAllowance.encode(this.toProto()).finish(),
value: feegrant_1.AllowedMsgAllowance.encode(this.toProto(isClassic)).finish(),
});
};
AllowedMsgAllowance.unpackAny = function (msgAny, _) {
_;
return AllowedMsgAllowance.fromProto(feegrant_1.AllowedMsgAllowance.decode(msgAny.value));
AllowedMsgAllowance.unpackAny = function (msgAny, isClassic) {
return AllowedMsgAllowance.fromProto(feegrant_1.AllowedMsgAllowance.decode(msgAny.value), isClassic);
};

@@ -101,0 +97,0 @@ return AllowedMsgAllowance;

@@ -23,4 +23,4 @@ import { JSONSerializable } from '../../../util/json';

toProto(_?: boolean): BasicAllowance.Proto;
packAny(_?: boolean): Any;
static unpackAny(msgAny: Any, _?: boolean): BasicAllowance;
packAny(isClassic?: boolean): Any;
static unpackAny(msgAny: Any, isClassic?: boolean): BasicAllowance;
}

@@ -27,0 +27,0 @@ export declare namespace BasicAllowance {

@@ -95,12 +95,10 @@ "use strict";

};
BasicAllowance.prototype.packAny = function (_) {
_;
BasicAllowance.prototype.packAny = function (isClassic) {
return any_1.Any.fromPartial({
typeUrl: '/cosmos.feegrant.v1beta1.BasicAllowance',
value: feegrant_1.BasicAllowance.encode(this.toProto()).finish(),
value: feegrant_1.BasicAllowance.encode(this.toProto(isClassic)).finish(),
});
};
BasicAllowance.unpackAny = function (msgAny, _) {
_;
return BasicAllowance.fromProto(feegrant_1.BasicAllowance.decode(msgAny.value));
BasicAllowance.unpackAny = function (msgAny, isClassic) {
return BasicAllowance.fromProto(feegrant_1.BasicAllowance.decode(msgAny.value), isClassic);
};

@@ -107,0 +105,0 @@ return BasicAllowance;

@@ -30,4 +30,4 @@ import { JSONSerializable } from '../../../util/json';

toProto(_?: boolean): PeriodicAllowance.Proto;
packAny(_?: boolean): Any;
static unpackAny(msgAny: Any, _?: boolean): PeriodicAllowance;
packAny(isClassic?: boolean): Any;
static unpackAny(msgAny: Any, isClassic?: boolean): PeriodicAllowance;
}

@@ -34,0 +34,0 @@ export declare namespace PeriodicAllowance {

@@ -122,12 +122,10 @@ "use strict";

};
PeriodicAllowance.prototype.packAny = function (_) {
_;
PeriodicAllowance.prototype.packAny = function (isClassic) {
return any_1.Any.fromPartial({
typeUrl: '/cosmos.feegrant.v1beta1.PeriodicAllowance',
value: feegrant_1.PeriodicAllowance.encode(this.toProto()).finish(),
value: feegrant_1.PeriodicAllowance.encode(this.toProto(isClassic)).finish(),
});
};
PeriodicAllowance.unpackAny = function (msgAny, _) {
_;
return PeriodicAllowance.fromProto(feegrant_1.PeriodicAllowance.decode(msgAny.value));
PeriodicAllowance.unpackAny = function (msgAny, isClassic) {
return PeriodicAllowance.fromProto(feegrant_1.PeriodicAllowance.decode(msgAny.value), isClassic);
};

@@ -134,0 +132,0 @@ return PeriodicAllowance;

@@ -16,3 +16,3 @@ import { JSONSerializable } from '../../util/json';

* @param voter voter's account address
* @param option one of voting options
* @param options voting options
*/

@@ -19,0 +19,0 @@ constructor(proposal_id: number, voter: AccAddress, options: WeightedVoteOption[]);

@@ -54,3 +54,3 @@ "use strict";

* @param voter voter's account address
* @param option one of voting options
* @param options voting options
*/

@@ -57,0 +57,0 @@ function Vote(proposal_id, voter, options) {

@@ -35,4 +35,4 @@ import { JSONSerializable } from '../../../../../../util/json';

toProto(_?: boolean): MsgTransfer.Proto;
packAny(_?: boolean): Any;
static unpackAny(msgAny: Any, _?: boolean): MsgTransfer;
packAny(isClassic?: boolean): Any;
static unpackAny(msgAny: Any, isClassic?: boolean): MsgTransfer;
}

@@ -39,0 +39,0 @@ export declare namespace MsgTransfer {

@@ -147,12 +147,10 @@ "use strict";

};
MsgTransfer.prototype.packAny = function (_) {
_;
MsgTransfer.prototype.packAny = function (isClassic) {
return any_1.Any.fromPartial({
typeUrl: '/ibc.applications.transfer.v1.MsgTransfer',
value: tx_1.MsgTransfer.encode(this.toProto()).finish(),
value: tx_1.MsgTransfer.encode(this.toProto(isClassic)).finish(),
});
};
MsgTransfer.unpackAny = function (msgAny, _) {
_;
return MsgTransfer.fromProto(tx_1.MsgTransfer.decode(msgAny.value));
MsgTransfer.unpackAny = function (msgAny, isClassic) {
return MsgTransfer.fromProto(tx_1.MsgTransfer.decode(msgAny.value), isClassic);
};

@@ -159,0 +157,0 @@ return MsgTransfer;

@@ -47,2 +47,3 @@ export * from './Block';

export * from './treasury/PolicyConstraints';
export * from './vesting';
export * from './upgrade';

@@ -49,0 +50,0 @@ export * from './wasm';

@@ -75,2 +75,4 @@ "use strict";

__exportStar(require("./treasury/PolicyConstraints"), exports);
// Vesting
__exportStar(require("./vesting"), exports);
// Upgrade

@@ -77,0 +79,0 @@ __exportStar(require("./upgrade"), exports);

@@ -86,3 +86,3 @@ "use strict";

typeUrl: '/terra.market.v1beta1.MsgSwap',
value: tx_1.MsgSwap.encode(this.toProto()).finish(),
value: tx_1.MsgSwap.encode(this.toProto(isClassic)).finish(),
});

@@ -94,3 +94,3 @@ };

}
return MsgSwap.fromProto(tx_1.MsgSwap.decode(msgAny.value));
return MsgSwap.fromProto(tx_1.MsgSwap.decode(msgAny.value), isClassic);
};

@@ -97,0 +97,0 @@ MsgSwap.fromData = function (data, isClassic) {

@@ -90,3 +90,3 @@ "use strict";

typeUrl: '/terra.market.v1beta1.MsgSwapSend',
value: tx_1.MsgSwapSend.encode(this.toProto()).finish(),
value: tx_1.MsgSwapSend.encode(this.toProto(isClassic)).finish(),
});

@@ -98,3 +98,3 @@ };

}
return MsgSwapSend.fromProto(tx_1.MsgSwapSend.decode(msgAny.value));
return MsgSwapSend.fromProto(tx_1.MsgSwapSend.decode(msgAny.value), isClassic);
};

@@ -101,0 +101,0 @@ MsgSwapSend.fromData = function (data, isClassic) {

@@ -10,2 +10,3 @@ import { BankMsg } from './bank/msgs';

import { StakingMsg } from './staking/msgs';
import { VestingMsg } from './vesting/msgs';
import { WasmMsg } from './wasm/msgs';

@@ -18,7 +19,7 @@ import { IbcTransferMsg } from './ibc/applications/transfer';

import { Any } from '@terra-money/terra.proto/google/protobuf/any';
export declare type Msg = BankMsg | DistributionMsg | FeeGrantMsg | GovMsg | MarketMsg | MsgAuthMsg | OracleMsg | SlashingMsg | StakingMsg | WasmMsg | IbcTransferMsg | IbcClientMsg | IbcConnectionMsg | IbcChannelMsg | CrisisMsg;
export declare type Msg = BankMsg | DistributionMsg | FeeGrantMsg | GovMsg | MarketMsg | MsgAuthMsg | OracleMsg | SlashingMsg | StakingMsg | VestingMsg | WasmMsg | IbcTransferMsg | IbcClientMsg | IbcConnectionMsg | IbcChannelMsg | CrisisMsg;
export declare namespace Msg {
type Amino = BankMsg.Amino | DistributionMsg.Amino | FeeGrantMsg.Amino | GovMsg.Amino | MarketMsg.Amino | MsgAuthMsg.Amino | OracleMsg.Amino | SlashingMsg.Amino | StakingMsg.Amino | WasmMsg.Amino | IbcTransferMsg.Amino | CrisisMsg.Amino;
type Data = BankMsg.Data | DistributionMsg.Data | FeeGrantMsg.Data | GovMsg.Data | MarketMsg.Data | MsgAuthMsg.Data | OracleMsg.Data | SlashingMsg.Data | StakingMsg.Data | WasmMsg.Data | IbcTransferMsg.Data | IbcClientMsg.Data | IbcConnectionMsg.Data | IbcChannelMsg.Data | CrisisMsg.Data;
type Proto = BankMsg.Proto | DistributionMsg.Proto | FeeGrantMsg.Proto | GovMsg.Proto | MarketMsg.Proto | MsgAuthMsg.Proto | OracleMsg.Proto | SlashingMsg.Proto | StakingMsg.Proto | WasmMsg.Proto | IbcTransferMsg.Proto | IbcClientMsg.Proto | IbcConnectionMsg.Proto | IbcChannelMsg.Proto | CrisisMsg.Proto;
type Amino = BankMsg.Amino | DistributionMsg.Amino | FeeGrantMsg.Amino | GovMsg.Amino | MarketMsg.Amino | MsgAuthMsg.Amino | OracleMsg.Amino | SlashingMsg.Amino | StakingMsg.Amino | VestingMsg.Amino | WasmMsg.Amino | IbcTransferMsg.Amino | CrisisMsg.Amino;
type Data = BankMsg.Data | DistributionMsg.Data | FeeGrantMsg.Data | GovMsg.Data | MarketMsg.Data | MsgAuthMsg.Data | OracleMsg.Data | SlashingMsg.Data | StakingMsg.Data | VestingMsg.Data | WasmMsg.Data | IbcTransferMsg.Data | IbcClientMsg.Data | IbcConnectionMsg.Data | IbcChannelMsg.Data | CrisisMsg.Data;
type Proto = BankMsg.Proto | DistributionMsg.Proto | FeeGrantMsg.Proto | GovMsg.Proto | MarketMsg.Proto | MsgAuthMsg.Proto | OracleMsg.Proto | SlashingMsg.Proto | StakingMsg.Proto | VestingMsg.Proto | WasmMsg.Proto | IbcTransferMsg.Proto | IbcClientMsg.Proto | IbcConnectionMsg.Proto | IbcChannelMsg.Proto | CrisisMsg.Proto;
function fromAmino(data: Msg.Amino, isClassic?: boolean): Msg;

@@ -25,0 +26,0 @@ function fromData(data: Msg.Data, isClassic?: boolean): Msg;

@@ -13,3 +13,4 @@ "use strict";

var msgs_9 = require("./staking/msgs");
var msgs_10 = require("./wasm/msgs");
var msgs_10 = require("./vesting/msgs");
var msgs_11 = require("./wasm/msgs");
var transfer_1 = require("./ibc/applications/transfer");

@@ -106,19 +107,26 @@ var client_1 = require("./ibc/msgs/client");

return msgs_9.MsgEditValidator.fromAmino(data, isClassic);
// vesting
case 'cosmos-sdk/MsgCreatePeriodicVestingAccount':
return msgs_10.MsgCreatePeriodicVestingAccount.fromAmino(data, isClassic);
case 'cosmos-sdk/MsgCreateVestingAccount':
return msgs_10.MsgCreateVestingAccount.fromAmino(data, isClassic);
case 'cosmos-sdk/MsgDonateAllVestingTokens':
return msgs_10.MsgDonateAllVestingTokens.fromAmino(data, isClassic);
// wasm
case 'wasm/MsgStoreCode':
return msgs_10.MsgStoreCode.fromAmino(data, isClassic);
return msgs_11.MsgStoreCode.fromAmino(data, isClassic);
case 'wasm/MsgMigrateCode':
return msgs_10.MsgMigrateCode.fromAmino(data, isClassic);
return msgs_11.MsgMigrateCode.fromAmino(data, isClassic);
case 'wasm/MsgInstantiateContract':
return msgs_10.MsgInstantiateContract.fromAmino(data, isClassic);
return msgs_11.MsgInstantiateContract.fromAmino(data, isClassic);
case 'wasm/MsgExecuteContract':
return msgs_10.MsgExecuteContract.fromAmino(data, isClassic);
return msgs_11.MsgExecuteContract.fromAmino(data, isClassic);
case 'wasm/MsgMigrateContract':
return msgs_10.MsgMigrateContract.fromAmino(data, isClassic);
return msgs_11.MsgMigrateContract.fromAmino(data, isClassic);
case 'wasm/MsgUpdateContractAdmin':
case 'wasm/MsgUpdateAdmin':
return msgs_10.MsgUpdateContractAdmin.fromAmino(data, isClassic);
return msgs_11.MsgUpdateContractAdmin.fromAmino(data, isClassic);
case 'wasm/MsgClearContractAdmin':
case 'wasm/MsgClearAdmin':
return msgs_10.MsgClearContractAdmin.fromAmino(data, isClassic);
return msgs_11.MsgClearContractAdmin.fromAmino(data, isClassic);
// ibc-transfer

@@ -197,23 +205,30 @@ case 'cosmos-sdk/MsgTransfer':

return msgs_9.MsgEditValidator.fromData(data, isClassic);
// vesting
case '/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount':
return msgs_10.MsgCreatePeriodicVestingAccount.fromData(data, isClassic);
case '/cosmos.vesting.v1beta1.MsgCreateVestingAccount':
return msgs_10.MsgCreateVestingAccount.fromData(data, isClassic);
case '/cosmos.vesting.v1beta1.MsgDonateAllVestingTokens':
return msgs_10.MsgDonateAllVestingTokens.fromData(data, isClassic);
// wasm
case '/terra.wasm.v1beta1.MsgStoreCode':
case '/cosmwasm.wasm.v1.MsgStoreCode':
return msgs_10.MsgStoreCode.fromData(data, isClassic);
return msgs_11.MsgStoreCode.fromData(data, isClassic);
case '/terra.wasm.v1beta1.MsgMigrateCode': // isClassic only
return msgs_10.MsgMigrateCode.fromData(data, isClassic);
return msgs_11.MsgMigrateCode.fromData(data, isClassic);
case '/terra.wasm.v1beta1.MsgInstantiateContract':
case '/cosmwasm.wasm.v1.MsgInstantiateContract':
return msgs_10.MsgInstantiateContract.fromData(data, isClassic);
return msgs_11.MsgInstantiateContract.fromData(data, isClassic);
case '/terra.wasm.v1beta1.MsgExecuteContract':
case '/cosmwasm.wasm.v1.MsgExecuteContract':
return msgs_10.MsgExecuteContract.fromData(data, isClassic);
return msgs_11.MsgExecuteContract.fromData(data, isClassic);
case '/terra.wasm.v1beta1.MsgMigrateContract':
case '/cosmwasm.wasm.v1.MsgMigrateContract':
return msgs_10.MsgMigrateContract.fromData(data, isClassic);
return msgs_11.MsgMigrateContract.fromData(data, isClassic);
case '/terra.wasm.v1beta1.MsgUpdateContractAdmin':
case '/cosmwasm.wasm.v1.MsgUpdateAdmin':
return msgs_10.MsgUpdateContractAdmin.fromData(data, isClassic);
return msgs_11.MsgUpdateContractAdmin.fromData(data, isClassic);
case '/terra.wasm.v1beta1.MsgClearContractAdmin':
case '/cosmwasm.wasm.v1.MsgClearAdmin':
return msgs_10.MsgClearContractAdmin.fromData(data, isClassic);
return msgs_11.MsgClearContractAdmin.fromData(data, isClassic);
// ibc-transfer

@@ -330,23 +345,30 @@ case '/ibc.applications.transfer.v1.MsgTransfer':

return msgs_9.MsgEditValidator.unpackAny(proto, isClassic);
// vesting
case '/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount':
return msgs_10.MsgCreatePeriodicVestingAccount.unpackAny(proto, isClassic);
case '/cosmos.vesting.v1beta1.MsgCreateVestingAccount':
return msgs_10.MsgCreateVestingAccount.unpackAny(proto, isClassic);
case '/cosmos.vesting.v1beta1.MsgDonateAllVestingTokens':
return msgs_10.MsgDonateAllVestingTokens.unpackAny(proto, isClassic);
// wasm
case '/terra.wasm.v1beta1.MsgStoreCode':
case '/cosmwasm.wasm.v1.MsgStoreCode':
return msgs_10.MsgStoreCode.unpackAny(proto, isClassic);
return msgs_11.MsgStoreCode.unpackAny(proto, isClassic);
case '/terra.wasm.v1beta1.MsgMigrateCode': // isClassic only
return msgs_10.MsgMigrateCode.unpackAny(proto, isClassic);
return msgs_11.MsgMigrateCode.unpackAny(proto, isClassic);
case '/terra.wasm.v1beta1.MsgInstantiateContract':
case '/cosmwasm.wasm.v1.MsgInstantiateContract':
return msgs_10.MsgInstantiateContract.unpackAny(proto, isClassic);
return msgs_11.MsgInstantiateContract.unpackAny(proto, isClassic);
case '/terra.wasm.v1beta1.MsgExecuteContract':
case '/cosmwasm.wasm.v1.MsgExecuteContract':
return msgs_10.MsgExecuteContract.unpackAny(proto, isClassic);
return msgs_11.MsgExecuteContract.unpackAny(proto, isClassic);
case '/terra.wasm.v1beta1.MsgMigrateContract':
case '/cosmwasm.wasm.v1beta1.MsgMigrateContract':
return msgs_10.MsgMigrateContract.unpackAny(proto, isClassic);
return msgs_11.MsgMigrateContract.unpackAny(proto, isClassic);
case '/terra.wasm.v1beta1.MsgUpdateContractAdmin':
case '/cosmwasm.wasm.v1beta1.MsgUpdateAdmin':
return msgs_10.MsgUpdateContractAdmin.unpackAny(proto, isClassic);
return msgs_11.MsgUpdateContractAdmin.unpackAny(proto, isClassic);
case '/terra.wasm.v1beta1.MsgClearContractAdmin':
case '/cosmwasm.wasm.v1.MsgClearAdmin':
return msgs_10.MsgClearContractAdmin.unpackAny(proto, isClassic);
return msgs_11.MsgClearContractAdmin.unpackAny(proto, isClassic);
// ibc-transfer

@@ -353,0 +375,0 @@ case '/ibc.applications.transfer.v1.MsgTransfer':

@@ -102,3 +102,3 @@ "use strict";

typeUrl: '/terra.oracle.v1beta1.MsgAggregateExchangeRatePrevote',
value: tx_1.MsgAggregateExchangeRatePrevote.encode(this.toProto()).finish(),
value: tx_1.MsgAggregateExchangeRatePrevote.encode(this.toProto(isClassic)).finish(),
});

@@ -110,3 +110,3 @@ };

}
return MsgAggregateExchangeRatePrevote.fromProto(tx_1.MsgAggregateExchangeRatePrevote.decode(msgAny.value));
return MsgAggregateExchangeRatePrevote.fromProto(tx_1.MsgAggregateExchangeRatePrevote.decode(msgAny.value), isClassic);
};

@@ -113,0 +113,0 @@ return MsgAggregateExchangeRatePrevote;

@@ -144,3 +144,3 @@ "use strict";

typeUrl: '/terra.oracle.v1beta1.MsgAggregateExchangeRateVote',
value: tx_1.MsgAggregateExchangeRateVote.encode(this.toProto()).finish(),
value: tx_1.MsgAggregateExchangeRateVote.encode(this.toProto(isClassic)).finish(),
});

@@ -152,3 +152,3 @@ };

}
return MsgAggregateExchangeRateVote.fromProto(tx_1.MsgAggregateExchangeRateVote.decode(msgAny.value));
return MsgAggregateExchangeRateVote.fromProto(tx_1.MsgAggregateExchangeRateVote.decode(msgAny.value), isClassic);
};

@@ -155,0 +155,0 @@ return MsgAggregateExchangeRateVote;

@@ -103,3 +103,3 @@ "use strict";

typeUrl: '/terra.oracle.v1beta1.MsgDelegateFeedConsent',
value: tx_1.MsgDelegateFeedConsent.encode(this.toProto()).finish(),
value: tx_1.MsgDelegateFeedConsent.encode(this.toProto(isClassic)).finish(),
});

@@ -111,3 +111,3 @@ };

}
return MsgDelegateFeedConsent.fromProto(tx_1.MsgDelegateFeedConsent.decode(msgAny.value));
return MsgDelegateFeedConsent.fromProto(tx_1.MsgDelegateFeedConsent.decode(msgAny.value), isClassic);
};

@@ -114,0 +114,0 @@ return MsgDelegateFeedConsent;

@@ -5,2 +5,3 @@ import { PublicKey } from './PublicKey';

import { SignMode as SignMode_pb } from '@terra-money/terra.proto/cosmos/tx/signing/v1beta1/signing';
export { SignMode } from '@terra-money/terra.proto/cosmos/tx/signing/v1beta1/signing';
export declare class SignatureV2 {

@@ -7,0 +8,0 @@ public_key: PublicKey;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SignatureV2 = void 0;
exports.SignatureV2 = exports.SignMode = void 0;
var PublicKey_1 = require("./PublicKey");

@@ -9,2 +9,4 @@ var Tx_1 = require("./Tx");

var multisig_1 = require("@terra-money/terra.proto/cosmos/crypto/multisig/v1beta1/multisig");
var signing_2 = require("@terra-money/terra.proto/cosmos/tx/signing/v1beta1/signing");
Object.defineProperty(exports, "SignMode", { enumerable: true, get: function () { return signing_2.SignMode; } });
var SignatureV2 = /** @class */ (function () {

@@ -11,0 +13,0 @@ function SignatureV2(public_key, data, sequence) {

@@ -25,4 +25,4 @@ import { JSONSerializable } from '../../../util/json';

toProto(_?: boolean): MsgUnjail.Proto;
packAny(_?: boolean): Any;
static unpackAny(msgAny: Any, _?: boolean): MsgUnjail;
packAny(isClassic?: boolean): Any;
static unpackAny(msgAny: Any, isClassic?: boolean): MsgUnjail;
}

@@ -29,0 +29,0 @@ export declare namespace MsgUnjail {

@@ -78,12 +78,10 @@ "use strict";

};
MsgUnjail.prototype.packAny = function (_) {
_;
MsgUnjail.prototype.packAny = function (isClassic) {
return any_1.Any.fromPartial({
typeUrl: '/cosmos.slashing.v1beta1.MsgUnjail',
value: tx_1.MsgUnjail.encode(this.toProto()).finish(),
value: tx_1.MsgUnjail.encode(this.toProto(isClassic)).finish(),
});
};
MsgUnjail.unpackAny = function (msgAny, _) {
_;
return MsgUnjail.fromProto(tx_1.MsgUnjail.decode(msgAny.value));
MsgUnjail.unpackAny = function (msgAny, isClassic) {
return MsgUnjail.fromProto(tx_1.MsgUnjail.decode(msgAny.value), isClassic);
};

@@ -90,0 +88,0 @@ return MsgUnjail;

@@ -30,4 +30,4 @@ import { JSONSerializable } from '../../../util/json';

toProto(_?: boolean): MsgBeginRedelegate.Proto;
packAny(_?: boolean): Any;
static unpackAny(msgAny: Any, _?: boolean): MsgBeginRedelegate;
packAny(isClassic?: boolean): Any;
static unpackAny(msgAny: Any, isClassic?: boolean): MsgBeginRedelegate;
}

@@ -34,0 +34,0 @@ export declare namespace MsgBeginRedelegate {

@@ -96,12 +96,10 @@ "use strict";

};
MsgBeginRedelegate.prototype.packAny = function (_) {
_;
MsgBeginRedelegate.prototype.packAny = function (isClassic) {
return any_1.Any.fromPartial({
typeUrl: '/cosmos.staking.v1beta1.MsgBeginRedelegate',
value: tx_1.MsgBeginRedelegate.encode(this.toProto()).finish(),
value: tx_1.MsgBeginRedelegate.encode(this.toProto(isClassic)).finish(),
});
};
MsgBeginRedelegate.unpackAny = function (msgAny, _) {
_;
return MsgBeginRedelegate.fromProto(tx_1.MsgBeginRedelegate.decode(msgAny.value));
MsgBeginRedelegate.unpackAny = function (msgAny, isClassic) {
return MsgBeginRedelegate.fromProto(tx_1.MsgBeginRedelegate.decode(msgAny.value), isClassic);
};

@@ -108,0 +106,0 @@ return MsgBeginRedelegate;

@@ -38,4 +38,4 @@ import { JSONSerializable } from '../../../util/json';

toProto(_?: boolean): MsgCreateValidator.Proto;
packAny(_?: boolean): Any;
static unpackAny(msgAny: Any, _?: boolean): MsgCreateValidator;
packAny(isClassic?: boolean): Any;
static unpackAny(msgAny: Any, isClassic?: boolean): MsgCreateValidator;
}

@@ -42,0 +42,0 @@ export declare namespace MsgCreateValidator {

@@ -113,12 +113,10 @@ "use strict";

};
MsgCreateValidator.prototype.packAny = function (_) {
_;
MsgCreateValidator.prototype.packAny = function (isClassic) {
return any_1.Any.fromPartial({
typeUrl: '/cosmos.staking.v1beta1.MsgCreateValidator',
value: tx_1.MsgCreateValidator.encode(this.toProto()).finish(),
value: tx_1.MsgCreateValidator.encode(this.toProto(isClassic)).finish(),
});
};
MsgCreateValidator.unpackAny = function (msgAny, _) {
_;
return MsgCreateValidator.fromProto(tx_1.MsgCreateValidator.decode(msgAny.value));
MsgCreateValidator.unpackAny = function (msgAny, isClassic) {
return MsgCreateValidator.fromProto(tx_1.MsgCreateValidator.decode(msgAny.value), isClassic);
};

@@ -125,0 +123,0 @@ return MsgCreateValidator;

@@ -25,4 +25,4 @@ import { Coin } from '../../Coin';

toProto(_?: boolean): MsgDelegate.Proto;
packAny(_?: boolean): Any;
static unpackAny(msgAny: Any, _?: boolean): MsgDelegate;
packAny(isClassic?: boolean): Any;
static unpackAny(msgAny: Any, isClassic?: boolean): MsgDelegate;
static fromData(data: MsgDelegate.Data, _?: boolean): MsgDelegate;

@@ -29,0 +29,0 @@ toData(_?: boolean): MsgDelegate.Data;

@@ -73,12 +73,10 @@ "use strict";

};
MsgDelegate.prototype.packAny = function (_) {
_;
MsgDelegate.prototype.packAny = function (isClassic) {
return any_1.Any.fromPartial({
typeUrl: '/cosmos.staking.v1beta1.MsgDelegate',
value: tx_1.MsgDelegate.encode(this.toProto()).finish(),
value: tx_1.MsgDelegate.encode(this.toProto(isClassic)).finish(),
});
};
MsgDelegate.unpackAny = function (msgAny, _) {
_;
return MsgDelegate.fromProto(tx_1.MsgDelegate.decode(msgAny.value));
MsgDelegate.unpackAny = function (msgAny, isClassic) {
return MsgDelegate.fromProto(tx_1.MsgDelegate.decode(msgAny.value), isClassic);
};

@@ -85,0 +83,0 @@ MsgDelegate.fromData = function (data, _) {

@@ -31,4 +31,4 @@ import { JSONSerializable } from '../../../util/json';

toProto(_?: boolean): MsgEditValidator.Proto;
packAny(_?: boolean): Any;
static unpackAny(msgAny: Any, _?: boolean): MsgEditValidator;
packAny(isClassic?: boolean): Any;
static unpackAny(msgAny: Any, isClassic?: boolean): MsgEditValidator;
static fromData(data: MsgEditValidator.Data, _?: boolean): MsgEditValidator;

@@ -35,0 +35,0 @@ toData(_?: boolean): MsgEditValidator.Data;

@@ -89,12 +89,10 @@ "use strict";

};
MsgEditValidator.prototype.packAny = function (_) {
_;
MsgEditValidator.prototype.packAny = function (isClassic) {
return any_1.Any.fromPartial({
typeUrl: '/cosmos.staking.v1beta1.MsgEditValidator',
value: tx_1.MsgEditValidator.encode(this.toProto()).finish(),
value: tx_1.MsgEditValidator.encode(this.toProto(isClassic)).finish(),
});
};
MsgEditValidator.unpackAny = function (msgAny, _) {
_;
return MsgEditValidator.fromProto(tx_1.MsgEditValidator.decode(msgAny.value));
MsgEditValidator.unpackAny = function (msgAny, isClassic) {
return MsgEditValidator.fromProto(tx_1.MsgEditValidator.decode(msgAny.value), isClassic);
};

@@ -101,0 +99,0 @@ MsgEditValidator.fromData = function (data, _) {

@@ -25,4 +25,4 @@ import { Coin } from '../../Coin';

toProto(_?: boolean): MsgUndelegate.Proto;
packAny(_?: boolean): Any;
static unpackAny(msgAny: Any, _?: boolean): MsgUndelegate;
packAny(isClassic?: boolean): Any;
static unpackAny(msgAny: Any, isClassic?: boolean): MsgUndelegate;
static fromData(data: MsgUndelegate.Data, _?: boolean): MsgUndelegate;

@@ -29,0 +29,0 @@ toData(_?: boolean): MsgUndelegate.Data;

@@ -73,12 +73,10 @@ "use strict";

};
MsgUndelegate.prototype.packAny = function (_) {
_;
MsgUndelegate.prototype.packAny = function (isClassic) {
return any_1.Any.fromPartial({
typeUrl: '/cosmos.staking.v1beta1.MsgUndelegate',
value: tx_1.MsgUndelegate.encode(this.toProto()).finish(),
value: tx_1.MsgUndelegate.encode(this.toProto(isClassic)).finish(),
});
};
MsgUndelegate.unpackAny = function (msgAny, _) {
_;
return MsgUndelegate.fromProto(tx_1.MsgUndelegate.decode(msgAny.value));
MsgUndelegate.unpackAny = function (msgAny, isClassic) {
return MsgUndelegate.fromProto(tx_1.MsgUndelegate.decode(msgAny.value), isClassic);
};

@@ -85,0 +83,0 @@ MsgUndelegate.fromData = function (data, _) {

@@ -22,4 +22,4 @@ import { JSONSerializable } from '../../../util/json';

toProto(_?: boolean): CancelSoftwareUpgradeProposal.Proto;
packAny(_?: boolean): Any;
static unpackAny(msgAny: Any, _?: boolean): CancelSoftwareUpgradeProposal;
packAny(isClassic?: boolean): Any;
static unpackAny(msgAny: Any, isClassic?: boolean): CancelSoftwareUpgradeProposal;
}

@@ -26,0 +26,0 @@ export declare namespace CancelSoftwareUpgradeProposal {

@@ -81,12 +81,10 @@ "use strict";

};
CancelSoftwareUpgradeProposal.prototype.packAny = function (_) {
_;
CancelSoftwareUpgradeProposal.prototype.packAny = function (isClassic) {
return any_1.Any.fromPartial({
typeUrl: '/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal',
value: upgrade_1.CancelSoftwareUpgradeProposal.encode(this.toProto()).finish(),
value: upgrade_1.CancelSoftwareUpgradeProposal.encode(this.toProto(isClassic)).finish(),
});
};
CancelSoftwareUpgradeProposal.unpackAny = function (msgAny, _) {
_;
return CancelSoftwareUpgradeProposal.fromProto(upgrade_1.CancelSoftwareUpgradeProposal.decode(msgAny.value));
CancelSoftwareUpgradeProposal.unpackAny = function (msgAny, isClassic) {
return CancelSoftwareUpgradeProposal.fromProto(upgrade_1.CancelSoftwareUpgradeProposal.decode(msgAny.value), isClassic);
};

@@ -93,0 +91,0 @@ return CancelSoftwareUpgradeProposal;

@@ -25,4 +25,4 @@ import { JSONSerializable } from '../../../util/json';

toProto(_?: boolean): SoftwareUpgradeProposal.Proto;
packAny(_?: boolean): Any;
static unpackAny(msgAny: Any, _?: boolean): SoftwareUpgradeProposal;
packAny(isClassic?: boolean): Any;
static unpackAny(msgAny: Any, isClassic?: boolean): SoftwareUpgradeProposal;
}

@@ -29,0 +29,0 @@ export declare namespace SoftwareUpgradeProposal {

@@ -87,12 +87,10 @@ "use strict";

};
SoftwareUpgradeProposal.prototype.packAny = function (_) {
_;
SoftwareUpgradeProposal.prototype.packAny = function (isClassic) {
return any_1.Any.fromPartial({
typeUrl: '/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal',
value: upgrade_1.SoftwareUpgradeProposal.encode(this.toProto()).finish(),
value: upgrade_1.SoftwareUpgradeProposal.encode(this.toProto(isClassic)).finish(),
});
};
SoftwareUpgradeProposal.unpackAny = function (msgAny, _) {
_;
return SoftwareUpgradeProposal.fromProto(upgrade_1.SoftwareUpgradeProposal.decode(msgAny.value));
SoftwareUpgradeProposal.unpackAny = function (msgAny, isClassic) {
return SoftwareUpgradeProposal.fromProto(upgrade_1.SoftwareUpgradeProposal.decode(msgAny.value), isClassic);
};

@@ -99,0 +97,0 @@ return SoftwareUpgradeProposal;

@@ -104,3 +104,3 @@ "use strict";

typeUrl: '/terra.wasm.v1beta1.MsgMigrateCode',
value: tx_1.MsgMigrateCode.encode(this.toProto()).finish(),
value: tx_1.MsgMigrateCode.encode(this.toProto(isClassic)).finish(),
});

@@ -112,3 +112,3 @@ };

}
return MsgMigrateCode.fromProto(tx_1.MsgMigrateCode.decode(msgAny.value));
return MsgMigrateCode.fromProto(tx_1.MsgMigrateCode.decode(msgAny.value), isClassic);
};

@@ -115,0 +115,0 @@ MsgMigrateCode.fromData = function (data, isClassic) {

{
"name": "@terra-money/terra.js",
"version": "3.1.4",
"version": "3.1.5",
"description": "The JavaScript SDK for Terra",

@@ -87,3 +87,3 @@ "license": "MIT",

"@terra-money/legacy.proto": "npm:@terra-money/terra.proto@^0.1.7",
"@terra-money/terra.proto": "~2.0.0",
"@terra-money/terra.proto": "^2.1.0",
"axios": "^0.26.1",

@@ -90,0 +90,0 @@ "bech32": "^2.0.0",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc