-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from Autonomous-Finance/templates-refactor
Templates refactor
- Loading branch information
Showing
67 changed files
with
4,636 additions
and
4,431 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
"create-ao-dapp": minor | ||
"site": patch | ||
--- | ||
|
||
Refactor templates system and Build scripts. | ||
|
||
Implement new build scripts that enhance project scaffolding and DX. | ||
Build scripts now check for required dependencies and tries to install them via luarocks. | ||
|
||
Teal templates have been updated to use modules and clearer code splitting. | ||
|
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
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 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,31 @@ | ||
local mod = {} | ||
|
||
--- Handler to increase Counter | ||
--- @param msg Message | ||
--- @return nil | ||
mod.increaseCounter = function(msg) | ||
Counter = Counter + 1 | ||
|
||
ao.send({ | ||
Target = msg.From, | ||
Action = "Increase", | ||
Counter = tostring(Counter), | ||
Data = tostring(Counter) | ||
}) | ||
end | ||
|
||
--- Handler to reset Counter | ||
--- @param msg Message | ||
--- @return nil | ||
mod.resetCounter = function(msg) | ||
Counter = 0 | ||
|
||
ao.send({ | ||
Target = msg.From, | ||
Action = "Reset", | ||
Counter = tostring(Counter), | ||
Data = tostring(Counter) | ||
}) | ||
end | ||
|
||
return mod |
58 changes: 0 additions & 58 deletions
58
create-ao-dapp/templates/ao/lua/base/src/lib/process_lib.lua
This file was deleted.
Oops, something went wrong.
18 changes: 16 additions & 2 deletions
18
...app/templates/ao/lua/base/src/process.lua → ...o-dapp/templates/ao/lua/base/src/main.lua
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.
7 changes: 0 additions & 7 deletions
7
create-ao-dapp/templates/ao/teal-sqlite/base/packages/dummy/dummy.lua
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
create-ao-dapp/templates/ao/teal-sqlite/base/packages/dummy/dummy.tl
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.