Skip to content

Commit 86fe280

Browse files
brozorecericglau
andauthored
Stellar: v0.6.0 release (#768)
Co-authored-by: Eric Lau <ericglau@outlook.com>
1 parent 19eda65 commit 86fe280

19 files changed

+461
-484
lines changed

.changeset/little-papers-notice.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@openzeppelin/wizard-common': patch
3+
---
4+
5+
Modify tooltip descriptions regarding default implementations to fit the changes introduced with v0.6.0

.changeset/pink-eyes-judge.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@openzeppelin/wizard-stellar': minor
3+
---
4+
5+
Refactor Stellar contracts to match the latest v0.6.0
6+
- **Breaking changes**:
7+
- Use OpenZeppelin Stellar Soroban Contracts v0.6.0
8+
- Use `MuxedAddress` for fungible transfer function
9+
- Change order of parameters in access control
10+
- Change default fungible decimals to 7

packages/common/src/ai/descriptions/stellar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const stellarCommonDescriptions = {
1313
access:
1414
'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.',
1515
explicitImplementations:
16-
'Whether the contract should use explicit trait implementations instead of using the #[default_impl] macro to auto-generate trait method bodies.',
16+
'Whether the contract should use explicit trait implementations instead of using the default ones provided by the library.',
1717
};
1818

1919
export const stellarFungibleDescriptions = {

packages/core/stellar/src/add-pausable.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { defineFunctions } from './utils/define-functions';
77
export function addPausable(c: ContractBuilder, access: Access, explicitImplementations: boolean) {
88
c.addUseClause('stellar_contract_utils::pausable', 'self', { alias: 'pausable' });
99
c.addUseClause('stellar_contract_utils::pausable', 'Pausable');
10-
if (!explicitImplementations) c.addUseClause('stellar_macros', 'default_impl');
1110

1211
const pausableTrait = {
1312
traitName: 'Pausable',

packages/core/stellar/src/contract.test.ts.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Generated by [AVA](https://avajs.dev).
99
> Snapshot 1
1010
1111
`// SPDX-License-Identifier: MIT␊
12-
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.4.1
12+
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.6.0
1313
#![no_std]␊
1414
1515
#[contract]␊
@@ -21,7 +21,7 @@ Generated by [AVA](https://avajs.dev).
2121
> Snapshot 1
2222
2323
`// SPDX-License-Identifier: MIT␊
24-
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.4.1
24+
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.6.0
2525
#![no_std]␊
2626
2727
#[contract]␊
@@ -40,7 +40,7 @@ Generated by [AVA](https://avajs.dev).
4040
> Snapshot 1
4141
4242
`// SPDX-License-Identifier: MIT␊
43-
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.4.1
43+
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.6.0
4444
#![no_std]␊
4545
4646
#[contract]␊
@@ -59,7 +59,7 @@ Generated by [AVA](https://avajs.dev).
5959
> Snapshot 1
6060
6161
`// SPDX-License-Identifier: MIT␊
62-
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.4.1
62+
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.6.0
6363
#![no_std]␊
6464
6565
#[contract]␊
@@ -81,7 +81,7 @@ Generated by [AVA](https://avajs.dev).
8181
> Snapshot 1
8282
8383
`// SPDX-License-Identifier: MIT␊
84-
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.4.1
84+
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.6.0
8585
#![no_std]␊
8686
8787
#[contract]␊
@@ -103,7 +103,7 @@ Generated by [AVA](https://avajs.dev).
103103
> Snapshot 1
104104
105105
`// SPDX-License-Identifier: MIT␊
106-
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.4.1
106+
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.6.0
107107
#![no_std]␊
108108
109109
use some::library::SomeLibrary;␊
@@ -117,7 +117,7 @@ Generated by [AVA](https://avajs.dev).
117117
> Snapshot 1
118118
119119
`// SPDX-License-Identifier: MIT␊
120-
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.4.1
120+
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.6.0
121121
#![no_std]␊
122122
123123
use some::library::{Misc, SomeLibrary};␊
@@ -131,7 +131,7 @@ Generated by [AVA](https://avajs.dev).
131131
> Snapshot 1
132132
133133
`// SPDX-License-Identifier: MIT␊
134-
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.4.1
134+
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.6.0
135135
#![no_std]␊
136136
137137
use another::library::{self as custom1, self as custom2, AnotherLibrary};␊
@@ -146,7 +146,7 @@ Generated by [AVA](https://avajs.dev).
146146
> Snapshot 1
147147
148148
`// SPDX-License-Identifier: MIT␊
149-
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.4.1
149+
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.6.0
150150
151151
//! Some documentation␊
152152
#![no_std]␊
@@ -160,7 +160,7 @@ Generated by [AVA](https://avajs.dev).
160160
> Snapshot 1
161161
162162
`// SPDX-License-Identifier: MIT␊
163-
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.4.1
163+
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.6.0
164164
#![no_std]␊
165165
166166
use soroban_sdk::contractmeta;␊
@@ -176,7 +176,7 @@ Generated by [AVA](https://avajs.dev).
176176
> Snapshot 1
177177
178178
`// SPDX-License-Identifier: MIT␊
179-
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.4.1
179+
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.6.0
180180
#![no_std]␊
181181
182182
use soroban_sdk::contractmeta;␊
@@ -193,7 +193,7 @@ Generated by [AVA](https://avajs.dev).
193193
> Snapshot 1
194194
195195
`// SPDX-License-Identifier: MIT␊
196-
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.4.1
196+
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.6.0
197197
198198
//! Some documentation␊
199199
#![no_std]␊
@@ -212,7 +212,7 @@ Generated by [AVA](https://avajs.dev).
212212
> Snapshot 1
213213
214214
`// SPDX-License-Identifier: MIT␊
215-
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.4.1
215+
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.6.0
216216
#![no_std]␊
217217
218218
use soroban_sdk::contractmeta;␊
1 Byte
Binary file not shown.

0 commit comments

Comments
 (0)