forked from fetchai/agents-aea
-
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.
Merge pull request #226 from valory-xyz/fix/aealite
aealite fixes: p2p acn support, tls support
- Loading branch information
Showing
11 changed files
with
1,686 additions
and
982 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* -*- coding: utf-8 -*- | ||
* ------------------------------------------------------------------------------ | ||
* | ||
* Copyright 2018-2021 Fetch.AI Limited | ||
* | ||
* 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. | ||
* | ||
* ------------------------------------------------------------------------------ | ||
*/ | ||
package acn | ||
|
||
type Pipe interface { | ||
Connect() error | ||
Read() ([]byte, error) | ||
Write(data []byte) error | ||
//Close() error | ||
} |
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,30 @@ | ||
package acn | ||
|
||
import acn_protocol "aealite/protocols/acn/v1_0_0" | ||
|
||
type StatusBody = acn_protocol.AcnMessage_StatusBody | ||
type AgentRecord = acn_protocol.AcnMessage_AgentRecord | ||
type AcnMessage = acn_protocol.AcnMessage | ||
type LookupRequest = acn_protocol.AcnMessage_LookupRequest | ||
type LookupResponse = acn_protocol.AcnMessage_LookupResponse | ||
type Status = acn_protocol.AcnMessage_Status | ||
type LookupRequestPerformative = acn_protocol.AcnMessage_Lookup_Request_Performative | ||
type LookupResponsePerformative = acn_protocol.AcnMessage_Lookup_Response_Performative | ||
type StatusPerformative = acn_protocol.AcnMessage_Status_Performative | ||
type RegisterPerformative = acn_protocol.AcnMessage_Register_Performative | ||
type Register = acn_protocol.AcnMessage_Register | ||
type AeaEnvelope = acn_protocol.AcnMessage_AeaEnvelope | ||
type AeaEnvelopePerformative = acn_protocol.AcnMessage_Aea_Envelope_Performative | ||
|
||
const ERROR_DECODE = acn_protocol.AcnMessage_StatusBody_ERROR_DECODE | ||
const SUCCESS = acn_protocol.AcnMessage_StatusBody_SUCCESS | ||
const ERROR_UNEXPECTED_PAYLOAD = acn_protocol.AcnMessage_StatusBody_ERROR_UNEXPECTED_PAYLOAD | ||
const ERROR_AGENT_NOT_READY = acn_protocol.AcnMessage_StatusBody_ERROR_AGENT_NOT_READY | ||
const ERROR_UNKNOWN_AGENT_ADDRESS = acn_protocol.AcnMessage_StatusBody_ERROR_UNKNOWN_AGENT_ADDRESS | ||
const ERROR_GENERIC = acn_protocol.AcnMessage_StatusBody_ERROR_GENERIC | ||
const ERROR_WRONG_AGENT_ADDRESS = acn_protocol.AcnMessage_StatusBody_ERROR_WRONG_AGENT_ADDRESS | ||
const ERROR_UNSUPPORTED_LEDGER = acn_protocol.AcnMessage_StatusBody_ERROR_UNSUPPORTED_LEDGER | ||
const ERROR_WRONG_PUBLIC_KEY = acn_protocol.AcnMessage_StatusBody_ERROR_WRONG_PUBLIC_KEY | ||
const ERROR_INVALID_PROOF = acn_protocol.AcnMessage_StatusBody_ERROR_INVALID_PROOF | ||
|
||
type Status_ErrCode = acn_protocol.AcnMessage_StatusBody_StatusCodeEnum |
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
Oops, something went wrong.