@@ -2,6 +2,21 @@ import type { Principal } from '@dfinity/principal';
2
2
import type { ActorMethod } from '@dfinity/agent' ;
3
3
import type { IDL } from '@dfinity/candid' ;
4
4
5
+ export interface Agency {
6
+ 'vat' : string ,
7
+ 'region' : string ,
8
+ 'zip_code' : string ,
9
+ 'country' : string ,
10
+ 'agent' : string ,
11
+ 'city' : string ,
12
+ 'logo' : [ ] | [ string ] ,
13
+ 'name' : string ,
14
+ 'continent' : Continent ,
15
+ 'email' : string ,
16
+ 'website' : string ,
17
+ 'address' : string ,
18
+ 'mobile' : string ,
19
+ }
5
20
export type AllowanceError = { 'AllowanceNotFound' : null } |
6
21
{ 'BadSpender' : null } |
7
22
{ 'AllowanceChanged' : null } |
@@ -25,11 +40,19 @@ export type ConfigurationError = { 'AdminsCantBeEmpty' : null } |
25
40
{ 'AnonymousAdmin' : null } ;
26
41
export type ConfigurationError_1 = { 'CustodialsCantBeEmpty' : null } |
27
42
{ 'AnonymousCustodial' : null } ;
43
+ export type Continent = { 'Africa' : null } |
44
+ { 'Antarctica' : null } |
45
+ { 'Asia' : null } |
46
+ { 'Europe' : null } |
47
+ { 'SouthAmerica' : null } |
48
+ { 'Oceania' : null } |
49
+ { 'NorthAmerica' : null } ;
28
50
export interface Contract {
29
51
'id' : bigint ,
30
52
'value' : bigint ,
31
53
'type' : ContractType ,
32
54
'is_signed' : boolean ,
55
+ 'agency' : [ ] | [ Agency ] ,
33
56
'properties' : Array < [ string , GenericValue ] > ,
34
57
'sellers' : Array < Seller > ,
35
58
'tokens' : Array < bigint > ,
@@ -252,6 +275,7 @@ export type Vec = Array<
252
275
> ;
253
276
export interface _SERVICE {
254
277
'admin_get_unsigned_contracts' : ActorMethod < [ ] , Array < bigint > > ,
278
+ 'admin_register_agency' : ActorMethod < [ Principal , Agency ] , undefined > ,
255
279
'admin_remove_role' : ActorMethod < [ Principal , Role ] , Result > ,
256
280
'admin_set_ekoke_canister' : ActorMethod < [ Principal ] , undefined > ,
257
281
'admin_set_marketplace_canister' : ActorMethod < [ Principal ] , undefined > ,
@@ -262,6 +286,7 @@ export interface _SERVICE {
262
286
'burn' : ActorMethod < [ bigint ] , Result_1 > ,
263
287
'custodians' : ActorMethod < [ ] , Array < Principal > > ,
264
288
'cycles' : ActorMethod < [ ] , bigint > ,
289
+ 'get_agencies' : ActorMethod < [ ] , Array < Agency > > ,
265
290
'get_contract' : ActorMethod < [ bigint ] , [ ] | [ Contract ] > ,
266
291
'get_signed_contracts' : ActorMethod < [ ] , Array < bigint > > ,
267
292
'get_token' : ActorMethod < [ bigint ] , [ ] | [ TokenInfo ] > ,
@@ -280,6 +305,7 @@ export interface _SERVICE {
280
305
'owner_token_identifiers' : ActorMethod < [ Principal ] , Result_4 > ,
281
306
'owner_token_metadata' : ActorMethod < [ Principal ] , Result_5 > ,
282
307
'register_contract' : ActorMethod < [ ContractRegistration ] , Result_6 > ,
308
+ 'remove_agency' : ActorMethod < [ Principal ] , Result > ,
283
309
'seller_increment_contract_value' : ActorMethod <
284
310
[ bigint , bigint , bigint ] ,
285
311
Result
0 commit comments