@verana-labs/verana-types 0.10.1-dev.2 → 0.10.1-dev.22
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/README.md +1 -1
- package/dist/amino-converter/co.d.ts +3 -0
- package/dist/amino-converter/co.js +164 -0
- package/dist/amino-converter/cs.d.ts +7 -0
- package/dist/amino-converter/cs.js +169 -0
- package/dist/amino-converter/de.d.ts +3 -0
- package/dist/amino-converter/de.js +51 -0
- package/dist/amino-converter/di.d.ts +2 -0
- package/dist/amino-converter/di.js +23 -0
- package/dist/amino-converter/ec.d.ts +4 -0
- package/dist/amino-converter/ec.js +63 -0
- package/dist/amino-converter/gf.d.ts +3 -0
- package/dist/amino-converter/gf.js +48 -0
- package/dist/amino-converter/group.d.ts +3 -0
- package/dist/amino-converter/group.js +91 -0
- package/dist/amino-converter/pp.d.ts +13 -0
- package/dist/amino-converter/pp.js +347 -0
- package/dist/amino-converter/td.d.ts +4 -0
- package/dist/amino-converter/td.js +46 -0
- package/dist/amino-converter/util/helpers.d.ts +30 -0
- package/dist/amino-converter/util/helpers.js +88 -0
- package/dist/amino-converter/xr.d.ts +6 -0
- package/dist/amino-converter/xr.js +106 -0
- package/dist/codec/cosmos/base/v1beta1/coin.d.ts +1 -1
- package/dist/codec/google/protobuf/any.d.ts +143 -0
- package/dist/codec/{verana/dd/v1/params.js → google/protobuf/any.js} +46 -39
- package/dist/codec/google/protobuf/descriptor.d.ts +5 -0
- package/dist/codec/google/protobuf/descriptor.js +16 -2
- package/dist/codec/google/protobuf/timestamp.d.ts +3 -3
- package/dist/codec/verana/{perm/module → co/module/v1}/module.d.ts +5 -2
- package/dist/codec/verana/{perm/module → co/module/v1}/module.js +2 -2
- package/dist/codec/verana/co/v1/genesis.d.ts +29 -0
- package/dist/codec/verana/co/v1/genesis.js +149 -0
- package/dist/codec/verana/co/v1/params.d.ts +29 -0
- package/dist/codec/verana/co/v1/params.js +81 -0
- package/dist/codec/verana/co/v1/query.d.ts +111 -0
- package/dist/codec/verana/{dd → co}/v1/query.js +151 -117
- package/dist/codec/verana/co/v1/tx.d.ts +172 -0
- package/dist/codec/verana/co/v1/tx.js +639 -0
- package/dist/codec/verana/co/v1/types.d.ts +60 -0
- package/dist/codec/verana/co/v1/types.js +384 -0
- package/dist/codec/verana/cs/v1/genesis.d.ts +3 -1
- package/dist/codec/verana/cs/v1/genesis.js +42 -3
- package/dist/codec/verana/cs/v1/query.d.ts +57 -5
- package/dist/codec/verana/cs/v1/query.js +297 -38
- package/dist/codec/verana/cs/v1/tx.d.ts +107 -12
- package/dist/codec/verana/cs/v1/tx.js +548 -64
- package/dist/codec/verana/cs/v1/types.d.ts +75 -16
- package/dist/codec/verana/cs/v1/types.js +419 -82
- package/dist/codec/verana/de/v1/genesis.d.ts +7 -0
- package/dist/codec/verana/de/v1/genesis.js +57 -2
- package/dist/codec/verana/de/v1/query.d.ts +109 -3
- package/dist/codec/verana/de/v1/query.js +396 -10
- package/dist/codec/verana/de/v1/tx.d.ts +22 -10
- package/dist/codec/verana/de/v1/tx.js +16 -16
- package/dist/codec/verana/de/v1/types.d.ts +104 -21
- package/dist/codec/verana/de/v1/types.js +313 -83
- package/dist/codec/verana/di/module/v1/module.d.ts +29 -0
- package/dist/codec/verana/di/module/v1/module.js +98 -0
- package/dist/codec/verana/{dd → di}/v1/genesis.d.ts +5 -4
- package/dist/codec/verana/{dd → di}/v1/genesis.js +11 -13
- package/dist/codec/verana/di/v1/params.d.ts +24 -0
- package/dist/codec/verana/di/v1/params.js +81 -0
- package/dist/codec/verana/di/v1/query.d.ts +99 -0
- package/dist/codec/verana/di/v1/query.js +349 -0
- package/dist/codec/verana/di/v1/tx.d.ts +120 -0
- package/dist/codec/verana/di/v1/tx.js +409 -0
- package/dist/codec/verana/{dd → ec}/module/module.d.ts +1 -1
- package/dist/codec/verana/{dd → ec}/module/module.js +2 -2
- package/dist/codec/verana/{tr → ec}/v1/genesis.d.ts +10 -12
- package/dist/codec/verana/{tr → ec}/v1/genesis.js +16 -56
- package/dist/codec/verana/{tr → ec}/v1/params.d.ts +1 -1
- package/dist/codec/verana/{tr → ec}/v1/params.js +2 -2
- package/dist/codec/verana/ec/v1/query.d.ts +109 -0
- package/dist/codec/verana/{tr → ec}/v1/query.js +69 -71
- package/dist/codec/verana/ec/v1/tx.d.ts +152 -0
- package/dist/codec/verana/{dd → ec}/v1/tx.js +218 -216
- package/dist/codec/verana/ec/v1/types.d.ts +67 -0
- package/dist/codec/verana/ec/v1/types.js +422 -0
- package/dist/codec/verana/gf/module/v1/module.d.ts +29 -0
- package/dist/codec/verana/gf/module/v1/module.js +98 -0
- package/dist/codec/verana/gf/v1/genesis.d.ts +31 -0
- package/dist/codec/verana/gf/v1/genesis.js +179 -0
- package/dist/codec/verana/gf/v1/params.d.ts +28 -0
- package/dist/codec/verana/gf/v1/params.js +81 -0
- package/dist/codec/verana/gf/v1/query.d.ts +108 -0
- package/dist/codec/verana/gf/v1/query.js +462 -0
- package/dist/codec/verana/gf/v1/tx.d.ts +142 -0
- package/dist/codec/verana/gf/v1/tx.js +486 -0
- package/dist/codec/verana/{tr → gf}/v1/types.d.ts +18 -51
- package/dist/codec/verana/gf/v1/types.js +477 -0
- package/dist/codec/verana/{tr → pp}/module/module.d.ts +1 -1
- package/dist/codec/verana/{tr → pp}/module/module.js +2 -2
- package/dist/codec/verana/{perm → pp}/v1/genesis.d.ts +9 -9
- package/dist/codec/verana/{perm → pp}/v1/genesis.js +26 -26
- package/dist/codec/verana/{perm → pp}/v1/params.d.ts +1 -1
- package/dist/codec/verana/{perm → pp}/v1/params.js +2 -2
- package/dist/codec/verana/pp/v1/query.d.ts +220 -0
- package/dist/codec/verana/{perm → pp}/v1/query.js +305 -166
- package/dist/codec/verana/pp/v1/tx.d.ts +479 -0
- package/dist/codec/verana/pp/v1/tx.js +2574 -0
- package/dist/codec/verana/pp/v1/types.d.ts +137 -0
- package/dist/codec/verana/{perm → pp}/v1/types.js +312 -354
- package/dist/codec/verana/td/v1/genesis.d.ts +13 -3
- package/dist/codec/verana/td/v1/genesis.js +151 -35
- package/dist/codec/verana/td/v1/params.d.ts +2 -0
- package/dist/codec/verana/td/v1/params.js +18 -1
- package/dist/codec/verana/td/v1/query.d.ts +1 -1
- package/dist/codec/verana/td/v1/query.js +24 -10
- package/dist/codec/verana/td/v1/tx.d.ts +26 -40
- package/dist/codec/verana/td/v1/tx.js +80 -190
- package/dist/codec/verana/td/v1/types.d.ts +8 -8
- package/dist/codec/verana/td/v1/types.js +54 -69
- package/dist/codec/verana/xr/module/v1/module.d.ts +29 -0
- package/dist/codec/verana/xr/module/v1/module.js +98 -0
- package/dist/codec/verana/xr/v1/genesis.d.ts +34 -0
- package/dist/codec/verana/xr/v1/genesis.js +166 -0
- package/dist/codec/verana/{dd → xr}/v1/params.d.ts +4 -3
- package/dist/codec/verana/xr/v1/params.js +104 -0
- package/dist/codec/verana/xr/v1/query.d.ts +166 -0
- package/dist/codec/verana/xr/v1/query.js +817 -0
- package/dist/codec/verana/xr/v1/tx.d.ts +284 -0
- package/dist/codec/verana/xr/v1/tx.js +1298 -0
- package/dist/helpers/aminoConverters.d.ts +10 -32
- package/dist/helpers/aminoConverters.js +23 -589
- package/dist/index.d.ts +11 -1
- package/dist/index.js +11 -1
- package/dist/signing.d.ts +75 -0
- package/dist/signing.js +147 -0
- package/package.json +32 -6
- package/dist/codec/verana/dd/v1/query.d.ts +0 -108
- package/dist/codec/verana/dd/v1/tx.d.ts +0 -173
- package/dist/codec/verana/dd/v1/types.d.ts +0 -30
- package/dist/codec/verana/dd/v1/types.js +0 -206
- package/dist/codec/verana/perm/v1/query.d.ts +0 -209
- package/dist/codec/verana/perm/v1/tx.d.ts +0 -395
- package/dist/codec/verana/perm/v1/tx.js +0 -1995
- package/dist/codec/verana/perm/v1/types.d.ts +0 -134
- package/dist/codec/verana/tr/v1/query.d.ts +0 -118
- package/dist/codec/verana/tr/v1/tx.d.ts +0 -255
- package/dist/codec/verana/tr/v1/tx.js +0 -956
- package/dist/codec/verana/tr/v1/types.js +0 -839
|
@@ -2,34 +2,48 @@ import * as _m0 from "protobufjs/minimal";
|
|
|
2
2
|
import { Coin } from "../../../cosmos/base/v1beta1/coin";
|
|
3
3
|
import { Duration } from "../../../google/protobuf/duration";
|
|
4
4
|
export declare const protobufPackage = "verana.de.v1";
|
|
5
|
+
/**
|
|
6
|
+
* OperatorAuthorization is the operator-delegation record. Per spec v4-rc2 it is
|
|
7
|
+
* keyed by its own uint64 id; (corporation_id, operator) is a unique secondary
|
|
8
|
+
* index.
|
|
9
|
+
*/
|
|
5
10
|
export interface OperatorAuthorization {
|
|
6
|
-
/**
|
|
7
|
-
|
|
11
|
+
/** id is the own uint64 key of this OperatorAuthorization. */
|
|
12
|
+
id: number;
|
|
13
|
+
/**
|
|
14
|
+
* corporation_id is the id of the corporation granting the authorization. The
|
|
15
|
+
* (corporation_id, operator) tuple MUST be unique.
|
|
16
|
+
*/
|
|
17
|
+
corporationId: number;
|
|
8
18
|
/** operator is the account receiving the authorization. */
|
|
9
19
|
operator: string;
|
|
10
20
|
/** msg_types is the list of module message types this authorization applies to. */
|
|
11
21
|
msgTypes: string[];
|
|
12
|
-
/**
|
|
13
|
-
* spend_limit is the maximum amount of funds that the grantee is allowed to
|
|
14
|
-
* spend as a direct consequence of executing authorized messages.
|
|
15
|
-
*/
|
|
22
|
+
/** spend_limit is the maximum amount of funds the grantee is allowed to spend. */
|
|
16
23
|
spendLimit: Coin[];
|
|
17
24
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
25
|
+
* remaining_spend is the runtime balance for spend_limit. Present iff
|
|
26
|
+
* spend_limit is set.
|
|
20
27
|
*/
|
|
21
|
-
|
|
28
|
+
remainingSpend: Coin[];
|
|
22
29
|
/**
|
|
23
30
|
* expiration is the timestamp after which the authorization is no longer
|
|
24
31
|
* valid.
|
|
25
32
|
*/
|
|
26
33
|
expiration: Date | undefined;
|
|
27
|
-
/** period is the reset period for spend_limit
|
|
34
|
+
/** period is the reset period for spend_limit. If set, expiration MUST also be set. */
|
|
28
35
|
period: Duration | undefined;
|
|
29
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* FeeGrant is the chain-level fee allowance, keyed by the composite
|
|
39
|
+
* (grantor_corporation_id, grantee).
|
|
40
|
+
*/
|
|
30
41
|
export interface FeeGrant {
|
|
31
|
-
/**
|
|
32
|
-
|
|
42
|
+
/**
|
|
43
|
+
* grantor_corporation_id is the id of the corporation granting the fee
|
|
44
|
+
* allowance. Together with grantee it forms the composite key.
|
|
45
|
+
*/
|
|
46
|
+
grantorCorporationId: number;
|
|
33
47
|
/** grantee is the account that receives the fee grant from grantor. */
|
|
34
48
|
grantee: string;
|
|
35
49
|
/**
|
|
@@ -37,26 +51,87 @@ export interface FeeGrant {
|
|
|
37
51
|
* allowance applies.
|
|
38
52
|
*/
|
|
39
53
|
msgTypes: string[];
|
|
54
|
+
/** spend_limit is the maximum amount of fees that can be spent using this grant. */
|
|
55
|
+
spendLimit: Coin[];
|
|
40
56
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
57
|
+
* remaining_spend is the runtime balance for spend_limit. Present iff
|
|
58
|
+
* spend_limit is set.
|
|
43
59
|
*/
|
|
44
|
-
|
|
60
|
+
remainingSpend: Coin[];
|
|
45
61
|
/** expiration is the timestamp after which the fee grant is no longer valid. */
|
|
46
62
|
expiration: Date | undefined;
|
|
47
|
-
/**
|
|
63
|
+
/**
|
|
64
|
+
* period is the reset period for spend_limit. If set, expiration MUST also be
|
|
65
|
+
* set.
|
|
66
|
+
*/
|
|
67
|
+
period: Duration | undefined;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* ParticipantAuthorizationRecord is a per-participant VS-operator authorization
|
|
71
|
+
* nested inside a VSOperatorAuthorization. Keyed by participant_id, which is
|
|
72
|
+
* globally unique across all records of all VSOperatorAuthorizations.
|
|
73
|
+
*/
|
|
74
|
+
export interface ParticipantAuthorizationRecord {
|
|
75
|
+
/**
|
|
76
|
+
* participant_id is the id of the Participant this record applies to. Globally
|
|
77
|
+
* unique across all ParticipantAuthorizationRecord entries.
|
|
78
|
+
*/
|
|
79
|
+
participantId: number;
|
|
80
|
+
/**
|
|
81
|
+
* msg_types is the list of delegable message types the vs_operator is
|
|
82
|
+
* authorized for on behalf of corporation. Mandatory, frozen at create.
|
|
83
|
+
*/
|
|
84
|
+
msgTypes: string[];
|
|
85
|
+
/** spend_limit is the maximum amount the vs_operator is allowed to spend. */
|
|
86
|
+
spendLimit: Coin[];
|
|
87
|
+
/**
|
|
88
|
+
* remaining_spend is the runtime balance for spend_limit. Present iff
|
|
89
|
+
* spend_limit is set.
|
|
90
|
+
*/
|
|
91
|
+
remainingSpend: Coin[];
|
|
92
|
+
/**
|
|
93
|
+
* fee_spend_limit is the maximum total amount of transaction fees that can be
|
|
94
|
+
* spent by vs_operator.
|
|
95
|
+
*/
|
|
96
|
+
feeSpendLimit: Coin[];
|
|
97
|
+
/**
|
|
98
|
+
* remaining_fee_spend is the runtime balance for fee_spend_limit. Present iff
|
|
99
|
+
* fee_spend_limit is set.
|
|
100
|
+
*/
|
|
101
|
+
remainingFeeSpend: Coin[];
|
|
102
|
+
/**
|
|
103
|
+
* with_feegrant indicates the corporation pays the transaction fees for
|
|
104
|
+
* vs_operator.
|
|
105
|
+
*/
|
|
106
|
+
withFeegrant: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* expiration is the authorization window boundary. A record created before
|
|
109
|
+
* validation is disabled with expiration = now().
|
|
110
|
+
*/
|
|
111
|
+
expiration: Date | undefined;
|
|
112
|
+
/** period is the reset period for spend_limit and fee_spend_limit. */
|
|
48
113
|
period: Duration | undefined;
|
|
49
114
|
}
|
|
115
|
+
/**
|
|
116
|
+
* VSOperatorAuthorization is the VS-operator delegation, keyed by its own uint64
|
|
117
|
+
* id; (corporation_id, vs_operator) is a unique secondary index. The entry
|
|
118
|
+
* exists iff it has at least one record.
|
|
119
|
+
*/
|
|
50
120
|
export interface VSOperatorAuthorization {
|
|
51
|
-
/**
|
|
52
|
-
|
|
121
|
+
/** id is the own uint64 key of this VSOperatorAuthorization. */
|
|
122
|
+
id: number;
|
|
123
|
+
/**
|
|
124
|
+
* corporation_id is the id of the corporation granting the authorization. The
|
|
125
|
+
* (corporation_id, vs_operator) tuple MUST be unique.
|
|
126
|
+
*/
|
|
127
|
+
corporationId: number;
|
|
53
128
|
/** vs_operator is the operator account receiving the authorization. */
|
|
54
129
|
vsOperator: string;
|
|
55
130
|
/**
|
|
56
|
-
*
|
|
57
|
-
*
|
|
131
|
+
* records is the list of per-participant authorization records granted to
|
|
132
|
+
* vs_operator by corporation_id.
|
|
58
133
|
*/
|
|
59
|
-
|
|
134
|
+
records: ParticipantAuthorizationRecord[];
|
|
60
135
|
}
|
|
61
136
|
export declare const OperatorAuthorization: {
|
|
62
137
|
encode(message: OperatorAuthorization, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -74,6 +149,14 @@ export declare const FeeGrant: {
|
|
|
74
149
|
create<I extends Exact<DeepPartial<FeeGrant>, I>>(base?: I): FeeGrant;
|
|
75
150
|
fromPartial<I extends Exact<DeepPartial<FeeGrant>, I>>(object: I): FeeGrant;
|
|
76
151
|
};
|
|
152
|
+
export declare const ParticipantAuthorizationRecord: {
|
|
153
|
+
encode(message: ParticipantAuthorizationRecord, writer?: _m0.Writer): _m0.Writer;
|
|
154
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ParticipantAuthorizationRecord;
|
|
155
|
+
fromJSON(object: any): ParticipantAuthorizationRecord;
|
|
156
|
+
toJSON(message: ParticipantAuthorizationRecord): unknown;
|
|
157
|
+
create<I extends Exact<DeepPartial<ParticipantAuthorizationRecord>, I>>(base?: I): ParticipantAuthorizationRecord;
|
|
158
|
+
fromPartial<I extends Exact<DeepPartial<ParticipantAuthorizationRecord>, I>>(object: I): ParticipantAuthorizationRecord;
|
|
159
|
+
};
|
|
77
160
|
export declare const VSOperatorAuthorization: {
|
|
78
161
|
encode(message: VSOperatorAuthorization, writer?: _m0.Writer): _m0.Writer;
|
|
79
162
|
decode(input: _m0.Reader | Uint8Array, length?: number): VSOperatorAuthorization;
|