@cheqd/studio 3.17.0 → 3.18.0-develop.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -7
- package/dist/controllers/api/account.d.ts +8 -3
- package/dist/controllers/api/account.d.ts.map +1 -1
- package/dist/controllers/api/account.js +100 -32
- package/dist/controllers/api/account.js.map +1 -1
- package/dist/database/entities/faucet-request.entity.d.ts +15 -0
- package/dist/database/entities/faucet-request.entity.d.ts.map +1 -0
- package/dist/database/entities/faucet-request.entity.js +65 -0
- package/dist/database/entities/faucet-request.entity.js.map +1 -0
- package/dist/database/migrations/1791500000000-studio-migrations.d.ts +7 -0
- package/dist/database/migrations/1791500000000-studio-migrations.d.ts.map +1 -0
- package/dist/database/migrations/1791500000000-studio-migrations.js +14 -0
- package/dist/database/migrations/1791500000000-studio-migrations.js.map +1 -0
- package/dist/database/types/types.d.ts.map +1 -1
- package/dist/database/types/types.js +5 -0
- package/dist/database/types/types.js.map +1 -1
- package/dist/helpers/faucet-quota.d.ts +66 -0
- package/dist/helpers/faucet-quota.d.ts.map +1 -0
- package/dist/helpers/faucet-quota.js +62 -0
- package/dist/helpers/faucet-quota.js.map +1 -0
- package/dist/helpers/faucet.d.ts +3 -1
- package/dist/helpers/faucet.d.ts.map +1 -1
- package/dist/helpers/faucet.js +9 -2
- package/dist/helpers/faucet.js.map +1 -1
- package/dist/services/api/faucet-request.d.ts +22 -0
- package/dist/services/api/faucet-request.d.ts.map +1 -0
- package/dist/services/api/faucet-request.js +52 -0
- package/dist/services/api/faucet-request.js.map +1 -0
- package/dist/static/swagger-api.json +65 -3
- package/dist/types/account.d.ts +16 -0
- package/dist/types/account.d.ts.map +1 -1
- package/dist/types/constants.d.ts +9 -1
- package/dist/types/constants.d.ts.map +1 -1
- package/dist/types/constants.js +22 -5
- package/dist/types/constants.js.map +1 -1
- package/dist/types/swagger-api-types.d.ts +39 -0
- package/dist/types/swagger-api-types.d.ts.map +1 -1
- package/dist/types/swagger-api-types.js +39 -0
- package/dist/types/swagger-api-types.js.map +1 -1
- package/example.env +7 -1
- package/package.json +1 -1
|
@@ -2152,6 +2152,15 @@
|
|
|
2152
2152
|
* nullable: true
|
|
2153
2153
|
* description: balance.cheq multiplied by the CHEQ/USD rate. `null` when the balance or the rate is unavailable.
|
|
2154
2154
|
* example: 3.03
|
|
2155
|
+
* FaucetAmount:
|
|
2156
|
+
* type: object
|
|
2157
|
+
* properties:
|
|
2158
|
+
* cheq:
|
|
2159
|
+
* type: number
|
|
2160
|
+
* example: 10000
|
|
2161
|
+
* ncheq:
|
|
2162
|
+
* type: string
|
|
2163
|
+
* example: "10000000000000"
|
|
2155
2164
|
* AccountBalancesResponse:
|
|
2156
2165
|
* type: object
|
|
2157
2166
|
* properties:
|
|
@@ -2159,6 +2168,36 @@
|
|
|
2159
2168
|
* $ref: '#/components/schemas/AccountNetworkBalance'
|
|
2160
2169
|
* testnet:
|
|
2161
2170
|
* $ref: '#/components/schemas/AccountNetworkBalance'
|
|
2171
|
+
* faucet:
|
|
2172
|
+
* type: object
|
|
2173
|
+
* nullable: true
|
|
2174
|
+
* description: Testnet faucet cap and the customer's monthly faucet quota usage. `null` when there is no testnet account or it could not be read.
|
|
2175
|
+
* properties:
|
|
2176
|
+
* cap:
|
|
2177
|
+
* type: object
|
|
2178
|
+
* description: Most CHEQ a testnet address can hold before the faucet stops topping it up.
|
|
2179
|
+
* properties:
|
|
2180
|
+
* cheq:
|
|
2181
|
+
* type: number
|
|
2182
|
+
* example: 100000
|
|
2183
|
+
* ncheq:
|
|
2184
|
+
* type: string
|
|
2185
|
+
* example: "100000000000000"
|
|
2186
|
+
* quota:
|
|
2187
|
+
* type: object
|
|
2188
|
+
* properties:
|
|
2189
|
+
* period:
|
|
2190
|
+
* type: string
|
|
2191
|
+
* example: month
|
|
2192
|
+
* limit:
|
|
2193
|
+
* $ref: '#/components/schemas/FaucetAmount'
|
|
2194
|
+
* used:
|
|
2195
|
+
* $ref: '#/components/schemas/FaucetAmount'
|
|
2196
|
+
* remaining:
|
|
2197
|
+
* $ref: '#/components/schemas/FaucetAmount'
|
|
2198
|
+
* resetsAt:
|
|
2199
|
+
* type: string
|
|
2200
|
+
* format: date-time
|
|
2162
2201
|
* rate:
|
|
2163
2202
|
* type: object
|
|
2164
2203
|
* nullable: true
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swagger-api-types.d.ts","sourceRoot":"","sources":["../../src/types/swagger-api-types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"swagger-api-types.d.ts","sourceRoot":"","sources":["../../src/types/swagger-api-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwuEG"}
|
|
@@ -2153,6 +2153,15 @@
|
|
|
2153
2153
|
* nullable: true
|
|
2154
2154
|
* description: balance.cheq multiplied by the CHEQ/USD rate. `null` when the balance or the rate is unavailable.
|
|
2155
2155
|
* example: 3.03
|
|
2156
|
+
* FaucetAmount:
|
|
2157
|
+
* type: object
|
|
2158
|
+
* properties:
|
|
2159
|
+
* cheq:
|
|
2160
|
+
* type: number
|
|
2161
|
+
* example: 10000
|
|
2162
|
+
* ncheq:
|
|
2163
|
+
* type: string
|
|
2164
|
+
* example: "10000000000000"
|
|
2156
2165
|
* AccountBalancesResponse:
|
|
2157
2166
|
* type: object
|
|
2158
2167
|
* properties:
|
|
@@ -2160,6 +2169,36 @@
|
|
|
2160
2169
|
* $ref: '#/components/schemas/AccountNetworkBalance'
|
|
2161
2170
|
* testnet:
|
|
2162
2171
|
* $ref: '#/components/schemas/AccountNetworkBalance'
|
|
2172
|
+
* faucet:
|
|
2173
|
+
* type: object
|
|
2174
|
+
* nullable: true
|
|
2175
|
+
* description: Testnet faucet cap and the customer's monthly faucet quota usage. `null` when there is no testnet account or it could not be read.
|
|
2176
|
+
* properties:
|
|
2177
|
+
* cap:
|
|
2178
|
+
* type: object
|
|
2179
|
+
* description: Most CHEQ a testnet address can hold before the faucet stops topping it up.
|
|
2180
|
+
* properties:
|
|
2181
|
+
* cheq:
|
|
2182
|
+
* type: number
|
|
2183
|
+
* example: 100000
|
|
2184
|
+
* ncheq:
|
|
2185
|
+
* type: string
|
|
2186
|
+
* example: "100000000000000"
|
|
2187
|
+
* quota:
|
|
2188
|
+
* type: object
|
|
2189
|
+
* properties:
|
|
2190
|
+
* period:
|
|
2191
|
+
* type: string
|
|
2192
|
+
* example: month
|
|
2193
|
+
* limit:
|
|
2194
|
+
* $ref: '#/components/schemas/FaucetAmount'
|
|
2195
|
+
* used:
|
|
2196
|
+
* $ref: '#/components/schemas/FaucetAmount'
|
|
2197
|
+
* remaining:
|
|
2198
|
+
* $ref: '#/components/schemas/FaucetAmount'
|
|
2199
|
+
* resetsAt:
|
|
2200
|
+
* type: string
|
|
2201
|
+
* format: date-time
|
|
2163
2202
|
* rate:
|
|
2164
2203
|
* type: object
|
|
2165
2204
|
* nullable: true
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swagger-api-types.js","sourceRoot":"","sources":["../../src/types/swagger-api-types.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"swagger-api-types.js","sourceRoot":"","sources":["../../src/types/swagger-api-types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwuEG"}
|
package/example.env
CHANGED
|
@@ -37,7 +37,13 @@ PROVIDER_EXPORT_PASSWORD=password-with-lowercase-uppercase-number-specialchar
|
|
|
37
37
|
# Faucet settings
|
|
38
38
|
ENABLE_ACCOUNT_TOPUP="false"
|
|
39
39
|
TESTNET_MINIMUM_BALANCE="10000"
|
|
40
|
-
|
|
40
|
+
TESTNET_INITIAL_TOPUP_CHEQ="10000"
|
|
41
|
+
# Max CHEQ a customer can request via POST /account/faucet per calendar month (UTC)
|
|
42
|
+
# FAUCET_MONTHLY_LIMIT_CHEQ="100000"
|
|
43
|
+
# Max CHEQ a single testnet address can hold before the faucet stops topping it up (defaults to the monthly limit)
|
|
44
|
+
# FAUCET_ADDRESS_CAP_CHEQ="100000"
|
|
45
|
+
# Seconds to wait for the faucet service to answer before giving up
|
|
46
|
+
# FAUCET_REQUEST_TIMEOUT_SECONDS="30"
|
|
41
47
|
# FAUCET_URI="https://faucet-api.cheqd.network/credit"
|
|
42
48
|
# FAUCET_API_KEY="faucet-api-key"
|
|
43
49
|
# FAUCET_ACCESS_CLIENT_ID="cloudflare-access-client-id"
|