Skip to content

Commit d3d31c0

Browse files
authored
feat(docs): add direct minting prefix detailed info and event (#1332)
1 parent 0536351 commit d3d31c0

2 files changed

Lines changed: 28 additions & 2 deletions

File tree

docs/fassets/03-direct-minting.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ There are two supported formats:
4545

4646
**32-byte memo** (recipient only):
4747

48-
A standard direct minting payment reference that encodes only the 20-byte recipient address.
48+
1. **8-byte prefix**: `0x4642505266410018` (`DIRECT_MINTING`)
49+
2. **20-byte recipient address**
50+
4951
Anyone can execute, as no executor is specified.
5052

5153
**48-byte memo** (recipient and executor):

docs/fassets/reference/IAssetManagerEvents.mdx

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sidebar_position: 3
77

88
`IAssetManagerEvents` is an interface that defines the events emitted by the [`IAssetManager`](/fassets/reference/IAssetManager) contract.
99

10-
Sourced from `IAssetManagerEvents.sol` on [GitHub](https://github.com/flare-foundation/fassets/blob/main/contracts/userInterfaces/IAssetManagerEvents.sol).ā
10+
Sourced from `IAssetManagerEvents.sol` on [GitHub](https://github.com/flare-foundation/fassets/blob/main/contracts/userInterfaces/IAssetManagerEvents.sol).
1111

1212
## Event Categories
1313

@@ -118,6 +118,30 @@ event MintingExecuted(
118118
);
119119
```
120120

121+
### `DirectMintingExecuted`
122+
123+
Emitted when a direct minting payment is confirmed and FAssets are minted to the target address.
124+
125+
Parameters:
126+
127+
- `transactionId`: Identifier of the direct minting transaction
128+
- `targetAddress`: Address that receives the minted FAssets
129+
- `executor`: Address of the executor that submitted the minting proof
130+
- `mintedAmountUBA`: Amount of FAssets minted in the underlying base amount
131+
- `mintingFeeUBA`: Minting fee in the underlying base amount
132+
- `executorFeeUBA`: Fee paid to the executor in the underlying base amount
133+
134+
```solidity
135+
event DirectMintingExecuted(
136+
bytes32 transactionId,
137+
address targetAddress,
138+
address executor,
139+
uint256 mintedAmountUBA,
140+
uint256 mintingFeeUBA,
141+
uint256 executorFeeUBA
142+
);
143+
```
144+
121145
### `MintingPaymentDefault`
122146

123147
Emitted when a minter fails to pay the underlying funds in time.

0 commit comments

Comments
 (0)