Skip to content
This repository has been archived by the owner on May 8, 2023. It is now read-only.

Commit

Permalink
Add anchors for event- and metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
chmanie committed Dec 19, 2022
1 parent a5eea23 commit 8dc5b19
Show file tree
Hide file tree
Showing 19 changed files with 145 additions and 97 deletions.
1 change: 1 addition & 0 deletions docs/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
- [ColonyMultiFilter](interfaces/ColonyMultiFilter.md)
- [ColonyNetworkOptions](interfaces/ColonyNetworkOptions.md)
- [ColonyTopic](interfaces/ColonyTopic.md)
- [DecisionMetadata](interfaces/DecisionMetadata.md)
- [DomainMetadata](interfaces/DomainMetadata.md)
- [Ethers6Filter](interfaces/Ethers6Filter.md)
- [Ethers6FilterByBlockHash](interfaces/Ethers6FilterByBlockHash.md)
Expand Down
54 changes: 32 additions & 22 deletions docs/api/classes/Colony.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,17 @@ If [AnnotationMetadata](../interfaces/AnnotationMetadata.md) is provided directl

A transaction creator

**Event data**
#### Event data

| Property | Type | Description |
| :------ | :------ | :------ |
| `agent` | string | The address that is responsible for triggering this event |
| `txHash` | BigNumber | The hash of the annotated transaction |
| `metadata` | BigNumber | The IPFS hash (CID) of the metadata object |

**Metadata** (can be obtained by calling and awaiting the `getMetadata` function)
#### Metadata

(can be obtained by calling and awaiting the `getMetadata` function)

| Property | Type | Description |
| :------ | :------ | :------ |
Expand Down Expand Up @@ -136,7 +138,7 @@ Only users with *Root* role are allowed to award reputation

A transaction creator

**Event data**
#### Event data

| Property | Type | Description |
| :------ | :------ | :------ |
Expand Down Expand Up @@ -171,7 +173,7 @@ use `ethers.constants.AddressZero` to claim ETH.

A transaction creator

**Event data**
#### Event data

| Property | Type | Description |
| :------ | :------ | :------ |
Expand Down Expand Up @@ -222,7 +224,7 @@ import { TeamColor } from '@colony/sdk';

A transaction creator

**Event data**
#### Event data

| Property | Type | Description |
| :------ | :------ | :------ |
Expand All @@ -231,7 +233,9 @@ A transaction creator
| `fundingPotId` | BigNumber | Integer id of the corresponding funding pot |
| `metadata` | string | IPFS CID of metadata attached to this transaction |

**Metadata** (can be obtained by calling and awaiting the `getMetadata` function)
#### Metadata

(can be obtained by calling and awaiting the `getMetadata` function)

| Property | Type | Description |
| :------ | :------ | :------ |
Expand All @@ -253,7 +257,7 @@ Currently you can only add domains within the `Root` domain. This restriction wi

A transaction creator

**Event data**
#### Event data

| Property | Type | Description |
| :------ | :------ | :------ |
Expand Down Expand Up @@ -288,7 +292,7 @@ Only works for native tokens deployed with Colony (not imported tokens).

A transaction creator

**Event data**
#### Event data

| Property | Type | Description |
| :------ | :------ | :------ |
Expand Down Expand Up @@ -317,7 +321,7 @@ Teams can be deprecated which will remove them from the UI. As they can't be del

A transaction creator

**Event data**
#### Event data

| Property | Type | Description |
| :------ | :------ | :------ |
Expand Down Expand Up @@ -363,7 +367,7 @@ This will overwrite all exisiting metadata!

A transaction creator

**Event data**
#### Event data

| Property | Type | Description |
| :------ | :------ | :------ |
Expand All @@ -372,7 +376,9 @@ A transaction creator
| `token` | string | Address of the token that is used as the colony's native token |
| `metadata` | string | IPFS CID of metadata attached to this transaction |

**Metadata** (can be obtained by calling and awaiting the `getMetadata` function)
#### Metadata

(can be obtained by calling and awaiting the `getMetadata` function)

