-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from algorandfoundation/arc-28
feat: ARC-28 support
- Loading branch information
Showing
28 changed files
with
2,098 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
[@algorandfoundation/algokit-subscriber](../README.md) / [types/subscription](../modules/types_subscription.md) / Arc28Event | ||
|
||
# Interface: Arc28Event | ||
|
||
[types/subscription](../modules/types_subscription.md).Arc28Event | ||
|
||
The definition of metadata for an ARC-28 event per https://github.com/algorandfoundation/ARCs/blob/main/ARCs/arc-0028.md#event. | ||
|
||
## Table of contents | ||
|
||
### Properties | ||
|
||
- [args](types_subscription.Arc28Event.md#args) | ||
- [desc](types_subscription.Arc28Event.md#desc) | ||
- [name](types_subscription.Arc28Event.md#name) | ||
|
||
## Properties | ||
|
||
### args | ||
|
||
• **args**: \{ `desc?`: `string` ; `name?`: `string` ; `type`: `string` }[] | ||
|
||
The arguments of the event, in order | ||
|
||
#### Defined in | ||
|
||
[types/subscription.ts:13](https://github.com/algorandfoundation/algokit-subscriber-ts/blob/main/src/types/subscription.ts#L13) | ||
|
||
___ | ||
|
||
### desc | ||
|
||
• `Optional` **desc**: `string` | ||
|
||
Optional, user-friendly description for the event | ||
|
||
#### Defined in | ||
|
||
[types/subscription.ts:11](https://github.com/algorandfoundation/algokit-subscriber-ts/blob/main/src/types/subscription.ts#L11) | ||
|
||
___ | ||
|
||
### name | ||
|
||
• **name**: `string` | ||
|
||
The name of the event | ||
|
||
#### Defined in | ||
|
||
[types/subscription.ts:9](https://github.com/algorandfoundation/algokit-subscriber-ts/blob/main/src/types/subscription.ts#L9) |
91 changes: 91 additions & 0 deletions
91
docs/code/interfaces/types_subscription.Arc28EventGroup.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
[@algorandfoundation/algokit-subscriber](../README.md) / [types/subscription](../modules/types_subscription.md) / Arc28EventGroup | ||
|
||
# Interface: Arc28EventGroup | ||
|
||
[types/subscription](../modules/types_subscription.md).Arc28EventGroup | ||
|
||
Specifies a group of ARC-28 event definitions along with instructions for when to attempt to process the events. | ||
|
||
## Table of contents | ||
|
||
### Properties | ||
|
||
- [continueOnError](types_subscription.Arc28EventGroup.md#continueonerror) | ||
- [events](types_subscription.Arc28EventGroup.md#events) | ||
- [groupName](types_subscription.Arc28EventGroup.md#groupname) | ||
- [processForAppIds](types_subscription.Arc28EventGroup.md#processforappids) | ||
- [processTransaction](types_subscription.Arc28EventGroup.md#processtransaction) | ||
|
||
## Properties | ||
|
||
### continueOnError | ||
|
||
• `Optional` **continueOnError**: `boolean` | ||
|
||
Whether or not to silently (with warning log) continue if an error is encountered processing the ARC-28 event data; default = false | ||
|
||
#### Defined in | ||
|
||
[types/subscription.ts:54](https://github.com/algorandfoundation/algokit-subscriber-ts/blob/main/src/types/subscription.ts#L54) | ||
|
||
___ | ||
|
||
### events | ||
|
||
• **events**: [`Arc28Event`](types_subscription.Arc28Event.md)[] | ||
|
||
The list of ARC-28 event definitions | ||
|
||
#### Defined in | ||
|
||
[types/subscription.ts:56](https://github.com/algorandfoundation/algokit-subscriber-ts/blob/main/src/types/subscription.ts#L56) | ||
|
||
___ | ||
|
||
### groupName | ||
|
||
• **groupName**: `string` | ||
|
||
The name to designate for this group of events. | ||
|
||
#### Defined in | ||
|
||
[types/subscription.ts:48](https://github.com/algorandfoundation/algokit-subscriber-ts/blob/main/src/types/subscription.ts#L48) | ||
|
||
___ | ||
|
||
### processForAppIds | ||
|
||
• `Optional` **processForAppIds**: `number`[] | ||
|
||
Optional list of app IDs that this event should apply to | ||
|
||
#### Defined in | ||
|
||
[types/subscription.ts:50](https://github.com/algorandfoundation/algokit-subscriber-ts/blob/main/src/types/subscription.ts#L50) | ||
|
||
___ | ||
|
||
### processTransaction | ||
|
||
• `Optional` **processTransaction**: (`transaction`: `TransactionResult`) => `boolean` | ||
|
||
#### Type declaration | ||
|
||
▸ (`transaction`): `boolean` | ||
|
||
Optional predicate to indicate if these ARC-28 events should be processed for the given transaction | ||
|
||
##### Parameters | ||
|
||
| Name | Type | | ||
| :------ | :------ | | ||
| `transaction` | `TransactionResult` | | ||
|
||
##### Returns | ||
|
||
`boolean` | ||
|
||
#### Defined in | ||
|
||
[types/subscription.ts:52](https://github.com/algorandfoundation/algokit-subscriber-ts/blob/main/src/types/subscription.ts#L52) |
83 changes: 83 additions & 0 deletions
83
docs/code/interfaces/types_subscription.Arc28EventToProcess.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
[@algorandfoundation/algokit-subscriber](../README.md) / [types/subscription](../modules/types_subscription.md) / Arc28EventToProcess | ||
|
||
# Interface: Arc28EventToProcess | ||
|
||
[types/subscription](../modules/types_subscription.md).Arc28EventToProcess | ||
|
||
An ARC-28 event to be processed | ||
|
||
## Hierarchy | ||
|
||
- **`Arc28EventToProcess`** | ||
|
||
↳ [`EmittedArc28Event`](types_subscription.EmittedArc28Event.md) | ||
|
||
## Table of contents | ||
|
||
### Properties | ||
|
||
- [eventDefinition](types_subscription.Arc28EventToProcess.md#eventdefinition) | ||
- [eventName](types_subscription.Arc28EventToProcess.md#eventname) | ||
- [eventPrefix](types_subscription.Arc28EventToProcess.md#eventprefix) | ||
- [eventSignature](types_subscription.Arc28EventToProcess.md#eventsignature) | ||
- [groupName](types_subscription.Arc28EventToProcess.md#groupname) | ||
|
||
## Properties | ||
|
||
### eventDefinition | ||
|
||
• **eventDefinition**: [`Arc28Event`](types_subscription.Arc28Event.md) | ||
|
||
The ARC-28 definition of the event | ||
|
||
#### Defined in | ||
|
||
[types/subscription.ts:34](https://github.com/algorandfoundation/algokit-subscriber-ts/blob/main/src/types/subscription.ts#L34) | ||
|
||
___ | ||
|
||
### eventName | ||
|
||
• **eventName**: `string` | ||
|
||
The name of the ARC-28 event that was triggered | ||
|
||
#### Defined in | ||
|
||
[types/subscription.ts:28](https://github.com/algorandfoundation/algokit-subscriber-ts/blob/main/src/types/subscription.ts#L28) | ||
|
||
___ | ||
|
||
### eventPrefix | ||
|
||
• **eventPrefix**: `string` | ||
|
||
The 4-byte hex prefix for the event | ||
|
||
#### Defined in | ||
|
||
[types/subscription.ts:32](https://github.com/algorandfoundation/algokit-subscriber-ts/blob/main/src/types/subscription.ts#L32) | ||
|
||
___ | ||
|
||
### eventSignature | ||
|
||
• **eventSignature**: `string` | ||
|
||
The signature of the event e.g. `EventName(type1,type2)` | ||
|
||
#### Defined in | ||
|
||
[types/subscription.ts:30](https://github.com/algorandfoundation/algokit-subscriber-ts/blob/main/src/types/subscription.ts#L30) | ||
|
||
___ | ||
|
||
### groupName | ||
|
||
• **groupName**: `string` | ||
|
||
The name of the ARC-28 event group the event belongs to | ||
|
||
#### Defined in | ||
|
||
[types/subscription.ts:26](https://github.com/algorandfoundation/algokit-subscriber-ts/blob/main/src/types/subscription.ts#L26) |
Oops, something went wrong.