Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge branch 'develop' into qy-read-only-action
Browse files Browse the repository at this point in the history
  • Loading branch information
bogniq committed May 18, 2021
2 parents 0edea87 + 6ac7e07 commit 69f6916
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ using namespace eosio;
};
```

[[Info | Secondary indexes information]]
[[info | Secondary indexes information]]
| Other, secondary, indexes if they will be defined can have duplicates. You can have up to 16 additional indexes and the field types can be uint64_t, uint128_t, uint256_t, double or long double.

5. For ease of use, define a type alias `test_tables` based on the `eosio::multi_index` template type, parametarized with a random name `"testtaba"` and the `test_table` data structure defined above
Expand Down Expand Up @@ -73,5 +73,5 @@ Declare the multi index table as a data member of type `test_tables`, as defined

Now you have instantiated the `testtab` as a multi index table which has a primary index defined for its `test_primary` data member.

[[Info | Full example location]]
[[info | Full example location]]
| A full example project demonstrating the instantiation and usage of multi index table can be found [here](https://github.com/EOSIO/eosio.cdt/tree/master/examples/multi_index_example).
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,5 @@ class [[eosio::contract]] multi_index_example : public contract {
};
```

[[Info | Full example location]]
[[info | Full example location]]
| A full example project demonstrating the instantiation and usage of multi index table can be found [here](https://github.com/EOSIO/eosio.cdt/tree/master/examples/multi_index_example).
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,5 @@ __singleton_example.cpp__
}
```
[[Info | Full example location]]
[[info | Full example location]]
| A full example project demonstrating the instantiation and usage of singleton can be found [here](https://github.com/EOSIO/eosio.cdt/tree/master/examples/singleton_example).
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ To delete data from a multi index table follow the steps below:
}
```

[[Info | Full example location]]
[[info | Full example location]]
| A full example project demonstrating the instantiation and usage of multi index table can be found [here](https://github.com/EOSIO/eosio.cdt/tree/master/examples/multi_index_example).
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ To insert data into a multi index table follow the following steps
}
```

[[Info | Full example location]]
[[info | Full example location]]
| A full example project demonstrating the instantiation and usage of multi index table can be found [here](https://github.com/EOSIO/eosio.cdt/tree/master/examples/multi_index_example).
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ using namespace eosio;
};
```

[[Info | Additional indexes information]]
[[info | Additional indexes information]]
| Other, secondary, indexes if they will be defined can have duplicates. You can have up to 16 additional indexes and the field types can be uint64_t, uint128_t, uint256_t, double or long double.

5. For ease of use, define a type alias `test_tables` based on the multi_index template type, parametarized with a random name `"testtaba"` and the `test_table` data structure defined above
Expand Down Expand Up @@ -129,5 +129,5 @@ class [[eosio::contract]] multi_index_example : public contract {
};
```

[[Info | Full example location]]
[[info | Full example location]]
| A full example project demonstrating the instantiation and usage of multi index table can be found [here](https://github.com/EOSIO/eosio.cdt/tree/master/examples/multi_index_example).
Original file line number Diff line number Diff line change
Expand Up @@ -171,5 +171,5 @@ __multi_index_example.cpp__
}
```
[[Info | Full example location]]
[[info | Full example location]]
| A full example project demonstrating the instantiation and usage of multi index table can be found [here](https://github.com/EOSIO/eosio.cdt/tree/master/examples/multi_index_example).
Original file line number Diff line number Diff line change
Expand Up @@ -153,5 +153,5 @@ __multi_index_example.cpp__
}
```
[[Info | Full example location]]
[[info | Full example location]]
| A full example project demonstrating the instantiation and usage of multi index table can be found [here](https://github.com/EOSIO/eosio.cdt/tree/master/examples/multi_index_example).
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ To modify data in the multi index table defined in the above tutorial, you will
}
```

[[Info | Full example location]]
[[info | Full example location]]
| A full example project demonstrating the instantiation and usage of multi index table can be found [here](https://github.com/EOSIO/eosio.cdt/tree/master/examples/multi_index_example).
2 changes: 1 addition & 1 deletion docs/09_tutorials/02_abi-variants.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,5 +156,5 @@ class [[eosio::contract]] multi_index_example : public contract {
[[warning | Not recommended warning]]
| Be aware, it is not recommend to use `eosio::binary_extension` inside variant definition, this can lead to data corruption unless one is very careful in understanding how these two templates work and how the ABI gets generated!

[[Info | Implementation location]]
[[info | Implementation location]]
| The implementation for ABI `variants` can be found [here](https://github.com/EOSIO/eos/pull/5652).
2 changes: 1 addition & 1 deletion tools/cc/eosio-cc.cpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ int main(int argc, const char **argv) {
// fix to show version info without having to have any other arguments
for (int i=0; i < argc; i++) {
if (argv[i] == std::string("-v")) {
eosio::cdt::environment::exec_subprogram("clang-7", {"-v"});
eosio::cdt::environment::exec_subprogram("clang-9", {"-v"});
return 0;
}
}
Expand Down
2 changes: 1 addition & 1 deletion tools/cc/eosio-cpp.cpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ int main(int argc, const char **argv) {
// fix to show version info without having to have any other arguments
for (int i=0; i < argc; i++) {
if (argv[i] == std::string("-v")) {
eosio::cdt::environment::exec_subprogram("clang-7", {"-v"});
eosio::cdt::environment::exec_subprogram("clang-9", {"-v"});
return 0;
}
}
Expand Down

0 comments on commit 69f6916

Please sign in to comment.