Skip to content

Commit 3804a44

Browse files
author
balogh.adam@icloud.com
committed
fix check
1 parent dd4b125 commit 3804a44

4 files changed

Lines changed: 5 additions & 182 deletions

File tree

docs/opengradient/client/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ OpenGradient Client -- service modules for the SDK.
1414
- **[model_hub](./model_hub)** -- Model repository management: create, version, and upload ML models
1515
- **[alpha](./alpha)** -- Alpha Testnet features: on-chain ONNX model inference (VANILLA, TEE, ZKML modes), workflow deployment, and scheduled ML model execution (OpenGradient testnet gas tokens)
1616
- **[twins](./twins)** -- Digital twins chat via OpenGradient verifiable inference
17-
- **[opg_token](./opg_token)** -- OPG token Permit2 approval utilities for x402 payments
17+
- **`opengradient.client.opg_token`** -- OPG token Permit2 approval utilities for x402 payments
1818
- **`opengradient.client.tee_registry`** -- TEE registry client for verified endpoints and TLS certificates
1919

2020
## Usage

docs/opengradient/client/llm.md

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ resolves TEEs from the on-chain registry.
6363
#### `approve_opg()`
6464

6565
```python
66-
def approve_opg(self, opg_amountfloat) ‑> `Permit2ApprovalResult`
66+
def approve_opg(self, opg_amountfloat) ‑> [Permit2ApprovalResult](./opg_token)
6767
```
6868
Approve Permit2 to spend ``opg_amount`` OPG if the current allowance is insufficient.
6969

@@ -81,12 +81,6 @@ Permit2ApprovalResult: Contains ``allowance_before``,
8181
``allowance_after``, and ``tx_hash`` (None when no approval
8282
was needed).
8383

84-
**`Permit2ApprovalResult` fields:**
85-
86-
* **`allowance_before`**: The Permit2 allowance before the method ran.
87-
* **`allowance_after`**: The Permit2 allowance after the method ran.
88-
* **`tx_hash`**: Transaction hash of the approval, or None if no transaction was needed.
89-
9084
**Raises**
9185

9286
* **`ValueError`**: If the OPG amount is less than 0.1.
@@ -231,7 +225,7 @@ def ensure_opg_allowance(
231225
self,
232226
min_allowancefloat,
233227
approve_amount: Optional[float= None
234-
) ‑> `Permit2ApprovalResult`
228+
) ‑> [Permit2ApprovalResult](./opg_token)
235229
```
236230
Ensure the Permit2 allowance stays above a minimum threshold.
237231

@@ -258,12 +252,6 @@ Permit2ApprovalResult: Contains ``allowance_before``,
258252
``allowance_after``, and ``tx_hash`` (None when no approval
259253
was needed).
260254

261-
**`Permit2ApprovalResult` fields:**
262-
263-
* **`allowance_before`**: The Permit2 allowance before the method ran.
264-
* **`allowance_after`**: The Permit2 allowance after the method ran.
265-
* **`tx_hash`**: Transaction hash of the approval, or None if no transaction was needed.
266-
267255
**Raises**
268256

269257
* **`ValueError`**: If ``min_allowance`` is less than 0.1 or
@@ -275,7 +263,7 @@ Permit2ApprovalResult: Contains ``allowance_before``,
275263
#### `ensure_opg_approval()`
276264

277265
```python
278-
def ensure_opg_approval(self, opg_amountfloat) ‑> `Permit2ApprovalResult`
266+
def ensure_opg_approval(self, opg_amountfloat) ‑> [Permit2ApprovalResult](./opg_token)
279267
```
280268
Ensure the Permit2 allowance for OPG is at least ``opg_amount``.
281269

@@ -294,12 +282,6 @@ Permit2ApprovalResult: Contains ``allowance_before``,
294282
``allowance_after``, and ``tx_hash`` (None when no approval
295283
was needed).
296284

297-
**`Permit2ApprovalResult` fields:**
298-
299-
* **`allowance_before`**: The Permit2 allowance before the method ran.
300-
* **`allowance_after`**: The Permit2 allowance after the method ran.
301-
* **`tx_hash`**: Transaction hash of the approval, or None if no transaction was needed.
302-
303285
**Raises**
304286

305287
* **`ValueError`**: If the OPG amount is less than 0.1.

docs/opengradient/client/opg_token.md

Lines changed: 0 additions & 159 deletions
This file was deleted.

src/opengradient/client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@
4444
"Twins": False,
4545
"client": False,
4646
"exceptions": False,
47-
"opg_token": True,
47+
"opg_token": False,
4848
"tee_registry": False,
4949
}

0 commit comments

Comments
 (0)