-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve to select whether feature is supported or not
- Loading branch information
1 parent
22bb0d3
commit af87b0d
Showing
8 changed files
with
115 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
import { Tspec } from "tspec"; | ||
import { ResultCode } from "./types"; | ||
|
||
export type SystemInfoApiSpec = Tspec.DefineApiSpec<{ | ||
tags: ["System Info"]; | ||
paths: { | ||
"/v1/chain/main/info": { | ||
get: { | ||
summary: "Provide information of System"; | ||
responses: { | ||
200: { | ||
/** | ||
* Result Code | ||
* @example 0 | ||
*/ | ||
code: ResultCode; | ||
data: { | ||
token: { | ||
/** | ||
* Token Symbol | ||
* @example "ACC" | ||
*/ | ||
symbol: string; | ||
}; | ||
point: { | ||
/** | ||
* Decimals | ||
* @example 2" | ||
*/ | ||
precision: string; | ||
/** | ||
* Symbol of a currency of the same value | ||
* @example "PHP" | ||
*/ | ||
equivalentCurrency: string; | ||
}; | ||
/** | ||
* Default Language for the System | ||
* @example "en" | ||
*/ | ||
language: string; | ||
support: { | ||
/** | ||
* Moving Assets Using Chain Bridges | ||
* @example true | ||
*/ | ||
chainBridge: boolean; | ||
/** | ||
* Moving Assets Using Loyalty Bridges | ||
* @example true | ||
*/ | ||
loyaltyBridge: boolean; | ||
/** | ||
* Exchange Points for Tokens | ||
* @example true | ||
*/ | ||
exchange: boolean; | ||
}; | ||
}; | ||
error?: { | ||
/** | ||
* Error Message | ||
* @example "Failed to check the validity of parameters" | ||
*/ | ||
message: string; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}>; |