Skip to content

Commit

Permalink
Add error codes
Browse files Browse the repository at this point in the history
  • Loading branch information
thesimplekid committed Jul 23, 2024
1 parent 16567d2 commit 4c21351
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 4 deletions.
7 changes: 6 additions & 1 deletion 02.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,12 @@ A useful flow is:
- If any of the keysets has changed its `active` flag, update it in the db and use the keyset accordingly

## Errors
`Keyset_Not_Found`: 12001

| Code | Description |
|--------|------------------------------------|
| 12001 | Keyset is not known |
| 12002 | Insufficant fee included |
| 12003 | Fee over paid |

[00]: 00.md
[01]: 01.md
Expand Down
6 changes: 5 additions & 1 deletion 03.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ If successful, `Bob` will respond with a `PostSwapResponse`
```

## Errors
`Token_Already_Spent`: 11001

| Code | Description |
|--------|-------------------------------------------|
| 11001 | Token is already spent |
| 10002 | Blinded message of output already signed |

[00]: 00.md
[01]: 01.md
Expand Down
9 changes: 8 additions & 1 deletion 04.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,14 @@ Example `MintMethodSetting`:
```

## Errors
`Quote_Not_Paid_Yet`: 20001

| Code | Description |
|--------|-------------------------------------------|
| 10002 | Blinded message of output already signed |
| 20001 | Quote request is not paid |
| 20002 | Tokens have already been issued for quote |
| 20003 | Minting is disabled |
| 20004 | Unit in request is not supported |


[00]: 00.md
Expand Down
8 changes: 7 additions & 1 deletion 05.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,13 @@ Example `MeltMethodSetting`:
```

## Errors
`Token_Already_Spent`: 11001

| Code | Description |
|--------|-------------------------------------------|
| 11001 | Token is already spent |
| 10002 | Blinded message of output already signed |
| 20005 | Quote is pending |
| 20006 | Invoice already paid |


[00]: 00.md
Expand Down

0 comments on commit 4c21351

Please sign in to comment.