| Property | Type | Description |
| :------ | :------ | :------ |
Expand Down Expand Up @@ -422,15 +428,17 @@ import { TeamColor } from '@colony/sdk';

A transaction creator

**Event data**
#### Event data

| Property | Type | Description |
| :------ | :------ | :------ |
| `agent` | string | The address that is responsible for triggering this event |
| `domainId` | BigNumber | Integer domain id of the created team |
| `metadata` | string | IPFS CID of metadata attached to this transaction |

**Metadata** (can be obtained by calling and awaiting the `getMetadata` function)
#### Metadata

(can be obtained by calling and awaiting the `getMetadata` function)

| Property | Type | Description |
| :------ | :------ | :------ |
Expand Down Expand Up @@ -458,7 +466,7 @@ Be aware that to exit Recovery Mode a quorum of 50% is needed of all users who h

A transaction creator

**Event data**
#### Event data

| Property | Type | Description |
| :------ | :------ | :------ |
Expand All @@ -480,7 +488,7 @@ In Recovery Mode, no actions are possible on the colony. Only users who have the

A transaction creator

**Event data**
#### Event data

| Property | Type | Description |
| :------ | :------ | :------ |
Expand Down Expand Up @@ -637,7 +645,7 @@ After an extension was installed, `colony.updateExtensions()` needs to be called

A transaction creator

**Event data**
#### Event data

| Property | Type | Description |
| :------ | :------ | :------ |
Expand Down Expand Up @@ -738,7 +746,7 @@ import { w } from '@colony/sdk';

A transaction creator

**Event data**
#### Event data

| Property | Type | Description |
| :------ | :------ | :------ |
Expand Down Expand Up @@ -792,7 +800,7 @@ import { Tokens, w } from '@colony/sdk';

A transaction creator

**Event data**
#### Event data

| Property | Type | Description |
| :------ | :------ | :------ |
Expand Down Expand Up @@ -844,7 +852,8 @@ import { ColonyRole } from '@colony/sdk';

A transaction creator

**Event data**
#### Event data

Heads up!* This event is emitted for every role that was set

| Property | Type | Description |
Expand Down Expand Up @@ -883,7 +892,7 @@ Only users with *Arbitration* role are allowed to award reputation

A transaction creator

**Event data**
#### Event data

| Property | Type | Description |
| :------ | :------ | :------ |
Expand Down Expand Up @@ -914,7 +923,8 @@ Unset (remove) roles from a user/contract

A transaction creator

**Event data**
#### Event data

Heads up!* This event is emitted for every role that was unset

| Property | Type | Description |
Expand Down Expand Up @@ -967,7 +977,7 @@ This method upgrades the colony to a specified version or, if no version is prov

A transaction creator

**Event data**
#### Event data

| Property | Type | Description |
| :------ | :------ | :------ |
Expand Down
8 changes: 5 additions & 3 deletions docs/api/classes/ColonyNetwork.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ import { Tokens } from '@colony/sdk';

A transaction creator

**Event data**
#### Event data

| Property | Type | Description |
| :------ | :------ | :------ |
Expand All @@ -95,7 +95,9 @@ A transaction creator
| `token` | string | Address of the token that is used as the colony's native token |
| `metadata` | string | IPFS CID of metadata attached to this transaction |

**Metadata** (can be obtained by calling and awaiting the `getMetadata` function)
#### Metadata

(can be obtained by calling and awaiting the `getMetadata` function)

| Property | Type | Description |
| :------ | :------ | :------ |
Expand Down Expand Up @@ -140,7 +142,7 @@ There is more to creating a fully functional colony that can be used within the

A transaction creator

**Event data**
#### Event data

| Property | Type | Description |
| :------ | :------ | :------ |
Expand Down
6 changes: 3 additions & 3 deletions docs/api/classes/ColonyToken.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ import { w } from '@colony/sdk';

A transaction creator

**Event data**
#### Event data

| Property | Type | Description |
| :------ | :------ | :------ |
Expand Down Expand Up @@ -166,7 +166,7 @@ import { w } from '@colony/sdk';

A transaction creator

**Event data**
#### Event data

