@junobuild/admin 0.0.7 → 0.0.8

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.
Files changed (43) hide show
  1. package/dist/browser/index.js +14 -14
  2. package/dist/browser/index.js.map +4 -4
  3. package/dist/declarations/cmc/cmc.did.d.ts +30 -30
  4. package/dist/declarations/cmc/cmc.factory.did.js +63 -63
  5. package/dist/declarations/cmc/index.d.ts +18 -18
  6. package/dist/declarations/cmc/index.js +22 -22
  7. package/dist/declarations/console/console.did.d.ts +37 -37
  8. package/dist/declarations/console/console.factory.did.js +60 -60
  9. package/dist/declarations/console/console.factory.did.mjs +60 -60
  10. package/dist/declarations/console/index.d.ts +18 -18
  11. package/dist/declarations/console/index.js +22 -22
  12. package/dist/declarations/frontend/frontend.did.d.ts +136 -136
  13. package/dist/declarations/frontend/frontend.factory.did.js +206 -206
  14. package/dist/declarations/frontend/index.d.ts +18 -18
  15. package/dist/declarations/frontend/index.js +22 -22
  16. package/dist/declarations/ic/ic.did.d.ts +63 -63
  17. package/dist/declarations/ic/ic.factory.did.js +126 -126
  18. package/dist/declarations/internet_identity/index.d.ts +18 -18
  19. package/dist/declarations/internet_identity/index.js +22 -22
  20. package/dist/declarations/internet_identity/internet_identity.did.d.ts +136 -136
  21. package/dist/declarations/internet_identity/internet_identity.factory.did.js +231 -231
  22. package/dist/declarations/ledger/index.d.ts +18 -18
  23. package/dist/declarations/ledger/index.js +22 -22
  24. package/dist/declarations/ledger/ledger.did.d.ts +64 -64
  25. package/dist/declarations/ledger/ledger.factory.did.js +96 -96
  26. package/dist/declarations/mission_control/index.d.ts +18 -18
  27. package/dist/declarations/mission_control/index.js +22 -22
  28. package/dist/declarations/mission_control/mission_control.did.d.ts +30 -30
  29. package/dist/declarations/mission_control/mission_control.factory.did.js +48 -48
  30. package/dist/declarations/satellite/index.d.ts +18 -18
  31. package/dist/declarations/satellite/index.js +22 -22
  32. package/dist/declarations/satellite/satellite-deprecated.did.d.ts +186 -0
  33. package/dist/declarations/satellite/satellite-deprecated.factory.did.js +191 -0
  34. package/dist/declarations/satellite/satellite-deprecated.factory.did.mjs +191 -0
  35. package/dist/declarations/satellite/satellite.did.d.ts +124 -120
  36. package/dist/declarations/satellite/satellite.factory.did.js +189 -189
  37. package/dist/declarations/satellite/satellite.factory.did.mjs +189 -189
  38. package/dist/node/index.mjs +23 -23
  39. package/dist/node/index.mjs.map +4 -4
  40. package/dist/types/api/actor.api.d.ts +2 -0
  41. package/dist/types/api/satellite.api.d.ts +3 -0
  42. package/dist/types/services/satellite.services.d.ts +2 -1
  43. package/package.json +1 -1
@@ -1,100 +1,100 @@
1
- import type {ActorMethod} from '@dfinity/agent';
2
- import type {Principal} from '@dfinity/principal';
1
+ import type { ActorMethod } from '@dfinity/agent';
2
+ import type { Principal } from '@dfinity/principal';
3
3
 
4
4
  export interface AccountBalanceArgs {
5
- account: AccountIdentifier;
5
+ account: AccountIdentifier;
6
6
  }
7
7
  export type AccountIdentifier = Uint8Array | number[];
8
8
  export interface Archive {
9
- canister_id: Principal;
9
+ canister_id: Principal;
10
10
  }
11
11
  export interface Archives {
12
- archives: Array<Archive>;
12
+ archives: Array<Archive>;
13
13
  }
