Skip to content

Commit

Permalink
PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
robdmoore committed Sep 4, 2024
1 parent b59c336 commit f90bf97
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 18 deletions.
6 changes: 3 additions & 3 deletions docs/capabilities/app.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ When [sending transactions directly via AlgorandClient](./algorand-client.md#sen
- `decodeError: Error` - If there was a decoding error the above 2 values will be `undefined` and this will have the error
- Update and create calls extend [`SendAppUpdateTransactionResult`](../code/modules/types_transaction.md#sendappupdatetransactionresult), which has:
- `compiledApproval: CompiledTeal | undefined` - The compilation result of approval, if approval program was supplied as a string and thus compiled by algod
- `compiledClear: CompiledTeal | undefined` - The compilation result of approval, if clear state program was supplied as a string and thus compiled by algod
- `compiledClear: CompiledTeal | undefined` - The compilation result of clear state, if clear state program was supplied as a string and thus compiled by algod
- Create calls extend [`SendAppCreateTransactionResult`](../code/modules/types_transaction.md#sendappcreatetransactionresult), which has:
- `appId: bigint` - The id of the created app
- `appAddress: string` - The Algorand address of the account associated with the app
Expand Down Expand Up @@ -304,7 +304,7 @@ await algorand.send.appCallMethodCall({

### Global state

To access and parse global state you can use the following staticc method from [`AppManager`](#appmanager):
To access and parse global state you can use the following static method from [`AppManager`](#appmanager):

- [`AppManager.decodeAppState(state)`](../code/classes/types_app_manager.AppManager.md#decodeappstate) - Takes the raw response from the algod API for global state and returns a friendly generic object keyed by the UTF-8 value of the key

Expand Down Expand Up @@ -349,7 +349,7 @@ To access and parse box values and names for an app you can use the following me
- [`appManager.getBoxValues(appId: bigint, boxNames: BoxIdentifier[])`](../code/modules/index.md#getboxvalues) - Returns the binary values of the given box names for the given app ID
- [`appManager.getBoxValueFromABIType(request: {appId: bigint, boxName: BoxIdentifier, type: algosdk.ABIType}})`](../code/modules/index.md#getboxvaluefromabitype) - Returns the parsed ABI value of the given box name for the given app ID for the provided ABI type
- [`appManager.getBoxValuesFromABIType(request: {appId: bigint, boxNames: BoxIdentifier[], type: algosdk.ABIType})`](../code/modules/index.md#getboxvaluesfromabitype) - Returns the parsed ABI values of the given box names for the given app ID for the provided ABI type
- [`AppManager.getBoxReference(boxId)`](../code/modules/index.md#getboxreference) - Returns an `algosdk.BoxReference` representation of the given [box identifier / reference](#box-references), which is useful when constructing a raw `algosdk.Transaction`
- [`AppManager.getBoxReference(boxId)`](../code/modules/index.md#getboxreference) - Returns a `algosdk.BoxReference` representation of the given [box identifier / reference](#box-references), which is useful when constructing a raw `algosdk.Transaction`

```typescript
const appId = 12345n
Expand Down
2 changes: 1 addition & 1 deletion docs/code/classes/types_composer.default.md
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ Builds an ABI method call transaction and any other associated transactions repr
| :------ | :------ | :------ |
| `params` | [`AppCreateMethodCall`](../modules/types_composer.md#appcreatemethodcall) \| [`AppUpdateMethodCall`](../modules/types_composer.md#appupdatemethodcall) \| [`AppCallMethodCall`](../modules/types_composer.md#appcallmethodcall) | - |
| `suggestedParams` | `SuggestedParams` | - |
| `includeSigner` | `boolean` | Whether to include the actual signer for the transactions. If you are just building transactions without signers yet then set this to `true`. |
| `includeSigner` | `boolean` | Whether to include the actual signer for the transactions. If you are just building transactions without signers yet then set this to `false`. |

#### Returns

Expand Down
18 changes: 9 additions & 9 deletions docs/code/modules/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ To understand the architecture decisions behind this functionality please see ht

#### Defined in

[src/app-deploy.ts:53](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/app-deploy.ts#L53)
[src/app-deploy.ts:50](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/app-deploy.ts#L50)

___

Expand Down Expand Up @@ -1671,7 +1671,7 @@ Return the transaction note for an app deployment.

#### Defined in

[src/app-deploy.ts:256](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/app-deploy.ts#L256)
[src/app-deploy.ts:253](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/app-deploy.ts#L253)

___

Expand Down Expand Up @@ -1754,7 +1754,7 @@ The `algosdk.OnApplicationComplete`

Use `algosdk.OnApplicationComplete` directly instead.

Returns an `algosdk.OnApplicationComplete` for the given onCompleteAction.
Returns a `algosdk.OnApplicationComplete` for the given onCompleteAction.

If given `undefined` will return `OnApplicationComplete.NoOpOC`.

Expand Down Expand Up @@ -1865,7 +1865,7 @@ Returns a lookup of name => app metadata (id, address, ...metadata) for all apps

#### Defined in

[src/app-deploy.ts:235](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/app-deploy.ts#L235)
[src/app-deploy.ts:232](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/app-deploy.ts#L232)

___

Expand Down Expand Up @@ -2266,7 +2266,7 @@ Returns true is there is a breaking change in the application state schema from

#### Defined in

[src/app-deploy.ts:220](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/app-deploy.ts#L220)
[src/app-deploy.ts:217](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/app-deploy.ts#L217)

___

Expand Down Expand Up @@ -2523,7 +2523,7 @@ Looks for `TMPL_{parameter}` for template replacements.

#### Defined in

[src/app-deploy.ts:294](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/app-deploy.ts#L294)
[src/app-deploy.ts:291](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/app-deploy.ts#L291)

___

Expand Down Expand Up @@ -2556,7 +2556,7 @@ Looks for `TMPL_{parameter}` for template replacements.

#### Defined in

[src/app-deploy.ts:311](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/app-deploy.ts#L311)
[src/app-deploy.ts:308](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/app-deploy.ts#L308)

___

Expand Down Expand Up @@ -2731,7 +2731,7 @@ Note: If these values are not undefined, but the corresponding `TMPL_*` value

#### Defined in

[src/app-deploy.ts:279](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/app-deploy.ts#L279)
[src/app-deploy.ts:276](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/app-deploy.ts#L276)

___

Expand Down Expand Up @@ -2899,7 +2899,7 @@ Remove comments from TEAL Code

#### Defined in

[src/app-deploy.ts:336](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/app-deploy.ts#L336)
[src/app-deploy.ts:333](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/app-deploy.ts#L333)

___

Expand Down
3 changes: 0 additions & 3 deletions src/app-deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,8 @@ import AlgoKitComposer, {
} from './types/composer'
import { Arc2TransactionNote, ConfirmedTransactionResult, ConfirmedTransactionResults, SendTransactionFrom } from './types/transaction'
import Algodv2 = algosdk.Algodv2
import AtomicTransactionComposer = algosdk.AtomicTransactionComposer
import getApplicationAddress = algosdk.getApplicationAddress
import Indexer = algosdk.Indexer
import modelsv2 = algosdk.modelsv2
import TransactionType = algosdk.TransactionType

/**
* @deprecated Use `algorand.appDeployer.deploy` instead.
Expand Down
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export async function updateApp(
/**
* @deprecated Use `algosdk.OnApplicationComplete` directly instead.
*
* Returns an `algosdk.OnApplicationComplete` for the given onCompleteAction.
* Returns a `algosdk.OnApplicationComplete` for the given onCompleteAction.
*
* If given `undefined` will return `OnApplicationComplete.NoOpOC`.
*
Expand Down
2 changes: 1 addition & 1 deletion src/types/composer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ export default class AlgoKitComposer {
/**
* Builds an ABI method call transaction and any other associated transactions represented in the ABI args.
* @param includeSigner Whether to include the actual signer for the transactions.
* If you are just building transactions without signers yet then set this to `true`.
* If you are just building transactions without signers yet then set this to `false`.
*/
private async buildMethodCall(
params: AppCallMethodCall | AppCreateMethodCall | AppUpdateMethodCall,
Expand Down

0 comments on commit f90bf97

Please sign in to comment.