Skip to content

Commit

Permalink
feat(app): Added logic error handling from beaker-ts
Browse files Browse the repository at this point in the history
  • Loading branch information
robdmoore committed Mar 23, 2023
1 parent 6745408 commit 1034825
Show file tree
Hide file tree
Showing 111 changed files with 1,273 additions and 748 deletions.
1 change: 1 addition & 0 deletions docs/code/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
- [types/config](modules/types_config.md)
- [types/indexer](modules/types_indexer.md)
- [types/logging](modules/types_logging.md)
- [types/logic-error](modules/types_logic_error.md)
- [types/network-client](modules/types_network_client.md)
- [types/testing](modules/types_testing.md)
- [types/transaction](modules/types_transaction.md)
Expand Down
22 changes: 11 additions & 11 deletions docs/code/classes/testing.TestLogger.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Create a new test logger that wraps the given logger if provided.

#### Defined in

[testing/test-logger.ts:16](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/test-logger.ts#L16)
[src/testing/test-logger.ts:16](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/test-logger.ts#L16)

## Properties

Expand All @@ -62,7 +62,7 @@ Create a new test logger that wraps the given logger if provided.

#### Defined in

[testing/test-logger.ts:10](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/test-logger.ts#L10)
[src/testing/test-logger.ts:10](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/test-logger.ts#L10)

___

Expand All @@ -72,7 +72,7 @@ ___

#### Defined in

[testing/test-logger.ts:9](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/test-logger.ts#L9)
[src/testing/test-logger.ts:9](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/test-logger.ts#L9)

## Accessors

Expand All @@ -88,7 +88,7 @@ Returns all logs captured thus far.

#### Defined in

[testing/test-logger.ts:22](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/test-logger.ts#L22)
[src/testing/test-logger.ts:22](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/test-logger.ts#L22)

## Methods

Expand All @@ -104,7 +104,7 @@ Clears all logs captured so far.

#### Defined in

[testing/test-logger.ts:27](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/test-logger.ts#L27)
[src/testing/test-logger.ts:27](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/test-logger.ts#L27)

___

Expand All @@ -129,7 +129,7 @@ Logger.debug

#### Defined in

[testing/test-logger.ts:75](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/test-logger.ts#L75)
[src/testing/test-logger.ts:75](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/test-logger.ts#L75)

___

Expand All @@ -154,7 +154,7 @@ Logger.error

#### Defined in

[testing/test-logger.ts:59](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/test-logger.ts#L59)
[src/testing/test-logger.ts:59](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/test-logger.ts#L59)

___

Expand Down Expand Up @@ -193,7 +193,7 @@ The snapshotted logs.

#### Defined in

[testing/test-logger.ts:45](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/test-logger.ts#L45)
[src/testing/test-logger.ts:45](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/test-logger.ts#L45)

___

Expand All @@ -218,7 +218,7 @@ Logger.info

#### Defined in

[testing/test-logger.ts:67](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/test-logger.ts#L67)
[src/testing/test-logger.ts:67](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/test-logger.ts#L67)

___

Expand All @@ -243,7 +243,7 @@ Logger.verbose

#### Defined in

[testing/test-logger.ts:71](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/test-logger.ts#L71)
[src/testing/test-logger.ts:71](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/test-logger.ts#L71)

___

Expand All @@ -268,4 +268,4 @@ Logger.warn

#### Defined in

[testing/test-logger.ts:63](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/test-logger.ts#L63)
[src/testing/test-logger.ts:63](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/test-logger.ts#L63)
12 changes: 6 additions & 6 deletions docs/code/classes/testing.TransactionLogger.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Useful for automated tests.

#### Defined in

[testing/transaction-logger.ts:9](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/transaction-logger.ts#L9)
[src/testing/transaction-logger.ts:9](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/transaction-logger.ts#L9)

## Accessors

Expand All @@ -62,7 +62,7 @@ readonly `string`[]

#### Defined in

[testing/transaction-logger.ts:14](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/transaction-logger.ts#L14)
[src/testing/transaction-logger.ts:14](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/transaction-logger.ts#L14)

## Methods

Expand Down Expand Up @@ -91,7 +91,7 @@ The wrapped

#### Defined in

[testing/transaction-logger.ts:45](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/transaction-logger.ts#L45)
[src/testing/transaction-logger.ts:45](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/transaction-logger.ts#L45)

___

Expand All @@ -107,7 +107,7 @@ Clear all logged IDs.

#### Defined in

[testing/transaction-logger.ts:21](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/transaction-logger.ts#L21)
[src/testing/transaction-logger.ts:21](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/transaction-logger.ts#L21)

___

Expand All @@ -129,7 +129,7 @@ The method that captures raw transactions and stores the transaction IDs.

#### Defined in

[testing/transaction-logger.ts:28](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/transaction-logger.ts#L28)
[src/testing/transaction-logger.ts:28](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/transaction-logger.ts#L28)

___

Expand All @@ -155,4 +155,4 @@ Indexer.

#### Defined in

[testing/transaction-logger.ts:50](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/transaction-logger.ts#L50)
[src/testing/transaction-logger.ts:50](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/testing/transaction-logger.ts#L50)
16 changes: 8 additions & 8 deletions docs/code/classes/types_account.MultisigAccount.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Account wrapper that supports partial or full multisig signing.

#### Defined in

[types/account.ts:29](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/account.ts#L29)
[src/types/account.ts:29](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/account.ts#L29)

## Properties

Expand All @@ -53,7 +53,7 @@ Account wrapper that supports partial or full multisig signing.

#### Defined in

[types/account.ts:12](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/account.ts#L12)
[src/types/account.ts:12](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/account.ts#L12)

___

Expand All @@ -63,7 +63,7 @@ ___

#### Defined in

[types/account.ts:10](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/account.ts#L10)
[src/types/account.ts:10](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/account.ts#L10)

___

Expand All @@ -73,7 +73,7 @@ ___

#### Defined in

[types/account.ts:11](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/account.ts#L11)
[src/types/account.ts:11](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/account.ts#L11)

## Accessors

Expand All @@ -89,7 +89,7 @@ The address of the multisig account

#### Defined in

[types/account.ts:25](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/account.ts#L25)
[src/types/account.ts:25](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/account.ts#L25)

___

Expand All @@ -105,7 +105,7 @@ The parameters for the multisig account

#### Defined in

[types/account.ts:15](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/account.ts#L15)
[src/types/account.ts:15](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/account.ts#L15)

___

Expand All @@ -121,7 +121,7 @@ readonly (`default` \| [`SigningAccount`](types_account.SigningAccount.md))[]

#### Defined in

[types/account.ts:20](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/account.ts#L20)
[src/types/account.ts:20](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/account.ts#L20)

## Methods

Expand All @@ -145,4 +145,4 @@ The transaction signed by the present signers

#### Defined in

[types/account.ts:40](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/account.ts#L40)
[src/types/account.ts:40](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/account.ts#L40)
14 changes: 7 additions & 7 deletions docs/code/classes/types_account.SigningAccount.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Account wrapper that supports a rekeyed account

#### Defined in

[types/account.ts:90](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/account.ts#L90)
[src/types/account.ts:90](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/account.ts#L90)

## Properties

Expand All @@ -53,7 +53,7 @@ Account wrapper that supports a rekeyed account

#### Defined in

[types/account.ts:56](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/account.ts#L56)
[src/types/account.ts:56](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/account.ts#L56)

___

Expand All @@ -63,7 +63,7 @@ ___

#### Defined in

[types/account.ts:57](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/account.ts#L57)
[src/types/account.ts:57](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/account.ts#L57)

## Accessors

Expand All @@ -83,7 +83,7 @@ Account.addr

#### Defined in

[types/account.ts:62](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/account.ts#L62)
[src/types/account.ts:62](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/account.ts#L62)

___

Expand All @@ -99,7 +99,7 @@ Algorand account of the sender address and signer private key

#### Defined in

[types/account.ts:83](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/account.ts#L83)
[src/types/account.ts:83](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/account.ts#L83)

___

Expand All @@ -115,7 +115,7 @@ Algorand account of the underlying signing account

#### Defined in

[types/account.ts:76](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/account.ts#L76)
[src/types/account.ts:76](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/account.ts#L76)

___

Expand All @@ -135,4 +135,4 @@ Account.sk

#### Defined in

[types/account.ts:69](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/account.ts#L69)
[src/types/account.ts:69](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/account.ts#L69)
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ A HTTP Client that wraps the Algorand SDK HTTP Client with retries

#### Defined in

[types/urlTokenBaseHTTPClient.ts:45](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/urlTokenBaseHTTPClient.ts#L45)
[src/types/urlTokenBaseHTTPClient.ts:45](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/urlTokenBaseHTTPClient.ts#L45)

## Properties

Expand All @@ -63,7 +63,7 @@ A HTTP Client that wraps the Algorand SDK HTTP Client with retries

#### Defined in

[types/algo-http-client-with-retry.ts:8](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algo-http-client-with-retry.ts#L8)
[src/types/algo-http-client-with-retry.ts:8](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algo-http-client-with-retry.ts#L8)

___

Expand All @@ -73,7 +73,7 @@ ___

#### Defined in

[types/algo-http-client-with-retry.ts:7](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algo-http-client-with-retry.ts#L7)
[src/types/algo-http-client-with-retry.ts:7](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algo-http-client-with-retry.ts#L7)

___

Expand All @@ -83,7 +83,7 @@ ___

#### Defined in

[types/algo-http-client-with-retry.ts:13](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algo-http-client-with-retry.ts#L13)
[src/types/algo-http-client-with-retry.ts:13](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algo-http-client-with-retry.ts#L13)

___

Expand All @@ -93,7 +93,7 @@ ___

#### Defined in

[types/algo-http-client-with-retry.ts:12](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algo-http-client-with-retry.ts#L12)
[src/types/algo-http-client-with-retry.ts:12](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algo-http-client-with-retry.ts#L12)

## Methods

Expand All @@ -113,7 +113,7 @@ ___

#### Defined in

[types/algo-http-client-with-retry.ts:25](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algo-http-client-with-retry.ts#L25)
[src/types/algo-http-client-with-retry.ts:25](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algo-http-client-with-retry.ts#L25)

___

Expand All @@ -140,7 +140,7 @@ ___

#### Defined in

[types/algo-http-client-with-retry.ts:67](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algo-http-client-with-retry.ts#L67)
[src/types/algo-http-client-with-retry.ts:67](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algo-http-client-with-retry.ts#L67)

___

Expand All @@ -166,7 +166,7 @@ ___

#### Defined in

[types/algo-http-client-with-retry.ts:54](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algo-http-client-with-retry.ts#L54)
[src/types/algo-http-client-with-retry.ts:54](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algo-http-client-with-retry.ts#L54)

___

Expand All @@ -193,4 +193,4 @@ ___

#### Defined in

[types/algo-http-client-with-retry.ts:58](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algo-http-client-with-retry.ts#L58)
[src/types/algo-http-client-with-retry.ts:58](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algo-http-client-with-retry.ts#L58)
Loading

0 comments on commit 1034825

Please sign in to comment.