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
4 changes: 4 additions & 0 deletions packages/core/stellar/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.1.1 (2025-03-03)

- Add a default no_std to all contracts. ([#471](https://github.com/OpenZeppelin/contracts-wizard/pull/471))

## 0.1.0 (2025-02-25)

- Initial version. ([#460](https://github.com/OpenZeppelin/contracts-wizard/pull/460))
8 changes: 8 additions & 0 deletions packages/core/stellar/src/contract.test.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.1.0␊
#![no_std]␊
#[contract]␊
pub struct Foo;␊
Expand All @@ -25,6 +26,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.1.0␊
#![no_std]␊
#[contract]␊
pub struct Foo;␊
Expand All @@ -43,6 +45,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.1.0␊
#![no_std]␊
#[contract]␊
pub struct Foo;␊
Expand All @@ -61,6 +64,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.1.0␊
#![no_std]␊
#[contract]␊
pub struct Foo;␊
Expand All @@ -86,6 +90,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.1.0␊
#![no_std]␊
#[contract]␊
pub struct Foo;␊
Expand All @@ -111,6 +116,7 @@ Generated by [AVA](https://avajs.dev).

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

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

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.1.0␊
#![no_std]␊
use another::library::{self as custom1, self as custom2, AnotherLibrary};␊
use some::library::SomeLibrary;␊
Expand Down
Binary file modified packages/core/stellar/src/contract.test.ts.snap
Binary file not shown.
10 changes: 10 additions & 0 deletions packages/core/stellar/src/fungible.test.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.1.0␊
#![no_std]␊
use openzeppelin_fungible_token::{self as fungible, FungibleToken};␊
use soroban_sdk::{Address, contract, contractimpl, Env, String, Symbol};␊
Expand Down Expand Up @@ -70,6 +71,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.1.0␊
#![no_std]␊
use openzeppelin_fungible_token::{␊
self as fungible, burnable::FungibleBurnable, FungibleToken␊
Expand Down Expand Up @@ -147,6 +149,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.1.0␊
#![no_std]␊
use openzeppelin_fungible_token::{self as fungible, FungibleToken};␊
use openzeppelin_pausable::{self as pausable, Pausable};␊
Expand Down Expand Up @@ -251,6 +254,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.1.0␊
#![no_std]␊
use openzeppelin_fungible_token::{␊
self as fungible, burnable::FungibleBurnable, FungibleToken␊
Expand Down Expand Up @@ -374,6 +378,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.1.0␊
#![no_std]␊
use openzeppelin_fungible_token::{␊
self as fungible, FungibleToken, mintable::FungibleMintable␊
Expand Down Expand Up @@ -437,6 +442,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.1.0␊
#![no_std]␊
use openzeppelin_fungible_token::{self as fungible, FungibleToken};␊
use soroban_sdk::{Address, contract, contractimpl, Env, String, Symbol};␊
Expand Down Expand Up @@ -497,6 +503,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.1.0␊
#![no_std]␊
use openzeppelin_fungible_token::{␊
self as fungible, FungibleToken, mintable::FungibleMintable␊
Expand Down Expand Up @@ -575,6 +582,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.1.0␊
#![no_std]␊
use openzeppelin_fungible_token::{self as fungible, FungibleToken};␊
use soroban_sdk::{Address, contract, contractimpl, Env, String, Symbol, symbol_short};␊
Expand Down Expand Up @@ -638,6 +646,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.1.0␊
#![no_std]␊
use openzeppelin_fungible_token::{␊
self as fungible, burnable::FungibleBurnable, FungibleToken, mintable::FungibleMintable␊
Expand Down Expand Up @@ -772,6 +781,7 @@ Generated by [AVA](https://avajs.dev).

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Stellar Soroban Contracts ^0.1.0␊
#![no_std]␊
use openzeppelin_fungible_token::{␊
self as fungible, burnable::FungibleBurnable, FungibleToken, mintable::FungibleMintable␊
Expand Down
Binary file modified packages/core/stellar/src/fungible.test.ts.snap
Binary file not shown.
1 change: 1 addition & 0 deletions packages/core/stellar/src/print.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export function printContract(contract: Contract): string {
[
`// SPDX-License-Identifier: ${contract.license}`,
`// Compatible with OpenZeppelin Stellar Soroban Contracts ${compatibleContractsSemver}`,
`#![no_std]`,
],
spaceBetween(
printUseClauses(contract),
Expand Down
Loading