forked from Lorenzo-Protocol/lorenzo
-
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.
Merge pull request Lorenzo-Protocol#23 from Lorenzo-Protocol/feature/…
…implement-agent-module feat: implement agent module
- Loading branch information
Showing
31 changed files
with
7,135 additions
and
1 deletion.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
syntax = "proto3"; | ||
package lorenzo.agent.v1; | ||
|
||
option go_package = "github.com/Lorenzo-Protocol/lorenzo/x/agent/types"; | ||
|
||
// Agent defines the details of a project | ||
message Agent { | ||
// id is the unique identifier of the agent | ||
uint64 id = 1; | ||
// agent name,required | ||
string name = 2; | ||
// btc_receiving_address is agent’s fund escrow address,required | ||
string btc_receiving_address = 3; | ||
// like 0xBAb28FF7659481F1c8516f616A576339936AFB06 | ||
string eth_addr = 4; | ||
// description is a brief description of the agent, optional | ||
string description = 5; | ||
// url is the agent's link, used for detailed introduction, optional | ||
string url = 6; | ||
} |
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,44 @@ | ||
syntax = "proto3"; | ||
package lorenzo.agent.v1; | ||
|
||
option go_package = "github.com/Lorenzo-Protocol/lorenzo/x/agent/types"; | ||
|
||
// agent creation event | ||
message EventAddAgent { | ||
// id is the unique identifier of the agent | ||
uint64 id = 1; | ||
// agent name,required | ||
string name = 2; | ||
// btc_receiving_address is agent’s fund escrow address,required | ||
string btc_receiving_address = 3; | ||
// like 0xBAb28FF7659481F1c8516f616A576339936AFB06 | ||
string eth_addr = 4; | ||
// description is a brief description of the agent, optional | ||
string description = 5; | ||
// url is the agent's link, used for detailed introduction, optional | ||
string url = 6; | ||
// sender is the address of the governance account or module admin | ||
string sender = 7; | ||
} | ||
|
||
// agent edit event | ||
message EventEditAgent{ | ||
// id is the unique identifier of the agent | ||
uint64 id = 1; | ||
// agent name,required | ||
string name = 2; | ||
// description is a brief description of the agent, optional | ||
string description = 3; | ||
// url is the agent's link, used for detailed introduction, optional | ||
string url = 4; | ||
// sender is the address of the governance account or module admin | ||
string sender = 5; | ||
} | ||
|
||
// agent remove event | ||
message EventRemoveAgent{ | ||
// id is the unique identifier of the agent | ||
uint64 id = 1; | ||
// sender is the address of the governance account or module admin | ||
string sender = 2; | ||
} |
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 @@ | ||
syntax = "proto3"; | ||
package lorenzo.agent.v1; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "cosmos_proto/cosmos.proto"; | ||
import "lorenzo/agent/v1/agent.proto"; | ||
|
||
option go_package = "github.com/Lorenzo-Protocol/lorenzo/x/agent/types"; | ||
|
||
// GenesisState defines the agent module's genesis state. | ||
message GenesisState { | ||
repeated Agent agents = 1 [ (gogoproto.nullable) = false ]; | ||
// administrator account of agent module | ||
string admin = 2 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; | ||
} |
Oops, something went wrong.