Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
08abcab
Add ink entrance crate
ascjones Apr 22, 2022
97ad149
Use entrance crate from lang codegen
ascjones Apr 22, 2022
2c3fa98
Use entrance crate for ink_storage
ascjones Apr 22, 2022
48093c4
Update primitives and storage
ascjones Apr 22, 2022
80b734b
Fix primitive macro
ascjones Apr 22, 2022
ef47e73
Move unique_topics test to ink crate
ascjones May 3, 2022
7837470
Merge branch 'master' into aj/ink_crate
ascjones Sep 7, 2022
14d97cf
Update ink crate versions
ascjones Sep 7, 2022
b9795be
Use umbrella crate in ink primitives macro
ascjones Sep 7, 2022
69287ea
Use umbrella crate in storage derive macros
ascjones Sep 7, 2022
1d4df5b
Use umbrella crate in storage doc tests
ascjones Sep 7, 2022
0f0cfc7
Use umbrella crate in lang codegen
ascjones Sep 7, 2022
cd01574
Fix storage doc tests
ascjones Sep 7, 2022
df60392
Update erc20 example
ascjones Sep 7, 2022
4ecf551
Remove scale libs from entrance crate
ascjones Sep 7, 2022
ee819ed
Rename ink_lang crate to ink
ascjones Sep 7, 2022
6f321c5
Reexport sub crates from main ink crate
ascjones Sep 7, 2022
ce6c0fc
Metadata std
ascjones Sep 7, 2022
90c9465
Fix up some examples
ascjones Sep 7, 2022
5658f6e
Fix up delegator example
ascjones Sep 7, 2022
dc9c098
Fix up more examples
ascjones Sep 8, 2022
92e904c
Fix up more examples
ascjones Sep 8, 2022
64827dc
Fix up more examples
ascjones Sep 8, 2022
8b24da7
Remove some ink_lang as ink from tests
ascjones Sep 8, 2022
a25068f
Update env_access docs
ascjones Sep 8, 2022
e2799ee
Fix up more doc examples
ascjones Sep 8, 2022
6dabd38
Remove ink_lang import from some tests
ascjones Sep 8, 2022
93e69e9
UI tests
ascjones Sep 8, 2022
c8c8ee8
Fix UI tests
ascjones Sep 8, 2022
73600ee
Remove more ink_lang aliases
ascjones Sep 8, 2022
0d23e2e
Fix contract-terminate tests
ascjones Sep 8, 2022
58dfca7
Fmt
ascjones Sep 8, 2022
d2b4a04
Attempt to fix CI and ARCHITECTURE doc
ascjones Sep 8, 2022
e5456db
Update crates list
ascjones Sep 8, 2022
893ac29
Restore unique_topics test
ascjones Sep 8, 2022
53e23d3
Remove ink_lang from unique_topics test
ascjones Sep 8, 2022
01b77ef
Merge branch 'master' into aj/ink_crate
ascjones Sep 14, 2022
279d391
Fix typo
ascjones Sep 14, 2022
dae2853
UI tests
ascjones Sep 15, 2022
9ec9898
Merge branch 'master' into aj/ink_crate
ascjones Sep 15, 2022
e757e46
UI tests
ascjones Sep 15, 2022
c832c5e
Fmt examples
ascjones Sep 15, 2022
063d657
Fmt UI tests
ascjones Sep 15, 2022
26b63ee
More fmt UI tests
ascjones Sep 15, 2022
23b7dc0
Fix storage tests
ascjones Sep 15, 2022
4012149
Fix example tests
ascjones Sep 15, 2022
8e43dfe
Fix examplesl
ascjones Sep 15, 2022
a5bb59b
Fix example test
ascjones Sep 15, 2022
bab514b
Examples fmt
ascjones Sep 15, 2022
1602558
Fix erc20
ascjones Sep 15, 2022
e012496
Fmt erc20
ascjones Sep 15, 2022
fcc8fc1
Fix doc test
ascjones Sep 15, 2022
bc61621
Move unique_topics test
ascjones Sep 15, 2022
702272c
Fix UI tests
ascjones Sep 15, 2022
6d78718
Revert CHANGELOG.md
ascjones Sep 15, 2022
d26e1b1
Use cargo-contract branch in examples-contract-build
ascjones Sep 15, 2022
bbd7688
Add ink-debug feature to top level ink crate
ascjones Sep 15, 2022
27bf307
Update CHANGELOG.md
ascjones Sep 15, 2022
9cd7f4f
Rename all ink_lang_* crates to ink_*
ascjones Sep 15, 2022
b60bb60
Replace remaining ink_lang_macro refs
ascjones Sep 15, 2022
8ad695f
Update CHANGELOG.md
ascjones Sep 15, 2022
f523263
Update CHANGELOG
ascjones Sep 15, 2022
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
Prev Previous commit
Next Next commit
Fix up more doc examples
  • Loading branch information
