-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
51a17ca
commit c24bec7
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,35 @@ | ||
#![cfg_attr(not(test), no_main)] | ||
extern crate alloc; | ||
|
||
use core::borrow; | ||
|
||
use alloc::vec::Vec; | ||
|
||
use alloy_primitives::{Address, U256}; | ||
use stylus_sdk::prelude::{entrypoint, public, storage}; | ||
use openzeppelin_stylus::{ | ||
token::erc20::{ | ||
extensions::{ Erc20Metadata,Erc4626, IERC4626}, | ||
Erc20, IErc20, | ||
}, | ||
utils::{introspection::erc165::IErc165, Pausable}, | ||
}; | ||
|
||
|
||
#[entrypoint] | ||
#[storage] | ||
struct Erc4262xample { | ||
#[borrow] | ||
pub erc20: Erc20, | ||
#[borrow] | ||
pub metadata: Erc20Metadata, | ||
#[borrow] | ||
pub erc4626: Erc4626, | ||
} | ||
|
||
|
||
#[public] | ||
#[inherit(Erc20, Erc20Metadata, Erc4626)] | ||
impl Erc4262xample { | ||
// Add token minting feature. | ||
} |