Skip to content

Commit a9e04c6

Browse files
committed
Update documentation and error handling in tokenization module
- Added new error types for approval amounts and max number of transfers to improve internal state management. - Updated the OwnershipQueryResponsePacket structure in the protobuf definition to reflect changes in field ordering and remove unused fields. - Enhanced various documentation files to improve clarity and usability for developers, including API references and best practices. - Cleaned up test cases and integration tests to align with the updated structures and error handling mechanisms.
1 parent 874ddcc commit a9e04c6

33 files changed

+118
-147
lines changed

contracts/docs/API_REFERENCE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,3 +358,6 @@ Most query methods return protobuf-encoded bytes. For production use:
358358

359359

360360

361+
362+
363+

contracts/docs/BEST_PRACTICES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,4 +435,7 @@ function testIntegrationTransfer() public {
435435

436436

437437

438+
439+
440+
438441

contracts/docs/EVM_SEND_OPTIONS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,3 +243,6 @@ For simple (denom, amount) sends from EVM, **use the ERC20 wrapper approach** (O
243243

244244

245245

246+
247+
248+

contracts/docs/EXAMPLES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,4 +435,7 @@ contract SubscriptionToken {
435435

436436

437437

438+
439+
440+
438441

contracts/docs/GAMM_BEST_PRACTICES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,4 +360,7 @@ function testSwap() public {
360360

361361

362362

363+
364+
365+
363366

contracts/docs/GAMM_EXAMPLES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,4 +363,7 @@ contract CrossChainSwapBridge {
363363

364364

365365

366+
367+
368+
366369

contracts/docs/GAMM_GETTING_STARTED.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,4 +153,7 @@ function joinPoolWithBuilder(uint64 poolId, uint256 shareOutAmount) external {
153153

154154

155155

156+
157+
158+
156159

contracts/docs/GAMM_PATTERNS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,4 +402,7 @@ function calculateSwapOutput(
402402

403403

404404

405+
406+
407+
405408

contracts/docs/GAMM_TROUBLESHOOTING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,4 +358,7 @@ function safeSwap(...) external {
358358

359359

360360

361+
362+
363+
361364

contracts/docs/GAS_OPTIMIZATION.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,4 +390,7 @@ console.log("Gas used:", gasUsed);
390390

391391

392392

393+
394+
395+
393396

0 commit comments

Comments
 (0)