14
14
  export interface Block {
15
- transaction: Transaction;
16
- timestamp: TimeStamp;
17
- parent_hash: [] | [Uint8Array | number[]];
15
+ transaction: Transaction;
16
+ timestamp: TimeStamp;
17
+ parent_hash: [] | [Uint8Array | number[]];
18
18
  }
19
19
  export type BlockIndex = bigint;
20
20
  export interface BlockRange {
21
- blocks: Array<Block>;
21
+ blocks: Array<Block>;
22
22
  }
23
23
  export interface GetBlocksArgs {
24
- start: BlockIndex;
25
- length: bigint;
24
+ start: BlockIndex;
25
+ length: bigint;
26
26
  }
27
27
  export type Memo = bigint;
28
28
  export type Operation =
29
- | {
30
- Burn: {from: AccountIdentifier; amount: Tokens};
31
- }
32
- | {Mint: {to: AccountIdentifier; amount: Tokens}}
33
- | {
34
- Transfer: {
35
- to: AccountIdentifier;
36
- fee: Tokens;
37
- from: AccountIdentifier;
38
- amount: Tokens;
39
- };
40
- };
29
+ | {
30
+ Burn: { from: AccountIdentifier; amount: Tokens };
31
+ }
32
+ | { Mint: { to: AccountIdentifier; amount: Tokens } }
33
+ | {
34
+ Transfer: {
35
+ to: AccountIdentifier;
36
+ fee: Tokens;
37
+ from: AccountIdentifier;
38
+ amount: Tokens;
39
+ };
40
+ };
41
41
  export type QueryArchiveError =
42
- | {
43
- BadFirstBlockIndex: {
44
- requested_index: BlockIndex;
45
- first_valid_index: BlockIndex;
46
- };
47
- }
48
- | {Other: {error_message: string; error_code: bigint}};
42
+ | {
43
+ BadFirstBlockIndex: {
44
+ requested_index: BlockIndex;
45
+ first_valid_index: BlockIndex;
46
+ };
47
+ }
48
+ | { Other: { error_message: string; error_code: bigint } };
49
49
  export type QueryArchiveFn = ActorMethod<[GetBlocksArgs], QueryArchiveResult>;
50
- export type QueryArchiveResult = {Ok: BlockRange} | {Err: QueryArchiveError};
50
+ export type QueryArchiveResult = { Ok: BlockRange } | { Err: QueryArchiveError };
51
51
  export interface QueryBlocksResponse {
52
- certificate: [] | [Uint8Array | number[]];
53
- blocks: Array<Block>;
54
- chain_length: bigint;
55
- first_block_index: BlockIndex;
56
- archived_blocks: Array<{callback: QueryArchiveFn; start: BlockIndex; length: bigint}>;
52
+ certificate: [] | [Uint8Array | number[]];
53
+ blocks: Array<Block>;
54
+ chain_length: bigint;
55
+ first_block_index: BlockIndex;
56
+ archived_blocks: Array<{ callback: QueryArchiveFn; start: BlockIndex; length: bigint }>;
57
57
  }
58
58
  export type SubAccount = Uint8Array | number[];
59
59
  export interface TimeStamp {
60
- timestamp_nanos: bigint;
60
+ timestamp_nanos: bigint;
61
61
  }
62
62
  export interface Tokens {
63
- e8s: bigint;
63
+ e8s: bigint;
64
64
  }
65
65
  export interface Transaction {
66
- memo: Memo;
67
- operation: [] | [Operation];
68
- created_at_time: TimeStamp;
66
+ memo: Memo;
67
+ operation: [] | [Operation];
68
+ created_at_time: TimeStamp;
69
69
  }
70
70
  export interface TransferArgs {
71
- to: AccountIdentifier;
72
- fee: Tokens;
73
- memo: Memo;
74
- from_subaccount: [] | [SubAccount];
75
- created_at_time: [] | [TimeStamp];
76
- amount: Tokens;
71
+ to: AccountIdentifier;
72
+ fee: Tokens;
73
+ memo: Memo;
74
+ from_subaccount: [] | [SubAccount];
75
+ created_at_time: [] | [TimeStamp];
76
+ amount: Tokens;
77
77
  }
