-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit to rework for Unicove
- Loading branch information
Showing
17 changed files
with
87 additions
and
83 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,11 +1,11 @@ | ||
Setup | ||
|
||
1. Rename `src/contractname` folder to name of contract. | ||
2. Rename `src/contractname/include/contractname` to name of contract. | ||
3. Rename `src/contractname/include/contractname/contractname.hpp` to name of contract. | ||
4. Rename `src/contractname/src/contractname.cpp` to name of contract. | ||
5. Rename `test/contractname` to name of contract. | ||
6. Rename `test/contractname/contractname.test.ts` to name of contract. | ||
7. Rename `src/contractname/contractname.clauses.md` to name of contract. | ||
8. Rename `src/contractname/contractname.contracts.md` to name of contract. | ||
9. Search and replace in project to replace `contractname` with name of contract. | ||
1. Rename `src/api` folder to name of contract. | ||
2. Rename `src/apiapi` to napiact. | ||
3. Rename `src/apiapi/api.hapioapi | ||
4. Rename `src/apicpp` apiontract. | ||
5. Rename `test/api of contract. | ||
6. Rename `test/api.apiof contract. | ||
7. Rename `src/apisapime of contract. | ||
8. Rename `src/apirapiname of contract. | ||
9. Search and replace in project to replace `apime of contract. |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<h1 class="clause">api</h1> | ||
|
||
api |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#include "api/api.hpp" | ||
|
||
namespace api { | ||
|
||
[[eosio::action, eosio::read_only]] get_account_response api::getaccount(const name account) | ||
{ | ||
return get_account_response{.account = account}; | ||
} | ||
|
||
} // namespace api | ||
|
||
// DEBUG (used on testnet) | ||
#ifdef DEBUG | ||
#include "debug.cpp" | ||
#endif |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import {beforeEach, describe, test} from 'bun:test' | ||
|
||
import {apiContract, contracts, resetContracts} from '../helpers' | ||
|
||
describe(apiContract, () => { | ||
beforeEach(async () => { | ||
await resetContracts() | ||
}) | ||
|
||
describe('action::getaccount', () => { | ||
test('success', async () => { | ||
await contracts.api.actions.getaccount(['bar']).send() | ||
}) | ||
}) | ||
}) |
This file was deleted.
Oops, something went wrong.
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