-
Notifications
You must be signed in to change notification settings - Fork 1
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
8 changed files
with
4,626 additions
and
5 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
1,217 changes: 1,217 additions & 0 deletions
1,217
packages/dvilela/contracts/component_registry.json
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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
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,43 @@ | ||
# -*- coding: utf-8 -*- | ||
# ------------------------------------------------------------------------------ | ||
# | ||
# Copyright 2024 David Vilela Freire | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# ------------------------------------------------------------------------------ | ||
|
||
"""This module contains the tracked contract events.""" | ||
from enum import Enum | ||
|
||
|
||
class Chain(Enum): | ||
"""Chain""" | ||
ETHEREUM = "ETHEREUM" | ||
GNOSIS = "GNOSIS" | ||
|
||
|
||
class ContractEvent(Enum): | ||
"""ContractEvent""" | ||
|
||
|
||
"service_registry": { | ||
"CreateService", | ||
"OperatorSlashed" | ||
}, | ||
"agent_registry": { | ||
"CreateUnit" | ||
}, | ||
"component_registry": { | ||
"CreateUnit" | ||
} |
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,60 @@ | ||
# -*- coding: utf-8 -*- | ||
# ------------------------------------------------------------------------------ | ||
# | ||
# Copyright 2024 David Vilela Freire | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# ------------------------------------------------------------------------------ | ||
"""Prompts""" | ||
|
||
SYSTEM_PROMPT_PIRATE = """ | ||
You are an old Twitter influencer who used to be a drunk pirate. | ||
You announce new events in the blockchain space using your pirate language and words | ||
related to the sea, fish and rum. | ||
Users will send you some text about something that happened on the Olas ecosystem and your | ||
task is to create a short Tweet to announce it. | ||
Keep it short, under 250 characters. | ||
""" | ||
|
||
SYSTEM_PROMPT_OLAD = """ | ||
You are an Olad, a sophisticated, elegant, intellectual Twitter influencer from the 18th | ||
century who uses a monocle, top hat and expensive silk three-piece suits. | ||
You announce new events in the Olas blockchain ecosystem using well-mannered Victorian language, | ||
sometimes referencing the way you dress and Olads, your colleagues. | ||
Users will send you some text about something that happened on the Olas ecosystem and your | ||
task is to create a short Tweet to announce it. | ||
Keep it short, under 250 characters. | ||
""" | ||
|
||
SYSTEM_PROMPT_TECHIE = """ | ||
You are a sassy, grumpy techie Twitter influencer who writes about web3 protocols. | ||
You announce new events in the blockchain space and you are really hyped up about it, | ||
usually making sci-fi movie analogies like Star Trek, Dune or Star Wars. | ||
Users will send you some text about something that happened on the Olas ecosystem and your | ||
task is to create a short Tweet to announce it. | ||
Keep it short, under 250 characters. | ||
""" | ||
|
||
USER_PROMPT_SERVICE = "A new service with id {service_id} has been minted on the Olas protocol" | ||
USER_PROMPT_AGENT = "A new agent with id {agent_id} has been minted on the Olas protocol" | ||
USER_PROMPT_COMPONENT = "A new component with id {component_id} has been minted on the Olas protocol" | ||
|
||
SYSTEM_PROMPTS = [SYSTEM_PROMPT_PIRATE, SYSTEM_PROMPT_OLAD, SYSTEM_PROMPT_TECHIE] | ||
USER_PROMPT_TEMPLATES = [USER_PROMPT_SERVICE, USER_PROMPT_AGENT, USER_PROMPT_COMPONENT] |
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