-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
81 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,79 @@ | ||
account_id: 9732a0da-5849-4b68-a671-9c4bf1266ca4 | ||
# project_slug: [email protected] | ||
provider: "" | ||
|
||
actions: | ||
gp-v2/production: | ||
runtime: v1 | ||
sources: actions | ||
specs: | ||
register_single_order: | ||
description: Listens to events that index new single conditional orders | ||
function: addContract:addContract | ||
trigger: | ||
transaction: | ||
filters: | ||
- logEmitted: | ||
startsWith: | ||
# `ConditionalOrderCreated(address, (address,bytes32,bytes))` | ||
- 0x2cceac5555b0ca45a3744ced542f54b56ad2eb45e521962372eef212a2cbf361 | ||
network: | ||
- 1 | ||
- 5 | ||
- 100 | ||
status: success | ||
status: | ||
- mined | ||
type: transaction | ||
|
||
register_merkle_root: | ||
description: Listens to events that index a merkle root of conditional orders | ||
function: addContract:addContract | ||
trigger: | ||
transaction: | ||
filters: | ||
- logEmitted: | ||
startsWith: | ||
# `MerkleRootSet(address, bytes32, (uint256, bytes))` | ||
- 0x58662f46b4a87d0f96d929b24c37fe25c55d52c0025d0b2bec3936534cc31e57 | ||
network: | ||
- 1 | ||
- 5 | ||
- 100 | ||
status: success | ||
status: | ||
- mined | ||
type: transaction | ||
|
||
watch_settlements: | ||
description: Watch for settled trades and update the state | ||
function: checkForSettlement:checkForSettlement | ||
trigger: | ||
transaction: | ||
filters: | ||
- logEmitted: | ||
startsWith: | ||
# `Trade(address, address, address, uint256, uint256, uint256, bytes)` | ||
- 0xa07a543ab8a018198e99ca0184c93fe9050a79400a0a723441f84de1d972cc17 | ||
network: | ||
- 1 | ||
- 5 | ||
- 100 | ||
status: success | ||
status: | ||
- mined | ||
type: transaction | ||
|
||
watch_orders: | ||
description: | ||
Checks on every block if the registered smart order contract | ||
wants to trade | ||
function: checkForAndPlaceOrder:checkForAndPlaceOrder | ||
trigger: | ||
block: | ||
blocks: 5 | ||
network: | ||
- 1 | ||
- 5 | ||
- 100 | ||
type: block |