Skip to content

Commit

Permalink
Update tspec contents
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKim20 committed Dec 16, 2024
1 parent 82cb8ce commit 76e1d1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 83 deletions.
6 changes: 3 additions & 3 deletions packages/relay/tspec/11_Agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export type AgentApiSpec = Tspec.DefineApiSpec<{
};
};
};
"/v1/agent/provision/": {
"/v1/agent/provision": {
post: {
summary: "Register information on the provider's agent";
body: {
Expand Down Expand Up @@ -139,7 +139,7 @@ export type AgentApiSpec = Tspec.DefineApiSpec<{
};
};
};
"/v1/agent/refund/": {
"/v1/agent/refund": {
post: {
summary: "Register information on the refund's agent";
body: {
Expand Down Expand Up @@ -234,7 +234,7 @@ export type AgentApiSpec = Tspec.DefineApiSpec<{
};
};
};
"/v1/agent/withdrawal/": {
"/v1/agent/withdrawal": {
post: {
summary: "Register information on the withdrawal's agent";
body: {
Expand Down
80 changes: 0 additions & 80 deletions packages/relay/tspec/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,86 +64,6 @@ export enum ShopTaskStatus {

/**
* ResultCode</br>
* 0: Success</br>
* 1000: Sender is not validator</br>
* 1001: Validator is not active</br>
* 1002: Validator is already active</br>
* 1003: Validator is already exist</br>
* 1010: The last validator cannot be removed</br>
* 1020: Not allowed deposit</br>
* 1030: Amount not multiple of gwei</br>
* 1031: The amount entered is less than the minimum amount</br>
* 1050: Sender is not authorized to execute</br>
* 1051: Unable to transfer from system account</br>
* 1052: Unable to transfer to system account</br>
* 1053: Unable to withdraw from the system account</br>
* 1054: Sender is not authorized to provide points</br>
* 1160: ProvideLoyalty-This is a purchase data that has already been processed</br>
* 1161: ProvideLoyalty-Too much royalty paid</br>
* 1162: ProvideLoyalty-Registered validator does not exist</br>
* 1163: ProvideLoyalty-Too many validators have participated</br>
* 1164: ProvideLoyalty-Number of validators who participated did not satisfy the quorum</br>
* 1170: Currency-The arrangement is not equal in size</br>
* 1171: Currency-The validity of the data has expired.</br>
* 1172: Currency-Registered validator does not exist</br>
* 1173: Currency-Too many validators have participated</br>
* 1174: Currency-Number of validators who participated did not satisfy the quorum</br>
* 1200: The shop ID already exists</br>
* 1201: The shop ID is not exists</br>
* 1202: The shop is not activated</br>
* 1211: This exchange rate is not supported</br>
* 1220: Insufficient withdrawal amount</br>
* 1221: Withdrawal is already opened</br>
* 1222: Withdrawal is not opened</br>
* 1501: Invalid signature</br>
* 1502: Unregistered phone number</br>
* 1503: Does not match registered wallet address</br>
* 1505: Invalid secret key</br>
* 1506: Expired signature</br>
* 1510: Insufficient system balance</br>
* 1511: Insufficient balance</br>
* 1512: Not allowed deposit</br>
* 1513: Insufficient fee or system balance</br>
* 1514: Insufficient liquidity balance</br>
* 1520: Loyalty type is not TOKEN</br>
* 1521: Invalid value entered</br>
* 1530: The payment ID already exists</br>
* 1531: The status of the payment corresponding to the payment ID is not in progress</br>
* 1532: The status of the payment corresponding to the payment ID is not a cancellable condition</br>
* 1533: The status of the payment corresponding to the payment ID is not being cancelled</br>
* 1534: The period for cancellation of payment has expired</br>
* 1711: Already Exist Deposit</br>
* 1712: No Exist Withdraw</br>
* 1714: The value entered is not an appropriate value</br>
* 1715: Already Confirm Withdraw</br>
* 1716: The amount should be greater than the fee</br>
* 1717: Does not match the address registered on the bridge</br>
* 1718: Does not match the amount registered on the bridge</br>
* 2001: Failed to check the validity of parameters</br>
* 2002: The access key entered is not valid</br>
* 2003: The payment ID is not exist</br>
* 2004: Temporary address that does not exist</br>
* 2005: Mobile notification not allowed</br>
* 2006: Can not find delegator</br>
* 2007: The phone number format is invalid.</br>
* 2008: Mobile information not found.</br>
* 2020: The status code for this payment cannot be approved</br>
* 2022: The status code for this payment cannot be cancelled</br>
* 2024: The status code for this payment cannot process closing</br>
* 2025: This payment has already been approved</br>
* 2026: This payment has already been closed</br>
* 2027: This payment has already been approved and failed</br>
* 2028: The status code for this payment cannot be denied</br>
* 2029: This payment has forced to close</br>
* 2030: This payment cannot be closed before it is approved</br>
* 2033: The task ID is not exist</br>
* 2040: The status code for this task cannot be approved</br>
* 3001: Bridge functionality is not yet available</br>
* 3072: The shopId is invalid</br>
* 4000: Denied by user</br>
* 5000: Smart Contract Error</br>
* 6000: Server Error</br>
* 7000: Timeout period expired</br>
*/
export enum ResultCode {
"CODE0000" = 0,
Expand Down

0 comments on commit 76e1d1a

Please sign in to comment.