Skip to content

Commit

Permalink
Merge pull request #360 from terra-money/release-3.1.10
Browse files Browse the repository at this point in the history
Update version
  • Loading branch information
alecande11 authored Jul 6, 2023
2 parents c6e7ca4 + 4d2e7e8 commit 2a33d67
Show file tree
Hide file tree
Showing 12 changed files with 63 additions and 63 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@terra-money/terra.js",
"version": "3.1.9",
"version": "3.1.10",
"description": "The JavaScript SDK for Terra",
"license": "MIT",
"author": "Terraform Labs, PTE.",
Expand Down
12 changes: 6 additions & 6 deletions src/core/wasm/proposals/ClearAdminProposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ export class ClearAdminProposal extends JSONSerializable<

public static fromAmino(
data: ClearAdminProposal.Amino,
_isClassic?: boolean
_?: boolean
): ClearAdminProposal {
const {
value: { title, description, contract },
} = data as ClearAdminProposal.Amino;
return new ClearAdminProposal(title, description, contract);
}

public toAmino(_isClassic?: boolean): ClearAdminProposal.Amino {
public toAmino(_?: boolean): ClearAdminProposal.Amino {
const { title, description, contract } = this;
return {
type: 'wasm/ClearAdminProposal',
Expand All @@ -49,7 +49,7 @@ export class ClearAdminProposal extends JSONSerializable<

public static fromProto(
proto: ClearAdminProposal.Proto,
_isClassic?: boolean
_?: boolean
): ClearAdminProposal {
return new ClearAdminProposal(
proto.title,
Expand All @@ -58,7 +58,7 @@ export class ClearAdminProposal extends JSONSerializable<
);
}

public toProto(_isClassic?: boolean): ClearAdminProposal.Proto {
public toProto(_?: boolean): ClearAdminProposal.Proto {
const { title, description, contract } = this;
return ClearAdminProposal_pb.fromPartial({
title,
Expand All @@ -85,13 +85,13 @@ export class ClearAdminProposal extends JSONSerializable<

public static fromData(
data: ClearAdminProposal.Data,
_isClassic?: boolean
_?: boolean
): ClearAdminProposal {
const { title, description, contract } = data as ClearAdminProposal.Data;
return new ClearAdminProposal(title, description, contract);
}

public toData(_isClassic?: boolean): ClearAdminProposal.Data {
public toData(_?: boolean): ClearAdminProposal.Data {
const { title, description, contract } = this;
return {
'@type': '/cosmwasm.wasm.v1.ClearAdminProposal',
Expand Down
12 changes: 6 additions & 6 deletions src/core/wasm/proposals/ExecuteContractProposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class ExecuteContractProposal extends JSONSerializable<

public static fromAmino(
data: ExecuteContractProposal.Amino,
_isClassic?: boolean
_?: boolean
): ExecuteContractProposal {
const {
value: { title, description, run_as, contract, msg, funds },
Expand All @@ -52,7 +52,7 @@ export class ExecuteContractProposal extends JSONSerializable<
);
}

public toAmino(_isClassic?: boolean): ExecuteContractProposal.Amino {
public toAmino(_?: boolean): ExecuteContractProposal.Amino {
const { title, description, run_as, contract, execute_msg, coins } = this;
return {
type: 'wasm/ExecuteContractProposal',
Expand All @@ -69,7 +69,7 @@ export class ExecuteContractProposal extends JSONSerializable<

public static fromProto(
proto: ExecuteContractProposal.Proto,
_isClassic?: boolean
_?: boolean
): ExecuteContractProposal {
return new ExecuteContractProposal(
proto.title,
Expand All @@ -81,7 +81,7 @@ export class ExecuteContractProposal extends JSONSerializable<
);
}

public toProto(_isClassic?: boolean): ExecuteContractProposal.Proto {
public toProto(_?: boolean): ExecuteContractProposal.Proto {
const { title, description, run_as, contract, execute_msg, coins } = this;
return ExecuteContractProposal_pb.fromPartial({
title,
Expand Down Expand Up @@ -114,7 +114,7 @@ export class ExecuteContractProposal extends JSONSerializable<

public static fromData(
data: ExecuteContractProposal.Data,
_isClassic?: boolean
_?: boolean
): ExecuteContractProposal {
const { title, description, run_as, contract, msg, funds } =
data as ExecuteContractProposal.Data;
Expand All @@ -128,7 +128,7 @@ export class ExecuteContractProposal extends JSONSerializable<
);
}

public toData(_isClassic?: boolean): ExecuteContractProposal.Data {
public toData(_?: boolean): ExecuteContractProposal.Data {
const { title, description, run_as, contract, execute_msg, coins } = this;
return {
'@type': '/cosmwasm.wasm.v1.ExecuteContractProposal',
Expand Down
12 changes: 6 additions & 6 deletions src/core/wasm/proposals/InstantiateContractProposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class InstantiateContractProposal extends JSONSerializable<

public static fromAmino(
data: InstantiateContractProposal.Amino,
_isClassic?: boolean
_?: boolean
): InstantiateContractProposal {
const {
value: { title, description, run_as, admin, code_id, msg, funds, label },
Expand All @@ -59,7 +59,7 @@ export class InstantiateContractProposal extends JSONSerializable<
);
}

public toAmino(_isClassic?: boolean): InstantiateContractProposal.Amino {
public toAmino(_?: boolean): InstantiateContractProposal.Amino {
const {
title,
description,
Expand Down Expand Up @@ -87,7 +87,7 @@ export class InstantiateContractProposal extends JSONSerializable<

public static fromProto(
proto: InstantiateContractProposal.Proto,
_isClassic?: boolean
_?: boolean
): InstantiateContractProposal {
return new InstantiateContractProposal(
proto.title,
Expand All @@ -101,7 +101,7 @@ export class InstantiateContractProposal extends JSONSerializable<
);
}

public toProto(_isClassic?: boolean): InstantiateContractProposal.Proto {
public toProto(_?: boolean): InstantiateContractProposal.Proto {
const {
title,
description,
Expand Down Expand Up @@ -145,7 +145,7 @@ export class InstantiateContractProposal extends JSONSerializable<

public static fromData(
data: InstantiateContractProposal.Data,
_isClassic?: boolean
_?: boolean
): InstantiateContractProposal {
const { title, description, run_as, admin, code_id, label, msg, funds } =
data as InstantiateContractProposal.Data;
Expand All @@ -161,7 +161,7 @@ export class InstantiateContractProposal extends JSONSerializable<
);
}

public toData(_isClassic?: boolean): InstantiateContractProposal.Data {
public toData(_?: boolean): InstantiateContractProposal.Data {
const {
title,
description,
Expand Down
12 changes: 6 additions & 6 deletions src/core/wasm/proposals/MigrateContractProposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class MigrateContractProposal extends JSONSerializable<

public static fromAmino(
data: MigrateContractProposal.Amino,
_isClassic?: boolean
_?: boolean
): MigrateContractProposal {
const {
value: { title, description, contract, code_id, msg },
Expand All @@ -43,7 +43,7 @@ export class MigrateContractProposal extends JSONSerializable<
);
}

public toAmino(_isClassic?: boolean): MigrateContractProposal.Amino {
public toAmino(_?: boolean): MigrateContractProposal.Amino {
const { title, description, contract, new_code_id, migrate_msg } = this;
return {
type: 'wasm/MigrateContractProposal',
Expand All @@ -59,7 +59,7 @@ export class MigrateContractProposal extends JSONSerializable<

public static fromProto(
proto: MigrateContractProposal.Proto,
_isClassic?: boolean
_?: boolean
): MigrateContractProposal {
return new MigrateContractProposal(
proto.title,
Expand All @@ -70,7 +70,7 @@ export class MigrateContractProposal extends JSONSerializable<
);
}

public toProto(_isClassic?: boolean): MigrateContractProposal.Proto {
public toProto(_?: boolean): MigrateContractProposal.Proto {
const { title, description, contract, new_code_id, migrate_msg } = this;
return MigrateContractProposal_pb.fromPartial({
title,
Expand Down Expand Up @@ -101,7 +101,7 @@ export class MigrateContractProposal extends JSONSerializable<

public static fromData(
data: MigrateContractProposal.Data,
_isClassic?: boolean
_?: boolean
): MigrateContractProposal {
const { title, description, contract, code_id, msg } =
data as MigrateContractProposal.Data;
Expand All @@ -114,7 +114,7 @@ export class MigrateContractProposal extends JSONSerializable<
);
}

public toData(_isClassic?: boolean): MigrateContractProposal.Data {
public toData(_?: boolean): MigrateContractProposal.Data {
const { title, description, contract, new_code_id, migrate_msg } = this;
return {
'@type': '/cosmwasm.wasm.v1.MigrateContractProposal',
Expand Down
12 changes: 6 additions & 6 deletions src/core/wasm/proposals/PinCodesProposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class PinCodesProposal extends JSONSerializable<

public static fromAmino(
data: PinCodesProposal.Amino,
_isClassic?: boolean
_?: boolean
): PinCodesProposal {
const {
value: { title, description, code_ids },
Expand All @@ -39,7 +39,7 @@ export class PinCodesProposal extends JSONSerializable<
);
}

public toAmino(_isClassic?: boolean): PinCodesProposal.Amino {
public toAmino(_?: boolean): PinCodesProposal.Amino {
const { title, description, code_ids } = this;
return {
type: 'wasm/PinCodesProposal',
Expand All @@ -53,7 +53,7 @@ export class PinCodesProposal extends JSONSerializable<

public static fromProto(
proto: PinCodesProposal.Proto,
_isClassic?: boolean
_?: boolean
): PinCodesProposal {
return new PinCodesProposal(
proto.title,
Expand All @@ -62,7 +62,7 @@ export class PinCodesProposal extends JSONSerializable<
);
}

public toProto(_isClassic?: boolean): PinCodesProposal.Proto {
public toProto(_?: boolean): PinCodesProposal.Proto {
const { title, description, code_ids } = this;
return PinCodesProposal_pb.fromPartial({
title,
Expand All @@ -86,7 +86,7 @@ export class PinCodesProposal extends JSONSerializable<

public static fromData(
data: PinCodesProposal.Data,
_isClassic?: boolean
_?: boolean
): PinCodesProposal {
const { title, description, code_ids } = data as PinCodesProposal.Data;
return new PinCodesProposal(
Expand All @@ -96,7 +96,7 @@ export class PinCodesProposal extends JSONSerializable<
);
}

public toData(_isClassic?: boolean): PinCodesProposal.Data {
public toData(_?: boolean): PinCodesProposal.Data {
const { title, description, code_ids } = this;
return {
'@type': '/cosmwasm.wasm.v1.PinCodesProposal',
Expand Down
12 changes: 6 additions & 6 deletions src/core/wasm/proposals/StoreCodeProposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class StoreCodeProposal extends JSONSerializable<

public static fromAmino(
data: StoreCodeProposal.Amino,
_isClassic?: boolean
_?: boolean
): StoreCodeProposal {
const {
value: {
Expand All @@ -53,7 +53,7 @@ export class StoreCodeProposal extends JSONSerializable<
);
}

public toAmino(_isClassic?: boolean): StoreCodeProposal.Amino {
public toAmino(_?: boolean): StoreCodeProposal.Amino {
const {
title,
description,
Expand All @@ -75,7 +75,7 @@ export class StoreCodeProposal extends JSONSerializable<

public static fromData(
data: StoreCodeProposal.Data,
_isClassic?: boolean
_?: boolean
): StoreCodeProposal {
const {
title,
Expand All @@ -95,7 +95,7 @@ export class StoreCodeProposal extends JSONSerializable<
);
}

public toData(_isClassic?: boolean): StoreCodeProposal.Data {
public toData(_?: boolean): StoreCodeProposal.Data {
const {
title,
description,
Expand All @@ -115,7 +115,7 @@ export class StoreCodeProposal extends JSONSerializable<

public static fromProto(
proto: StoreCodeProposal.Proto,
_isClassic?: boolean
_?: boolean
): StoreCodeProposal {
return new StoreCodeProposal(
proto.title,
Expand All @@ -128,7 +128,7 @@ export class StoreCodeProposal extends JSONSerializable<
);
}

public toProto(_isClassic?: boolean): StoreCodeProposal.Proto {
public toProto(_?: boolean): StoreCodeProposal.Proto {
const {
title,
description,
Expand Down
12 changes: 6 additions & 6 deletions src/core/wasm/proposals/SudoContractProposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ export class SudoContractProposal extends JSONSerializable<

public static fromAmino(
data: SudoContractProposal.Amino,
_isClassic?: boolean
_?: boolean
): SudoContractProposal {
const {
value: { title, description, contract, msg },
} = data as SudoContractProposal.Amino;
return new SudoContractProposal(title, description, contract, msg);
}

public toAmino(_isClassic?: boolean): SudoContractProposal.Amino {
public toAmino(_?: boolean): SudoContractProposal.Amino {
const { title, description, contract, msg } = this;
return {
type: 'wasm/SudoContractProposal',
Expand All @@ -48,7 +48,7 @@ export class SudoContractProposal extends JSONSerializable<

public static fromProto(
proto: SudoContractProposal.Proto,
_isClassic?: boolean
_?: boolean
): SudoContractProposal {
return new SudoContractProposal(
proto.title,
Expand All @@ -58,7 +58,7 @@ export class SudoContractProposal extends JSONSerializable<
);
}

public toProto(_isClassic?: boolean): SudoContractProposal.Proto {
public toProto(_?: boolean): SudoContractProposal.Proto {
const { title, description, contract, msg } = this;
return SudoContractProposal_pb.fromPartial({
title,
Expand Down Expand Up @@ -86,14 +86,14 @@ export class SudoContractProposal extends JSONSerializable<

public static fromData(
data: SudoContractProposal.Data,
_isClassic?: boolean
_?: boolean
): SudoContractProposal {
const { title, description, contract, msg } =
data as SudoContractProposal.Data;
return new SudoContractProposal(title, description, contract, msg);
}

public toData(_isClassic?: boolean): SudoContractProposal.Data {
public toData(_?: boolean): SudoContractProposal.Data {
const { title, description, contract, msg } = this;
return {
'@type': '/cosmwasm.wasm.v1.SudoContractProposal',
Expand Down
Loading

0 comments on commit 2a33d67

Please sign in to comment.