78
78
  export type TransferError =
79
- | {
80
- TxTooOld: {allowed_window_nanos: bigint};
81
- }
82
- | {BadFee: {expected_fee: Tokens}}
83
- | {TxDuplicate: {duplicate_of: BlockIndex}}
84
- | {TxCreatedInFuture: null}
85
- | {InsufficientFunds: {balance: Tokens}};
79
+ | {
80
+ TxTooOld: { allowed_window_nanos: bigint };
81
+ }
82
+ | { BadFee: { expected_fee: Tokens } }
83
+ | { TxDuplicate: { duplicate_of: BlockIndex } }
84
+ | { TxCreatedInFuture: null }
85
+ | { InsufficientFunds: { balance: Tokens } };
86
86
  export interface TransferFee {
87
- transfer_fee: Tokens;
87
+ transfer_fee: Tokens;
88
88
  }
89
89
  export type TransferFeeArg = {};
90
- export type TransferResult = {Ok: BlockIndex} | {Err: TransferError};
90
+ export type TransferResult = { Ok: BlockIndex } | { Err: TransferError };
91
91
  export interface _SERVICE {
92
- account_balance: ActorMethod<[AccountBalanceArgs], Tokens>;
93
- archives: ActorMethod<[], Archives>;
94
- decimals: ActorMethod<[], {decimals: number}>;
95
- name: ActorMethod<[], {name: string}>;
96
- query_blocks: ActorMethod<[GetBlocksArgs], QueryBlocksResponse>;
97
- symbol: ActorMethod<[], {symbol: string}>;
98
- transfer: ActorMethod<[TransferArgs], TransferResult>;
99
- transfer_fee: ActorMethod<[TransferFeeArg], TransferFee>;
92
+ account_balance: ActorMethod<[AccountBalanceArgs], Tokens>;
93
+ archives: ActorMethod<[], Archives>;
94
+ decimals: ActorMethod<[], { decimals: number }>;
95
+ name: ActorMethod<[], { name: string }>;
96
+ query_blocks: ActorMethod<[GetBlocksArgs], QueryBlocksResponse>;
97
+ symbol: ActorMethod<[], { symbol: string }>;
98
+ transfer: ActorMethod<[TransferArgs], TransferResult>;
99
+ transfer_fee: ActorMethod<[TransferFeeArg], TransferFee>;
100
100
  }
