juno-network 0.10.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- package/main/codegen/cosmos/bundle.js +47 -47
- package/main/codegen/cosmwasm/bundle.js +10 -10
- package/main/codegen/helpers.js +4 -4
- package/main/codegen/ibc/bundle.js +28 -28
- package/main/codegen/index.js +11 -0
- package/main/codegen/juno/bundle.js +23 -9
- package/main/codegen/juno/client.js +67 -0
- package/main/codegen/juno/feeshare/v1/feeshare.js +64 -0
- package/main/codegen/juno/feeshare/v1/genesis.js +136 -0
- package/main/codegen/juno/feeshare/v1/query.js +456 -0
- package/main/codegen/juno/feeshare/v1/query.lcd.js +189 -0
- package/main/codegen/juno/feeshare/v1/query.rpc.Query.js +102 -0
- package/main/codegen/juno/feeshare/v1/tx.amino.js +74 -0
- package/main/codegen/juno/feeshare/v1/tx.js +248 -0
- package/main/codegen/juno/feeshare/v1/tx.registry.js +83 -0
- package/main/codegen/juno/feeshare/v1/tx.rpc.msg.js +55 -0
- package/main/codegen/juno/lcd.js +18 -4
- package/main/codegen/juno/rpc.query.js +14 -4
- package/main/codegen/juno/rpc.tx.js +133 -0
- package/main/codegen/tendermint/bundle.js +17 -17
- package/module/codegen/cosmos/bundle.js +47 -47
- package/module/codegen/cosmwasm/bundle.js +10 -10
- package/module/codegen/helpers.js +4 -4
- package/module/codegen/ibc/bundle.js +28 -28
- package/module/codegen/index.js +2 -1
- package/module/codegen/juno/bundle.js +23 -9
- package/module/codegen/juno/client.js +36 -0
- package/module/codegen/juno/feeshare/v1/feeshare.js +53 -0
- package/module/codegen/juno/feeshare/v1/genesis.js +98 -0
- package/module/codegen/juno/feeshare/v1/query.js +391 -0
- package/module/codegen/juno/feeshare/v1/query.lcd.js +67 -0
- package/module/codegen/juno/feeshare/v1/query.rpc.Query.js +65 -0
- package/module/codegen/juno/feeshare/v1/tx.amino.js +73 -0
- package/module/codegen/juno/feeshare/v1/tx.js +227 -0
- package/module/codegen/juno/feeshare/v1/tx.registry.js +69 -0
- package/module/codegen/juno/feeshare/v1/tx.rpc.msg.js +29 -0
- package/module/codegen/juno/lcd.js +5 -0
- package/module/codegen/juno/rpc.query.js +3 -0
- package/module/codegen/juno/rpc.tx.js +30 -0
- package/module/codegen/tendermint/bundle.js +17 -17
- package/package.json +8 -8
- package/src/codegen/cosmos/bundle.ts +76 -76
- package/src/codegen/cosmwasm/bundle.ts +16 -16
- package/src/codegen/helpers.ts +7 -5
- package/src/codegen/ibc/bundle.ts +34 -34
- package/src/codegen/index.ts +2 -1
- package/src/codegen/juno/bundle.ts +37 -14
- package/src/codegen/juno/client.ts +45 -0
- package/src/codegen/juno/feeshare/v1/feeshare.ts +115 -0
- package/src/codegen/juno/feeshare/v1/genesis.ts +181 -0
- package/src/codegen/juno/feeshare/v1/query.lcd.ts +83 -0
- package/src/codegen/juno/feeshare/v1/query.rpc.Query.ts +99 -0
- package/src/codegen/juno/feeshare/v1/query.ts +680 -0
- package/src/codegen/juno/feeshare/v1/tx.amino.ts +98 -0
- package/src/codegen/juno/feeshare/v1/tx.registry.ts +79 -0
- package/src/codegen/juno/feeshare/v1/tx.rpc.msg.ts +47 -0
- package/src/codegen/juno/feeshare/v1/tx.ts +409 -0
- package/src/codegen/juno/lcd.ts +5 -0
- package/src/codegen/juno/rpc.query.ts +3 -0
- package/src/codegen/juno/rpc.tx.ts +33 -0
- package/src/codegen/tendermint/bundle.ts +22 -22
- package/types/codegen/JunoSwap.client.d.ts +1 -1
- package/types/codegen/JunoSwap.types.d.ts +1 -1
- package/types/codegen/contracts.d.ts +1 -1
- package/types/codegen/cosmos/bundle.d.ts +331 -3694
- package/types/codegen/cosmos/client.d.ts +3 -2
- package/types/codegen/cosmos/rpc.query.d.ts +2 -1
- package/types/codegen/cosmos_proto/bundle.d.ts +2 -9
- package/types/codegen/cosmwasm/bundle.d.ts +56 -488
- package/types/codegen/cosmwasm/client.d.ts +3 -2
- package/types/codegen/cosmwasm/rpc.query.d.ts +2 -1
- package/types/codegen/google/bundle.d.ts +31 -1256
- package/types/codegen/helpers.d.ts +5 -5
- package/types/codegen/ibc/bundle.d.ts +169 -1905
- package/types/codegen/ibc/client.d.ts +3 -2
- package/types/codegen/ibc/rpc.query.d.ts +2 -1
- package/types/codegen/ics23/bundle.d.ts +13 -482
- package/types/codegen/index.d.ts +1 -1
- package/types/codegen/juno/bundle.d.ts +10 -38
- package/types/codegen/juno/rpc.query.d.ts +2 -1
- package/types/codegen/tendermint/bundle.d.ts +85 -1674
@@ -0,0 +1,98 @@
|
|
1
|
+
import { AminoMsg } from "@cosmjs/amino";
|
2
|
+
import { MsgRegisterFeeShare, MsgUpdateFeeShare, MsgCancelFeeShare } from "./tx";
|
3
|
+
export interface AminoMsgRegisterFeeShare extends AminoMsg {
|
4
|
+
type: "/juno.feeshare.v1.MsgRegisterFeeShare";
|
5
|
+
value: {
|
6
|
+
contract_address: string;
|
7
|
+
deployer_address: string;
|
8
|
+
withdrawer_address: string;
|
9
|
+
};
|
10
|
+
}
|
11
|
+
export interface AminoMsgUpdateFeeShare extends AminoMsg {
|
12
|
+
type: "/juno.feeshare.v1.MsgUpdateFeeShare";
|
13
|
+
value: {
|
14
|
+
contract_address: string;
|
15
|
+
deployer_address: string;
|
16
|
+
withdrawer_address: string;
|
17
|
+
};
|
18
|
+
}
|
19
|
+
export interface AminoMsgCancelFeeShare extends AminoMsg {
|
20
|
+
type: "/juno.feeshare.v1.MsgCancelFeeShare";
|
21
|
+
value: {
|
22
|
+
contract_address: string;
|
23
|
+
deployer_address: string;
|
24
|
+
};
|
25
|
+
}
|
26
|
+
export const AminoConverter = {
|
27
|
+
"/juno.feeshare.v1.MsgRegisterFeeShare": {
|
28
|
+
aminoType: "/juno.feeshare.v1.MsgRegisterFeeShare",
|
29
|
+
toAmino: ({
|
30
|
+
contractAddress,
|
31
|
+
deployerAddress,
|
32
|
+
withdrawerAddress
|
33
|
+
}: MsgRegisterFeeShare): AminoMsgRegisterFeeShare["value"] => {
|
34
|
+
return {
|
35
|
+
contract_address: contractAddress,
|
36
|
+
deployer_address: deployerAddress,
|
37
|
+
withdrawer_address: withdrawerAddress
|
38
|
+
};
|
39
|
+
},
|
40
|
+
fromAmino: ({
|
41
|
+
contract_address,
|
42
|
+
deployer_address,
|
43
|
+
withdrawer_address
|
44
|
+
}: AminoMsgRegisterFeeShare["value"]): MsgRegisterFeeShare => {
|
45
|
+
return {
|
46
|
+
contractAddress: contract_address,
|
47
|
+
deployerAddress: deployer_address,
|
48
|
+
withdrawerAddress: withdrawer_address
|
49
|
+
};
|
50
|
+
}
|
51
|
+
},
|
52
|
+
"/juno.feeshare.v1.MsgUpdateFeeShare": {
|
53
|
+
aminoType: "/juno.feeshare.v1.MsgUpdateFeeShare",
|
54
|
+
toAmino: ({
|
55
|
+
contractAddress,
|
56
|
+
deployerAddress,
|
57
|
+
withdrawerAddress
|
58
|
+
}: MsgUpdateFeeShare): AminoMsgUpdateFeeShare["value"] => {
|
59
|
+
return {
|
60
|
+
contract_address: contractAddress,
|
61
|
+
deployer_address: deployerAddress,
|
62
|
+
withdrawer_address: withdrawerAddress
|
63
|
+
};
|
64
|
+
},
|
65
|
+
fromAmino: ({
|
66
|
+
contract_address,
|
67
|
+
deployer_address,
|
68
|
+
withdrawer_address
|
69
|
+
}: AminoMsgUpdateFeeShare["value"]): MsgUpdateFeeShare => {
|
70
|
+
return {
|
71
|
+
contractAddress: contract_address,
|
72
|
+
deployerAddress: deployer_address,
|
73
|
+
withdrawerAddress: withdrawer_address
|
74
|
+
};
|
75
|
+
}
|
76
|
+
},
|
77
|
+
"/juno.feeshare.v1.MsgCancelFeeShare": {
|
78
|
+
aminoType: "/juno.feeshare.v1.MsgCancelFeeShare",
|
79
|
+
toAmino: ({
|
80
|
+
contractAddress,
|
81
|
+
deployerAddress
|
82
|
+
}: MsgCancelFeeShare): AminoMsgCancelFeeShare["value"] => {
|
83
|
+
return {
|
84
|
+
contract_address: contractAddress,
|
85
|
+
deployer_address: deployerAddress
|
86
|
+
};
|
87
|
+
},
|
88
|
+
fromAmino: ({
|
89
|
+
contract_address,
|
90
|
+
deployer_address
|
91
|
+
}: AminoMsgCancelFeeShare["value"]): MsgCancelFeeShare => {
|
92
|
+
return {
|
93
|
+
contractAddress: contract_address,
|
94
|
+
deployerAddress: deployer_address
|
95
|
+
};
|
96
|
+
}
|
97
|
+
}
|
98
|
+
};
|
@@ -0,0 +1,79 @@
|
|
1
|
+
import { GeneratedType, Registry } from "@cosmjs/proto-signing";
|
2
|
+
import { MsgRegisterFeeShare, MsgUpdateFeeShare, MsgCancelFeeShare } from "./tx";
|
3
|
+
export const registry: ReadonlyArray<[string, GeneratedType]> = [["/juno.feeshare.v1.MsgRegisterFeeShare", MsgRegisterFeeShare], ["/juno.feeshare.v1.MsgUpdateFeeShare", MsgUpdateFeeShare], ["/juno.feeshare.v1.MsgCancelFeeShare", MsgCancelFeeShare]];
|
4
|
+
export const load = (protoRegistry: Registry) => {
|
5
|
+
registry.forEach(([typeUrl, mod]) => {
|
6
|
+
protoRegistry.register(typeUrl, mod);
|
7
|
+
});
|
8
|
+
};
|
9
|
+
export const MessageComposer = {
|
10
|
+
encoded: {
|
11
|
+
registerFeeShare(value: MsgRegisterFeeShare) {
|
12
|
+
return {
|
13
|
+
typeUrl: "/juno.feeshare.v1.MsgRegisterFeeShare",
|
14
|
+
value: MsgRegisterFeeShare.encode(value).finish()
|
15
|
+
};
|
16
|
+
},
|
17
|
+
|
18
|
+
updateFeeShare(value: MsgUpdateFeeShare) {
|
19
|
+
return {
|
20
|
+
typeUrl: "/juno.feeshare.v1.MsgUpdateFeeShare",
|
21
|
+
value: MsgUpdateFeeShare.encode(value).finish()
|
22
|
+
};
|
23
|
+
},
|
24
|
+
|
25
|
+
cancelFeeShare(value: MsgCancelFeeShare) {
|
26
|
+
return {
|
27
|
+
typeUrl: "/juno.feeshare.v1.MsgCancelFeeShare",
|
28
|
+
value: MsgCancelFeeShare.encode(value).finish()
|
29
|
+
};
|
30
|
+
}
|
31
|
+
|
32
|
+
},
|
33
|
+
withTypeUrl: {
|
34
|
+
registerFeeShare(value: MsgRegisterFeeShare) {
|
35
|
+
return {
|
36
|
+
typeUrl: "/juno.feeshare.v1.MsgRegisterFeeShare",
|
37
|
+
value
|
38
|
+
};
|
39
|
+
},
|
40
|
+
|
41
|
+
updateFeeShare(value: MsgUpdateFeeShare) {
|
42
|
+
return {
|
43
|
+
typeUrl: "/juno.feeshare.v1.MsgUpdateFeeShare",
|
44
|
+
value
|
45
|
+
};
|
46
|
+
},
|
47
|
+
|
48
|
+
cancelFeeShare(value: MsgCancelFeeShare) {
|
49
|
+
return {
|
50
|
+
typeUrl: "/juno.feeshare.v1.MsgCancelFeeShare",
|
51
|
+
value
|
52
|
+
};
|
53
|
+
}
|
54
|
+
|
55
|
+
},
|
56
|
+
fromPartial: {
|
57
|
+
registerFeeShare(value: MsgRegisterFeeShare) {
|
58
|
+
return {
|
59
|
+
typeUrl: "/juno.feeshare.v1.MsgRegisterFeeShare",
|
60
|
+
value: MsgRegisterFeeShare.fromPartial(value)
|
61
|
+
};
|
62
|
+
},
|
63
|
+
|
64
|
+
updateFeeShare(value: MsgUpdateFeeShare) {
|
65
|
+
return {
|
66
|
+
typeUrl: "/juno.feeshare.v1.MsgUpdateFeeShare",
|
67
|
+
value: MsgUpdateFeeShare.fromPartial(value)
|
68
|
+
};
|
69
|
+
},
|
70
|
+
|
71
|
+
cancelFeeShare(value: MsgCancelFeeShare) {
|
72
|
+
return {
|
73
|
+
typeUrl: "/juno.feeshare.v1.MsgCancelFeeShare",
|
74
|
+
value: MsgCancelFeeShare.fromPartial(value)
|
75
|
+
};
|
76
|
+
}
|
77
|
+
|
78
|
+
}
|
79
|
+
};
|
@@ -0,0 +1,47 @@
|
|
1
|
+
import { Rpc } from "../../../helpers";
|
2
|
+
import * as _m0 from "protobufjs/minimal";
|
3
|
+
import { MsgRegisterFeeShare, MsgRegisterFeeShareResponse, MsgUpdateFeeShare, MsgUpdateFeeShareResponse, MsgCancelFeeShare, MsgCancelFeeShareResponse } from "./tx";
|
4
|
+
/** Msg defines the fees Msg service. */
|
5
|
+
|
6
|
+
export interface Msg {
|
7
|
+
/** RegisterFeeShare registers a new contract for receiving transaction fees */
|
8
|
+
registerFeeShare(request: MsgRegisterFeeShare): Promise<MsgRegisterFeeShareResponse>;
|
9
|
+
/** UpdateFeeShare updates the withdrawer address of a FeeShare */
|
10
|
+
|
11
|
+
updateFeeShare(request: MsgUpdateFeeShare): Promise<MsgUpdateFeeShareResponse>;
|
12
|
+
/**
|
13
|
+
* CancelFeeShare cancels a contract's fee registration and further receival
|
14
|
+
* of transaction fees
|
15
|
+
*/
|
16
|
+
|
17
|
+
cancelFeeShare(request: MsgCancelFeeShare): Promise<MsgCancelFeeShareResponse>;
|
18
|
+
}
|
19
|
+
export class MsgClientImpl implements Msg {
|
20
|
+
private readonly rpc: Rpc;
|
21
|
+
|
22
|
+
constructor(rpc: Rpc) {
|
23
|
+
this.rpc = rpc;
|
24
|
+
this.registerFeeShare = this.registerFeeShare.bind(this);
|
25
|
+
this.updateFeeShare = this.updateFeeShare.bind(this);
|
26
|
+
this.cancelFeeShare = this.cancelFeeShare.bind(this);
|
27
|
+
}
|
28
|
+
|
29
|
+
registerFeeShare(request: MsgRegisterFeeShare): Promise<MsgRegisterFeeShareResponse> {
|
30
|
+
const data = MsgRegisterFeeShare.encode(request).finish();
|
31
|
+
const promise = this.rpc.request("juno.feeshare.v1.Msg", "RegisterFeeShare", data);
|
32
|
+
return promise.then(data => MsgRegisterFeeShareResponse.decode(new _m0.Reader(data)));
|
33
|
+
}
|
34
|
+
|
35
|
+
updateFeeShare(request: MsgUpdateFeeShare): Promise<MsgUpdateFeeShareResponse> {
|
36
|
+
const data = MsgUpdateFeeShare.encode(request).finish();
|
37
|
+
const promise = this.rpc.request("juno.feeshare.v1.Msg", "UpdateFeeShare", data);
|
38
|
+
return promise.then(data => MsgUpdateFeeShareResponse.decode(new _m0.Reader(data)));
|
39
|
+
}
|
40
|
+
|
41
|
+
cancelFeeShare(request: MsgCancelFeeShare): Promise<MsgCancelFeeShareResponse> {
|
42
|
+
const data = MsgCancelFeeShare.encode(request).finish();
|
43
|
+
const promise = this.rpc.request("juno.feeshare.v1.Msg", "CancelFeeShare", data);
|
44
|
+
return promise.then(data => MsgCancelFeeShareResponse.decode(new _m0.Reader(data)));
|
45
|
+
}
|
46
|
+
|
47
|
+
}
|
@@ -0,0 +1,409 @@
|
|
1
|
+
import * as _m0 from "protobufjs/minimal";
|
2
|
+
import { DeepPartial } from "../../../helpers";
|
3
|
+
/** MsgRegisterFeeShare defines a message that registers a FeeShare */
|
4
|
+
|
5
|
+
export interface MsgRegisterFeeShare {
|
6
|
+
/** contract_address in bech32 format */
|
7
|
+
contractAddress: string;
|
8
|
+
/**
|
9
|
+
* deployer_address is the bech32 address of message sender. It must be the
|
10
|
+
* same the contract's admin address
|
11
|
+
*/
|
12
|
+
|
13
|
+
deployerAddress: string;
|
14
|
+
/**
|
15
|
+
* withdrawer_address is the bech32 address of account receiving the
|
16
|
+
* transaction fees
|
17
|
+
*/
|
18
|
+
|
19
|
+
withdrawerAddress: string;
|
20
|
+
}
|
21
|
+
/** MsgRegisterFeeShare defines a message that registers a FeeShare */
|
22
|
+
|
23
|
+
export interface MsgRegisterFeeShareSDKType {
|
24
|
+
/** contract_address in bech32 format */
|
25
|
+
contract_address: string;
|
26
|
+
/**
|
27
|
+
* deployer_address is the bech32 address of message sender. It must be the
|
28
|
+
* same the contract's admin address
|
29
|
+
*/
|
30
|
+
|
31
|
+
deployer_address: string;
|
32
|
+
/**
|
33
|
+
* withdrawer_address is the bech32 address of account receiving the
|
34
|
+
* transaction fees
|
35
|
+
*/
|
36
|
+
|
37
|
+
withdrawer_address: string;
|
38
|
+
}
|
39
|
+
/** MsgRegisterFeeShareResponse defines the MsgRegisterFeeShare response type */
|
40
|
+
|
41
|
+
export interface MsgRegisterFeeShareResponse {}
|
42
|
+
/** MsgRegisterFeeShareResponse defines the MsgRegisterFeeShare response type */
|
43
|
+
|
44
|
+
export interface MsgRegisterFeeShareResponseSDKType {}
|
45
|
+
/**
|
46
|
+
* MsgUpdateFeeShare defines a message that updates the withdrawer address for a
|
47
|
+
* registered FeeShare
|
48
|
+
*/
|
49
|
+
|
50
|
+
export interface MsgUpdateFeeShare {
|
51
|
+
/** contract_address in bech32 format */
|
52
|
+
contractAddress: string;
|
53
|
+
/**
|
54
|
+
* deployer_address is the bech32 address of message sender. It must be the
|
55
|
+
* same the contract's admin address
|
56
|
+
*/
|
57
|
+
|
58
|
+
deployerAddress: string;
|
59
|
+
/**
|
60
|
+
* withdrawer_address is the bech32 address of account receiving the
|
61
|
+
* transaction fees
|
62
|
+
*/
|
63
|
+
|
64
|
+
withdrawerAddress: string;
|
65
|
+
}
|
66
|
+
/**
|
67
|
+
* MsgUpdateFeeShare defines a message that updates the withdrawer address for a
|
68
|
+
* registered FeeShare
|
69
|
+
*/
|
70
|
+
|
71
|
+
export interface MsgUpdateFeeShareSDKType {
|
72
|
+
/** contract_address in bech32 format */
|
73
|
+
contract_address: string;
|
74
|
+
/**
|
75
|
+
* deployer_address is the bech32 address of message sender. It must be the
|
76
|
+
* same the contract's admin address
|
77
|
+
*/
|
78
|
+
|
79
|
+
deployer_address: string;
|
80
|
+
/**
|
81
|
+
* withdrawer_address is the bech32 address of account receiving the
|
82
|
+
* transaction fees
|
83
|
+
*/
|
84
|
+
|
85
|
+
withdrawer_address: string;
|
86
|
+
}
|
87
|
+
/** MsgUpdateFeeShareResponse defines the MsgUpdateFeeShare response type */
|
88
|
+
|
89
|
+
export interface MsgUpdateFeeShareResponse {}
|
90
|
+
/** MsgUpdateFeeShareResponse defines the MsgUpdateFeeShare response type */
|
91
|
+
|
92
|
+
export interface MsgUpdateFeeShareResponseSDKType {}
|
93
|
+
/** MsgCancelFeeShare defines a message that cancels a registered FeeShare */
|
94
|
+
|
95
|
+
export interface MsgCancelFeeShare {
|
96
|
+
/** contract_address in bech32 format */
|
97
|
+
contractAddress: string;
|
98
|
+
/**
|
99
|
+
* deployer_address is the bech32 address of message sender. It must be the
|
100
|
+
* same the contract's admin address
|
101
|
+
*/
|
102
|
+
|
103
|
+
deployerAddress: string;
|
104
|
+
}
|
105
|
+
/** MsgCancelFeeShare defines a message that cancels a registered FeeShare */
|
106
|
+
|
107
|
+
export interface MsgCancelFeeShareSDKType {
|
108
|
+
/** contract_address in bech32 format */
|
109
|
+
contract_address: string;
|
110
|
+
/**
|
111
|
+
* deployer_address is the bech32 address of message sender. It must be the
|
112
|
+
* same the contract's admin address
|
113
|
+
*/
|
114
|
+
|
115
|
+
deployer_address: string;
|
116
|
+
}
|
117
|
+
/** MsgCancelFeeShareResponse defines the MsgCancelFeeShare response type */
|
118
|
+
|
119
|
+
export interface MsgCancelFeeShareResponse {}
|
120
|
+
/** MsgCancelFeeShareResponse defines the MsgCancelFeeShare response type */
|
121
|
+
|
122
|
+
export interface MsgCancelFeeShareResponseSDKType {}
|
123
|
+
|
124
|
+
function createBaseMsgRegisterFeeShare(): MsgRegisterFeeShare {
|
125
|
+
return {
|
126
|
+
contractAddress: "",
|
127
|
+
deployerAddress: "",
|
128
|
+
withdrawerAddress: ""
|
129
|
+
};
|
130
|
+
}
|
131
|
+
|
132
|
+
export const MsgRegisterFeeShare = {
|
133
|
+
encode(message: MsgRegisterFeeShare, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
134
|
+
if (message.contractAddress !== "") {
|
135
|
+
writer.uint32(10).string(message.contractAddress);
|
136
|
+
}
|
137
|
+
|
138
|
+
if (message.deployerAddress !== "") {
|
139
|
+
writer.uint32(18).string(message.deployerAddress);
|
140
|
+
}
|
141
|
+
|
142
|
+
if (message.withdrawerAddress !== "") {
|
143
|
+
writer.uint32(26).string(message.withdrawerAddress);
|
144
|
+
}
|
145
|
+
|
146
|
+
return writer;
|
147
|
+
},
|
148
|
+
|
149
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgRegisterFeeShare {
|
150
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
151
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
152
|
+
const message = createBaseMsgRegisterFeeShare();
|
153
|
+
|
154
|
+
while (reader.pos < end) {
|
155
|
+
const tag = reader.uint32();
|
156
|
+
|
157
|
+
switch (tag >>> 3) {
|
158
|
+
case 1:
|
159
|
+
message.contractAddress = reader.string();
|
160
|
+
break;
|
161
|
+
|
162
|
+
case 2:
|
163
|
+
message.deployerAddress = reader.string();
|
164
|
+
break;
|
165
|
+
|
166
|
+
case 3:
|
167
|
+
message.withdrawerAddress = reader.string();
|
168
|
+
break;
|
169
|
+
|
170
|
+
default:
|
171
|
+
reader.skipType(tag & 7);
|
172
|
+
break;
|
173
|
+
}
|
174
|
+
}
|
175
|
+
|
176
|
+
return message;
|
177
|
+
},
|
178
|
+
|
179
|
+
fromPartial(object: DeepPartial<MsgRegisterFeeShare>): MsgRegisterFeeShare {
|
180
|
+
const message = createBaseMsgRegisterFeeShare();
|
181
|
+
message.contractAddress = object.contractAddress ?? "";
|
182
|
+
message.deployerAddress = object.deployerAddress ?? "";
|
183
|
+
message.withdrawerAddress = object.withdrawerAddress ?? "";
|
184
|
+
return message;
|
185
|
+
}
|
186
|
+
|
187
|
+
};
|
188
|
+
|
189
|
+
function createBaseMsgRegisterFeeShareResponse(): MsgRegisterFeeShareResponse {
|
190
|
+
return {};
|
191
|
+
}
|
192
|
+
|
193
|
+
export const MsgRegisterFeeShareResponse = {
|
194
|
+
encode(_: MsgRegisterFeeShareResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
195
|
+
return writer;
|
196
|
+
},
|
197
|
+
|
198
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgRegisterFeeShareResponse {
|
199
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
200
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
201
|
+
const message = createBaseMsgRegisterFeeShareResponse();
|
202
|
+
|
203
|
+
while (reader.pos < end) {
|
204
|
+
const tag = reader.uint32();
|
205
|
+
|
206
|
+
switch (tag >>> 3) {
|
207
|
+
default:
|
208
|
+
reader.skipType(tag & 7);
|
209
|
+
break;
|
210
|
+
}
|
211
|
+
}
|
212
|
+
|
213
|
+
return message;
|
214
|
+
},
|
215
|
+
|
216
|
+
fromPartial(_: DeepPartial<MsgRegisterFeeShareResponse>): MsgRegisterFeeShareResponse {
|
217
|
+
const message = createBaseMsgRegisterFeeShareResponse();
|
218
|
+
return message;
|
219
|
+
}
|
220
|
+
|
221
|
+
};
|
222
|
+
|
223
|
+
function createBaseMsgUpdateFeeShare(): MsgUpdateFeeShare {
|
224
|
+
return {
|
225
|
+
contractAddress: "",
|
226
|
+
deployerAddress: "",
|
227
|
+
withdrawerAddress: ""
|
228
|
+
};
|
229
|
+
}
|
230
|
+
|
231
|
+
export const MsgUpdateFeeShare = {
|
232
|
+
encode(message: MsgUpdateFeeShare, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
233
|
+
if (message.contractAddress !== "") {
|
234
|
+
writer.uint32(10).string(message.contractAddress);
|
235
|
+
}
|
236
|
+
|
237
|
+
if (message.deployerAddress !== "") {
|
238
|
+
writer.uint32(18).string(message.deployerAddress);
|
239
|
+
}
|
240
|
+
|
241
|
+
if (message.withdrawerAddress !== "") {
|
242
|
+
writer.uint32(26).string(message.withdrawerAddress);
|
243
|
+
}
|
244
|
+
|
245
|
+
return writer;
|
246
|
+
},
|
247
|
+
|
248
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateFeeShare {
|
249
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
250
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
251
|
+
const message = createBaseMsgUpdateFeeShare();
|
252
|
+
|
253
|
+
while (reader.pos < end) {
|
254
|
+
const tag = reader.uint32();
|
255
|
+
|
256
|
+
switch (tag >>> 3) {
|
257
|
+
case 1:
|
258
|
+
message.contractAddress = reader.string();
|
259
|
+
break;
|
260
|
+
|
261
|
+
case 2:
|
262
|
+
message.deployerAddress = reader.string();
|
263
|
+
break;
|
264
|
+
|
265
|
+
case 3:
|
266
|
+
message.withdrawerAddress = reader.string();
|
267
|
+
break;
|
268
|
+
|
269
|
+
default:
|
270
|
+
reader.skipType(tag & 7);
|
271
|
+
break;
|
272
|
+
}
|
273
|
+
}
|
274
|
+
|
275
|
+
return message;
|
276
|
+
},
|
277
|
+
|
278
|
+
fromPartial(object: DeepPartial<MsgUpdateFeeShare>): MsgUpdateFeeShare {
|
279
|
+
const message = createBaseMsgUpdateFeeShare();
|
280
|
+
message.contractAddress = object.contractAddress ?? "";
|
281
|
+
message.deployerAddress = object.deployerAddress ?? "";
|
282
|
+
message.withdrawerAddress = object.withdrawerAddress ?? "";
|
283
|
+
return message;
|
284
|
+
}
|
285
|
+
|
286
|
+
};
|
287
|
+
|
288
|
+
function createBaseMsgUpdateFeeShareResponse(): MsgUpdateFeeShareResponse {
|
289
|
+
return {};
|
290
|
+
}
|
291
|
+
|
292
|
+
export const MsgUpdateFeeShareResponse = {
|
293
|
+
encode(_: MsgUpdateFeeShareResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
294
|
+
return writer;
|
295
|
+
},
|
296
|
+
|
297
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateFeeShareResponse {
|
298
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
299
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
300
|
+
const message = createBaseMsgUpdateFeeShareResponse();
|
301
|
+
|
302
|
+
while (reader.pos < end) {
|
303
|
+
const tag = reader.uint32();
|
304
|
+
|
305
|
+
switch (tag >>> 3) {
|
306
|
+
default:
|
307
|
+
reader.skipType(tag & 7);
|
308
|
+
break;
|
309
|
+
}
|
310
|
+
}
|
311
|
+
|
312
|
+
return message;
|
313
|
+
},
|
314
|
+
|
315
|
+
fromPartial(_: DeepPartial<MsgUpdateFeeShareResponse>): MsgUpdateFeeShareResponse {
|
316
|
+
const message = createBaseMsgUpdateFeeShareResponse();
|
317
|
+
return message;
|
318
|
+
}
|
319
|
+
|
320
|
+
};
|
321
|
+
|
322
|
+
function createBaseMsgCancelFeeShare(): MsgCancelFeeShare {
|
323
|
+
return {
|
324
|
+
contractAddress: "",
|
325
|
+
deployerAddress: ""
|
326
|
+
};
|
327
|
+
}
|
328
|
+
|
329
|
+
export const MsgCancelFeeShare = {
|
330
|
+
encode(message: MsgCancelFeeShare, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
331
|
+
if (message.contractAddress !== "") {
|
332
|
+
writer.uint32(10).string(message.contractAddress);
|
333
|
+
}
|
334
|
+
|
335
|
+
if (message.deployerAddress !== "") {
|
336
|
+
writer.uint32(18).string(message.deployerAddress);
|
337
|
+
}
|
338
|
+
|
339
|
+
return writer;
|
340
|
+
},
|
341
|
+
|
342
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCancelFeeShare {
|
343
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
344
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
345
|
+
const message = createBaseMsgCancelFeeShare();
|
346
|
+
|
347
|
+
while (reader.pos < end) {
|
348
|
+
const tag = reader.uint32();
|
349
|
+
|
350
|
+
switch (tag >>> 3) {
|
351
|
+
case 1:
|
352
|
+
message.contractAddress = reader.string();
|
353
|
+
break;
|
354
|
+
|
355
|
+
case 2:
|
356
|
+
message.deployerAddress = reader.string();
|
357
|
+
break;
|
358
|
+
|
359
|
+
default:
|
360
|
+
reader.skipType(tag & 7);
|
361
|
+
break;
|
362
|
+
}
|
363
|
+
}
|
364
|
+
|
365
|
+
return message;
|
366
|
+
},
|
367
|
+
|
368
|
+
fromPartial(object: DeepPartial<MsgCancelFeeShare>): MsgCancelFeeShare {
|
369
|
+
const message = createBaseMsgCancelFeeShare();
|
370
|
+
message.contractAddress = object.contractAddress ?? "";
|
371
|
+
message.deployerAddress = object.deployerAddress ?? "";
|
372
|
+
return message;
|
373
|
+
}
|
374
|
+
|
375
|
+
};
|
376
|
+
|
377
|
+
function createBaseMsgCancelFeeShareResponse(): MsgCancelFeeShareResponse {
|
378
|
+
return {};
|
379
|
+
}
|
380
|
+
|
381
|
+
export const MsgCancelFeeShareResponse = {
|
382
|
+
encode(_: MsgCancelFeeShareResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
383
|
+
return writer;
|
384
|
+
},
|
385
|
+
|
386
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCancelFeeShareResponse {
|
387
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
388
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
389
|
+
const message = createBaseMsgCancelFeeShareResponse();
|
390
|
+
|
391
|
+
while (reader.pos < end) {
|
392
|
+
const tag = reader.uint32();
|
393
|
+
|
394
|
+
switch (tag >>> 3) {
|
395
|
+
default:
|
396
|
+
reader.skipType(tag & 7);
|
397
|
+
break;
|
398
|
+
}
|
399
|
+
}
|
400
|
+
|
401
|
+
return message;
|
402
|
+
},
|
403
|
+
|
404
|
+
fromPartial(_: DeepPartial<MsgCancelFeeShareResponse>): MsgCancelFeeShareResponse {
|
405
|
+
const message = createBaseMsgCancelFeeShareResponse();
|
406
|
+
return message;
|
407
|
+
}
|
408
|
+
|
409
|
+
};
|
package/src/codegen/juno/lcd.ts
CHANGED
@@ -49,6 +49,11 @@ export const createLCDClient = async ({
|
|
49
49
|
}
|
50
50
|
},
|
51
51
|
juno: {
|
52
|
+
feeshare: {
|
53
|
+
v1: new (await import("./feeshare/v1/query.lcd")).LCDQueryClient({
|
54
|
+
requestClient
|
55
|
+
})
|
56
|
+
},
|
52
57
|
mint: new (await import("./mint/query.lcd")).LCDQueryClient({
|
53
58
|
requestClient
|
54
59
|
})
|
@@ -33,6 +33,9 @@ export const createRPCQueryClient = async ({
|
|
33
33
|
}
|
34
34
|
},
|
35
35
|
juno: {
|
36
|
+
feeshare: {
|
37
|
+
v1: (await import("./feeshare/v1/query.rpc.Query")).createRpcQueryExtension(client)
|
38
|
+
},
|
36
39
|
mint: (await import("./mint/query.rpc.Query")).createRpcQueryExtension(client)
|
37
40
|
}
|
38
41
|
};
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { Rpc } from "../helpers";
|
2
|
+
export const createRPCMsgClient = async ({
|
3
|
+
rpc
|
4
|
+
}: {
|
5
|
+
rpc: Rpc;
|
6
|
+
}) => ({
|
7
|
+
cosmos: {
|
8
|
+
authz: {
|
9
|
+
v1beta1: new (await import("../cosmos/authz/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc)
|
10
|
+
},
|
11
|
+
bank: {
|
12
|
+
v1beta1: new (await import("../cosmos/bank/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc)
|
13
|
+
},
|
14
|
+
distribution: {
|
15
|
+
v1beta1: new (await import("../cosmos/distribution/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc)
|
16
|
+
},
|
17
|
+
gov: {
|
18
|
+
v1: new (await import("../cosmos/gov/v1/tx.rpc.msg")).MsgClientImpl(rpc),
|
19
|
+
v1beta1: new (await import("../cosmos/gov/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc)
|
20
|
+
},
|
21
|
+
staking: {
|
22
|
+
v1beta1: new (await import("../cosmos/staking/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc)
|
23
|
+
},
|
24
|
+
upgrade: {
|
25
|
+
v1beta1: new (await import("../cosmos/upgrade/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc)
|
26
|
+
}
|
27
|
+
},
|
28
|
+
juno: {
|
29
|
+
feeshare: {
|
30
|
+
v1: new (await import("./feeshare/v1/tx.rpc.msg")).MsgClientImpl(rpc)
|
31
|
+
}
|
32
|
+
}
|
33
|
+
});
|