Skip to content

Commit

Permalink
feat: v0.0.2 new Lua process code
Browse files Browse the repository at this point in the history
  • Loading branch information
charmful0x committed May 14, 2024
1 parent 78df0c7 commit 9e433d6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "elciao",
"version": "0.0.1",
"version": "0.0.2",
"description": "Introducing a way to pull EVM data into ao processes, and evolve that into a trustless network",
"main": "lib/index.js",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion src/ao/process/elciao.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ Handlers.add(
assert(msg.From == Admin, "err_only_admin")
assert(tonumber(msg.BlockNumber) > tonumber(LatestBlock), "err_invalid_blocks_order")
assert(tonumber(msg.Slot) > tonumber(LatestSlot), "err_invalid_slot_order")
assert(tonumber(msg.BlockNumber) == LatestBlock + 1, "err_invalid_block_seq")
Blocks[msg.BlockNumber] = msg.Data
LatestBlock = msg.BlockNumber
LatestSlot = msg.Slot
Expand All @@ -172,4 +171,5 @@ Handlers.add(
)
end
)
`;
1 change: 0 additions & 1 deletion src/ao/process/elciao.lua
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ Handlers.add(
assert(msg.From == Admin, "err_only_admin")
assert(tonumber(msg.BlockNumber) > tonumber(LatestBlock), "err_invalid_blocks_order")
assert(tonumber(msg.Slot) > tonumber(LatestSlot), "err_invalid_slot_order")
assert(tonumber(msg.BlockNumber) == LatestBlock + 1, "err_invalid_block_seq")
Blocks[msg.BlockNumber] = msg.Data
LatestBlock = msg.BlockNumber
LatestSlot = msg.Slot
Expand Down
2 changes: 1 addition & 1 deletion src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const MAX_BLOCK_HISTORY = BigInt(256);
export const MAX_BLOCK_FUTURE = BigInt(3);
export const DEFAULT_BLOCK_PARAMETER = "latest";
// AO constants
export const APP_VERSION = "0.0.1";
export const APP_VERSION = "0.0.2";
export const AO_MODULE = "1PdCJiXhNafpJbvC-sjxWTeNzbf9Q_RfUNs84GYoPm0";
export const AO_SCHEDULER = "_GQ33BkPtZrqxA84vM8Zk-N2aO0toNNu_C-l-rawrBA";
export const BEACON_RPC_URL = "https://lodestar-mainnet.chainsafe.io";
Expand Down

0 comments on commit 9e433d6

Please sign in to comment.