| Property | Type | Description |
| :------ | :------ | :------ |
Expand Down Expand Up @@ -198,7 +198,7 @@ Only works for native tokens deployed with Colony (not imported tokens).

A transaction creator

**Event data**
#### Event data

| Property | Type | Description |
| :------ | :------ | :------ |
Expand Down
8 changes: 4 additions & 4 deletions docs/api/classes/ColonyTxCreator.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ ___

### metaTx

**metaTx**(): `Promise`<[`E`, [`ParsedLogTransactionReceipt`](../interfaces/ParsedLogTransactionReceipt.md), () => `Promise`<`ReturnType`<{ `None`: () => `void` ; `annotation`: (`res`: `string`) => `string` = getAnnotationMsgFromResponse; `colony`: (`res`: `string`) => [`ColonyMetadata`](../interfaces/ColonyMetadata.md) = getColonyMetadataFromResponse; `decision`: (`res`: `string`) => `DecisionMetadata` = getDecisionDetailsFromResponse; `domain`: (`res`: `string`) => [`DomainMetadata`](../interfaces/DomainMetadata.md) = getDomainMetadataFromResponse; `misc`: (`res`: `string`) => `MiscMetadata` = getMiscDataFromResponse }[`MD`]\>\>] \| [`E`, [`ParsedLogTransactionReceipt`](../interfaces/ParsedLogTransactionReceipt.md)]\>
**metaTx**(): `Promise`<[`E`, [`ParsedLogTransactionReceipt`](../interfaces/ParsedLogTransactionReceipt.md), () => `Promise`<`ReturnType`<{ `None`: () => `void` ; `annotation`: (`res`: `string`) => `string` = getAnnotationMsgFromResponse; `colony`: (`res`: `string`) => [`ColonyMetadata`](../interfaces/ColonyMetadata.md) = getColonyMetadataFromResponse; `decision`: (`res`: `string`) => [`DecisionMetadata`](../interfaces/DecisionMetadata.md) = getDecisionDetailsFromResponse; `domain`: (`res`: `string`) => [`DomainMetadata`](../interfaces/DomainMetadata.md) = getDomainMetadataFromResponse; `misc`: (`res`: `string`) => `MiscMetadata` = getMiscDataFromResponse }[`MD`]\>\>] \| [`E`, [`ParsedLogTransactionReceipt`](../interfaces/ParsedLogTransactionReceipt.md)]\>

Forces an action using a gasless metatransaction

Expand All @@ -96,7 +96,7 @@ The user sending this transaction has to have the appropriate permissions to do

#### Returns

`Promise`<[`E`, [`ParsedLogTransactionReceipt`](../interfaces/ParsedLogTransactionReceipt.md), () => `Promise`<`ReturnType`<{ `None`: () => `void` ; `annotation`: (`res`: `string`) => `string` = getAnnotationMsgFromResponse; `colony`: (`res`: `string`) => [`ColonyMetadata`](../interfaces/ColonyMetadata.md) = getColonyMetadataFromResponse; `decision`: (`res`: `string`) => `DecisionMetadata` = getDecisionDetailsFromResponse; `domain`: (`res`: `string`) => [`DomainMetadata`](../interfaces/DomainMetadata.md) = getDomainMetadataFromResponse; `misc`: (`res`: `string`) => `MiscMetadata` = getMiscDataFromResponse }[`MD`]\>\>] \| [`E`, [`ParsedLogTransactionReceipt`](../interfaces/ParsedLogTransactionReceipt.md)]\>
`Promise`<[`E`, [`ParsedLogTransactionReceipt`](../interfaces/ParsedLogTransactionReceipt.md), () => `Promise`<`ReturnType`<{ `None`: () => `void` ; `annotation`: (`res`: `string`) => `string` = getAnnotationMsgFromResponse; `colony`: (`res`: `string`) => [`ColonyMetadata`](../interfaces/ColonyMetadata.md) = getColonyMetadataFromResponse; `decision`: (`res`: `string`) => [`DecisionMetadata`](../interfaces/DecisionMetadata.md) = getDecisionDetailsFromResponse; `domain`: (`res`: `string`) => [`DomainMetadata`](../interfaces/DomainMetadata.md) = getDomainMetadataFromResponse; `misc`: (`res`: `string`) => `MiscMetadata` = getMiscDataFromResponse }[`MD`]\>\>] \| [`E`, [`ParsedLogTransactionReceipt`](../interfaces/ParsedLogTransactionReceipt.md)]\>

