Skip to content

Commit

Permalink
chore[doge_customs]: remove useless codes
Browse files Browse the repository at this point in the history
  • Loading branch information
hsxyl committed Jan 9, 2025
1 parent 1f1b660 commit cf458dd
Show file tree
Hide file tree
Showing 20 changed files with 250 additions and 976 deletions.
5 changes: 3 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions assets/doge_customs/service.did.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export type ChainType = { 'SettlementChain' : null } |
{ 'ExecutionChain' : null };
export type CustomsError = { 'SendTicketErr' : string } |
{ 'RpcError' : string } |
{ 'HttpOutExceedLimit' : null } |
{ 'TemporarilyUnavailable' : string } |
{ 'HttpOutCallError' : [string, string, string] } |
{ 'AlreadyProcessed' : null } |
Expand All @@ -36,6 +35,7 @@ export type CustomsError = { 'SendTicketErr' : string } |
{ 'InvalidTxReceiver' : null } |
{ 'UnsupportedChainId' : string } |
{ 'ECDSAPublicKeyNotFound' : null } |
{ 'HttpOutExceedRetryLimit' : null } |
{ 'DepositUtxoNotFound' : [string, Destination] } |
{ 'UnsupportedToken' : string } |
{ 'CustomError' : string };
Expand Down Expand Up @@ -63,6 +63,7 @@ export interface InitArgs {
'fee_token' : string,
'hub_principal' : Principal,
'chain_id' : string,
'default_doge_rpc_config' : RpcConfig,
'admins' : Array<Principal>,
}
export interface LockTicketRequest {
Expand Down Expand Up @@ -177,8 +178,8 @@ export interface _SERVICE {
>,
'set_fee_collector' : ActorMethod<[string], undefined>,
'set_min_deposit_amount' : ActorMethod<[bigint], undefined>,
'set_multi_rpc_config' : ActorMethod<[MultiRpcConfig], undefined>,
'set_tatum_api_config' : ActorMethod<[string, [] | [string]], undefined>,
'tmp_fix' : ActorMethod<[], undefined>,
}
export declare const idlFactory: IDL.InterfaceFactory;
export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
18 changes: 12 additions & 6 deletions assets/doge_customs/service.did.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
export const idlFactory = ({ IDL }) => {
const RpcConfig = IDL.Record({
'url' : IDL.Text,
'api_key' : IDL.Opt(IDL.Text),
});
const InitArgs = IDL.Record({
'fee_token' : IDL.Text,
'hub_principal' : IDL.Principal,
'chain_id' : IDL.Text,
'default_doge_rpc_config' : RpcConfig,
'admins' : IDL.Vec(IDL.Principal),
});
const GenerateTicketArgs = IDL.Record({
Expand All @@ -18,7 +23,6 @@ export const idlFactory = ({ IDL }) => {
const CustomsError = IDL.Variant({
'SendTicketErr' : IDL.Text,
'RpcError' : IDL.Text,
'HttpOutExceedLimit' : IDL.Null,
'TemporarilyUnavailable' : IDL.Text,
'HttpOutCallError' : IDL.Tuple(IDL.Text, IDL.Text, IDL.Text),
'AlreadyProcessed' : IDL.Null,
Expand All @@ -37,6 +41,7 @@ export const idlFactory = ({ IDL }) => {
'InvalidTxReceiver' : IDL.Null,
'UnsupportedChainId' : IDL.Text,
'ECDSAPublicKeyNotFound' : IDL.Null,
'HttpOutExceedRetryLimit' : IDL.Null,
'DepositUtxoNotFound' : IDL.Tuple(IDL.Text, Destination),
'UnsupportedToken' : IDL.Text,
'CustomError' : IDL.Text,
Expand Down Expand Up @@ -90,10 +95,6 @@ export const idlFactory = ({ IDL }) => {
'name' : IDL.Text,
'symbol' : IDL.Text,
});
const RpcConfig = IDL.Record({
'url' : IDL.Text,
'api_key' : IDL.Opt(IDL.Text),
});
const MultiRpcConfig = IDL.Record({
'rpc_list' : IDL.Vec(RpcConfig),
'minimum_response_count' : IDL.Nat32,
Expand Down Expand Up @@ -211,15 +212,20 @@ export const idlFactory = ({ IDL }) => {
),
'set_fee_collector' : IDL.Func([IDL.Text], [], []),
'set_min_deposit_amount' : IDL.Func([IDL.Nat64], [], []),
'set_multi_rpc_config' : IDL.Func([MultiRpcConfig], [], []),
'set_tatum_api_config' : IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
'tmp_fix' : IDL.Func([], [], []),
});
};
export const init = ({ IDL }) => {
const RpcConfig = IDL.Record({
'url' : IDL.Text,
'api_key' : IDL.Opt(IDL.Text),
});
const InitArgs = IDL.Record({
'fee_token' : IDL.Text,
'hub_principal' : IDL.Principal,
'chain_id' : IDL.Text,
'default_doge_rpc_config' : RpcConfig,
'admins' : IDL.Vec(IDL.Principal),
});
return [InitArgs];
Expand Down
3 changes: 2 additions & 1 deletion customs/doge/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,5 @@ k256 = { git = "https://github.com/altkdf/elliptic-curves", branch = "schnorr_ca
rust_decimal = "1.36"
rust_decimal_macros = "1.36"
log = "0.4.22"
bincode = "1.3.3"
bincode = "1.3.3"
futures = "0.3.30"
5 changes: 3 additions & 2 deletions customs/doge/doge_customs.did
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ type ChainType = variant { SettlementChain; ExecutionChain };
type CustomsError = variant {
SendTicketErr : text;
RpcError : text;
HttpOutExceedLimit;
TemporarilyUnavailable : text;
HttpOutCallError : record { text; text; text };
AlreadyProcessed;
Expand All @@ -31,6 +30,7 @@ type CustomsError = variant {
InvalidTxReceiver;
UnsupportedChainId : text;
ECDSAPublicKeyNotFound;
HttpOutExceedRetryLimit;
DepositUtxoNotFound : record { text; Destination };
UnsupportedToken : text;
CustomError : text;
Expand All @@ -56,6 +56,7 @@ type InitArgs = record {
fee_token : text;
hub_principal : principal;
chain_id : text;
default_doge_rpc_config : RpcConfig;
admins : vec principal;
};
type LockTicketRequest = record {
Expand Down Expand Up @@ -147,6 +148,6 @@ service : (InitArgs) -> {
set_default_doge_rpc_config : (text, opt text) -> ();
set_fee_collector : (text) -> ();
set_min_deposit_amount : (nat64) -> ();
set_multi_rpc_config : (MultiRpcConfig) -> ();
set_tatum_api_config : (text, opt text) -> ();
tmp_fix : () -> ();
}
Loading

0 comments on commit cf458dd

Please sign in to comment.