-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathparams.ts
65 lines (65 loc) · 1.9 KB
/
params.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import { BinaryReader, BinaryWriter } from '../binary';
/** Params defines the parameters for the tokenfactory module. */
export interface Params {}
export interface ParamsProtoMsg {
typeUrl: '/seiprotocol.seichain.tokenfactory.Params';
value: Uint8Array;
}
/** Params defines the parameters for the tokenfactory module. */
export interface ParamsAmino {}
export interface ParamsAminoMsg {
type: '/seiprotocol.seichain.tokenfactory.Params';
value: ParamsAmino;
}
/** Params defines the parameters for the tokenfactory module. */
export interface ParamsSDKType {}
function createBaseParams(): Params {
return {};
}
export const Params = {
typeUrl: '/seiprotocol.seichain.tokenfactory.Params',
encode(_: Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
return writer;
},
decode(input: BinaryReader | Uint8Array, length?: number): Params {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseParams();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
default:
reader.skipType(tag & 7);
break;
}
}
return message;
},
fromPartial(_: Partial<Params>): Params {
const message = createBaseParams();
return message;
},
fromAmino(_: ParamsAmino): Params {
const message = createBaseParams();
return message;
},
toAmino(_: Params): ParamsAmino {
const obj: any = {};
return obj;
},
fromAminoMsg(object: ParamsAminoMsg): Params {
return Params.fromAmino(object.value);
},
fromProtoMsg(message: ParamsProtoMsg): Params {
return Params.decode(message.value);
},
toProto(message: Params): Uint8Array {
return Params.encode(message).finish();
},
toProtoMsg(message: Params): ParamsProtoMsg {
return {
typeUrl: '/seiprotocol.seichain.tokenfactory.Params',
value: Params.encode(message).finish()
};
}
};