@@ -1,98 +1,98 @@
1
- export const idlFactory = ({IDL}) => {
2
- const AccountIdentifier = IDL.Vec(IDL.Nat8);
3
- const AccountBalanceArgs = IDL.Record({account: AccountIdentifier});
4
- const Tokens = IDL.Record({e8s: IDL.Nat64});
5
- const Archive = IDL.Record({canister_id: IDL.Principal});
6
- const Archives = IDL.Record({archives: IDL.Vec(Archive)});
7
- const BlockIndex = IDL.Nat64;
8
- const GetBlocksArgs = IDL.Record({
9
- start: BlockIndex,
10
- length: IDL.Nat64
11
- });
12
- const Memo = IDL.Nat64;
13
- const Operation = IDL.Variant({
14
- Burn: IDL.Record({from: AccountIdentifier, amount: Tokens}),
15
- Mint: IDL.Record({to: AccountIdentifier, amount: Tokens}),
16
- Transfer: IDL.Record({
17
- to: AccountIdentifier,
18
- fee: Tokens,
19
- from: AccountIdentifier,
20
- amount: Tokens
21
- })
22
- });
23
- const TimeStamp = IDL.Record({timestamp_nanos: IDL.Nat64});
24
- const Transaction = IDL.Record({
25
- memo: Memo,
26
- operation: IDL.Opt(Operation),
27
- created_at_time: TimeStamp
28
- });
29
- const Block = IDL.Record({
30
- transaction: Transaction,
31
- timestamp: TimeStamp,
32
- parent_hash: IDL.Opt(IDL.Vec(IDL.Nat8))
33
- });
34
- const BlockRange = IDL.Record({blocks: IDL.Vec(Block)});
35
- const QueryArchiveError = IDL.Variant({
36
- BadFirstBlockIndex: IDL.Record({
37
- requested_index: BlockIndex,
38
- first_valid_index: BlockIndex
39
- }),
40
- Other: IDL.Record({
41
- error_message: IDL.Text,
42
- error_code: IDL.Nat64
43
- })
44
- });
45
- const QueryArchiveResult = IDL.Variant({
46
- Ok: BlockRange,
47
- Err: QueryArchiveError
48
- });
49
- const QueryArchiveFn = IDL.Func([GetBlocksArgs], [QueryArchiveResult], ['query']);
50
- const QueryBlocksResponse = IDL.Record({
51
- certificate: IDL.Opt(IDL.Vec(IDL.Nat8)),
52
- blocks: IDL.Vec(Block),
53
- chain_length: IDL.Nat64,
54
- first_block_index: BlockIndex,
55
- archived_blocks: IDL.Vec(
56
- IDL.Record({
57
- callback: QueryArchiveFn,
58
- start: BlockIndex,
59
- length: IDL.Nat64
60
- })
61
- )
62
- });
63
- const SubAccount = IDL.Vec(IDL.Nat8);
64
- const TransferArgs = IDL.Record({
65
- to: AccountIdentifier,
66
- fee: Tokens,
67
- memo: Memo,
68
- from_subaccount: IDL.Opt(SubAccount),
69
- created_at_time: IDL.Opt(TimeStamp),
70
- amount: Tokens
71
- });
72
- const TransferError = IDL.Variant({
73
- TxTooOld: IDL.Record({allowed_window_nanos: IDL.Nat64}),
74
- BadFee: IDL.Record({expected_fee: Tokens}),
75
- TxDuplicate: IDL.Record({duplicate_of: BlockIndex}),
76
- TxCreatedInFuture: IDL.Null,
77
- InsufficientFunds: IDL.Record({balance: Tokens})
78
- });
79
- const TransferResult = IDL.Variant({
80
- Ok: BlockIndex,
81
- Err: TransferError
82
- });
83
- const TransferFeeArg = IDL.Record({});
84
- const TransferFee = IDL.Record({transfer_fee: Tokens});
85
- return IDL.Service({
86
- account_balance: IDL.Func([AccountBalanceArgs], [Tokens], ['query']),
87
- archives: IDL.Func([], [Archives], ['query']),
88
- decimals: IDL.Func([], [IDL.Record({decimals: IDL.Nat32})], ['query']),
89
- name: IDL.Func([], [IDL.Record({name: IDL.Text})], ['query']),
90
- query_blocks: IDL.Func([GetBlocksArgs], [QueryBlocksResponse], ['query']),
91
- symbol: IDL.Func([], [IDL.Record({symbol: IDL.Text})], ['query']),
92
- transfer: IDL.Func([TransferArgs], [TransferResult], []),
93
- transfer_fee: IDL.Func([TransferFeeArg], [TransferFee], ['query'])
94
- });
1
+ export const idlFactory = ({ IDL }) => {
2
+ const AccountIdentifier = IDL.Vec(IDL.Nat8);
3
+ const AccountBalanceArgs = IDL.Record({ account: AccountIdentifier });
4
+ const Tokens = IDL.Record({ e8s: IDL.Nat64 });
5
+ const Archive = IDL.Record({ canister_id: IDL.Principal });
6
+ const Archives = IDL.Record({ archives: IDL.Vec(Archive) });
7
+ const BlockIndex = IDL.Nat64;
8
+ const GetBlocksArgs = IDL.Record({
9
+ start: BlockIndex,
10
+ length: IDL.Nat64
11
+ });
12
+ const Memo = IDL.Nat64;
13
+ const Operation = IDL.Variant({
14
+ Burn: IDL.Record({ from: AccountIdentifier, amount: Tokens }),
15
+ Mint: IDL.Record({ to: AccountIdentifier, amount: Tokens }),
16
+ Transfer: IDL.Record({
17
+ to: AccountIdentifier,
18
+ fee: Tokens,
19
+ from: AccountIdentifier,
20
+ amount: Tokens
21
+ })
22
+ });
23
+ const TimeStamp = IDL.Record({ timestamp_nanos: IDL.Nat64 });
24
+ const Transaction = IDL.Record({
25
+ memo: Memo,
26
+ operation: IDL.Opt(Operation),
27
+ created_at_time: TimeStamp
28
+ });
29
+ const Block = IDL.Record({
30
+ transaction: Transaction,
31
+ timestamp: TimeStamp,
32
+ parent_hash: IDL.Opt(IDL.Vec(IDL.Nat8))
33
+ });
34
+ const BlockRange = IDL.Record({ blocks: IDL.Vec(Block) });
35
+ const QueryArchiveError = IDL.Variant({
36
+ BadFirstBlockIndex: IDL.Record({
37
+ requested_index: BlockIndex,
38
+ first_valid_index: BlockIndex
39
+ }),
40
+ Other: IDL.Record({
41
+ error_message: IDL.Text,
42
+ error_code: IDL.Nat64
43
+ })
44
+ });
45
+ const QueryArchiveResult = IDL.Variant({
46
+ Ok: BlockRange,
47
+ Err: QueryArchiveError
48
+ });
49
+ const QueryArchiveFn = IDL.Func([GetBlocksArgs], [QueryArchiveResult], ['query']);
50
+ const QueryBlocksResponse = IDL.Record({
51
+ certificate: IDL.Opt(IDL.Vec(IDL.Nat8)),
52
+ blocks: IDL.Vec(Block),
53
+ chain_length: IDL.Nat64,
54
+ first_block_index: BlockIndex,
55
+ archived_blocks: IDL.Vec(
56
+ IDL.Record({
57
+ callback: QueryArchiveFn,
58
+ start: BlockIndex,
59
+ length: IDL.Nat64
60
+ })
61
+ )
62
+ });
63
+ const SubAccount = IDL.Vec(IDL.Nat8);
64
+ const TransferArgs = IDL.Record({
65
+ to: AccountIdentifier,
66
+ fee: Tokens,
67
+ memo: Memo,
68
+ from_subaccount: IDL.Opt(SubAccount),
69
+ created_at_time: IDL.Opt(TimeStamp),
70
+ amount: Tokens
71
+ });
72
+ const TransferError = IDL.Variant({
73
+ TxTooOld: IDL.Record({ allowed_window_nanos: IDL.Nat64 }),
74
+ BadFee: IDL.Record({ expected_fee: Tokens }),
75
+ TxDuplicate: IDL.Record({ duplicate_of: BlockIndex }),
76
+ TxCreatedInFuture: IDL.Null,
77
+ InsufficientFunds: IDL.Record({ balance: Tokens })
78
+ });
79
+ const TransferResult = IDL.Variant({
80
+ Ok: BlockIndex,
81
+ Err: TransferError
82
+ });
83
+ const TransferFeeArg = IDL.Record({});
84
+ const TransferFee = IDL.Record({ transfer_fee: Tokens });
85
+ return IDL.Service({
86
+ account_balance: IDL.Func([AccountBalanceArgs], [Tokens], ['query']),
87
+ archives: IDL.Func([], [Archives], ['query']),
88
+ decimals: IDL.Func([], [IDL.Record({ decimals: IDL.Nat32 })], ['query']),
89
+ name: IDL.Func([], [IDL.Record({ name: IDL.Text })], ['query']),
90
+ query_blocks: IDL.Func([GetBlocksArgs], [QueryBlocksResponse], ['query']),
91
+ symbol: IDL.Func([], [IDL.Record({ symbol: IDL.Text })], ['query']),
92
+ transfer: IDL.Func([TransferArgs], [TransferResult], []),
93
+ transfer_fee: IDL.Func([TransferFeeArg], [TransferFee], ['query'])
94
+ });
95
95
  };
96
- export const init = ({IDL}) => {
97
- return [];
96
+ export const init = ({ IDL }) => {
97
+ return [];
98
98
  };
@@ -1,25 +1,25 @@
1
- import type {ActorConfig, ActorSubclass, Agent, HttpAgentOptions} from '@dfinity/agent';
2
- import type {IDL} from '@dfinity/candid';
3
- import type {Principal} from '@dfinity/principal';
1
+ import type { ActorConfig, ActorSubclass, Agent, HttpAgentOptions } from '@dfinity/agent';
2
+ import type { IDL } from '@dfinity/candid';
3
+ import type { Principal } from '@dfinity/principal';
4
4
 
5
- import {_SERVICE} from './mission_control.did';
5
+ import { _SERVICE } from './mission_control.did';
6
6
 
7
7
  export declare const idlFactory: IDL.InterfaceFactory;
8
8
  export declare const canisterId: string;
9
9
 
10
10
  export declare interface CreateActorOptions {
11
- /**
12
- * @see {@link Agent}
13
- */
14
- agent?: Agent;
15
- /**
16
- * @see {@link HttpAgentOptions}
17
- */
18
- agentOptions?: HttpAgentOptions;
19
- /**
20
- * @see {@link ActorConfig}
21
- */
22
- actorOptions?: ActorConfig;
11
+ /**
12
+ * @see {@link Agent}
13
+ */
14
+ agent?: Agent;
15
+ /**
16
+ * @see {@link HttpAgentOptions}
17
+ */
18
+ agentOptions?: HttpAgentOptions;
19
+ /**
20
+ * @see {@link ActorConfig}
21
+ */
22
+ actorOptions?: ActorConfig;
23
23
  }
24
24
 
25
25
  /**
@@ -34,8 +34,8 @@ export declare interface CreateActorOptions {
34
34
  * @see {@link ActorConfig}
35
35
  */
36
36
  export declare const createActor: (
37
- canisterId: string | Principal,
38
- options?: CreateActorOptions
37
+ canisterId: string | Principal,
38
+ options?: CreateActorOptions
39
39
  ) => ActorSubclass<_SERVICE>;
40
40
 
41
41
  /**
@@ -1,32 +1,32 @@
1
- import {Actor, HttpAgent} from '@dfinity/agent';
1
+ import { Actor, HttpAgent } from '@dfinity/agent';
2
2
 
3
3
  // Imports and re-exports candid interface
4
- import {idlFactory} from './mission_control.did.js';
5
- export {idlFactory} from './mission_control.did.js';
4
+ import { idlFactory } from './mission_control.did.js';
5
+ export { idlFactory } from './mission_control.did.js';
6
6
 
7
7
  // CANISTER_ID is replaced by webpack based on node environment
8
8
 
9
9
  export const createActor = (canisterId, options = {}) => {
10
- const agent = options.agent || new HttpAgent({...options.agentOptions});
10
+ const agent = options.agent || new HttpAgent({ ...options.agentOptions });
11
11
 
12
- if (options.agent && options.agentOptions) {
13
- console.warn(
14
- 'Detected both agent and agentOptions passed to createActor. Ignoring agentOptions and proceeding with the provided agent.'
15
- );
16
- }
12
+ if (options.agent && options.agentOptions) {
13
+ console.warn(
14
+ 'Detected both agent and agentOptions passed to createActor. Ignoring agentOptions and proceeding with the provided agent.'
15
+ );
16
+ }
17
17
 
18
- // Fetch root key for certificate validation during development
19
- if (process.env.DFX_NETWORK !== 'ic') {
20
- agent.fetchRootKey().catch((err) => {
21
- console.warn('Unable to fetch root key. Check to ensure that your local replica is running');
22
- console.error(err);
23
- });
24
- }
18
+ // Fetch root key for certificate validation during development
19
+ if (process.env.DFX_NETWORK !== 'ic') {
20
+ agent.fetchRootKey().catch((err) => {
21
+ console.warn('Unable to fetch root key. Check to ensure that your local replica is running');
22
+ console.error(err);
23
+ });
24
+ }
25
25
 
26
- // Creates an actor with using the candid interface and the HttpAgent
27
- return Actor.createActor(idlFactory, {
28
- agent,
29
- canisterId,
30
- ...options.actorOptions
31
- });
26
+ // Creates an actor with using the candid interface and the HttpAgent
27
+ return Actor.createActor(idlFactory, {
28
+ agent,
29
+ canisterId,
30
+ ...options.actorOptions
31
+ });
32
32
  };
@@ -1,41 +1,41 @@
1
- import type {ActorMethod} from '@dfinity/agent';
2
- import type {Principal} from '@dfinity/principal';
1
+ import type { ActorMethod } from '@dfinity/agent';
2
+ import type { Principal } from '@dfinity/principal';
3
3
 
4
4
  export interface Controller {
5
- updated_at: bigint;
6
- metadata: Array<[string, string]>;
7
- created_at: bigint;
8
- expires_at: [] | [bigint];
5
+ updated_at: bigint;
6
+ metadata: Array<[string, string]>;
7
+ created_at: bigint;
8
+ expires_at: [] | [bigint];
9
9
  }
10
10
  export interface Satellite {
11
- updated_at: bigint;
12
- metadata: Array<[string, string]>;
13
- created_at: bigint;
14
- satellite_id: Principal;
11
+ updated_at: bigint;
12
+ metadata: Array<[string, string]>;
13
+ created_at: bigint;
14
+ satellite_id: Principal;
15
15
  }
16
16
  export interface SetController {
17
- metadata: Array<[string, string]>;
18
- expires_at: [] | [bigint];
17
+ metadata: Array<[string, string]>;
18
+ expires_at: [] | [bigint];
19
19
  }
20
20
  export interface Tokens {
21
- e8s: bigint;
21
+ e8s: bigint;
22
22
  }
23
23
  export interface _SERVICE {
24
- add_mission_control_controllers: ActorMethod<[Array<Principal>], undefined>;
25
- add_satellites_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
26
- create_satellite: ActorMethod<[string], Satellite>;
27
- del_mission_control_controllers: ActorMethod<[Array<Principal>], undefined>;
28
- del_satellites_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
29
- get_user: ActorMethod<[], Principal>;
30
- list_mission_control_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
31
- list_satellites: ActorMethod<[], Array<[Principal, Satellite]>>;
32
- remove_mission_control_controllers: ActorMethod<[Array<Principal>], undefined>;
33
- remove_satellites_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
34
- set_mission_control_controllers: ActorMethod<[Array<Principal>, SetController], undefined>;
35
- set_satellites_controllers: ActorMethod<
36
- [Array<Principal>, Array<Principal>, SetController],
37
- undefined
38
- >;
39
- top_up: ActorMethod<[Principal, Tokens], undefined>;
40
- version: ActorMethod<[], string>;
24
+ add_mission_control_controllers: ActorMethod<[Array<Principal>], undefined>;
25
+ add_satellites_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
26
+ create_satellite: ActorMethod<[string], Satellite>;
27
+ del_mission_control_controllers: ActorMethod<[Array<Principal>], undefined>;
28
+ del_satellites_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
29
+ get_user: ActorMethod<[], Principal>;
30
+ list_mission_control_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
31
+ list_satellites: ActorMethod<[], Array<[Principal, Satellite]>>;
32
+ remove_mission_control_controllers: ActorMethod<[Array<Principal>], undefined>;
33
+ remove_satellites_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
34
+ set_mission_control_controllers: ActorMethod<[Array<Principal>, SetController], undefined>;
35
+ set_satellites_controllers: ActorMethod<
36
+ [Array<Principal>, Array<Principal>, SetController],
37
+ undefined
38
+ >;
39
+ top_up: ActorMethod<[Principal, Tokens], undefined>;
40
+ version: ActorMethod<[], string>;
41
41
  }
@@ -1,50 +1,50 @@
1
- export const idlFactory = ({IDL}) => {
2
- const Satellite = IDL.Record({
3
- updated_at: IDL.Nat64,
4
- metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
5
- created_at: IDL.Nat64,
6
- satellite_id: IDL.Principal
7
- });
8
- const Controller = IDL.Record({
9
- updated_at: IDL.Nat64,
10
- metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
11
- created_at: IDL.Nat64,
12
- expires_at: IDL.Opt(IDL.Nat64)
13
- });
14
- const SetController = IDL.Record({
15
- metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
16
- expires_at: IDL.Opt(IDL.Nat64)
17
- });
18
- const Tokens = IDL.Record({e8s: IDL.Nat64});
19
- return IDL.Service({
20
- add_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal)], [], []),
21
- add_satellites_controllers: IDL.Func([IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal)], [], []),
22
- create_satellite: IDL.Func([IDL.Text], [Satellite], []),
23
- del_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal)], [], []),
24
- del_satellites_controllers: IDL.Func([IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal)], [], []),
25
- get_user: IDL.Func([], [IDL.Principal], ['query']),
26
- list_mission_control_controllers: IDL.Func(
27
- [],
28
- [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
29
- ['query']
30
- ),
31
- list_satellites: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Satellite))], ['query']),
32
- remove_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal)], [], []),
33
- remove_satellites_controllers: IDL.Func(
34
- [IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal)],
35
- [],
36
- []
37
- ),
38
- set_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal), SetController], [], []),
39
- set_satellites_controllers: IDL.Func(
40
- [IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal), SetController],
41
- [],
42
- []
43
- ),
44
- top_up: IDL.Func([IDL.Principal, Tokens], [], []),
45
- version: IDL.Func([], [IDL.Text], ['query'])
46
- });
1
+ export const idlFactory = ({ IDL }) => {
2
+ const Satellite = IDL.Record({
3
+ updated_at: IDL.Nat64,
4
+ metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
5
+ created_at: IDL.Nat64,
6
+ satellite_id: IDL.Principal
7
+ });
8
+ const Controller = IDL.Record({
9
+ updated_at: IDL.Nat64,
10
+ metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
11
+ created_at: IDL.Nat64,
12
+ expires_at: IDL.Opt(IDL.Nat64)
13
+ });
14
+ const SetController = IDL.Record({
15
+ metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
16
+ expires_at: IDL.Opt(IDL.Nat64)
17
+ });
18
+ const Tokens = IDL.Record({ e8s: IDL.Nat64 });
19
+ return IDL.Service({
20
+ add_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal)], [], []),
21
+ add_satellites_controllers: IDL.Func([IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal)], [], []),
22
+ create_satellite: IDL.Func([IDL.Text], [Satellite], []),
23
+ del_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal)], [], []),
24
+ del_satellites_controllers: IDL.Func([IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal)], [], []),
25
+ get_user: IDL.Func([], [IDL.Principal], ['query']),
26
+ list_mission_control_controllers: IDL.Func(
27
+ [],
28
+ [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
29
+ ['query']
30
+ ),
31
+ list_satellites: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Satellite))], ['query']),
32
+ remove_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal)], [], []),
33
+ remove_satellites_controllers: IDL.Func(
34
+ [IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal)],
35
+ [],
36
+ []
37
+ ),
38
+ set_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal), SetController], [], []),
39
+ set_satellites_controllers: IDL.Func(
40
+ [IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal), SetController],
41
+ [],
42
+ []
43
+ ),
44
+ top_up: IDL.Func([IDL.Principal, Tokens], [], []),
45
+ version: IDL.Func([], [IDL.Text], ['query'])
46
+ });
47
47
  };
48
- export const init = ({IDL}) => {
49
- return [];
48
+ export const init = ({ IDL }) => {
49
+ return [];
50
50
  };