Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/little-papers-notice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@openzeppelin/wizard-common': patch
---

Modify tooltip descriptions regarding default implementations to fit the changes introduced with v0.6.0
10 changes: 10 additions & 0 deletions .changeset/pink-eyes-judge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'@openzeppelin/wizard-stellar': minor
---

Refactor Stellar contracts to match the latest v0.6.0
- **Breaking changes**:
- Use OpenZeppelin Stellar Soroban Contracts v0.6.0
- Use `MuxedAddress` for fungible transfer function
- Change order of parameters in access control
- Change default fungible decimals to 7
2 changes: 1 addition & 1 deletion packages/common/src/ai/descriptions/stellar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const stellarCommonDescriptions = {
access:
'The type of access control to provision. Ownable is a simple mechanism with a single account authorized for all privileged actions. Roles is a flexible mechanism with a separate role for each privileged action. A role can have many authorized accounts.',
explicitImplementations:
'Whether the contract should use explicit trait implementations instead of using the #[default_impl] macro to auto-generate trait method bodies.',
'Whether the contract should use explicit trait implementations instead of using the default ones provided by the library.',
};

export const stellarFungibleDescriptions = {
Expand Down
1 change: 0 additions & 1 deletion packages/core/stellar/src/add-pausable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { defineFunctions } from './utils/define-functions';
export function addPausable(c: ContractBuilder, access: Access, explicitImplementations: boolean) {
c.addUseClause('stellar_contract_utils::pausable', 'self', { alias: 'pausable' });
c.addUseClause('stellar_contract_utils::pausable', 'Pausable');
if (!explicitImplementations) c.addUseClause('stellar_macros', 'default_impl');

const pausableTrait = {
traitName: 'Pausable',
Expand Down
26 changes: 13 additions & 13 deletions packages/core/stellar/src/contract.test.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.4.1
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.6.0
#![no_std]␊
#[contract]␊
Expand All @@ -21,7 +21,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.4.1
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.6.0
#![no_std]␊
#[contract]␊
Expand All @@ -40,7 +40,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.4.1
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.6.0
#![no_std]␊
#[contract]␊
Expand All @@ -59,7 +59,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.4.1
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.6.0
#![no_std]␊
#[contract]␊
Expand All @@ -81,7 +81,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.4.1
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.6.0
#![no_std]␊
#[contract]␊
Expand All @@ -103,7 +103,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.4.1
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.6.0
#![no_std]␊
use some::library::SomeLibrary;␊
Expand All @@ -117,7 +117,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.4.1
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.6.0
#![no_std]␊
use some::library::{Misc, SomeLibrary};␊
Expand All @@ -131,7 +131,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.4.1
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.6.0
#![no_std]␊
use another::library::{self as custom1, self as custom2, AnotherLibrary};␊
Expand All @@ -146,7 +146,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.4.1
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.6.0
//! Some documentation␊
#![no_std]␊
Expand All @@ -160,7 +160,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.4.1
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.6.0
#![no_std]␊
use soroban_sdk::contractmeta;␊
Expand All @@ -176,7 +176,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.4.1
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.6.0
#![no_std]␊
use soroban_sdk::contractmeta;␊
Expand All @@ -193,7 +193,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.4.1
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.6.0
//! Some documentation␊
#![no_std]␊
Expand All @@ -212,7 +212,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.4.1
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.6.0
#![no_std]␊
use soroban_sdk::contractmeta;␊
Expand Down
Binary file modified packages/core/stellar/src/contract.test.ts.snap
Binary file not shown.
Loading
Loading