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