@propxchain/core-client 0.2.1 → 0.3.0-canary.24
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 +2 -3
- package/dist/auth.d.ts +7 -7
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +5 -5
- package/dist/auth.js.map +1 -1
- package/dist/canisters/document_storage/document_storage.did.d.ts.map +1 -1
- package/dist/canisters/document_storage/document_storage.did.js +90 -21
- package/dist/canisters/document_storage/document_storage.did.js.map +1 -1
- package/dist/canisters/document_verification/document_verification.did.d.ts.map +1 -1
- package/dist/canisters/document_verification/document_verification.did.js +132 -0
- package/dist/canisters/document_verification/document_verification.did.js.map +1 -1
- package/dist/canisters/email_service/email_service.did.d.ts.map +1 -1
- package/dist/canisters/email_service/email_service.did.js +40 -0
- package/dist/canisters/email_service/email_service.did.js.map +1 -1
- package/dist/canisters/land_registry_integration/land_registry_integration.did.d.ts.map +1 -1
- package/dist/canisters/land_registry_integration/land_registry_integration.did.js +186 -12
- package/dist/canisters/land_registry_integration/land_registry_integration.did.js.map +1 -1
- package/dist/canisters/ledger_manager/ledger_manager.did.d.ts.map +1 -1
- package/dist/canisters/ledger_manager/ledger_manager.did.js +55 -0
- package/dist/canisters/ledger_manager/ledger_manager.did.js.map +1 -1
- package/dist/canisters/transaction_manager/transaction_manager.did.d.ts.map +1 -1
- package/dist/canisters/transaction_manager/transaction_manager.did.js +338 -40
- package/dist/canisters/transaction_manager/transaction_manager.did.js.map +1 -1
- package/dist/canisters/user_management/user_management.did.d.ts.map +1 -1
- package/dist/canisters/user_management/user_management.did.js +122 -2
- package/dist/canisters/user_management/user_management.did.js.map +1 -1
- package/dist/client.js +1 -1
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/mock.js +1 -1
- package/dist/mock.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -6
- package/src/auth.ts +8 -9
- package/src/canisters/document_storage/document_storage.did +82 -12
- package/src/canisters/document_storage/document_storage.did.d.ts +86 -9
- package/src/canisters/document_storage/document_storage.did.js +128 -19
- package/src/canisters/document_verification/document_verification.did +150 -0
- package/src/canisters/document_verification/document_verification.did.d.ts +125 -1
- package/src/canisters/document_verification/document_verification.did.js +160 -0
- package/src/canisters/email_service/email_service.did +49 -0
- package/src/canisters/email_service/email_service.did.d.ts +49 -2
- package/src/canisters/email_service/email_service.did.js +68 -0
- package/src/canisters/land_registry_integration/land_registry_integration.did +118 -19
- package/src/canisters/land_registry_integration/land_registry_integration.did.d.ts +89 -19
- package/src/canisters/land_registry_integration/land_registry_integration.did.js +213 -11
- package/src/canisters/ledger_manager/ledger_manager.did +78 -0
- package/src/canisters/ledger_manager/ledger_manager.did.d.ts +66 -0
- package/src/canisters/ledger_manager/ledger_manager.did.js +75 -0
- package/src/canisters/transaction_manager/transaction_manager.did +438 -47
- package/src/canisters/transaction_manager/transaction_manager.did.d.ts +379 -36
- package/src/canisters/transaction_manager/transaction_manager.did.js +346 -40
- package/src/canisters/user_management/user_management.did +153 -3
- package/src/canisters/user_management/user_management.did.d.ts +121 -2
- package/src/canisters/user_management/user_management.did.js +166 -6
- package/src/client.ts +1 -1
- package/src/index.ts +2 -2
- package/src/mock.ts +1 -1
- package/src/types.ts +1 -1
|
@@ -58,11 +58,44 @@ type TeamMemberRole =
|
|
|
58
58
|
manager;
|
|
59
59
|
viewer;
|
|
60
60
|
};
|
|
61
|
+
type Result_2 =
|
|
62
|
+
variant {
|
|
63
|
+
err: text;
|
|
64
|
+
ok: nat;
|
|
65
|
+
};
|
|
66
|
+
type Result_1 =
|
|
67
|
+
variant {
|
|
68
|
+
err: text;
|
|
69
|
+
ok;
|
|
70
|
+
};
|
|
61
71
|
type Result =
|
|
62
72
|
variant {
|
|
63
73
|
err: text;
|
|
64
74
|
ok: text;
|
|
65
75
|
};
|
|
76
|
+
type LandRegistryCostEntry =
|
|
77
|
+
record {
|
|
78
|
+
apiEndpoint: text;
|
|
79
|
+
calledAt: int;
|
|
80
|
+
calledBy: principal;
|
|
81
|
+
costPence: nat;
|
|
82
|
+
description: text;
|
|
83
|
+
id: nat;
|
|
84
|
+
invoiceReference: opt text;
|
|
85
|
+
titleNumber: text;
|
|
86
|
+
transactionId: text;
|
|
87
|
+
};
|
|
88
|
+
type LRCostReport =
|
|
89
|
+
record {
|
|
90
|
+
avgCostPerTransaction: nat;
|
|
91
|
+
byEndpoint: vec record {
|
|
92
|
+
text;
|
|
93
|
+
nat;
|
|
94
|
+
};
|
|
95
|
+
entryCount: nat;
|
|
96
|
+
totalGBP: text;
|
|
97
|
+
totalPence: nat;
|
|
98
|
+
};
|
|
66
99
|
type DocumentVerification =
|
|
67
100
|
record {
|
|
68
101
|
landRegistryConfirm: VerificationStatus;
|
|
@@ -95,6 +128,17 @@ type CompanyLedger =
|
|
|
95
128
|
teamMemberCount: nat;
|
|
96
129
|
totalTransactions: nat;
|
|
97
130
|
};
|
|
131
|
+
type BudgetStatus =
|
|
132
|
+
record {
|
|
133
|
+
dailyLimit: nat;
|
|
134
|
+
dailyRemaining: nat;
|
|
135
|
+
dailySpent: nat;
|
|
136
|
+
isOverDailyBudget: bool;
|
|
137
|
+
isOverMonthlyBudget: bool;
|
|
138
|
+
monthlyLimit: nat;
|
|
139
|
+
monthlyRemaining: nat;
|
|
140
|
+
monthlySpent: nat;
|
|
141
|
+
};
|
|
98
142
|
type BlockchainEfficiencyMetrics =
|
|
99
143
|
record {
|
|
100
144
|
avgBlockchainCompletionDays: nat;
|
|
@@ -107,6 +151,16 @@ type BlockchainEfficiencyMetrics =
|
|
|
107
151
|
totalTimeSavedDays: nat;
|
|
108
152
|
transactionsCompleted: nat;
|
|
109
153
|
};
|
|
154
|
+
type AuditEvent =
|
|
155
|
+
record {
|
|
156
|
+
caller: principal;
|
|
157
|
+
details: text;
|
|
158
|
+
eventId: nat;
|
|
159
|
+
eventType: text;
|
|
160
|
+
metadata: opt text;
|
|
161
|
+
timestamp: int;
|
|
162
|
+
transactionId: text;
|
|
163
|
+
};
|
|
110
164
|
type Analytics =
|
|
111
165
|
record {
|
|
112
166
|
avgCompletionTime: nat;
|
|
@@ -125,23 +179,47 @@ service : {
|
|
|
125
179
|
addTransactionToLedger: (accountID: text, transactionID: text,
|
|
126
180
|
roleInTransaction: TransactionRole, propertyAddress: text, propertyValue:
|
|
127
181
|
nat, counterparties: vec Counterparty) -> (bool);
|
|
182
|
+
canAffordAPICall: (costPence: nat) -> (bool) query;
|
|
183
|
+
clearFailedAuditEvents: () -> ();
|
|
128
184
|
createCompanyTeamMember: (companyID: text, name: text, email: text, role:
|
|
129
185
|
TeamMemberRole, permissions: TeamPermissions) -> (text);
|
|
130
186
|
createUserAccount: (name: text, email: text, accountType: AccountType,
|
|
131
187
|
companyName: opt text, taxID: opt text) -> (text);
|
|
188
|
+
getAllAuditEvents: () -> (vec AuditEvent) query;
|
|
132
189
|
getBlockchainEfficiencyMetrics: (accountID: text) ->
|
|
133
190
|
(BlockchainEfficiencyMetrics) query;
|
|
191
|
+
getBudgetStatus: () -> (BudgetStatus) query;
|
|
134
192
|
getCompanyLedger: (companyAccountID: text) -> (CompanyLedger) query;
|
|
135
193
|
getCompanyTeamMembers: (companyAccountID: text) ->
|
|
136
194
|
(vec CompanyTeamMember) query;
|
|
137
195
|
getCycles: () -> (nat) query;
|
|
196
|
+
getDailyLRSpend: () -> (nat) query;
|
|
197
|
+
getEventsByTransaction: (transactionId: text) -> (vec AuditEvent) query;
|
|
198
|
+
getFailedAuditEvents: () -> (vec AuditEvent) query;
|
|
138
199
|
getGlobalBlockchainStats: () -> (BlockchainEfficiencyMetrics) query;
|
|
200
|
+
getLRCostReport: (fromDate: int, toDate: int) -> (LRCostReport) query;
|
|
201
|
+
getLRCostsForTransaction: (transactionId: text) ->
|
|
202
|
+
(vec LandRegistryCostEntry) query;
|
|
203
|
+
getLRSpendByEndpoint: (fromDate: int, toDate: int) ->
|
|
204
|
+
(vec record {
|
|
205
|
+
text;
|
|
206
|
+
nat;
|
|
207
|
+
}) query;
|
|
139
208
|
getLedgerAnalytics: (accountID: text, period: text) -> (Analytics) query;
|
|
209
|
+
getMonthlyLRSpend: () -> (nat) query;
|
|
140
210
|
getMyAccount: () -> (opt UserAccount) query;
|
|
141
211
|
getMyLedger: () -> (vec UserLedgerEntry) query;
|
|
142
212
|
getUserAccount: (accountID: text) -> (opt UserAccount) query;
|
|
143
213
|
getUserLedger: (accountID: text) -> (vec UserLedgerEntry) query;
|
|
214
|
+
logEvent: (transactionId: text, eventType: text, details: text, metadata:
|
|
215
|
+
opt text) -> (Result_2);
|
|
216
|
+
recordLandRegistryCost: (transactionId: text, apiEndpoint: text, costPence:
|
|
217
|
+
nat, titleNumber: text, description: text, invoiceReference: opt text) ->
|
|
218
|
+
(Result_2);
|
|
219
|
+
setDailyBudget: (limitPence: nat) -> (Result_1);
|
|
220
|
+
setDocumentStorageCanister: (canisterId: principal) -> ();
|
|
144
221
|
setDocumentVerificationCanister: (canisterId: principal) -> ();
|
|
222
|
+
setMonthlyBudget: (limitPence: nat) -> (Result_1);
|
|
145
223
|
setPropertyRegistryCanister: (canisterId: principal) -> ();
|
|
146
224
|
setTransactionManagerCanister: (canisterId: principal) -> ();
|
|
147
225
|
setUserManagementCanister: (canisterId: principal) -> ();
|
|
@@ -12,6 +12,15 @@ export interface Analytics {
|
|
|
12
12
|
'completedTransactions' : bigint,
|
|
13
13
|
'totalTransactions' : bigint,
|
|
14
14
|
}
|
|
15
|
+
export interface AuditEvent {
|
|
16
|
+
'eventId' : bigint,
|
|
17
|
+
'metadata' : [] | [string],
|
|
18
|
+
'timestamp' : bigint,
|
|
19
|
+
'details' : string,
|
|
20
|
+
'caller' : Principal,
|
|
21
|
+
'transactionId' : string,
|
|
22
|
+
'eventType' : string,
|
|
23
|
+
}
|
|
15
24
|
export interface BlockchainEfficiencyMetrics {
|
|
16
25
|
'avgBlockchainCompletionDays' : bigint,
|
|
17
26
|
'totalCostSaved' : bigint,
|
|
@@ -23,6 +32,16 @@ export interface BlockchainEfficiencyMetrics {
|
|
|
23
32
|
'costReductionPercent' : bigint,
|
|
24
33
|
'totalTimeSavedDays' : bigint,
|
|
25
34
|
}
|
|
35
|
+
export interface BudgetStatus {
|
|
36
|
+
'dailyRemaining' : bigint,
|
|
37
|
+
'isOverDailyBudget' : boolean,
|
|
38
|
+
'monthlyLimit' : bigint,
|
|
39
|
+
'monthlySpent' : bigint,
|
|
40
|
+
'dailyLimit' : bigint,
|
|
41
|
+
'dailySpent' : bigint,
|
|
42
|
+
'isOverMonthlyBudget' : boolean,
|
|
43
|
+
'monthlyRemaining' : bigint,
|
|
44
|
+
}
|
|
26
45
|
export interface CompanyLedger {
|
|
27
46
|
'companyAccountID' : string,
|
|
28
47
|
'avgCompletionTime' : bigint,
|
|
@@ -48,8 +67,30 @@ export interface DocumentVerification {
|
|
|
48
67
|
'landRegistryConfirm' : VerificationStatus,
|
|
49
68
|
'surveyReport' : VerificationStatus,
|
|
50
69
|
}
|
|
70
|
+
export interface LRCostReport {
|
|
71
|
+
'entryCount' : bigint,
|
|
72
|
+
'byEndpoint' : Array<[string, bigint]>,
|
|
73
|
+
'avgCostPerTransaction' : bigint,
|
|
74
|
+
'totalGBP' : string,
|
|
75
|
+
'totalPence' : bigint,
|
|
76
|
+
}
|
|
77
|
+
export interface LandRegistryCostEntry {
|
|
78
|
+
'id' : bigint,
|
|
79
|
+
'titleNumber' : string,
|
|
80
|
+
'invoiceReference' : [] | [string],
|
|
81
|
+
'description' : string,
|
|
82
|
+
'calledAt' : bigint,
|
|
83
|
+
'calledBy' : Principal,
|
|
84
|
+
'apiEndpoint' : string,
|
|
85
|
+
'costPence' : bigint,
|
|
86
|
+
'transactionId' : string,
|
|
87
|
+
}
|
|
51
88
|
export type Result = { 'ok' : string } |
|
|
52
89
|
{ 'err' : string };
|
|
90
|
+
export type Result_1 = { 'ok' : null } |
|
|
91
|
+
{ 'err' : string };
|
|
92
|
+
export type Result_2 = { 'ok' : bigint } |
|
|
93
|
+
{ 'err' : string };
|
|
53
94
|
export type TeamMemberRole = { 'manager' : null } |
|
|
54
95
|
{ 'admin' : null } |
|
|
55
96
|
{ 'viewer' : null };
|
|
@@ -100,6 +141,8 @@ export interface _SERVICE {
|
|
|
100
141
|
[string, string, TransactionRole, string, bigint, Array<Counterparty>],
|
|
101
142
|
boolean
|
|
102
143
|
>,
|
|
144
|
+
'canAffordAPICall' : ActorMethod<[bigint], boolean>,
|
|
145
|
+
'clearFailedAuditEvents' : ActorMethod<[], undefined>,
|
|
103
146
|
'createCompanyTeamMember' : ActorMethod<
|
|
104
147
|
[string, string, string, TeamMemberRole, TeamPermissions],
|
|
105
148
|
string
|
|
@@ -108,20 +151,43 @@ export interface _SERVICE {
|
|
|
108
151
|
[string, string, AccountType, [] | [string], [] | [string]],
|
|
109
152
|
string
|
|
110
153
|
>,
|
|
154
|
+
'getAllAuditEvents' : ActorMethod<[], Array<AuditEvent>>,
|
|
111
155
|
'getBlockchainEfficiencyMetrics' : ActorMethod<
|
|
112
156
|
[string],
|
|
113
157
|
BlockchainEfficiencyMetrics
|
|
114
158
|
>,
|
|
159
|
+
'getBudgetStatus' : ActorMethod<[], BudgetStatus>,
|
|
115
160
|
'getCompanyLedger' : ActorMethod<[string], CompanyLedger>,
|
|
116
161
|
'getCompanyTeamMembers' : ActorMethod<[string], Array<CompanyTeamMember>>,
|
|
117
162
|
'getCycles' : ActorMethod<[], bigint>,
|
|
163
|
+
'getDailyLRSpend' : ActorMethod<[], bigint>,
|
|
164
|
+
'getEventsByTransaction' : ActorMethod<[string], Array<AuditEvent>>,
|
|
165
|
+
'getFailedAuditEvents' : ActorMethod<[], Array<AuditEvent>>,
|
|
118
166
|
'getGlobalBlockchainStats' : ActorMethod<[], BlockchainEfficiencyMetrics>,
|
|
167
|
+
'getLRCostReport' : ActorMethod<[bigint, bigint], LRCostReport>,
|
|
168
|
+
'getLRCostsForTransaction' : ActorMethod<
|
|
169
|
+
[string],
|
|
170
|
+
Array<LandRegistryCostEntry>
|
|
171
|
+
>,
|
|
172
|
+
'getLRSpendByEndpoint' : ActorMethod<
|
|
173
|
+
[bigint, bigint],
|
|
174
|
+
Array<[string, bigint]>
|
|
175
|
+
>,
|
|
119
176
|
'getLedgerAnalytics' : ActorMethod<[string, string], Analytics>,
|
|
177
|
+
'getMonthlyLRSpend' : ActorMethod<[], bigint>,
|
|
120
178
|
'getMyAccount' : ActorMethod<[], [] | [UserAccount]>,
|
|
121
179
|
'getMyLedger' : ActorMethod<[], Array<UserLedgerEntry>>,
|
|
122
180
|
'getUserAccount' : ActorMethod<[string], [] | [UserAccount]>,
|
|
123
181
|
'getUserLedger' : ActorMethod<[string], Array<UserLedgerEntry>>,
|
|
182
|
+
'logEvent' : ActorMethod<[string, string, string, [] | [string]], Result_2>,
|
|
183
|
+
'recordLandRegistryCost' : ActorMethod<
|
|
184
|
+
[string, string, bigint, string, string, [] | [string]],
|
|
185
|
+
Result_2
|
|
186
|
+
>,
|
|
187
|
+
'setDailyBudget' : ActorMethod<[bigint], Result_1>,
|
|
188
|
+
'setDocumentStorageCanister' : ActorMethod<[Principal], undefined>,
|
|
124
189
|
'setDocumentVerificationCanister' : ActorMethod<[Principal], undefined>,
|
|
190
|
+
'setMonthlyBudget' : ActorMethod<[bigint], Result_1>,
|
|
125
191
|
'setPropertyRegistryCanister' : ActorMethod<[Principal], undefined>,
|
|
126
192
|
'setTransactionManagerCanister' : ActorMethod<[Principal], undefined>,
|
|
127
193
|
'setUserManagementCanister' : ActorMethod<[Principal], undefined>,
|
|
@@ -24,6 +24,15 @@ export const idlFactory = ({ IDL }) => {
|
|
|
24
24
|
'company' : IDL.Null,
|
|
25
25
|
'individual' : IDL.Null,
|
|
26
26
|
});
|
|
27
|
+
const AuditEvent = IDL.Record({
|
|
28
|
+
'eventId' : IDL.Nat,
|
|
29
|
+
'metadata' : IDL.Opt(IDL.Text),
|
|
30
|
+
'timestamp' : IDL.Int,
|
|
31
|
+
'details' : IDL.Text,
|
|
32
|
+
'caller' : IDL.Principal,
|
|
33
|
+
'transactionId' : IDL.Text,
|
|
34
|
+
'eventType' : IDL.Text,
|
|
35
|
+
});
|
|
27
36
|
const BlockchainEfficiencyMetrics = IDL.Record({
|
|
28
37
|
'avgBlockchainCompletionDays' : IDL.Nat,
|
|
29
38
|
'totalCostSaved' : IDL.Nat,
|
|
@@ -35,6 +44,16 @@ export const idlFactory = ({ IDL }) => {
|
|
|
35
44
|
'costReductionPercent' : IDL.Nat,
|
|
36
45
|
'totalTimeSavedDays' : IDL.Nat,
|
|
37
46
|
});
|
|
47
|
+
const BudgetStatus = IDL.Record({
|
|
48
|
+
'dailyRemaining' : IDL.Nat,
|
|
49
|
+
'isOverDailyBudget' : IDL.Bool,
|
|
50
|
+
'monthlyLimit' : IDL.Nat,
|
|
51
|
+
'monthlySpent' : IDL.Nat,
|
|
52
|
+
'dailyLimit' : IDL.Nat,
|
|
53
|
+
'dailySpent' : IDL.Nat,
|
|
54
|
+
'isOverMonthlyBudget' : IDL.Bool,
|
|
55
|
+
'monthlyRemaining' : IDL.Nat,
|
|
56
|
+
});
|
|
38
57
|
const CompanyLedger = IDL.Record({
|
|
39
58
|
'companyAccountID' : IDL.Text,
|
|
40
59
|
'avgCompletionTime' : IDL.Nat,
|
|
@@ -54,6 +73,24 @@ export const idlFactory = ({ IDL }) => {
|
|
|
54
73
|
'role' : TeamMemberRole,
|
|
55
74
|
'email' : IDL.Text,
|
|
56
75
|
});
|
|
76
|
+
const LRCostReport = IDL.Record({
|
|
77
|
+
'entryCount' : IDL.Nat,
|
|
78
|
+
'byEndpoint' : IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat)),
|
|
79
|
+
'avgCostPerTransaction' : IDL.Nat,
|
|
80
|
+
'totalGBP' : IDL.Text,
|
|
81
|
+
'totalPence' : IDL.Nat,
|
|
82
|
+
});
|
|
83
|
+
const LandRegistryCostEntry = IDL.Record({
|
|
84
|
+
'id' : IDL.Nat,
|
|
85
|
+
'titleNumber' : IDL.Text,
|
|
86
|
+
'invoiceReference' : IDL.Opt(IDL.Text),
|
|
87
|
+
'description' : IDL.Text,
|
|
88
|
+
'calledAt' : IDL.Int,
|
|
89
|
+
'calledBy' : IDL.Principal,
|
|
90
|
+
'apiEndpoint' : IDL.Text,
|
|
91
|
+
'costPence' : IDL.Nat,
|
|
92
|
+
'transactionId' : IDL.Text,
|
|
93
|
+
});
|
|
57
94
|
const Analytics = IDL.Record({
|
|
58
95
|
'transactionVolume' : IDL.Nat,
|
|
59
96
|
'avgCompletionTime' : IDL.Nat,
|
|
@@ -103,6 +140,8 @@ export const idlFactory = ({ IDL }) => {
|
|
|
103
140
|
'counterparties' : IDL.Vec(Counterparty),
|
|
104
141
|
'transactionID' : IDL.Text,
|
|
105
142
|
});
|
|
143
|
+
const Result_2 = IDL.Variant({ 'ok' : IDL.Nat, 'err' : IDL.Text });
|
|
144
|
+
const Result_1 = IDL.Variant({ 'ok' : IDL.Null, 'err' : IDL.Text });
|
|
106
145
|
const Result = IDL.Variant({ 'ok' : IDL.Text, 'err' : IDL.Text });
|
|
107
146
|
return IDL.Service({
|
|
108
147
|
'addTransactionToLedger' : IDL.Func(
|
|
@@ -117,6 +156,8 @@ export const idlFactory = ({ IDL }) => {
|
|
|
117
156
|
[IDL.Bool],
|
|
118
157
|
[],
|
|
119
158
|
),
|
|
159
|
+
'canAffordAPICall' : IDL.Func([IDL.Nat], [IDL.Bool], ['query']),
|
|
160
|
+
'clearFailedAuditEvents' : IDL.Func([], [], []),
|
|
120
161
|
'createCompanyTeamMember' : IDL.Func(
|
|
121
162
|
[IDL.Text, IDL.Text, IDL.Text, TeamMemberRole, TeamPermissions],
|
|
122
163
|
[IDL.Text],
|
|
@@ -127,11 +168,13 @@ export const idlFactory = ({ IDL }) => {
|
|
|
127
168
|
[IDL.Text],
|
|
128
169
|
[],
|
|
129
170
|
),
|
|
171
|
+
'getAllAuditEvents' : IDL.Func([], [IDL.Vec(AuditEvent)], ['query']),
|
|
130
172
|
'getBlockchainEfficiencyMetrics' : IDL.Func(
|
|
131
173
|
[IDL.Text],
|
|
132
174
|
[BlockchainEfficiencyMetrics],
|
|
133
175
|
['query'],
|
|
134
176
|
),
|
|
177
|
+
'getBudgetStatus' : IDL.Func([], [BudgetStatus], ['query']),
|
|
135
178
|
'getCompanyLedger' : IDL.Func([IDL.Text], [CompanyLedger], ['query']),
|
|
136
179
|
'getCompanyTeamMembers' : IDL.Func(
|
|
137
180
|
[IDL.Text],
|
|
@@ -139,16 +182,35 @@ export const idlFactory = ({ IDL }) => {
|
|
|
139
182
|
['query'],
|
|
140
183
|
),
|
|
141
184
|
'getCycles' : IDL.Func([], [IDL.Nat], ['query']),
|
|
185
|
+
'getDailyLRSpend' : IDL.Func([], [IDL.Nat], ['query']),
|
|
186
|
+
'getEventsByTransaction' : IDL.Func(
|
|
187
|
+
[IDL.Text],
|
|
188
|
+
[IDL.Vec(AuditEvent)],
|
|
189
|
+
['query'],
|
|
190
|
+
),
|
|
191
|
+
'getFailedAuditEvents' : IDL.Func([], [IDL.Vec(AuditEvent)], ['query']),
|
|
142
192
|
'getGlobalBlockchainStats' : IDL.Func(
|
|
143
193
|
[],
|
|
144
194
|
[BlockchainEfficiencyMetrics],
|
|
145
195
|
['query'],
|
|
146
196
|
),
|
|
197
|
+
'getLRCostReport' : IDL.Func([IDL.Int, IDL.Int], [LRCostReport], ['query']),
|
|
198
|
+
'getLRCostsForTransaction' : IDL.Func(
|
|
199
|
+
[IDL.Text],
|
|
200
|
+
[IDL.Vec(LandRegistryCostEntry)],
|
|
201
|
+
['query'],
|
|
202
|
+
),
|
|
203
|
+
'getLRSpendByEndpoint' : IDL.Func(
|
|
204
|
+
[IDL.Int, IDL.Int],
|
|
205
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat))],
|
|
206
|
+
['query'],
|
|
207
|
+
),
|
|
147
208
|
'getLedgerAnalytics' : IDL.Func(
|
|
148
209
|
[IDL.Text, IDL.Text],
|
|
149
210
|
[Analytics],
|
|
150
211
|
['query'],
|
|
151
212
|
),
|
|
213
|
+
'getMonthlyLRSpend' : IDL.Func([], [IDL.Nat], ['query']),
|
|
152
214
|
'getMyAccount' : IDL.Func([], [IDL.Opt(UserAccount)], ['query']),
|
|
153
215
|
'getMyLedger' : IDL.Func([], [IDL.Vec(UserLedgerEntry)], ['query']),
|
|
154
216
|
'getUserAccount' : IDL.Func([IDL.Text], [IDL.Opt(UserAccount)], ['query']),
|
|
@@ -157,7 +219,20 @@ export const idlFactory = ({ IDL }) => {
|
|
|
157
219
|
[IDL.Vec(UserLedgerEntry)],
|
|
158
220
|
['query'],
|
|
159
221
|
),
|
|
222
|
+
'logEvent' : IDL.Func(
|
|
223
|
+
[IDL.Text, IDL.Text, IDL.Text, IDL.Opt(IDL.Text)],
|
|
224
|
+
[Result_2],
|
|
225
|
+
[],
|
|
226
|
+
),
|
|
227
|
+
'recordLandRegistryCost' : IDL.Func(
|
|
228
|
+
[IDL.Text, IDL.Text, IDL.Nat, IDL.Text, IDL.Text, IDL.Opt(IDL.Text)],
|
|
229
|
+
[Result_2],
|
|
230
|
+
[],
|
|
231
|
+
),
|
|
232
|
+
'setDailyBudget' : IDL.Func([IDL.Nat], [Result_1], []),
|
|
233
|
+
'setDocumentStorageCanister' : IDL.Func([IDL.Principal], [], []),
|
|
160
234
|
'setDocumentVerificationCanister' : IDL.Func([IDL.Principal], [], []),
|
|
235
|
+
'setMonthlyBudget' : IDL.Func([IDL.Nat], [Result_1], []),
|
|
161
236
|
'setPropertyRegistryCanister' : IDL.Func([IDL.Principal], [], []),
|
|
162
237
|
'setTransactionManagerCanister' : IDL.Func([IDL.Principal], [], []),
|
|
163
238
|
'setUserManagementCanister' : IDL.Func([IDL.Principal], [], []),
|