@dfinity/nns 0.1.8 → 0.2.2
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 +10 -11
- package/dist/candid/governance.certified.idl.d.ts +2 -0
- package/dist/candid/governance.certified.idl.js +704 -0
- package/dist/candid/governance.did +338 -0
- package/dist/candid/governance.idl.d.ts +5 -0
- package/dist/candid/governance.idl.js +712 -0
- package/dist/candid/governanceTypes.d.ts +413 -0
- package/dist/candid/nns_dapp.certified.idl.js +206 -0
- package/dist/candid/nns_dapp.did +240 -0
- package/dist/candid/nns_dapp.idl.js +206 -0
- package/dist/candid/payloads.did +168 -0
- package/dist/candid/payloads.idl.d.ts +20 -0
- package/dist/candid/payloads.idl.js +163 -0
- package/dist/cjs/index.cjs.js +869 -0
- package/dist/cjs/index.cjs.js.map +7 -0
- package/dist/esm/account_identifier.js +2 -0
- package/dist/esm/account_identifier.js.map +7 -0
- package/dist/esm/chunk-2DZXLOEC.js +14 -0
- package/dist/esm/chunk-2DZXLOEC.js.map +7 -0
- package/dist/esm/chunk-4FZAJTYF.js +2 -0
- package/dist/esm/chunk-4FZAJTYF.js.map +7 -0
- package/dist/esm/chunk-D2W3ELRE.js +3 -0
- package/dist/esm/chunk-D2W3ELRE.js.map +7 -0
- package/dist/esm/chunk-FVDRR6PO.js +17 -0
- package/dist/esm/chunk-FVDRR6PO.js.map +7 -0
- package/dist/esm/chunk-HMU24NWJ.js +825 -0
- package/dist/esm/chunk-HMU24NWJ.js.map +7 -0
- package/dist/esm/chunk-LNMGZ6W7.js +3 -0
- package/dist/esm/chunk-LNMGZ6W7.js.map +7 -0
- package/dist/esm/chunk-QR4654XK.js +2 -0
- package/dist/esm/chunk-QR4654XK.js.map +7 -0
- package/dist/esm/chunk-RUFBUR7C.js +4 -0
- package/dist/esm/chunk-RUFBUR7C.js.map +7 -0
- package/dist/esm/chunk-ZWZRSVU4.js +2 -0
- package/dist/esm/chunk-ZWZRSVU4.js.map +7 -0
- package/dist/esm/governance.js +2 -0
- package/dist/esm/governance.js.map +7 -0
- package/dist/esm/icp.js +2 -0
- package/dist/esm/icp.js.map +7 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/esm/ledger.js +2 -0
- package/dist/esm/ledger.js.map +7 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/proto/base_types.proto +60 -0
- package/dist/proto/base_types_pb.d.ts +144 -0
- package/dist/proto/base_types_pb.js +1071 -0
- package/dist/proto/ledger.proto +277 -0
- package/dist/proto/ledger_pb.d.ts +911 -0
- package/dist/proto/ledger_pb.js +6555 -0
- package/dist/types/account_identifier.d.ts +24 -0
- package/dist/types/canisters/governance/payloads.d.ts +3 -0
- package/dist/types/canisters/governance/request.converters.d.ts +27 -0
- package/dist/types/canisters/governance/response.converters.d.ts +35 -0
- package/dist/types/constants/canister_ids.d.ts +4 -0
- package/dist/types/constants/constants.d.ts +5 -0
- package/dist/types/governance.d.ts +49 -0
- package/dist/types/icp.d.ts +17 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/ledger.d.ts +33 -0
- package/dist/types/types/common.d.ts +8 -0
- package/dist/types/types/governance.d.ts +9 -0
- package/dist/types/types/governance_converters.d.ts +532 -0
- package/dist/types/types/icp.d.ts +4 -0
- package/dist/types/types/ledger.d.ts +30 -0
- package/dist/types/types/option.d.ts +1 -0
- package/dist/types/utils/agent.utils.d.ts +5 -0
- package/dist/types/utils/converter.utils.d.ts +18 -0
- package/dist/types/utils/proto.utils.d.ts +12 -0
- package/package.json +18 -15
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
// package: ic_base_types.pb.v1
|
|
2
|
+
// file: proto/base_types.proto
|
|
3
|
+
|
|
4
|
+
import * as jspb from "google-protobuf";
|
|
5
|
+
import * as google_protobuf_descriptor_pb from "google-protobuf/google/protobuf/descriptor_pb";
|
|
6
|
+
|
|
7
|
+
export class PrincipalId extends jspb.Message {
|
|
8
|
+
getSerializedId(): Uint8Array | string;
|
|
9
|
+
getSerializedId_asU8(): Uint8Array;
|
|
10
|
+
getSerializedId_asB64(): string;
|
|
11
|
+
setSerializedId(value: Uint8Array | string): void;
|
|
12
|
+
|
|
13
|
+
serializeBinary(): Uint8Array;
|
|
14
|
+
toObject(includeInstance?: boolean): PrincipalId.AsObject;
|
|
15
|
+
static toObject(includeInstance: boolean, msg: PrincipalId): PrincipalId.AsObject;
|
|
16
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
17
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
18
|
+
static serializeBinaryToWriter(message: PrincipalId, writer: jspb.BinaryWriter): void;
|
|
19
|
+
static deserializeBinary(bytes: Uint8Array): PrincipalId;
|
|
20
|
+
static deserializeBinaryFromReader(message: PrincipalId, reader: jspb.BinaryReader): PrincipalId;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export namespace PrincipalId {
|
|
24
|
+
export type AsObject = {
|
|
25
|
+
serializedId: Uint8Array | string,
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export class CanisterId extends jspb.Message {
|
|
30
|
+
getSerializedId(): Uint8Array | string;
|
|
31
|
+
getSerializedId_asU8(): Uint8Array;
|
|
32
|
+
getSerializedId_asB64(): string;
|
|
33
|
+
setSerializedId(value: Uint8Array | string): void;
|
|
34
|
+
|
|
35
|
+
serializeBinary(): Uint8Array;
|
|
36
|
+
toObject(includeInstance?: boolean): CanisterId.AsObject;
|
|
37
|
+
static toObject(includeInstance: boolean, msg: CanisterId): CanisterId.AsObject;
|
|
38
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
39
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
40
|
+
static serializeBinaryToWriter(message: CanisterId, writer: jspb.BinaryWriter): void;
|
|
41
|
+
static deserializeBinary(bytes: Uint8Array): CanisterId;
|
|
42
|
+
static deserializeBinaryFromReader(message: CanisterId, reader: jspb.BinaryReader): CanisterId;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export namespace CanisterId {
|
|
46
|
+
export type AsObject = {
|
|
47
|
+
serializedId: Uint8Array | string,
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export class NeuronId extends jspb.Message {
|
|
52
|
+
getId(): string;
|
|
53
|
+
setId(value: string): void;
|
|
54
|
+
|
|
55
|
+
serializeBinary(): Uint8Array;
|
|
56
|
+
toObject(includeInstance?: boolean): NeuronId.AsObject;
|
|
57
|
+
static toObject(includeInstance: boolean, msg: NeuronId): NeuronId.AsObject;
|
|
58
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
59
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
60
|
+
static serializeBinaryToWriter(message: NeuronId, writer: jspb.BinaryWriter): void;
|
|
61
|
+
static deserializeBinary(bytes: Uint8Array): NeuronId;
|
|
62
|
+
static deserializeBinaryFromReader(message: NeuronId, reader: jspb.BinaryReader): NeuronId;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export namespace NeuronId {
|
|
66
|
+
export type AsObject = {
|
|
67
|
+
id: string,
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export class ProposalId extends jspb.Message {
|
|
72
|
+
getId(): string;
|
|
73
|
+
setId(value: string): void;
|
|
74
|
+
|
|
75
|
+
serializeBinary(): Uint8Array;
|
|
76
|
+
toObject(includeInstance?: boolean): ProposalId.AsObject;
|
|
77
|
+
static toObject(includeInstance: boolean, msg: ProposalId): ProposalId.AsObject;
|
|
78
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
79
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
80
|
+
static serializeBinaryToWriter(message: ProposalId, writer: jspb.BinaryWriter): void;
|
|
81
|
+
static deserializeBinary(bytes: Uint8Array): ProposalId;
|
|
82
|
+
static deserializeBinaryFromReader(message: ProposalId, reader: jspb.BinaryReader): ProposalId;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export namespace ProposalId {
|
|
86
|
+
export type AsObject = {
|
|
87
|
+
id: string,
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export class MethodAuthzInfo extends jspb.Message {
|
|
92
|
+
getMethodName(): string;
|
|
93
|
+
setMethodName(value: string): void;
|
|
94
|
+
|
|
95
|
+
clearPrincipalIdsList(): void;
|
|
96
|
+
getPrincipalIdsList(): Array<Uint8Array | string>;
|
|
97
|
+
getPrincipalIdsList_asU8(): Array<Uint8Array>;
|
|
98
|
+
getPrincipalIdsList_asB64(): Array<string>;
|
|
99
|
+
setPrincipalIdsList(value: Array<Uint8Array | string>): void;
|
|
100
|
+
addPrincipalIds(value: Uint8Array | string, index?: number): Uint8Array | string;
|
|
101
|
+
|
|
102
|
+
serializeBinary(): Uint8Array;
|
|
103
|
+
toObject(includeInstance?: boolean): MethodAuthzInfo.AsObject;
|
|
104
|
+
static toObject(includeInstance: boolean, msg: MethodAuthzInfo): MethodAuthzInfo.AsObject;
|
|
105
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
106
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
107
|
+
static serializeBinaryToWriter(message: MethodAuthzInfo, writer: jspb.BinaryWriter): void;
|
|
108
|
+
static deserializeBinary(bytes: Uint8Array): MethodAuthzInfo;
|
|
109
|
+
static deserializeBinaryFromReader(message: MethodAuthzInfo, reader: jspb.BinaryReader): MethodAuthzInfo;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export namespace MethodAuthzInfo {
|
|
113
|
+
export type AsObject = {
|
|
114
|
+
methodName: string,
|
|
115
|
+
principalIdsList: Array<Uint8Array | string>,
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export class CanisterAuthzInfo extends jspb.Message {
|
|
120
|
+
clearMethodsAuthzList(): void;
|
|
121
|
+
getMethodsAuthzList(): Array<MethodAuthzInfo>;
|
|
122
|
+
setMethodsAuthzList(value: Array<MethodAuthzInfo>): void;
|
|
123
|
+
addMethodsAuthz(value?: MethodAuthzInfo, index?: number): MethodAuthzInfo;
|
|
124
|
+
|
|
125
|
+
serializeBinary(): Uint8Array;
|
|
126
|
+
toObject(includeInstance?: boolean): CanisterAuthzInfo.AsObject;
|
|
127
|
+
static toObject(includeInstance: boolean, msg: CanisterAuthzInfo): CanisterAuthzInfo.AsObject;
|
|
128
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
129
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
130
|
+
static serializeBinaryToWriter(message: CanisterAuthzInfo, writer: jspb.BinaryWriter): void;
|
|
131
|
+
static deserializeBinary(bytes: Uint8Array): CanisterAuthzInfo;
|
|
132
|
+
static deserializeBinaryFromReader(message: CanisterAuthzInfo, reader: jspb.BinaryReader): CanisterAuthzInfo;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export namespace CanisterAuthzInfo {
|
|
136
|
+
export type AsObject = {
|
|
137
|
+
methodsAuthzList: Array<MethodAuthzInfo.AsObject>,
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export const tuiSignedMessage: jspb.ExtensionFieldInfo<boolean>;
|
|
142
|
+
|
|
143
|
+
export const tuiSignedDisplayQ22021: jspb.ExtensionFieldInfo<boolean>;
|
|
144
|
+
|