Skip to content

Commit 96fe1ff

Browse files
authored
Merge pull request #18 from neutron-org/feat/disable-feerefunder-fee
feat: add param for disabling interchain fees #ntrn-503
2 parents 498383a + 1c642d1 commit 96fe1ff

File tree

12 files changed

+26
-11
lines changed

12 files changed

+26
-11
lines changed

json-safe.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* This file and any referenced files were automatically generated by @cosmology/[email protected].12
2+
* This file and any referenced files were automatically generated by @cosmology/[email protected].20
33
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
44
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
55
*/

json-safe.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/slinky-src

scripts/set-versions.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ readonly BLOCK_SDK_REV="v2.1.5"
1717
readonly COSMOS_SDK_REV="b5afd837c4de"
1818
readonly FEEMARKET_REV="4ffcf3d43464"
1919
readonly IBC_GO_REV="v8.5.1"
20-
readonly NEUTRON_REV="v7.0.0-rc0"
21-
readonly SLINKY_REV="fix/neutronjs-codegen"
20+
readonly NEUTRON_REV="feat/feerefunder-validation-zero"
21+
readonly SLINKY_REV="neutron"
2222
readonly WASMD_REV="v0.54.0-rc0"
2323

2424
checkout_version () {

src/binary.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//@ts-nocheck
22
/* eslint-disable */
33
/**
4-
* This file and any referenced files were automatically generated by @cosmology/[email protected].12
4+
* This file and any referenced files were automatically generated by @cosmology/[email protected].20
55
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
66
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
77
*/

src/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//@ts-nocheck
22
/* eslint-disable */
33
/**
4-
* This file and any referenced files were automatically generated by @cosmology/[email protected].12
4+
* This file and any referenced files were automatically generated by @cosmology/[email protected].20
55
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
66
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
77
*/

src/json-safe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//@ts-nocheck
22
/* eslint-disable */
33
/**
4-
* This file and any referenced files were automatically generated by @cosmology/[email protected].12
4+
* This file and any referenced files were automatically generated by @cosmology/[email protected].20
55
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
66
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
77
*/

src/neutron/feerefunder/params.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ export const protobufPackage = "neutron.feerefunder";
88
/** Params defines the parameters for the module. */
99
export interface Params {
1010
minFee: Fee;
11+
feeEnabled: boolean;
1112
}
1213
function createBaseParams(): Params {
1314
return {
1415
minFee: Fee.fromPartial({}),
16+
feeEnabled: false,
1517
};
1618
}
1719
export const Params = {
@@ -20,6 +22,9 @@ export const Params = {
2022
if (message.minFee !== undefined) {
2123
Fee.encode(message.minFee, writer.uint32(10).fork()).ldelim();
2224
}
25+
if (message.feeEnabled === true) {
26+
writer.uint32(16).bool(message.feeEnabled);
27+
}
2328
return writer;
2429
},
2530
decode(input: BinaryReader | Uint8Array, length?: number): Params {
@@ -32,6 +37,9 @@ export const Params = {
3237
case 1:
3338
message.minFee = Fee.decode(reader, reader.uint32());
3439
break;
40+
case 2:
41+
message.feeEnabled = reader.bool();
42+
break;
3543
default:
3644
reader.skipType(tag & 7);
3745
break;
@@ -42,18 +50,21 @@ export const Params = {
4250
fromJSON(object: any): Params {
4351
const obj = createBaseParams();
4452
if (isSet(object.minFee)) obj.minFee = Fee.fromJSON(object.minFee);
53+
if (isSet(object.feeEnabled)) obj.feeEnabled = Boolean(object.feeEnabled);
4554
return obj;
4655
},
4756
toJSON(message: Params): JsonSafe<Params> {
4857
const obj: any = {};
4958
message.minFee !== undefined && (obj.minFee = message.minFee ? Fee.toJSON(message.minFee) : undefined);
59+
message.feeEnabled !== undefined && (obj.feeEnabled = message.feeEnabled);
5060
return obj;
5161
},
5262
fromPartial<I extends Exact<DeepPartial<Params>, I>>(object: I): Params {
5363
const message = createBaseParams();
5464
if (object.minFee !== undefined && object.minFee !== null) {
5565
message.minFee = Fee.fromPartial(object.minFee);
5666
}
67+
message.feeEnabled = object.feeEnabled ?? false;
5768
return message;
5869
},
5970
};

src/neutron/feerefunder/tx.amino.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//@ts-nocheck
22
/* eslint-disable */
33
import { AminoMsg } from "@cosmjs/amino";
4+
import { omitDefault } from "../../helpers";
45
import { MsgUpdateParams } from "./tx";
56
export interface MsgUpdateParamsAminoType extends AminoMsg {
67
type: "feerefunder/MsgUpdateParams";
@@ -21,6 +22,7 @@ export interface MsgUpdateParamsAminoType extends AminoMsg {
2122
amount: string;
2223
}[];
2324
};
25+
fee_enabled: boolean;
2426
};
2527
};
2628
}
@@ -45,6 +47,7 @@ export const AminoConverter = {
4547
amount: el0.amount,
4648
})),
4749
},
50+
fee_enabled: omitDefault(params.feeEnabled),
4851
},
4952
};
5053
},
@@ -72,6 +75,7 @@ export const AminoConverter = {
7275
amount: el2.amount,
7376
})),
7477
},
78+
feeEnabled: params.fee_enabled,
7579
},
7680
};
7781
},

0 commit comments

Comments
 (0)