ascjones committed Sep 8, 2022
commit e2799ee85757cd6b4f827675a53d0d6ec8e43e8c
24 changes: 0 additions & 24 deletions crates/ink/macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,6 @@ pub fn selector_bytes(input: TokenStream) -> TokenStream {
/// If you are a beginner trying to learn ink! we recommend you to check out
/// our extensive [ink! workshop](https://docs.substrate.io/tutorials/v3/ink-workshop/pt1).
///
/// **Note:** In all below examples we will be using `ink_lang` crate aliased as just `ink`.
/// You can do this yourself by adding the following line to your code:
/// `use ink_lang as ink;`
///
/// # Description
///
/// The macro does analysis on the provided smart contract code and generates
Expand Down Expand Up @@ -176,7 +172,6 @@ pub fn selector_bytes(input: TokenStream) -> TokenStream {
/// A user might implement their ink! smart contract using the above custom `Environment`
/// implementation as demonstrated below:
/// ```
/// # use ink_lang as ink;
/// #[ink::contract(env = MyEnvironment)]
/// mod my_contract {
/// # pub struct MyEnvironment;
Expand Down Expand Up @@ -223,7 +218,6 @@ pub fn selector_bytes(input: TokenStream) -> TokenStream {
/// **Example:**
///
/// ```
/// # use ink_lang as ink;
/// #[ink::contract]
/// mod flipper {
/// #[ink(storage)]
Expand Down Expand Up @@ -251,7 +245,6 @@ pub fn selector_bytes(input: TokenStream) -> TokenStream {
/// as follows:
///
/// ```
/// # use ink_lang as ink;
/// # #[ink::contract]
/// # mod flipper {
/// # #[ink(storage)]
Expand Down Expand Up @@ -288,7 +281,6 @@ pub fn selector_bytes(input: TokenStream) -> TokenStream {
/// as follows:
///
/// ```
/// # use ink_lang as ink;
/// # #[ink::contract]
/// # mod flipper {
/// # #[ink(storage)]
Expand Down Expand Up @@ -325,7 +317,6 @@ pub fn selector_bytes(input: TokenStream) -> TokenStream {
/// as such.
///
/// ```
/// # use ink_lang as ink;
/// # #[ink::contract]
/// # mod flipper {
/// # #[ink(storage)]
Expand Down Expand Up @@ -363,7 +354,6 @@ pub fn selector_bytes(input: TokenStream) -> TokenStream {
/// constructor using the `selector` flag. An example is shown below:
///
/// ```
/// # use ink_lang as ink;
/// # #[ink::contract]
/// # mod flipper {
/// # #[ink(storage)]
Expand Down Expand Up @@ -411,8 +401,6 @@ pub fn selector_bytes(input: TokenStream) -> TokenStream {
/// via its environment accessor. An example below:
///
/// ```
/// # use ink_lang as ink;
/// #
/// #[ink::contract]
/// mod greeter {
/// use ink_env::debug_println;
Expand Down Expand Up @@ -448,8 +436,6 @@ pub fn selector_bytes(input: TokenStream) -> TokenStream {
/// emitted in the `#[ink(constructor)]`.
///
/// ```
/// # use ink_lang as ink;
/// #
/// #[ink::contract]
/// mod erc20 {
/// /// Defines an event that is emitted every time value is transferred.
Expand Down Expand Up @@ -566,8 +552,6 @@ pub fn contract(attr: TokenStream, item: TokenStream) -> TokenStream {
/// Given the above trait definition you can implement it as shown below:
///
/// ```
/// # use ink_lang as ink;
/// #
/// #[ink::contract]
/// mod base_erc20 {
/// # // We somehow cannot put the trait in the doc-test crate root due to bugs.
Expand Down Expand Up @@ -622,7 +606,6 @@ pub fn contract(attr: TokenStream, item: TokenStream) -> TokenStream {
///
/// **Usage Example:**
/// ```
/// # use ink_lang as ink;
/// #[ink::trait_definition(namespace = "foo")]
/// pub trait TraitDefinition {
/// #[ink(message)]
Expand All @@ -643,7 +626,6 @@ pub fn contract(attr: TokenStream, item: TokenStream) -> TokenStream {
///
/// **Usage Example:**
/// ```
/// # use ink_lang as ink;
/// #[ink::trait_definition(keep_attr = "foo, bar")]
/// pub trait Storage {
/// #[ink(message)]
Expand Down Expand Up @@ -891,7 +873,6 @@ pub fn test(attr: TokenStream, item: TokenStream) -> TokenStream {
/// As with all ink! attributes multiple of them can either appear in a contiguous list:
/// ```
/// # type Access = i32;
/// # use ink_lang as ink;
/// # #[ink::chain_extension]
/// # pub trait MyChainExtension {
/// # type ErrorCode = i32;
Expand All @@ -902,7 +883,6 @@ pub fn test(attr: TokenStream, item: TokenStream) -> TokenStream {
/// …or as multiple stand alone ink! attributes applied to the same item:
/// ```
/// # type Access = i32;
/// # use ink_lang as ink;
/// # #[ink::chain_extension]
/// # pub trait MyChainExtension {
/// # type ErrorCode = i32;
Expand Down Expand Up @@ -1143,12 +1123,8 @@ pub fn test(attr: TokenStream, item: TokenStream) -> TokenStream {
/// `self.extension().read(...)`.
///
/// ```
/// # use ink_lang as ink;
/// #
/// #[ink::contract(env = CustomEnvironment)]
/// mod read_writer {
/// # use ink_lang as ink;
/// #
/// #[ink(storage)]
/// pub struct ReadWriter {}
///
Expand Down
1 change: 0 additions & 1 deletion crates/ink/src/reflect/trait_def/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ use core::marker::PhantomData;
/// # Usage
///
/// ```
/// # use ink_lang as ink;
/// # use ink::reflect::TraitDefinitionRegistry;
/// use ink_env::DefaultEnvironment;
///
Expand Down