-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: modify protocol message #1
base: main
Are you sure you want to change the base?
Conversation
use std::fmt::{Debug, Formatter}; | ||
|
||
use crate::entities::{BlockNumber, CardanoTransaction, ChainPoint, SlotNumber, TransactionHash}; | ||
use pallas_primitives::conway::PseudoDatumOption; | ||
use pallas_traverse::{MultiEraBlock, MultiEraTx}; |
Check warning
Code scanning / cargo-doc
unused import: MultiEraTx Warning
|
||
use crate::entities::{ | ||
BlockHash, BlockNumber, BridgeTransactionMetadata, CardanoTransaction, ChainPoint, |
Check warning
Code scanning / cargo-doc
unused import: BlockHash Warning
|
||
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)] | ||
pub struct BridgeTransactionMetadata { | ||
pub sender_address: String, |
Check warning
Code scanning / cargo-doc
missing documentation for a struct field Warning
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)] | ||
pub struct BridgeTransactionMetadata { | ||
pub sender_address: String, | ||
pub recipient_address: String, |
Check warning
Code scanning / cargo-doc
missing documentation for a struct field Warning
|
||
// Note(hadelive): we can import the uplc library here | ||
pub trait ToPlutusData { | ||
fn to_plutus_data(&self) -> PlutusData; |
Check warning
Code scanning / cargo-doc
missing documentation for a method Warning
fn to_plutus_data(&self) -> PlutusData; | ||
} | ||
|
||
pub trait FromPlutusData { |
Check warning
Code scanning / cargo-doc
missing documentation for a trait Warning
fn from_plutus_data(plutus_data: PlutusData) -> Result<Self, BridgeParseError> | ||
where | ||
Self: Sized; |
Check warning
Code scanning / cargo-doc
missing documentation for an associated function Warning
let bridge_transactions = self | ||
.transaction_importer | ||
.get_bridge_transactions(beacon) |
Check failure
Code scanning / cargo-doc
no method named get_bridge_transactions found for struct std::sync::Arc<(dyn signable_builder::cardano_transactions::TransactionsImporter + 'static)> in the current scope Error
// Retrieve the bridge transactions for the current block | ||
let bridge_transactions = self | ||
.transaction_importer | ||
.get_bridge_transactions(beacon) |
Check failure
Code scanning / cargo-doc
no method named get_bridge_transactions found for struct std::sync::Arc<(dyn signable_builder::cardano_transactions::TransactionsImporter + 'static)> in the current scope Error
use std::fmt::{Debug, Formatter}; | ||
|
||
use crate::entities::{BlockNumber, CardanoTransaction, ChainPoint, SlotNumber, TransactionHash}; | ||
use pallas_primitives::conway::PseudoDatumOption; | ||
use pallas_traverse::{MultiEraBlock, MultiEraTx}; |
Check warning
Code scanning / clippy
unused import: MultiEraTx Warning
|
||
use crate::entities::{ | ||
BlockHash, BlockNumber, BridgeTransactionMetadata, CardanoTransaction, ChainPoint, |
Check warning
Code scanning / clippy
unused import: BlockHash Warning
let bridge_transactions = self | ||
.transaction_importer | ||
.get_bridge_transactions(beacon) |
Check failure
Code scanning / clippy
no method named get_bridge_transactions found for struct std::sync::Arc<(dyn signable_builder::cardano_transactions::TransactionsImporter + 'static)> in the current scope Error
// Retrieve the bridge transactions for the current block | ||
let bridge_transactions = self | ||
.transaction_importer | ||
.get_bridge_transactions(beacon) |
Check failure
Code scanning / clippy
no method named get_bridge_transactions found for struct std::sync::Arc<(dyn signable_builder::cardano_transactions::TransactionsImporter + 'static)> in the current scope Error
} | ||
} | ||
} | ||
|
||
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)] | ||
pub struct BridgeTransactionMetadata { |
Check warning
Code scanning / cargo-doc
missing documentation for a struct Warning
} | ||
} | ||
} | ||
|
||
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)] | ||
pub struct BridgeTransactionMetadata { | ||
pub tx_id: String, |
Check warning
Code scanning / cargo-doc
missing documentation for a struct field Warning
Content
This PR includes...
Pre-submit checklist
Comments
Issue(s)
Relates to #YYY or Closes #YYY