blockchainethereumblockchain-walleterc20erc721walletxdaidappdecentralizederc1155erc875iosswifttokens
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
991 B
35 lines
991 B
// Copyright SIX DAY LLC. All rights reserved.
|
|
|
|
import Foundation
|
|
@testable import AlphaWallet
|
|
import TrustKeystore
|
|
import BigInt
|
|
|
|
extension UnconfirmedTransaction {
|
|
static func make(
|
|
transferType: TransferType = .nativeCryptocurrency(config: .make(), destination: .none),
|
|
value: BigInt = BigInt(1),
|
|
to: Address = .make(),
|
|
data: Data = Data(),
|
|
gasLimit: BigInt? = BigInt(100000),
|
|
gasPrice: BigInt? = BigInt(1000),
|
|
nonce: BigInt? = BigInt(1)
|
|
) -> UnconfirmedTransaction {
|
|
return UnconfirmedTransaction(
|
|
transferType: transferType,
|
|
value: value,
|
|
to: to,
|
|
data: data,
|
|
gasLimit: gasLimit,
|
|
tokenId: Constants.nullTokenId,
|
|
gasPrice: gasPrice,
|
|
nonce: nonce,
|
|
v: .none,
|
|
r: .none,
|
|
s: .none,
|
|
expiry: .none,
|
|
indices: .none,
|
|
tokenIds: [BigUInt]()
|
|
)
|
|
}
|
|
}
|
|
|