A tupel of event data and contract receipt (and a function to retrieve metadata if applicable)

Expand Down Expand Up @@ -134,7 +134,7 @@ ___

### tx

**tx**(): `Promise`<[`E`, `ContractReceipt`, () => `Promise`<`ReturnType`<{ `None`: () => `void` ; `annotation`: (`res`: `string`) => `string` = getAnnotationMsgFromResponse; `colony`: (`res`: `string`) => [`ColonyMetadata`](../interfaces/ColonyMetadata.md) = getColonyMetadataFromResponse; `decision`: (`res`: `string`) => `DecisionMetadata` = getDecisionDetailsFromResponse; `domain`: (`res`: `string`) => [`DomainMetadata`](../interfaces/DomainMetadata.md) = getDomainMetadataFromResponse; `misc`: (`res`: `string`) => `MiscMetadata` = getMiscDataFromResponse }[`MD`]\>\>] \| [`E`, `ContractReceipt`]\>
**tx**(): `Promise`<[`E`, `ContractReceipt`, () => `Promise`<`ReturnType`<{ `None`: () => `void` ; `annotation`: (`res`: `string`) => `string` = getAnnotationMsgFromResponse; `colony`: (`res`: `string`) => [`ColonyMetadata`](../interfaces/ColonyMetadata.md) = getColonyMetadataFromResponse; `decision`: (`res`: `string`) => [`DecisionMetadata`](../interfaces/DecisionMetadata.md) = getDecisionDetailsFromResponse; `domain`: (`res`: `string`) => [`DomainMetadata`](../interfaces/DomainMetadata.md) = getDomainMetadataFromResponse; `misc`: (`res`: `string`) => `MiscMetadata` = getMiscDataFromResponse }[`MD`]\>\>] \| [`E`, `ContractReceipt`]\>

Create a standard transaction ("force" in dApp)

Expand All @@ -144,7 +144,7 @@ The user sending this transaction has to have the appropriate permissions to do

#### Returns

`Promise`<[`E`, `ContractReceipt`, () => `Promise`<`ReturnType`<{ `None`: () => `void` ; `annotation`: (`res`: `string`) => `string` = getAnnotationMsgFromResponse; `colony`: (`res`: `string`) => [`ColonyMetadata`](../interfaces/ColonyMetadata.md) = getColonyMetadataFromResponse; `decision`: (`res`: `string`) => `DecisionMetadata` = getDecisionDetailsFromResponse; `domain`: (`res`: `string`) => [`DomainMetadata`](../interfaces/DomainMetadata.md) = getDomainMetadataFromResponse; `misc`: (`res`: `string`) => `MiscMetadata` = getMiscDataFromResponse }[`MD`]\>\>] \| [`E`, `ContractReceipt`]\>
`Promise`<[`E`, `ContractReceipt`, () => `Promise`<`ReturnType`<{ `None`: () => `void` ; `annotation`: (`res`: `string`) => `string` = getAnnotationMsgFromResponse; `colony`: (`res`: `string`) => [`ColonyMetadata`](../interfaces/ColonyMetadata.md) = getColonyMetadataFromResponse; `decision`: (`res`: `string`) => [`DecisionMetadata`](../interfaces/DecisionMetadata.md) = getDecisionDetailsFromResponse; `domain`: (`res`: `string`) => [`DomainMetadata`](../interfaces/DomainMetadata.md) = getDomainMetadataFromResponse; `misc`: (`res`: `string`) => `MiscMetadata` = getMiscDataFromResponse }[`MD`]\>\>] \| [`E`, `ContractReceipt`]\>

A tupel of event data and contract receipt (and a function to retrieve metadata if applicable)

Expand Down
8 changes: 4 additions & 4 deletions docs/api/classes/MetaTxCreator.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Learn more about these functions in their individual documentation

### metaTx

