@bitgo-beta/sdk-coin-xtz 1.4.3-alpha.400 → 1.4.3-alpha.401
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -7
- package/dist/src/index.d.ts +0 -5
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js +0 -44
- package/dist/src/lib/address.d.ts +0 -8
- package/dist/src/lib/address.d.ts.map +0 -1
- package/dist/src/lib/address.js +0 -10
- package/dist/src/lib/iface.d.ts +0 -148
- package/dist/src/lib/iface.d.ts.map +0 -1
- package/dist/src/lib/iface.js +0 -3
- package/dist/src/lib/index.d.ts +0 -10
- package/dist/src/lib/index.d.ts.map +0 -1
- package/dist/src/lib/index.js +0 -51
- package/dist/src/lib/keyPair.d.ts +0 -40
- package/dist/src/lib/keyPair.d.ts.map +0 -1
- package/dist/src/lib/keyPair.js +0 -149
- package/dist/src/lib/multisigUtils.d.ts +0 -134
- package/dist/src/lib/multisigUtils.d.ts.map +0 -1
- package/dist/src/lib/multisigUtils.js +0 -1193
- package/dist/src/lib/transaction.d.ts +0 -119
- package/dist/src/lib/transaction.d.ts.map +0 -1
- package/dist/src/lib/transaction.js +0 -329
- package/dist/src/lib/transactionBuilder.d.ts +0 -171
- package/dist/src/lib/transactionBuilder.d.ts.map +0 -1
- package/dist/src/lib/transactionBuilder.js +0 -453
- package/dist/src/lib/transferBuilder.d.ts +0 -24
- package/dist/src/lib/transferBuilder.d.ts.map +0 -1
- package/dist/src/lib/transferBuilder.js +0 -64
- package/dist/src/lib/utils.d.ts +0 -280
- package/dist/src/lib/utils.d.ts.map +0 -1
- package/dist/src/lib/utils.js +0 -492
- package/dist/src/register.d.ts +0 -3
- package/dist/src/register.d.ts.map +0 -1
- package/dist/src/register.js +0 -11
- package/dist/src/txtz.d.ts +0 -13
- package/dist/src/txtz.d.ts.map +0 -1
- package/dist/src/txtz.js +0 -14
- package/dist/src/xtz.d.ts +0 -125
- package/dist/src/xtz.d.ts.map +0 -1
- package/dist/src/xtz.js +0 -409
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { IndexedSignature, OriginationData, OriginationOp, RevealOp, TransactionOp, TransferData } from './iface';
|
|
2
|
-
/**
|
|
3
|
-
* Helper method to get the transfer details from a generic multisig transaction operation.
|
|
4
|
-
*
|
|
5
|
-
* @param {TransactionOp} operation A transaction operation JSON
|
|
6
|
-
* @returns {TransferData} Information about the destination, token and transfer amount
|
|
7
|
-
*/
|
|
8
|
-
export declare function getMultisigTransferDataFromOperation(operation: TransactionOp): TransferData;
|
|
9
|
-
/**
|
|
10
|
-
* Helper method to get the wallet or address initialization tx from an origination operation
|
|
11
|
-
*
|
|
12
|
-
* @param {OriginationOp} operation
|
|
13
|
-
* @returns {OriginationData} Information about the wallet contract creating a forwarder contract
|
|
14
|
-
*/
|
|
15
|
-
export declare function getOriginationDataFromOperation(operation: OriginationOp): OriginationData;
|
|
16
|
-
/**
|
|
17
|
-
* Helper method to build a singlesig transaction operation.
|
|
18
|
-
*
|
|
19
|
-
* @param {string} counter Source account next counter
|
|
20
|
-
* @param {string} source The account that will pay for fees, and in singlesig transactions, where
|
|
21
|
-
* the funds are taken from
|
|
22
|
-
* @param {string} amount The amount in mutez to be transferred
|
|
23
|
-
* @param {string} destination The account address to send the funds to
|
|
24
|
-
* @param {string} fee Fees in mutez to pay by the source account
|
|
25
|
-
* @param {string} gasLimit Maximum amount in mutez to spend in gas fees
|
|
26
|
-
* @param {string} storageLimit Maximum amount in mutez to spend in storage fees
|
|
27
|
-
* @returns {TransactionOp}A Tezos transaction operation
|
|
28
|
-
*/
|
|
29
|
-
export declare function singlesigTransactionOperation(counter: string, source: string, amount: string, destination: string, fee?: string, gasLimit?: string, storageLimit?: string): TransactionOp;
|
|
30
|
-
/**
|
|
31
|
-
* Create a multisig wallet transaction operation.
|
|
32
|
-
*
|
|
33
|
-
* @see {@link transactionOperation}
|
|
34
|
-
* @param {string} counter Source account next counter
|
|
35
|
-
* @param {string} source The account that will pay for fees, and in singlesig transactions, where
|
|
36
|
-
* the funds are taken from
|
|
37
|
-
* @param {string} amount The amount in mutez to be transferred
|
|
38
|
-
* @param {string} contractAddress If it is a multisig transfer, the smart contract address with the
|
|
39
|
-
* funds to be transferred from
|
|
40
|
-
* @param {string} contractCounter If it is a multisig transfer, the smart contract counter to use
|
|
41
|
-
* in the next transaction
|
|
42
|
-
* @param {string} destinationAddress An implicit or originated address to transfer fudns to
|
|
43
|
-
* @param {string[]} signatures signatures List of signatures authorizing the funds transfer form
|
|
44
|
-
* the multisig wallet
|
|
45
|
-
* @param {string} fee Fees in mutez to pay by the source account
|
|
46
|
-
* @param {string} gasLimit Maximum amount in mutez to spend in gas fees
|
|
47
|
-
* @param {string} storageLimit Maximum amount in mutez to spend in storage fees
|
|
48
|
-
* @param {number} m The number of signers (owners) for the multisig wallet being used. Default is 3
|
|
49
|
-
* @returns {TransactionOp} A Tezos operation with a generic multisig transfer
|
|
50
|
-
*/
|
|
51
|
-
export declare function multisigTransactionOperation(counter: string, source: string, amount: string, contractAddress: string, contractCounter: string, destinationAddress: string, signatures: IndexedSignature[], fee?: string, gasLimit?: string, storageLimit?: string, m?: number): TransactionOp;
|
|
52
|
-
/**
|
|
53
|
-
* Replace the signatures in a multisig transaction operation with new ones.
|
|
54
|
-
*
|
|
55
|
-
* @param {TransactionOp} transaction Transaction to mutate
|
|
56
|
-
* @param {IndexedSignature[]} signatures List of transactions and their order
|
|
57
|
-
*/
|
|
58
|
-
export declare function updateMultisigTransferSignatures(transaction: TransactionOp, signatures: IndexedSignature[]): void;
|
|
59
|
-
/**
|
|
60
|
-
* Ge the list if multisig signatures if any in a convenient format.
|
|
61
|
-
*
|
|
62
|
-
* @param {TransactionOp} transaction The transaction to search the signatures in
|
|
63
|
-
* @returns {IndexedSignature[]} A list of signatures and their order in teh transfer script
|
|
64
|
-
*/
|
|
65
|
-
export declare function getMultisigTransferSignatures(transaction: TransactionOp): IndexedSignature[];
|
|
66
|
-
/**
|
|
67
|
-
* Helper function to build the Michelson script to be signed to transfer funds from a multisig
|
|
68
|
-
* wallet.
|
|
69
|
-
*
|
|
70
|
-
* @param contractAddress The multisig smart contract address
|
|
71
|
-
* @param {string} destinationAddress The destination account address (implicit or originated)
|
|
72
|
-
* @param {number} amount Number of mutez to transfer
|
|
73
|
-
* @param {string} contractCounter Wallet counter to use in the transaction
|
|
74
|
-
* @returns A JSON representation of the Michelson script to sign and approve a transfer
|
|
75
|
-
*/
|
|
76
|
-
export declare function genericMultisigDataToSign(contractAddress: string, destinationAddress: string, amount: string, contractCounter: string): {
|
|
77
|
-
data: {
|
|
78
|
-
prim: string;
|
|
79
|
-
args: any[];
|
|
80
|
-
};
|
|
81
|
-
type: {
|
|
82
|
-
prim: string;
|
|
83
|
-
args: any[];
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
/**
|
|
87
|
-
* Create a reveal operation for a public key.
|
|
88
|
-
*
|
|
89
|
-
* @param {string} counter Source account next counter
|
|
90
|
-
* @param {string} source Source account address
|
|
91
|
-
* @param {string} pubKey The public key to reveal
|
|
92
|
-
* @param {string} fee Fees in mutez to pay by the source account
|
|
93
|
-
* @param {string} gasLimit Maximum amount in mutez to spend in gas fees
|
|
94
|
-
* @param {string} storageLimit Maximum amount in mutez to spend in storage fees
|
|
95
|
-
* @returns An origination operation
|
|
96
|
-
*/
|
|
97
|
-
export declare function revealOperation(counter: string, source: string, pubKey: string, fee?: string, gasLimit?: string, storageLimit?: string): RevealOp;
|
|
98
|
-
/**
|
|
99
|
-
* Create an origination operation for the generic multisg contract. It does not create a reveal
|
|
100
|
-
* operation for the source account.
|
|
101
|
-
*
|
|
102
|
-
* @param {string} counter Valid source account counter to use
|
|
103
|
-
* @param {string} source Source account address
|
|
104
|
-
* @param {string} fee Fees in mutez to pay by the source account
|
|
105
|
-
* @param {string} gasLimit Maximum amount in mutez to spend in gas fees
|
|
106
|
-
* @param {string} storageLimit Maximum amount in mutez to spend in storage fees
|
|
107
|
-
* @param {string} balance New multisig account initial balance taken from the source account
|
|
108
|
-
* @param {string[]} pubKeys List of public keys of the multisig owner
|
|
109
|
-
* @param {string} delegate Optional implicit address to delegate the wallet funds to
|
|
110
|
-
* @param {number} threshold Minimum number of signatures required to authorize a multisig operation
|
|
111
|
-
* @returns An origination operation
|
|
112
|
-
*/
|
|
113
|
-
export declare function genericMultisigOriginationOperation(counter: string, source: string, fee: string, gasLimit: string, storageLimit: string, balance: string, pubKeys: string[], delegate?: string, threshold?: number): OriginationOp;
|
|
114
|
-
/**
|
|
115
|
-
* Get the public key of each owner of an multisig wallet origination contract.
|
|
116
|
-
*
|
|
117
|
-
* @param {OriginationOp} operation An operation with the generic multisig wallet origination
|
|
118
|
-
* @returns {string[]} List of all the owners set in the origination transaction
|
|
119
|
-
*/
|
|
120
|
-
export declare function getOwnersPublicKeys(operation: OriginationOp): string[];
|
|
121
|
-
/**
|
|
122
|
-
* Create an origination operation for a forwarder contract
|
|
123
|
-
*
|
|
124
|
-
* @param {string} contractAddress originated multisig address to forward funds
|
|
125
|
-
* @param {string} counter Valid source account counter to use
|
|
126
|
-
* @param {string} source Source account address
|
|
127
|
-
* @param {string} fee Fees in mutez to pay by the source account
|
|
128
|
-
* @param {string} gasLimit Maximum amount in mutez to spend in gas fees
|
|
129
|
-
* @param {string} storageLimit Maximum amount in mutez to spend in storage fees
|
|
130
|
-
* @param {string} balance New multisig account initial balance taken from the source account
|
|
131
|
-
* @returns {OriginationOp} the operation
|
|
132
|
-
*/
|
|
133
|
-
export declare function forwarderOriginationOperation(contractAddress: string, counter: string, source: string, fee: string, gasLimit: string, storageLimit: string, balance: string): OriginationOp;
|
|
134
|
-
//# sourceMappingURL=multisigUtils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"multisigUtils.d.ts","sourceRoot":"","sources":["../../../src/lib/multisigUtils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,aAAa,EA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