Skip to content

Commit

Permalink
🤖 Apply bindings changes
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 29, 2024
1 parent 2493e41 commit fbb2045
Show file tree
Hide file tree
Showing 5 changed files with 170 additions and 80 deletions.
47 changes: 31 additions & 16 deletions src/backend/backend.did
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
type AddDappSettingsError = variant {
DappIdAlreadyHidden;
VersionMismatch;
UserNotFound;
};
type AddHiddenDappIdRequest = record {
current_user_version : opt nat64;
dapp_id : text;
};
type AddUserCredentialError = variant {
InvalidCredential;
VersionMismatch;
Expand Down Expand Up @@ -77,6 +86,8 @@ type CustomToken = record {
version : opt nat64;
enabled : bool;
};
type DappCarouselSettings = record { hidden_dapp_ids : vec text };
type DappSettings = record { dapp_carousel : DappCarouselSettings };
type DefiniteCanisterSettingsArgs = record {
controller : principal;
freezing_threshold : nat;
Expand Down Expand Up @@ -149,20 +160,21 @@ type OisyUser = record {
type Outpoint = record { txid : blob; vout : nat32 };
type PendingTransaction = record { txid : blob; utxos : vec Utxo };
type Result = variant { Ok; Err : AddUserCredentialError };
type Result_1 = variant { Ok; Err : AllowSigningError };
type Result_2 = variant { Ok; Err : BtcAddPendingTransactionError };
type Result_3 = variant {
type Result_1 = variant { Ok; Err : AddDappSettingsError };
type Result_2 = variant { Ok; Err : AllowSigningError };
type Result_3 = variant { Ok; Err : BtcAddPendingTransactionError };
type Result_4 = variant {
Ok : BtcGetPendingTransactionsReponse;
Err : BtcAddPendingTransactionError;
};
type Result_4 = variant {
type Result_5 = variant {
Ok : SelectedUtxosFeeResponse;
Err : SelectedUtxosFeeError;
};
type Result_5 = variant { Ok : UserProfile; Err : GetUserProfileError };
type Result_6 = variant { Ok : MigrationReport; Err : text };
type Result_7 = variant { Ok; Err : text };
type Result_8 = variant {
type Result_6 = variant { Ok : UserProfile; Err : GetUserProfileError };
type Result_7 = variant { Ok : MigrationReport; Err : text };
type Result_8 = variant { Ok; Err : text };
type Result_9 = variant {
Ok : TopUpCyclesLedgerResponse;
Err : TopUpCyclesLedgerError;
};
Expand All @@ -179,6 +191,7 @@ type SelectedUtxosFeeResponse = record {
fee_satoshis : nat64;
utxos : vec Utxo;
};
type Settings = record { dapp : DappSettings };
type Stats = record {
user_profile_count : nat64;
custom_token_count : nat64;
Expand Down Expand Up @@ -219,6 +232,7 @@ type UserCredential = record {
type UserProfile = record {
credentials : vec UserCredential;
version : opt nat64;
settings : Settings;
created_timestamp : nat64;
updated_timestamp : nat64;
};
Expand All @@ -234,24 +248,25 @@ type UserTokenId = record { chain_id : nat64; contract_address : text };
type Utxo = record { height : nat32; value : nat64; outpoint : Outpoint };
service : (Arg) -> {
add_user_credential : (AddUserCredentialRequest) -> (Result);
allow_signing : () -> (Result_1);
btc_add_pending_transaction : (BtcAddPendingTransactionRequest) -> (Result_2);
add_user_hidden_dapp_id : (AddHiddenDappIdRequest) -> (Result_1);
allow_signing : () -> (Result_2);
btc_add_pending_transaction : (BtcAddPendingTransactionRequest) -> (Result_3);
btc_get_pending_transactions : (BtcGetPendingTransactionsRequest) -> (
Result_3,
Result_4,
);
btc_select_user_utxos_fee : (SelectedUtxosFeeRequest) -> (Result_4);
btc_select_user_utxos_fee : (SelectedUtxosFeeRequest) -> (Result_5);
bulk_up : (blob) -> ();
config : () -> (Config) query;
create_user_profile : () -> (UserProfile);
get_canister_status : () -> (CanisterStatusResultV2);
get_user_profile : () -> (Result_5) query;
get_user_profile : () -> (Result_6) query;
http_request : (HttpRequest) -> (HttpResponse) query;
list_custom_tokens : () -> (vec CustomToken) query;
list_user_tokens : () -> (vec UserToken) query;
list_users : (ListUsersRequest) -> (ListUsersResponse) query;
migrate_user_data_to : (principal) -> (Result_6);
migrate_user_data_to : (principal) -> (Result_7);
migration : () -> (opt MigrationReport) query;
migration_stop_timer : () -> (Result_7);
migration_stop_timer : () -> (Result_8);
remove_user_token : (UserTokenId) -> ();
set_custom_token : (CustomToken) -> ();
set_guards : (Guards) -> ();
Expand All @@ -260,5 +275,5 @@ service : (Arg) -> {
set_user_token : (UserToken) -> ();
stats : () -> (Stats) query;
step_migration : () -> ();
top_up_cycles_ledger : (opt TopUpCyclesLedgerRequest) -> (Result_8);
top_up_cycles_ledger : (opt TopUpCyclesLedgerRequest) -> (Result_9);
}
47 changes: 31 additions & 16 deletions src/declarations/backend/backend.did
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
type AddDappSettingsError = variant {
DappIdAlreadyHidden;
VersionMismatch;
UserNotFound;
};
type AddHiddenDappIdRequest = record {
current_user_version : opt nat64;
dapp_id : text;
};
type AddUserCredentialError = variant {
InvalidCredential;
VersionMismatch;
Expand Down Expand Up @@ -77,6 +86,8 @@ type CustomToken = record {
version : opt nat64;
enabled : bool;
};
type DappCarouselSettings = record { hidden_dapp_ids : vec text };
type DappSettings = record { dapp_carousel : DappCarouselSettings };
type DefiniteCanisterSettingsArgs = record {
controller : principal;
freezing_threshold : nat;
Expand Down Expand Up @@ -149,20 +160,21 @@ type OisyUser = record {
type Outpoint = record { txid : blob; vout : nat32 };
type PendingTransaction = record { txid : blob; utxos : vec Utxo };
type Result = variant { Ok; Err : AddUserCredentialError };
type Result_1 = variant { Ok; Err : AllowSigningError };
type Result_2 = variant { Ok; Err : BtcAddPendingTransactionError };
type Result_3 = variant {
type Result_1 = variant { Ok; Err : AddDappSettingsError };
type Result_2 = variant { Ok; Err : AllowSigningError };
type Result_3 = variant { Ok; Err : BtcAddPendingTransactionError };
type Result_4 = variant {
Ok : BtcGetPendingTransactionsReponse;
Err : BtcAddPendingTransactionError;
};
type Result_4 = variant {
type Result_5 = variant {
Ok : SelectedUtxosFeeResponse;
Err : SelectedUtxosFeeError;
};
type Result_5 = variant { Ok : UserProfile; Err : GetUserProfileError };
type Result_6 = variant { Ok : MigrationReport; Err : text };
type Result_7 = variant { Ok; Err : text };
type Result_8 = variant {
type Result_6 = variant { Ok : UserProfile; Err : GetUserProfileError };
type Result_7 = variant { Ok : MigrationReport; Err : text };
type Result_8 = variant { Ok; Err : text };
type Result_9 = variant {
Ok : TopUpCyclesLedgerResponse;
Err : TopUpCyclesLedgerError;
};
Expand All @@ -179,6 +191,7 @@ type SelectedUtxosFeeResponse = record {
fee_satoshis : nat64;
utxos : vec Utxo;
};
type Settings = record { dapp : DappSettings };
type Stats = record {
user_profile_count : nat64;
custom_token_count : nat64;
Expand Down Expand Up @@ -219,6 +232,7 @@ type UserCredential = record {
type UserProfile = record {
credentials : vec UserCredential;
version : opt nat64;
settings : Settings;
created_timestamp : nat64;
updated_timestamp : nat64;
};
Expand All @@ -234,24 +248,25 @@ type UserTokenId = record { chain_id : nat64; contract_address : text };
type Utxo = record { height : nat32; value : nat64; outpoint : Outpoint };
service : (Arg) -> {
add_user_credential : (AddUserCredentialRequest) -> (Result);
allow_signing : () -> (Result_1);
btc_add_pending_transaction : (BtcAddPendingTransactionRequest) -> (Result_2);
add_user_hidden_dapp_id : (AddHiddenDappIdRequest) -> (Result_1);
allow_signing : () -> (Result_2);
btc_add_pending_transaction : (BtcAddPendingTransactionRequest) -> (Result_3);
btc_get_pending_transactions : (BtcGetPendingTransactionsRequest) -> (
Result_3,
Result_4,
);
btc_select_user_utxos_fee : (SelectedUtxosFeeRequest) -> (Result_4);
btc_select_user_utxos_fee : (SelectedUtxosFeeRequest) -> (Result_5);
bulk_up : (blob) -> ();
config : () -> (Config) query;
create_user_profile : () -> (UserProfile);
get_canister_status : () -> (CanisterStatusResultV2);
get_user_profile : () -> (Result_5) query;
get_user_profile : () -> (Result_6) query;
http_request : (HttpRequest) -> (HttpResponse) query;
list_custom_tokens : () -> (vec CustomToken) query;
list_user_tokens : () -> (vec UserToken) query;
list_users : (ListUsersRequest) -> (ListUsersResponse) query;
migrate_user_data_to : (principal) -> (Result_6);
migrate_user_data_to : (principal) -> (Result_7);
migration : () -> (opt MigrationReport) query;
migration_stop_timer : () -> (Result_7);
migration_stop_timer : () -> (Result_8);
remove_user_token : (UserTokenId) -> ();
set_custom_token : (CustomToken) -> ();
set_guards : (Guards) -> ();
Expand All @@ -260,5 +275,5 @@ service : (Arg) -> {
set_user_token : (UserToken) -> ();
stats : () -> (Stats) query;
step_migration : () -> ();
top_up_cycles_ledger : (opt TopUpCyclesLedgerRequest) -> (Result_8);
top_up_cycles_ledger : (opt TopUpCyclesLedgerRequest) -> (Result_9);
}
52 changes: 36 additions & 16 deletions src/declarations/backend/backend.did.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ import type { ActorMethod } from '@dfinity/agent';
import type { IDL } from '@dfinity/candid';
import type { Principal } from '@dfinity/principal';

export type AddDappSettingsError =
| { DappIdAlreadyHidden: null }
| { VersionMismatch: null }
| { UserNotFound: null };
export interface AddHiddenDappIdRequest {
current_user_version: [] | [bigint];
dapp_id: string;
}
export type AddUserCredentialError =
| { InvalidCredential: null }
| { VersionMismatch: null }
Expand Down Expand Up @@ -80,6 +88,12 @@ export interface CustomToken {
version: [] | [bigint];
enabled: boolean;
}
export interface DappCarouselSettings {
hidden_dapp_ids: Array<string>;
}
export interface DappSettings {
dapp_carousel: DappCarouselSettings;
}
export interface DefiniteCanisterSettingsArgs {
controller: Principal;
freezing_threshold: bigint;
Expand Down Expand Up @@ -167,16 +181,17 @@ export interface PendingTransaction {
utxos: Array<Utxo>;
}
export type Result = { Ok: null } | { Err: AddUserCredentialError };
export type Result_1 = { Ok: null } | { Err: AllowSigningError };
export type Result_2 = { Ok: null } | { Err: BtcAddPendingTransactionError };
export type Result_3 =
export type Result_1 = { Ok: null } | { Err: AddDappSettingsError };
export type Result_2 = { Ok: null } | { Err: AllowSigningError };
export type Result_3 = { Ok: null } | { Err: BtcAddPendingTransactionError };
export type Result_4 =
| { Ok: BtcGetPendingTransactionsReponse }
| { Err: BtcAddPendingTransactionError };
export type Result_4 = { Ok: SelectedUtxosFeeResponse } | { Err: SelectedUtxosFeeError };
export type Result_5 = { Ok: UserProfile } | { Err: GetUserProfileError };
export type Result_6 = { Ok: MigrationReport } | { Err: string };
export type Result_7 = { Ok: null } | { Err: string };
export type Result_8 = { Ok: TopUpCyclesLedgerResponse } | { Err: TopUpCyclesLedgerError };
export type Result_5 = { Ok: SelectedUtxosFeeResponse } | { Err: SelectedUtxosFeeError };
export type Result_6 = { Ok: UserProfile } | { Err: GetUserProfileError };
export type Result_7 = { Ok: MigrationReport } | { Err: string };
export type Result_8 = { Ok: null } | { Err: string };
export type Result_9 = { Ok: TopUpCyclesLedgerResponse } | { Err: TopUpCyclesLedgerError };
export type SelectedUtxosFeeError =
| { PendingTransactions: null }
| { InternalError: { msg: string } };
Expand All @@ -189,6 +204,9 @@ export interface SelectedUtxosFeeResponse {
fee_satoshis: bigint;
utxos: Array<Utxo>;
}
export interface Settings {
dapp: DappSettings;
}
export interface Stats {
user_profile_count: bigint;
custom_token_count: bigint;
Expand Down Expand Up @@ -235,6 +253,7 @@ export interface UserCredential {
export interface UserProfile {
credentials: Array<UserCredential>;
version: [] | [bigint];
settings: Settings;
created_timestamp: bigint;
updated_timestamp: bigint;
}
Expand All @@ -257,22 +276,23 @@ export interface Utxo {
}
export interface _SERVICE {
add_user_credential: ActorMethod<[AddUserCredentialRequest], Result>;
allow_signing: ActorMethod<[], Result_1>;
btc_add_pending_transaction: ActorMethod<[BtcAddPendingTransactionRequest], Result_2>;
btc_get_pending_transactions: ActorMethod<[BtcGetPendingTransactionsRequest], Result_3>;
btc_select_user_utxos_fee: ActorMethod<[SelectedUtxosFeeRequest], Result_4>;
add_user_hidden_dapp_id: ActorMethod<[AddHiddenDappIdRequest], Result_1>;
allow_signing: ActorMethod<[], Result_2>;
btc_add_pending_transaction: ActorMethod<[BtcAddPendingTransactionRequest], Result_3>;
btc_get_pending_transactions: ActorMethod<[BtcGetPendingTransactionsRequest], Result_4>;
btc_select_user_utxos_fee: ActorMethod<[SelectedUtxosFeeRequest], Result_5>;
bulk_up: ActorMethod<[Uint8Array | number[]], undefined>;
config: ActorMethod<[], Config>;
create_user_profile: ActorMethod<[], UserProfile>;
get_canister_status: ActorMethod<[], CanisterStatusResultV2>;
get_user_profile: ActorMethod<[], Result_5>;
get_user_profile: ActorMethod<[], Result_6>;
http_request: ActorMethod<[HttpRequest], HttpResponse>;
list_custom_tokens: ActorMethod<[], Array<CustomToken>>;
list_user_tokens: ActorMethod<[], Array<UserToken>>;
list_users: ActorMethod<[ListUsersRequest], ListUsersResponse>;
migrate_user_data_to: ActorMethod<[Principal], Result_6>;
migrate_user_data_to: ActorMethod<[Principal], Result_7>;
migration: ActorMethod<[], [] | [MigrationReport]>;
migration_stop_timer: ActorMethod<[], Result_7>;
migration_stop_timer: ActorMethod<[], Result_8>;
remove_user_token: ActorMethod<[UserTokenId], undefined>;
set_custom_token: ActorMethod<[CustomToken], undefined>;
set_guards: ActorMethod<[Guards], undefined>;
Expand All @@ -281,7 +301,7 @@ export interface _SERVICE {
set_user_token: ActorMethod<[UserToken], undefined>;
stats: ActorMethod<[], Stats>;
step_migration: ActorMethod<[], undefined>;
top_up_cycles_ledger: ActorMethod<[[] | [TopUpCyclesLedgerRequest]], Result_8>;
top_up_cycles_ledger: ActorMethod<[[] | [TopUpCyclesLedgerRequest]], Result_9>;
}
export declare const idlFactory: IDL.InterfaceFactory;
export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
Loading

0 comments on commit fbb2045

Please sign in to comment.