**metaTx**(): `Promise`<[`E`, [`ParsedLogTransactionReceipt`](../interfaces/ParsedLogTransactionReceipt.md), () => `Promise`<`ReturnType`<{ `None`: () => `void` ; `annotation`: (`res`: `string`) => `string` = getAnnotationMsgFromResponse; `colony`: (`res`: `string`) => [`ColonyMetadata`](../interfaces/ColonyMetadata.md) = getColonyMetadataFromResponse; `decision`: (`res`: `string`) => `DecisionMetadata` = getDecisionDetailsFromResponse; `domain`: (`res`: `string`) => [`DomainMetadata`](../interfaces/DomainMetadata.md) = getDomainMetadataFromResponse; `misc`: (`res`: `string`) => `MiscMetadata` = getMiscDataFromResponse }[`MD`]\>\>] \| [`E`, [`ParsedLogTransactionReceipt`](../interfaces/ParsedLogTransactionReceipt.md)]\>
**metaTx**(): `Promise`<[`E`, [`ParsedLogTransactionReceipt`](../interfaces/ParsedLogTransactionReceipt.md), () => `Promise`<`ReturnType`<{ `None`: () => `void` ; `annotation`: (`res`: `string`) => `string` = getAnnotationMsgFromResponse; `colony`: (`res`: `string`) => [`ColonyMetadata`](../interfaces/ColonyMetadata.md) = getColonyMetadataFromResponse; `decision`: (`res`: `string`) => [`DecisionMetadata`](../interfaces/DecisionMetadata.md) = getDecisionDetailsFromResponse; `domain`: (`res`: `string`) => [`DomainMetadata`](../interfaces/DomainMetadata.md) = getDomainMetadataFromResponse; `misc`: (`res`: `string`) => `MiscMetadata` = getMiscDataFromResponse }[`MD`]\>\>] \| [`E`, [`ParsedLogTransactionReceipt`](../interfaces/ParsedLogTransactionReceipt.md)]\>

Forces an action using a gasless metatransaction

Expand All @@ -74,15 +74,15 @@ The user sending this transaction has to have the appropriate permissions to do

#### Returns

`Promise`<[`E`, [`ParsedLogTransactionReceipt`](../interfaces/ParsedLogTransactionReceipt.md), () => `Promise`<`ReturnType`<{ `None`: () => `void` ; `annotation`: (`res`: `string`) => `string` = getAnnotationMsgFromResponse; `colony`: (`res`: `string`) => [`ColonyMetadata`](../interfaces/ColonyMetadata.md) = getColonyMetadataFromResponse; `decision`: (`res`: `string`) => `DecisionMetadata` = getDecisionDetailsFromResponse; `domain`: (`res`: `string`) => [`DomainMetadata`](../interfaces/DomainMetadata.md) = getDomainMetadataFromResponse; `misc`: (`res`: `string`) => `MiscMetadata` = getMiscDataFromResponse }[`MD`]\>\>] \| [`E`, [`ParsedLogTransactionReceipt`](../interfaces/ParsedLogTransactionReceipt.md)]\>
`Promise`<[`E`, [`ParsedLogTransactionReceipt`](../interfaces/ParsedLogTransactionReceipt.md), () => `Promise`<`ReturnType`<{ `None`: () => `void` ; `annotation`: (`res`: `string`) => `string` = getAnnotationMsgFromResponse; `colony`: (`res`: `string`) => [`ColonyMetadata`](../interfaces/ColonyMetadata.md) = getColonyMetadataFromResponse; `decision`: (`res`: `string`) => [`DecisionMetadata`](../interfaces/DecisionMetadata.md) = getDecisionDetailsFromResponse; `domain`: (`res`: `string`) => [`DomainMetadata`](../interfaces/DomainMetadata.md) = getDomainMetadataFromResponse; `misc`: (`res`: `string`) => `MiscMetadata` = getMiscDataFromResponse }[`MD`]\>\>] \| [`E`, [`ParsedLogTransactionReceipt`](../interfaces/ParsedLogTransactionReceipt.md)]\>

A tupel of event data and contract receipt (and a function to retrieve metadata if applicable)

