-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathmodels.go
More file actions
60 lines (49 loc) · 2 KB
/
Copy pathmodels.go
File metadata and controls
60 lines (49 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package kosgo
import kos_mobile "github.com/klever-io/kos-rs/packages/kos-go/kos_mobile"
type TransactionChainOptions = kos_mobile.TransactionChainOptions
type TransactionChainOptionsEvm = kos_mobile.TransactionChainOptionsEvm
type TransactionChainOptionsBtc = kos_mobile.TransactionChainOptionsBtc
type TransactionChainOptionsSubstrate = kos_mobile.TransactionChainOptionsSubstrate
type TransactionChainOptionsCosmos = kos_mobile.TransactionChainOptionsCosmos
type WalletChainOptions = kos_mobile.WalletChainOptions
type WalletChainOptionsCustomEth = kos_mobile.WalletChainOptionsCustomEth
type WalletChainOptionsCustomIcp = kos_mobile.WalletChainOptionsCustomIcp
type WalletOptions = kos_mobile.WalletOptions
func NewSubstrateTransactionOptions(
call string,
era string,
nonce uint32,
tip uint64,
assetId *string,
blockHash string,
genesisHash string,
specVersion uint32,
transactionVersion uint32,
appId *uint32,
signedExtensions *[]string,
) TransactionChainOptions {
return kos_mobile.NewSubstrateTransactionOptions(
call, era, nonce, tip, assetId,
blockHash, genesisHash,
specVersion, transactionVersion,
appId, signedExtensions,
)
}
func NewBitcoinTransactionOptions(inputAmounts []uint64, prevScripts []string) TransactionChainOptions {
return kos_mobile.NewBitcoinTransactionOptions(inputAmounts, prevScripts)
}
func NewEvmTransactionOptions(chainId uint32) TransactionChainOptions {
return kos_mobile.NewEvmTransactionOptions(chainId)
}
func NewCosmosTransactionOptions(chainId string, accountNumber uint64) TransactionChainOptions {
return kos_mobile.NewCosmosTransactionOptions(chainId, accountNumber)
}
func NewWalletOptions(useLegacyPath bool) WalletOptions {
return kos_mobile.NewWalletOptions(useLegacyPath)
}
func NewEthWalletOptions(useLegacyPath bool, chainId uint32) WalletOptions {
return kos_mobile.NewEthWalletOptions(useLegacyPath, chainId)
}
func NewIcpWalletOptions(useLegacyPath bool, keyType string) WalletOptions {
return kos_mobile.NewIcpWalletOptions(useLegacyPath, keyType)
}