Skip to content

Commit

Permalink
regenerate documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelcabot committed Nov 9, 2023
1 parent 79e39fa commit decd940
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 9 deletions.
40 changes: 32 additions & 8 deletions docs/MasaDynamicASBT.md
Expand Up @@ -1190,35 +1190,59 @@ Sets the stable coin to pay the fee in (USDC)
function setState(address account, string state, bool value) external nonpayable
```

Sets the state of an account



*The caller must have the MINTER role*

#### Parameters

| Name | Type | Description |
|---|---|---|
| account | address | undefined |
| state | string | undefined |
| value | bool | undefined |
| account | address | Address of the account to set the state |
| state | string | Name of the state to set |
| value | bool | Value of the state to set |

### setState

```solidity
function setState(uint256 tokenId, string state, bool value) external nonpayable
```

Sets the state of a token

*The caller must have the MINTER role*

#### Parameters

| Name | Type | Description |
|---|---|---|
| tokenId | uint256 | TokenId of the token to set the state |
| state | string | Name of the state to set |
| value | bool | Value of the state to set |

### setStatesAndMint

```solidity
function setStatesAndMint(address paymentMethod, address to, string[] states) external payable returns (uint256)
```

Sets some states of an account and mints

*The caller must have the MINTER role*

#### Parameters

| Name | Type | Description |
|---|---|---|
| tokenId | uint256 | undefined |
| state | string | undefined |
| value | bool | undefined |
| paymentMethod | address | Address of token that user want to pay |
| to | address | The address to mint the SBT to |
| states | string[] | Names of the state to set |

#### Returns

| Name | Type | Description |
|---|---|---|
| _0 | uint256 | The SBT ID of the newly minted SBT |

### setSwapRouter

Expand Down
29 changes: 28 additions & 1 deletion docs/MasaDynamicSSSBT.md
Expand Up @@ -1250,7 +1250,7 @@ Sets the stable coin to pay the fee in (USDC)
function setState(uint256 tokenId, string state, bool value, address authorityAddress, uint256 signatureDate, bytes signature) external nonpayable
```

Sets the state of an account
Sets the state of a token

*The signer of the signature must be a valid authority*

Expand Down Expand Up @@ -1286,6 +1286,33 @@ Sets the state of an account
| signatureDate | uint256 | Date of the signature |
| signature | bytes | Signature of the message |

### setStatesAndMint

```solidity
function setStatesAndMint(address paymentMethod, address to, string[] states, address authorityAddress, uint256 signatureDate, bytes signature) external payable returns (uint256)
```

Sets some states of an account and mints

*The signer of the signature must be a valid authority*

#### Parameters

| Name | Type | Description |
|---|---|---|
| paymentMethod | address | Address of token that user want to pay |
| to | address | The address to mint the SBT to |
| states | string[] | Names of the state to set |
| authorityAddress | address | Address of the authority that signed the message |
| signatureDate | uint256 | Date of the signature |
| signature | bytes | Signature of the message |

#### Returns

| Name | Type | Description |
|---|---|---|
| _0 | uint256 | The SBT ID of the newly minted SBT |

### setSwapRouter

```solidity
Expand Down

0 comments on commit decd940

Please sign in to comment.