___

### tx

**tx**(): `Promise`<[`E`, `ContractReceipt`, () => `Promise`<`ReturnType`<{ `None`: () => `void` ; `annotation`: (`res`: `string`) => `string` = getAnnotationMsgFromResponse; `colony`: (`res`: `string`) => [`ColonyMetadata`](../interfaces/ColonyMetadata.md) = getColonyMetadataFromResponse; `decision`: (`res`: `string`) => `DecisionMetadata` = getDecisionDetailsFromResponse; `domain`: (`res`: `string`) => [`DomainMetadata`](../interfaces/DomainMetadata.md) = getDomainMetadataFromResponse; `misc`: (`res`: `string`) => `MiscMetadata` = getMiscDataFromResponse }[`MD`]\>\>] \| [`E`, `ContractReceipt`]\>
**tx**(): `Promise`<[`E`, `ContractReceipt`, () => `Promise`<`ReturnType`<{ `None`: () => `void` ; `annotation`: (`res`: `string`) => `string` = getAnnotationMsgFromResponse; `colony`: (`res`: `string`) => [`ColonyMetadata`](../interfaces/ColonyMetadata.md) = getColonyMetadataFromResponse; `decision`: (`res`: `string`) => [`DecisionMetadata`](../interfaces/DecisionMetadata.md) = getDecisionDetailsFromResponse; `domain`: (`res`: `string`) => [`DomainMetadata`](../interfaces/DomainMetadata.md) = getDomainMetadataFromResponse; `misc`: (`res`: `string`) => `MiscMetadata` = getMiscDataFromResponse }[`MD`]\>\>] \| [`E`, `ContractReceipt`]\>

Create a standard transaction ("force" in dApp)

Expand All @@ -92,7 +92,7 @@ The user sending this transaction has to have the appropriate permissions to do

#### Returns

`Promise`<[`E`, `ContractReceipt`, () => `Promise`<`ReturnType`<{ `None`: () => `void` ; `annotation`: (`res`: `string`) => `string` = getAnnotationMsgFromResponse; `colony`: (`res`: `string`) => [`ColonyMetadata`](../interfaces/ColonyMetadata.md) = getColonyMetadataFromResponse; `decision`: (`res`: `string`) => `DecisionMetadata` = getDecisionDetailsFromResponse; `domain`: (`res`: `string`) => [`DomainMetadata`](../interfaces/DomainMetadata.md) = getDomainMetadataFromResponse; `misc`: (`res`: `string`) => `MiscMetadata` = getMiscDataFromResponse }[`MD`]\>\>] \| [`E`, `ContractReceipt`]\>
`Promise`<[`E`, `ContractReceipt`, () => `Promise`<`ReturnType`<{ `None`: () => `void` ; `annotation`: (`res`: `string`) => `string` = getAnnotationMsgFromResponse; `colony`: (`res`: `string`) => [`ColonyMetadata`](../interfaces/ColonyMetadata.md) = getColonyMetadataFromResponse; `decision`: (`res`: `string`) => [`DecisionMetadata`](../interfaces/DecisionMetadata.md) = getDecisionDetailsFromResponse; `domain`: (`res`: `string`) => [`DomainMetadata`](../interfaces/DomainMetadata.md) = getDomainMetadataFromResponse; `misc`: (`res`: `string`) => `MiscMetadata` = getMiscDataFromResponse }[`MD`]\>\>] \| [`E`, `ContractReceipt`]\>

A tupel of event data and contract receipt (and a function to retrieve metadata if applicable)

Expand Down
4 changes: 2 additions & 2 deletions docs/api/classes/OneTxPayment.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ import { Id, Tokens, w } from '@colony/sdk';

A transaction creator

**Event data**
#### Event data

| Property | Type | Description |
| :------ | :------ | :------ |
Expand Down Expand Up @@ -129,7 +129,7 @@ This method upgrades this extension to a specified version or, if no version is

A transaction creator

**Event data**
#### Event data

| Property | Type | Description |
| :------ | :------ | :------ |
Expand Down
Loading

0 comments on commit 8dc5b19

Please sign in to comment.