forked from nervosnetwork/ckb
-
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.
- Loading branch information
Showing
10 changed files
with
139 additions
and
22 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
|
||
mod unlock; |
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,49 @@ | ||
use crate::schemas::leap::{ | ||
Message, MessageUnion, Request, RequestContent, RequestLockArgs, Requests, Transfer, | ||
}; | ||
use crate::{RgbppTxBuilder, CONFIRMATION_THRESHOLD, SIGHASH_TYPE_HASH}; | ||
|
||
use aggregator_common::{ | ||
error::Error, | ||
types::RequestType, | ||
utils::{ | ||
decode_udt_amount, encode_udt_amount, privkey::get_sighash_lock_args_from_privkey, | ||
QUEUE_TYPE, REQUEST_LOCK, SECP256K1, XUDT, | ||
}, | ||
}; | ||
use ckb_jsonrpc_types::TransactionView; | ||
use ckb_logger::{debug, info}; | ||
use ckb_sdk::{ | ||
core::TransactionBuilder, | ||
rpc::ckb_indexer::{Cell, Order}, | ||
rpc::CkbRpcClient as RpcClient, | ||
traits::{CellQueryOptions, LiveCell}, | ||
transaction::{ | ||
builder::{ChangeBuilder, DefaultChangeBuilder}, | ||
handler::HandlerContexts, | ||
input::{InputIterator, TransactionInput}, | ||
signer::{SignContexts, TransactionSigner}, | ||
TransactionBuilderConfiguration, | ||
}, | ||
types::{NetworkInfo, NetworkType, TransactionWithScriptGroups}, | ||
ScriptGroup, Since, SinceType, | ||
}; | ||
use ckb_stop_handler::{new_tokio_exit_rx, CancellationToken}; | ||
use ckb_types::{ | ||
bytes::Bytes, | ||
core::ScriptHashType, | ||
packed::{Byte32, Bytes as PackedBytes, CellInput, CellOutput, Script, WitnessArgs}, | ||
prelude::*, | ||
H256, | ||
}; | ||
use molecule::prelude::Byte; | ||
|
||
use std::collections::HashMap; | ||
use std::thread::sleep; | ||
use std::time::Duration; | ||
|
||
impl RgbppTxBuilder { | ||
pub fn create_unlock_tx(&self) -> Result<H256, Error> { | ||
Ok(H256::default()) | ||
} | ||
} |
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