@keplr-wallet/proto-types 0.10.3 → 0.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cosmos/authz/v1beta1/authz.d.ts +61 -0
- package/cosmos/authz/v1beta1/authz.js +149 -0
- package/cosmos/authz/v1beta1/authz.js.map +1 -0
- package/cosmos/authz/v1beta1/tx.d.ts +177 -0
- package/cosmos/authz/v1beta1/tx.js +355 -0
- package/cosmos/authz/v1beta1/tx.js.map +1 -0
- package/cosmos/bank/v1beta1/authz.d.ts +42 -0
- package/cosmos/bank/v1beta1/authz.js +68 -0
- package/cosmos/bank/v1beta1/authz.js.map +1 -0
- package/cosmos/staking/v1beta1/authz.d.ts +96 -0
- package/cosmos/staking/v1beta1/authz.js +222 -0
- package/cosmos/staking/v1beta1/authz.js.map +1 -0
- package/cosmos/tx/v1beta1/tx.d.ts +3 -3
- package/cosmwasm/wasm/v1/tx.d.ts +3 -3
- package/cosmwasm/wasm/v1/types.d.ts +1 -1
- package/google/protobuf/descriptor.d.ts +33 -33
- package/outputHash +1 -1
- package/package.json +5 -5
- package/proto-types-gen/build/cosmos/authz/v1beta1/authz.d.ts +61 -0
- package/proto-types-gen/build/cosmos/authz/v1beta1/authz.js +149 -0
- package/proto-types-gen/build/cosmos/authz/v1beta1/authz.js.map +1 -0
- package/proto-types-gen/build/cosmos/authz/v1beta1/tx.d.ts +177 -0
- package/proto-types-gen/build/cosmos/authz/v1beta1/tx.js +355 -0
- package/proto-types-gen/build/cosmos/authz/v1beta1/tx.js.map +1 -0
- package/proto-types-gen/build/cosmos/bank/v1beta1/authz.d.ts +42 -0
- package/proto-types-gen/build/cosmos/bank/v1beta1/authz.js +68 -0
- package/proto-types-gen/build/cosmos/bank/v1beta1/authz.js.map +1 -0
- package/proto-types-gen/build/cosmos/staking/v1beta1/authz.d.ts +96 -0
- package/proto-types-gen/build/cosmos/staking/v1beta1/authz.js +222 -0
- package/proto-types-gen/build/cosmos/staking/v1beta1/authz.js.map +1 -0
- package/proto-types-gen/build/cosmos/tx/v1beta1/tx.d.ts +3 -3
- package/proto-types-gen/build/cosmwasm/wasm/v1/tx.d.ts +3 -3
- package/proto-types-gen/build/cosmwasm/wasm/v1/types.d.ts +1 -1
- package/proto-types-gen/build/google/protobuf/descriptor.d.ts +33 -33
- package/proto-types-gen/build/secret/compute/v1beta1/msg.d.ts +1 -1
- package/proto-types-gen/scripts/proto-gen.mjs +3 -0
- package/proto-types-gen/src/cosmos/authz/v1beta1/authz.ts +214 -0
- package/proto-types-gen/src/cosmos/authz/v1beta1/tx.ts +508 -0
- package/proto-types-gen/src/cosmos/bank/v1beta1/authz.ts +109 -0
- package/proto-types-gen/src/cosmos/staking/v1beta1/authz.ts +304 -0
- package/secret/compute/v1beta1/msg.d.ts +1 -1
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
import { Any } from "../../../google/protobuf/any";
|
|
3
|
+
export declare const protobufPackage = "cosmos.authz.v1beta1";
|
|
4
|
+
/**
|
|
5
|
+
* GenericAuthorization gives the grantee unrestricted permissions to execute
|
|
6
|
+
* the provided method on behalf of the granter's account.
|
|
7
|
+
*/
|
|
8
|
+
export interface GenericAuthorization {
|
|
9
|
+
/** Msg, identified by it's type URL, to grant unrestricted permissions to execute */
|
|
10
|
+
msg: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Grant gives permissions to execute
|
|
14
|
+
* the provide method with expiration time.
|
|
15
|
+
*/
|
|
16
|
+
export interface Grant {
|
|
17
|
+
authorization: Any | undefined;
|
|
18
|
+
expiration: Date | undefined;
|
|
19
|
+
}
|
|
20
|
+
export declare const GenericAuthorization: {
|
|
21
|
+
encode(message: GenericAuthorization, writer?: _m0.Writer): _m0.Writer;
|
|
22
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GenericAuthorization;
|
|
23
|
+
fromJSON(object: any): GenericAuthorization;
|
|
24
|
+
toJSON(message: GenericAuthorization): unknown;
|
|
25
|
+
fromPartial<I extends {
|
|
26
|
+
msg?: string | undefined;
|
|
27
|
+
} & {
|
|
28
|
+
msg?: string | undefined;
|
|
29
|
+
} & Record<Exclude<keyof I, "msg">, never>>(object: I): GenericAuthorization;
|
|
30
|
+
};
|
|
31
|
+
export declare const Grant: {
|
|
32
|
+
encode(message: Grant, writer?: _m0.Writer): _m0.Writer;
|
|
33
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Grant;
|
|
34
|
+
fromJSON(object: any): Grant;
|
|
35
|
+
toJSON(message: Grant): unknown;
|
|
36
|
+
fromPartial<I extends {
|
|
37
|
+
authorization?: {
|
|
38
|
+
typeUrl?: string | undefined;
|
|
39
|
+
value?: Uint8Array | undefined;
|
|
40
|
+
} | undefined;
|
|
41
|
+
expiration?: Date | undefined;
|
|
42
|
+
} & {
|
|
43
|
+
authorization?: ({
|
|
44
|
+
typeUrl?: string | undefined;
|
|
45
|
+
value?: Uint8Array | undefined;
|
|
46
|
+
} & {
|
|
47
|
+
typeUrl?: string | undefined;
|
|
48
|
+
value?: Uint8Array | undefined;
|
|
49
|
+
} & Record<Exclude<keyof I["authorization"], "typeUrl" | "value">, never>) | undefined;
|
|
50
|
+
expiration?: Date | undefined;
|
|
51
|
+
} & Record<Exclude<keyof I, "authorization" | "expiration">, never>>(object: I): Grant;
|
|
52
|
+
};
|
|
53
|
+
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
54
|
+
export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
55
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
56
|
+
} : Partial<T>;
|
|
57
|
+
declare type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
58
|
+
export declare type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
59
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
60
|
+
} & Record<Exclude<keyof I, KeysOfUnion<P>>, never>;
|
|
61
|
+
export {};
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Grant = exports.GenericAuthorization = exports.protobufPackage = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const long_1 = __importDefault(require("long"));
|
|
9
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
+
const timestamp_1 = require("../../../google/protobuf/timestamp");
|
|
11
|
+
const any_1 = require("../../../google/protobuf/any");
|
|
12
|
+
exports.protobufPackage = "cosmos.authz.v1beta1";
|
|
13
|
+
function createBaseGenericAuthorization() {
|
|
14
|
+
return { msg: "" };
|
|
15
|
+
}
|
|
16
|
+
exports.GenericAuthorization = {
|
|
17
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
18
|
+
if (message.msg !== "") {
|
|
19
|
+
writer.uint32(10).string(message.msg);
|
|
20
|
+
}
|
|
21
|
+
return writer;
|
|
22
|
+
},
|
|
23
|
+
decode(input, length) {
|
|
24
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
25
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
26
|
+
const message = createBaseGenericAuthorization();
|
|
27
|
+
while (reader.pos < end) {
|
|
28
|
+
const tag = reader.uint32();
|
|
29
|
+
switch (tag >>> 3) {
|
|
30
|
+
case 1:
|
|
31
|
+
message.msg = reader.string();
|
|
32
|
+
break;
|
|
33
|
+
default:
|
|
34
|
+
reader.skipType(tag & 7);
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return message;
|
|
39
|
+
},
|
|
40
|
+
fromJSON(object) {
|
|
41
|
+
return {
|
|
42
|
+
msg: isSet(object.msg) ? String(object.msg) : "",
|
|
43
|
+
};
|
|
44
|
+
},
|
|
45
|
+
toJSON(message) {
|
|
46
|
+
const obj = {};
|
|
47
|
+
message.msg !== undefined && (obj.msg = message.msg);
|
|
48
|
+
return obj;
|
|
49
|
+
},
|
|
50
|
+
fromPartial(object) {
|
|
51
|
+
var _a;
|
|
52
|
+
const message = createBaseGenericAuthorization();
|
|
53
|
+
message.msg = (_a = object.msg) !== null && _a !== void 0 ? _a : "";
|
|
54
|
+
return message;
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
function createBaseGrant() {
|
|
58
|
+
return { authorization: undefined, expiration: undefined };
|
|
59
|
+
}
|
|
60
|
+
exports.Grant = {
|
|
61
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
62
|
+
if (message.authorization !== undefined) {
|
|
63
|
+
any_1.Any.encode(message.authorization, writer.uint32(10).fork()).ldelim();
|
|
64
|
+
}
|
|
65
|
+
if (message.expiration !== undefined) {
|
|
66
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.expiration), writer.uint32(18).fork()).ldelim();
|
|
67
|
+
}
|
|
68
|
+
return writer;
|
|
69
|
+
},
|
|
70
|
+
decode(input, length) {
|
|
71
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
72
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
73
|
+
const message = createBaseGrant();
|
|
74
|
+
while (reader.pos < end) {
|
|
75
|
+
const tag = reader.uint32();
|
|
76
|
+
switch (tag >>> 3) {
|
|
77
|
+
case 1:
|
|
78
|
+
message.authorization = any_1.Any.decode(reader, reader.uint32());
|
|
79
|
+
break;
|
|
80
|
+
case 2:
|
|
81
|
+
message.expiration = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
82
|
+
break;
|
|
83
|
+
default:
|
|
84
|
+
reader.skipType(tag & 7);
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return message;
|
|
89
|
+
},
|
|
90
|
+
fromJSON(object) {
|
|
91
|
+
return {
|
|
92
|
+
authorization: isSet(object.authorization)
|
|
93
|
+
? any_1.Any.fromJSON(object.authorization)
|
|
94
|
+
: undefined,
|
|
95
|
+
expiration: isSet(object.expiration)
|
|
96
|
+
? fromJsonTimestamp(object.expiration)
|
|
97
|
+
: undefined,
|
|
98
|
+
};
|
|
99
|
+
},
|
|
100
|
+
toJSON(message) {
|
|
101
|
+
const obj = {};
|
|
102
|
+
message.authorization !== undefined &&
|
|
103
|
+
(obj.authorization = message.authorization
|
|
104
|
+
? any_1.Any.toJSON(message.authorization)
|
|
105
|
+
: undefined);
|
|
106
|
+
message.expiration !== undefined &&
|
|
107
|
+
(obj.expiration = message.expiration.toISOString());
|
|
108
|
+
return obj;
|
|
109
|
+
},
|
|
110
|
+
fromPartial(object) {
|
|
111
|
+
var _a;
|
|
112
|
+
const message = createBaseGrant();
|
|
113
|
+
message.authorization =
|
|
114
|
+
object.authorization !== undefined && object.authorization !== null
|
|
115
|
+
? any_1.Any.fromPartial(object.authorization)
|
|
116
|
+
: undefined;
|
|
117
|
+
message.expiration = (_a = object.expiration) !== null && _a !== void 0 ? _a : undefined;
|
|
118
|
+
return message;
|
|
119
|
+
},
|
|
120
|
+
};
|
|
121
|
+
function toTimestamp(date) {
|
|
122
|
+
const seconds = Math.trunc(date.getTime() / 1000).toString();
|
|
123
|
+
const nanos = (date.getTime() % 1000) * 1000000;
|
|
124
|
+
return { seconds, nanos };
|
|
125
|
+
}
|
|
126
|
+
function fromTimestamp(t) {
|
|
127
|
+
let millis = Number(t.seconds) * 1000;
|
|
128
|
+
millis += t.nanos / 1000000;
|
|
129
|
+
return new Date(millis);
|
|
130
|
+
}
|
|
131
|
+
function fromJsonTimestamp(o) {
|
|
132
|
+
if (o instanceof Date) {
|
|
133
|
+
return o;
|
|
134
|
+
}
|
|
135
|
+
else if (typeof o === "string") {
|
|
136
|
+
return new Date(o);
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
return fromTimestamp(timestamp_1.Timestamp.fromJSON(o));
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
143
|
+
minimal_1.default.util.Long = long_1.default;
|
|
144
|
+
minimal_1.default.configure();
|
|
145
|
+
}
|
|
146
|
+
function isSet(value) {
|
|
147
|
+
return value !== null && value !== undefined;
|
|
148
|
+
}
|
|
149
|
+
//# sourceMappingURL=authz.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authz.js","sourceRoot":"","sources":["../../../../src/cosmos/authz/v1beta1/authz.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,gDAAwB;AACxB,iEAAqC;AACrC,kEAA+D;AAC/D,sDAAmD;AAEtC,QAAA,eAAe,GAAG,sBAAsB,CAAC;AAoBtD,SAAS,8BAA8B;IACrC,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC;AACrB,CAAC;AAEY,QAAA,oBAAoB,GAAG;IAClC,MAAM,CACJ,OAA6B,EAC7B,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QAExC,IAAI,OAAO,CAAC,GAAG,KAAK,EAAE,EAAE;YACtB,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;SACvC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,MAAM,CACJ,KAA8B,EAC9B,MAAe;QAEf,MAAM,MAAM,GAAG,KAAK,YAAY,iBAAG,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,iBAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC3E,IAAI,GAAG,GAAG,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAA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
|
|
4
|
+
export declare const protobufPackage = "cosmos.authz.v1beta1";
|
|
5
|
+
/**
|
|
6
|
+
* MsgGrant is a request type for Grant method. It declares authorization to the grantee
|
|
7
|
+
* on behalf of the granter with the provided expiration time.
|
|
8
|
+
*/
|
|
9
|
+
export interface MsgGrant {
|
|
10
|
+
granter: string;
|
|
11
|
+
grantee: string;
|
|
12
|
+
grant: Grant | undefined;
|
|
13
|
+
}
|
|
14
|
+
/** MsgExecResponse defines the Msg/MsgExecResponse response type. */
|
|
15
|
+
export interface MsgExecResponse {
|
|
16
|
+
results: Uint8Array[];
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* MsgExec attempts to execute the provided messages using
|
|
20
|
+
* authorizations granted to the grantee. Each message should have only
|
|
21
|
+
* one signer corresponding to the granter of the authorization.
|
|
22
|
+
*/
|
|
23
|
+
export interface MsgExec {
|
|
24
|
+
grantee: string;
|
|
25
|
+
/**
|
|
26
|
+
* Authorization Msg requests to execute. Each msg must implement Authorization interface
|
|
27
|
+
* The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
|
|
28
|
+
* triple and validate it.
|
|
29
|
+
*/
|
|
30
|
+
msgs: Any[];
|
|
31
|
+
}
|
|
32
|
+
/** MsgGrantResponse defines the Msg/MsgGrant response type. */
|
|
33
|
+
export interface MsgGrantResponse {
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* MsgRevoke revokes any authorization with the provided sdk.Msg type on the
|
|
37
|
+
* granter's account with that has been granted to the grantee.
|
|
38
|
+
*/
|
|
39
|
+
export interface MsgRevoke {
|
|
40
|
+
granter: string;
|
|
41
|
+
grantee: string;
|
|
42
|
+
msgTypeUrl: string;
|
|
43
|
+
}
|
|
44
|
+
/** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */
|
|
45
|
+
export interface MsgRevokeResponse {
|
|
46
|
+
}
|
|
47
|
+
export declare const MsgGrant: {
|
|
48
|
+
encode(message: MsgGrant, writer?: _m0.Writer): _m0.Writer;
|
|
49
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgGrant;
|
|
50
|
+
fromJSON(object: any): MsgGrant;
|
|
51
|
+
toJSON(message: MsgGrant): unknown;
|
|
52
|
+
fromPartial<I extends {
|
|
53
|
+
granter?: string | undefined;
|
|
54
|
+
grantee?: string | undefined;
|
|
55
|
+
grant?: {
|
|
56
|
+
authorization?: {
|
|
57
|
+
typeUrl?: string | undefined;
|
|
58
|
+
value?: Uint8Array | undefined;
|
|
59
|
+
} | undefined;
|
|
60
|
+
expiration?: Date | undefined;
|
|
61
|
+
} | undefined;
|
|
62
|
+
} & {
|
|
63
|
+
granter?: string | undefined;
|
|
64
|
+
grantee?: string | undefined;
|
|
65
|
+
grant?: ({
|
|
66
|
+
authorization?: {
|
|
67
|
+
typeUrl?: string | undefined;
|
|
68
|
+
value?: Uint8Array | undefined;
|
|
69
|
+
} | undefined;
|
|
70
|
+
expiration?: Date | undefined;
|
|
71
|
+
} & {
|
|
72
|
+
authorization?: ({
|
|
73
|
+
typeUrl?: string | undefined;
|
|
74
|
+
value?: Uint8Array | undefined;
|
|
75
|
+
} & {
|
|
76
|
+
typeUrl?: string | undefined;
|
|
77
|
+
value?: Uint8Array | undefined;
|
|
78
|
+
} & Record<Exclude<keyof I["grant"]["authorization"], "typeUrl" | "value">, never>) | undefined;
|
|
79
|
+
expiration?: Date | undefined;
|
|
80
|
+
} & Record<Exclude<keyof I["grant"], "authorization" | "expiration">, never>) | undefined;
|
|
81
|
+
} & Record<Exclude<keyof I, "granter" | "grantee" | "grant">, never>>(object: I): MsgGrant;
|
|
82
|
+
};
|
|
83
|
+
export declare const MsgExecResponse: {
|
|
84
|
+
encode(message: MsgExecResponse, writer?: _m0.Writer): _m0.Writer;
|
|
85
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgExecResponse;
|
|
86
|
+
fromJSON(object: any): MsgExecResponse;
|
|
87
|
+
toJSON(message: MsgExecResponse): unknown;
|
|
88
|
+
fromPartial<I extends {
|
|
89
|
+
results?: Uint8Array[] | undefined;
|
|
90
|
+
} & {
|
|
91
|
+
results?: (Uint8Array[] & Uint8Array[] & Record<Exclude<keyof I["results"], number | "toString" | "toLocaleString" | "concat" | "indexOf" | "lastIndexOf" | "slice" | "length" | "includes" | "at" | "push" | "reverse" | "map" | "filter" | "pop" | "join" | "shift" | "sort" | "splice" | "unshift" | "every" | "some" | "forEach" | "reduce" | "reduceRight" | "find" | "findIndex" | "fill" | "copyWithin" | "entries" | "keys" | "values" | "flatMap" | "flat">, never>) | undefined;
|
|
92
|
+
} & Record<Exclude<keyof I, "results">, never>>(object: I): MsgExecResponse;
|
|
93
|
+
};
|
|
94
|
+
export declare const MsgExec: {
|
|
95
|
+
encode(message: MsgExec, writer?: _m0.Writer): _m0.Writer;
|
|
96
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgExec;
|
|
97
|
+
fromJSON(object: any): MsgExec;
|
|
98
|
+
toJSON(message: MsgExec): unknown;
|
|
99
|
+
fromPartial<I extends {
|
|
100
|
+
grantee?: string | undefined;
|
|
101
|
+
msgs?: {
|
|
102
|
+
typeUrl?: string | undefined;
|
|
103
|
+
value?: Uint8Array | undefined;
|
|
104
|
+
}[] | undefined;
|
|
105
|
+
} & {
|
|
106
|
+
grantee?: string | undefined;
|
|
107
|
+
msgs?: ({
|
|
108
|
+
typeUrl?: string | undefined;
|
|
109
|
+
value?: Uint8Array | undefined;
|
|
110
|
+
}[] & ({
|
|
111
|
+
typeUrl?: string | undefined;
|
|
112
|
+
value?: Uint8Array | undefined;
|
|
113
|
+
} & {
|
|
114
|
+
typeUrl?: string | undefined;
|
|
115
|
+
value?: Uint8Array | undefined;
|
|
116
|
+
} & Record<Exclude<keyof I["msgs"][number], "typeUrl" | "value">, never>)[] & Record<Exclude<keyof I["msgs"], number | "toString" | "toLocaleString" | "concat" | "indexOf" | "lastIndexOf" | "slice" | "length" | "includes" | "at" | "push" | "reverse" | "map" | "filter" | "pop" | "join" | "shift" | "sort" | "splice" | "unshift" | "every" | "some" | "forEach" | "reduce" | "reduceRight" | "find" | "findIndex" | "fill" | "copyWithin" | "entries" | "keys" | "values" | "flatMap" | "flat">, never>) | undefined;
|
|
117
|
+
} & Record<Exclude<keyof I, "grantee" | "msgs">, never>>(object: I): MsgExec;
|
|
118
|
+
};
|
|
119
|
+
export declare const MsgGrantResponse: {
|
|
120
|
+
encode(_: MsgGrantResponse, writer?: _m0.Writer): _m0.Writer;
|
|
121
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgGrantResponse;
|
|
122
|
+
fromJSON(_: any): MsgGrantResponse;
|
|
123
|
+
toJSON(_: MsgGrantResponse): unknown;
|
|
124
|
+
fromPartial<I extends {} & {} & Record<Exclude<keyof I, never>, never>>(_: I): MsgGrantResponse;
|
|
125
|
+
};
|
|
126
|
+
export declare const MsgRevoke: {
|
|
127
|
+
encode(message: MsgRevoke, writer?: _m0.Writer): _m0.Writer;
|
|
128
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgRevoke;
|
|
129
|
+
fromJSON(object: any): MsgRevoke;
|
|
130
|
+
toJSON(message: MsgRevoke): unknown;
|
|
131
|
+
fromPartial<I extends {
|
|
132
|
+
granter?: string | undefined;
|
|
133
|
+
grantee?: string | undefined;
|
|
134
|
+
msgTypeUrl?: string | undefined;
|
|
135
|
+
} & {
|
|
136
|
+
granter?: string | undefined;
|
|
137
|
+
grantee?: string | undefined;
|
|
138
|
+
msgTypeUrl?: string | undefined;
|
|
139
|
+
} & Record<Exclude<keyof I, "granter" | "grantee" | "msgTypeUrl">, never>>(object: I): MsgRevoke;
|
|
140
|
+
};
|
|
141
|
+
export declare const MsgRevokeResponse: {
|
|
142
|
+
encode(_: MsgRevokeResponse, writer?: _m0.Writer): _m0.Writer;
|
|
143
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgRevokeResponse;
|
|
144
|
+
fromJSON(_: any): MsgRevokeResponse;
|
|
145
|
+
toJSON(_: MsgRevokeResponse): unknown;
|
|
146
|
+
fromPartial<I extends {} & {} & Record<Exclude<keyof I, never>, never>>(_: I): MsgRevokeResponse;
|
|
147
|
+
};
|
|
148
|
+
/** Msg defines the authz Msg service. */
|
|
149
|
+
export interface Msg {
|
|
150
|
+
/**
|
|
151
|
+
* Grant grants the provided authorization to the grantee on the granter's
|
|
152
|
+
* account with the provided expiration time. If there is already a grant
|
|
153
|
+
* for the given (granter, grantee, Authorization) triple, then the grant
|
|
154
|
+
* will be overwritten.
|
|
155
|
+
*/
|
|
156
|
+
Grant(request: MsgGrant): Promise<MsgGrantResponse>;
|
|
157
|
+
/**
|
|
158
|
+
* Exec attempts to execute the provided messages using
|
|
159
|
+
* authorizations granted to the grantee. Each message should have only
|
|
160
|
+
* one signer corresponding to the granter of the authorization.
|
|
161
|
+
*/
|
|
162
|
+
Exec(request: MsgExec): Promise<MsgExecResponse>;
|
|
163
|
+
/**
|
|
164
|
+
* Revoke revokes any authorization corresponding to the provided method name on the
|
|
165
|
+
* granter's account that has been granted to the grantee.
|
|
166
|
+
*/
|
|
167
|
+
Revoke(request: MsgRevoke): Promise<MsgRevokeResponse>;
|
|
168
|
+
}
|
|
169
|
+
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
170
|
+
export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
171
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
172
|
+
} : Partial<T>;
|
|
173
|
+
declare type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
174
|
+
export declare type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
175
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
176
|
+
} & Record<Exclude<keyof I, KeysOfUnion<P>>, never>;
|
|
177
|
+
export {};
|