mainnet-js 1.1.34 → 2.0.1
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/dist/index.html +1 -1
- package/dist/{mainnet-1.1.34.js → mainnet-2.0.1.js} +26 -338
- package/dist/module/db/SqlProvider.d.ts +2 -2
- package/dist/module/db/SqlProvider.d.ts.map +1 -1
- package/dist/module/db/SqlProvider.js +6 -24
- package/dist/module/db/SqlProvider.js.map +1 -1
- package/dist/module/index.d.ts +0 -3
- package/dist/module/index.d.ts.map +1 -1
- package/dist/module/index.js +3 -6
- package/dist/module/index.js.map +1 -1
- package/dist/module/transaction/Wif.d.ts +4 -8
- package/dist/module/transaction/Wif.d.ts.map +1 -1
- package/dist/module/transaction/Wif.js +6 -10
- package/dist/module/transaction/Wif.js.map +1 -1
- package/dist/module/util/deriveCashaddr.d.ts +1 -0
- package/dist/module/util/deriveCashaddr.d.ts.map +1 -1
- package/dist/module/util/deriveCashaddr.js +8 -1
- package/dist/module/util/deriveCashaddr.js.map +1 -1
- package/dist/module/wallet/Base.d.ts +1 -1
- package/dist/module/wallet/Base.js +1 -1
- package/dist/module/wallet/Bcmr.d.ts +3 -1
- package/dist/module/wallet/Bcmr.d.ts.map +1 -1
- package/dist/module/wallet/Bcmr.js +4 -8
- package/dist/module/wallet/Bcmr.js.map +1 -1
- package/dist/module/wallet/Util.d.ts +2 -2
- package/dist/module/wallet/Util.js +2 -2
- package/dist/module/wallet/Wif.d.ts +0 -28
- package/dist/module/wallet/Wif.d.ts.map +1 -1
- package/dist/module/wallet/Wif.js +2 -109
- package/dist/module/wallet/Wif.js.map +1 -1
- package/dist/module/wallet/createWallet.d.ts +0 -12
- package/dist/module/wallet/createWallet.d.ts.map +1 -1
- package/dist/module/wallet/createWallet.js +0 -43
- package/dist/module/wallet/createWallet.js.map +1 -1
- package/dist/module/wallet/interface.d.ts +0 -2
- package/dist/module/wallet/interface.d.ts.map +1 -1
- package/dist/module/webhook/Webhook.d.ts +1 -6
- package/dist/module/webhook/Webhook.d.ts.map +1 -1
- package/dist/module/webhook/Webhook.js +0 -4
- package/dist/module/webhook/Webhook.js.map +1 -1
- package/dist/module/webhook/index.d.ts +0 -1
- package/dist/module/webhook/index.d.ts.map +1 -1
- package/dist/module/webhook/index.js +0 -1
- package/dist/module/webhook/index.js.map +1 -1
- package/dist/module/webhook/interface.d.ts +0 -1
- package/dist/module/webhook/interface.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -10
- package/src/db/SqlProvider.test.ts +2 -18
- package/src/db/SqlProvider.ts +5 -26
- package/src/index.ts +3 -7
- package/src/transaction/Wif.ts +2 -19
- package/src/util/deriveCashaddr.test.ts +8 -0
- package/src/util/deriveCashaddr.ts +9 -0
- package/src/wallet/Base.ts +1 -1
- package/src/wallet/Bcmr.ts +4 -9
- package/src/wallet/Util.ts +2 -2
- package/src/wallet/Wif.test.ts +0 -23
- package/src/wallet/Wif.ts +2 -148
- package/src/wallet/createWallet.ts +0 -53
- package/src/wallet/interface.ts +0 -2
- package/src/webhook/Webhook.ts +4 -10
- package/src/webhook/index.ts +0 -1
- package/src/webhook/interface.ts +0 -1
- package/webpack.config.cjs +7 -7
- package/dist/module/slp/GsppProvider.d.ts +0 -55
- package/dist/module/slp/GsppProvider.d.ts.map +0 -1
- package/dist/module/slp/GsppProvider.js +0 -204
- package/dist/module/slp/GsppProvider.js.map +0 -1
- package/dist/module/slp/SlpDbProvider.d.ts +0 -52
- package/dist/module/slp/SlpDbProvider.d.ts.map +0 -1
- package/dist/module/slp/SlpDbProvider.js +0 -175
- package/dist/module/slp/SlpDbProvider.js.map +0 -1
- package/dist/module/slp/SlpDbTemplates.d.ts +0 -313
- package/dist/module/slp/SlpDbTemplates.d.ts.map +0 -1
- package/dist/module/slp/SlpDbTemplates.js +0 -375
- package/dist/module/slp/SlpDbTemplates.js.map +0 -1
- package/dist/module/slp/SlpLibAuth.d.ts +0 -210
- package/dist/module/slp/SlpLibAuth.d.ts.map +0 -1
- package/dist/module/slp/SlpLibAuth.js +0 -451
- package/dist/module/slp/SlpLibAuth.js.map +0 -1
- package/dist/module/slp/SlpProvider.d.ts +0 -24
- package/dist/module/slp/SlpProvider.d.ts.map +0 -1
- package/dist/module/slp/SlpProvider.js +0 -29
- package/dist/module/slp/SlpProvider.js.map +0 -1
- package/dist/module/slp/index.d.ts +0 -6
- package/dist/module/slp/index.d.ts.map +0 -1
- package/dist/module/slp/index.js +0 -5
- package/dist/module/slp/index.js.map +0 -1
- package/dist/module/slp/interface.d.ts +0 -114
- package/dist/module/slp/interface.d.ts.map +0 -1
- package/dist/module/slp/interface.js +0 -7
- package/dist/module/slp/interface.js.map +0 -1
- package/dist/module/util/bchaddr.d.ts +0 -2
- package/dist/module/util/bchaddr.d.ts.map +0 -1
- package/dist/module/util/bchaddr.js +0 -16
- package/dist/module/util/bchaddr.js.map +0 -1
- package/dist/module/wallet/Slp.d.ts +0 -431
- package/dist/module/wallet/Slp.d.ts.map +0 -1
- package/dist/module/wallet/Slp.js +0 -770
- package/dist/module/wallet/Slp.js.map +0 -1
- package/dist/module/webhook/WebhookSlp.d.ts +0 -15
- package/dist/module/webhook/WebhookSlp.d.ts.map +0 -1
- package/dist/module/webhook/WebhookSlp.js +0 -100
- package/dist/module/webhook/WebhookSlp.js.map +0 -1
- package/src/slp/GsppProvider.test.ts +0 -40
- package/src/slp/GsppProvider.ts +0 -329
- package/src/slp/SlpDbProvider.test.ts +0 -27
- package/src/slp/SlpDbProvider.ts +0 -291
- package/src/slp/SlpDbTemplates.ts +0 -400
- package/src/slp/SlpLibAuth.test.ts +0 -162
- package/src/slp/SlpLibAuth.ts +0 -532
- package/src/slp/SlpProvider.ts +0 -100
- package/src/slp/index.ts +0 -6
- package/src/slp/interface.ts +0 -128
- package/src/util/bchaddr.test.ts +0 -27
- package/src/util/bchaddr.ts +0 -27
- package/src/wallet/Slp.test.headless.js +0 -120
- package/src/wallet/Slp.test.ts +0 -1000
- package/src/wallet/Slp.ts +0 -1014
- package/src/webhook/WebhookSlp.test.ts +0 -288
- package/src/webhook/WebhookSlp.ts +0 -123
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
import { Output } from "@bitauth/libauth";
|
|
2
|
-
import { SendRequest } from "../wallet/model.js";
|
|
3
|
-
import { SlpGenesisOptions, SlpMintOptions, SlpSendRequest, SlpUtxoI } from "../slp/interface.js";
|
|
4
|
-
export declare const bigIntToBinUint64BE: (value: any) => Uint8Array;
|
|
5
|
-
export declare const SlpGetGenesisOutputs: (options: SlpGenesisOptions) => Promise<{
|
|
6
|
-
SlpOutputs: Output<Uint8Array, Uint8Array>[];
|
|
7
|
-
FundingSlpUtxos: never[];
|
|
8
|
-
BchSendRequests: SendRequest[];
|
|
9
|
-
}>;
|
|
10
|
-
export declare const SlpGetMintOutputs: (options: SlpMintOptions, slpBatonUtxos: SlpUtxoI[]) => Promise<{
|
|
11
|
-
SlpOutputs: Output<Uint8Array, Uint8Array>[];
|
|
12
|
-
FundingSlpUtxos: SlpUtxoI[];
|
|
13
|
-
BchSendRequests: SendRequest[];
|
|
14
|
-
}>;
|
|
15
|
-
export declare const SlpGetSendOutputs: (changeSlpaddr: string, slpUtxos: SlpUtxoI[], sendRequests: SlpSendRequest[]) => Promise<{
|
|
16
|
-
SlpOutputs: Output<Uint8Array, Uint8Array>[];
|
|
17
|
-
FundingSlpUtxos: SlpUtxoI[];
|
|
18
|
-
BchSendRequests: SendRequest[];
|
|
19
|
-
}>;
|
|
20
|
-
export declare const SlpTxoTemplate: {
|
|
21
|
-
$schema: string;
|
|
22
|
-
description: string;
|
|
23
|
-
name: string;
|
|
24
|
-
entities: {
|
|
25
|
-
genesis_variables: {
|
|
26
|
-
description: string;
|
|
27
|
-
name: string;
|
|
28
|
-
scripts: string[];
|
|
29
|
-
variables: {
|
|
30
|
-
g_token_type: {
|
|
31
|
-
description: string;
|
|
32
|
-
name: string;
|
|
33
|
-
type: string;
|
|
34
|
-
};
|
|
35
|
-
g_token_ticker: {
|
|
36
|
-
description: string;
|
|
37
|
-
name: string;
|
|
38
|
-
type: string;
|
|
39
|
-
};
|
|
40
|
-
g_token_name: {
|
|
41
|
-
description: string;
|
|
42
|
-
name: string;
|
|
43
|
-
type: string;
|
|
44
|
-
};
|
|
45
|
-
g_token_document_url: {
|
|
46
|
-
description: string;
|
|
47
|
-
name: string;
|
|
48
|
-
type: string;
|
|
49
|
-
};
|
|
50
|
-
g_token_document_hash: {
|
|
51
|
-
description: string;
|
|
52
|
-
name: string;
|
|
53
|
-
type: string;
|
|
54
|
-
};
|
|
55
|
-
g_decimals: {
|
|
56
|
-
description: string;
|
|
57
|
-
name: string;
|
|
58
|
-
type: string;
|
|
59
|
-
};
|
|
60
|
-
g_mint_baton_vout: {
|
|
61
|
-
description: string;
|
|
62
|
-
name: string;
|
|
63
|
-
type: string;
|
|
64
|
-
};
|
|
65
|
-
g_initial_token_mint_quantity: {
|
|
66
|
-
description: string;
|
|
67
|
-
name: string;
|
|
68
|
-
type: string;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
send_variables: {
|
|
73
|
-
description: string;
|
|
74
|
-
name: string;
|
|
75
|
-
scripts: string[];
|
|
76
|
-
variables: {
|
|
77
|
-
s_token_type: {
|
|
78
|
-
description: string;
|
|
79
|
-
name: string;
|
|
80
|
-
type: string;
|
|
81
|
-
};
|
|
82
|
-
s_token_id: {
|
|
83
|
-
description: string;
|
|
84
|
-
name: string;
|
|
85
|
-
type: string;
|
|
86
|
-
};
|
|
87
|
-
s_token_output_quantities: {
|
|
88
|
-
description: string;
|
|
89
|
-
name: string;
|
|
90
|
-
type: string;
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
mint_variables: {
|
|
95
|
-
description: string;
|
|
96
|
-
name: string;
|
|
97
|
-
scripts: string[];
|
|
98
|
-
variables: {
|
|
99
|
-
m_token_type: {
|
|
100
|
-
description: string;
|
|
101
|
-
name: string;
|
|
102
|
-
type: string;
|
|
103
|
-
};
|
|
104
|
-
m_token_id: {
|
|
105
|
-
description: string;
|
|
106
|
-
name: string;
|
|
107
|
-
type: string;
|
|
108
|
-
};
|
|
109
|
-
m_mint_baton_vout: {
|
|
110
|
-
description: string;
|
|
111
|
-
name: string;
|
|
112
|
-
type: string;
|
|
113
|
-
};
|
|
114
|
-
m_additional_token_quantity: {
|
|
115
|
-
description: string;
|
|
116
|
-
name: string;
|
|
117
|
-
type: string;
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
scenarios: {
|
|
123
|
-
genesis: {
|
|
124
|
-
data: {
|
|
125
|
-
bytecode: {
|
|
126
|
-
g_token_type: string;
|
|
127
|
-
g_token_ticker: string;
|
|
128
|
-
g_token_name: string;
|
|
129
|
-
g_token_document_url: string;
|
|
130
|
-
g_token_document_hash: string;
|
|
131
|
-
g_decimals: string;
|
|
132
|
-
g_mint_baton_vout: string;
|
|
133
|
-
g_initial_token_mint_quantity: string;
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
description: string;
|
|
137
|
-
name: string;
|
|
138
|
-
transaction: {
|
|
139
|
-
locktime: number;
|
|
140
|
-
};
|
|
141
|
-
};
|
|
142
|
-
send: {
|
|
143
|
-
data: {
|
|
144
|
-
bytecode: {
|
|
145
|
-
s_token_type: string;
|
|
146
|
-
s_token_id: string;
|
|
147
|
-
s_token_output_quantities: string;
|
|
148
|
-
};
|
|
149
|
-
};
|
|
150
|
-
description: string;
|
|
151
|
-
name: string;
|
|
152
|
-
transaction: {
|
|
153
|
-
locktime: number;
|
|
154
|
-
};
|
|
155
|
-
};
|
|
156
|
-
mint: {
|
|
157
|
-
data: {
|
|
158
|
-
bytecode: {
|
|
159
|
-
m_token_type: string;
|
|
160
|
-
m_token_id: string;
|
|
161
|
-
m_mint_baton_vout: string;
|
|
162
|
-
m_additional_token_quantity: string;
|
|
163
|
-
};
|
|
164
|
-
};
|
|
165
|
-
description: string;
|
|
166
|
-
name: string;
|
|
167
|
-
transaction: {
|
|
168
|
-
locktime: number;
|
|
169
|
-
};
|
|
170
|
-
};
|
|
171
|
-
};
|
|
172
|
-
scripts: {
|
|
173
|
-
genesis_unlock: {
|
|
174
|
-
fails: string[];
|
|
175
|
-
name: string;
|
|
176
|
-
script: string;
|
|
177
|
-
unlocks: string;
|
|
178
|
-
};
|
|
179
|
-
send_unlock: {
|
|
180
|
-
fails: string[];
|
|
181
|
-
name: string;
|
|
182
|
-
script: string;
|
|
183
|
-
unlocks: string;
|
|
184
|
-
};
|
|
185
|
-
mint_unlock: {
|
|
186
|
-
fails: string[];
|
|
187
|
-
name: string;
|
|
188
|
-
script: string;
|
|
189
|
-
unlocks: string;
|
|
190
|
-
};
|
|
191
|
-
genesis_lock: {
|
|
192
|
-
lockingType: string;
|
|
193
|
-
name: string;
|
|
194
|
-
script: string;
|
|
195
|
-
};
|
|
196
|
-
send_lock: {
|
|
197
|
-
lockingType: string;
|
|
198
|
-
name: string;
|
|
199
|
-
script: string;
|
|
200
|
-
};
|
|
201
|
-
mint_lock: {
|
|
202
|
-
lockingType: string;
|
|
203
|
-
name: string;
|
|
204
|
-
script: string;
|
|
205
|
-
};
|
|
206
|
-
};
|
|
207
|
-
supported: string[];
|
|
208
|
-
version: number;
|
|
209
|
-
};
|
|
210
|
-
//# sourceMappingURL=SlpLibAuth.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SlpLibAuth.d.ts","sourceRoot":"","sources":["../../../src/slp/SlpLibAuth.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,MAAM,EAEP,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,cAAc,EAEd,QAAQ,EACT,MAAM,qBAAqB,CAAC;AAO7B,eAAO,MAAM,mBAAmB,4BAE/B,CAAC;AAiBF,eAAO,MAAM,oBAAoB,YAAmB,iBAAiB;;;;EAsFpE,CAAC;AAEF,eAAO,MAAM,iBAAiB,YACnB,cAAc,iBACR,QAAQ,EAAE;;;;EAsE1B,CAAC;AAEF,eAAO,MAAM,iBAAiB,kBACb,MAAM,YACX,QAAQ,EAAE,gBACN,cAAc,EAAE;;;;EAiH/B,CAAC;AAGF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8M1B,CAAA"}
|
|
@@ -1,451 +0,0 @@
|
|
|
1
|
-
import { authenticationTemplateToCompilerBCH, bigIntToBinUint64LE, binToHex, hexToBin, importAuthenticationTemplate, utf8ToBin, } from "@bitauth/libauth";
|
|
2
|
-
import { parseSLP } from "slp-parser";
|
|
3
|
-
import { SendRequest } from "../wallet/model.js";
|
|
4
|
-
import { SlpTokenType, } from "../slp/interface.js";
|
|
5
|
-
import BigNumber from "bignumber.js";
|
|
6
|
-
import { DUST_UTXO_THRESHOLD } from "../constant.js";
|
|
7
|
-
import { UnitEnum } from "../enum.js";
|
|
8
|
-
import { isValidAddress, toCashAddress } from "../util/bchaddr.js";
|
|
9
|
-
export const bigIntToBinUint64BE = (value) => {
|
|
10
|
-
return bigIntToBinUint64LE(value).reverse();
|
|
11
|
-
};
|
|
12
|
-
const stringToBin = (value, hex = false) => {
|
|
13
|
-
if (!value)
|
|
14
|
-
return Uint8Array.from([0x4c, 0x00]);
|
|
15
|
-
if (hex)
|
|
16
|
-
return Uint8Array.from([...[value.length / 2], ...hexToBin(value)]);
|
|
17
|
-
const length = new TextEncoder().encode(value).length;
|
|
18
|
-
return Uint8Array.from([...[length], ...utf8ToBin(value)]);
|
|
19
|
-
};
|
|
20
|
-
const supportedTokenTypes = [
|
|
21
|
-
SlpTokenType.Type1,
|
|
22
|
-
SlpTokenType.NftParent,
|
|
23
|
-
SlpTokenType.NftChild,
|
|
24
|
-
];
|
|
25
|
-
export const SlpGetGenesisOutputs = async (options) => {
|
|
26
|
-
if (!isValidAddress(options.tokenReceiverSlpAddr)) {
|
|
27
|
-
throw new Error(`Invalid tokenReceiverSlpAddr ${options.tokenReceiverSlpAddr}`);
|
|
28
|
-
}
|
|
29
|
-
if (!isValidAddress(options.batonReceiverSlpAddr)) {
|
|
30
|
-
throw new Error(`Invalid batonReceiverSlpAddr ${options.batonReceiverSlpAddr}`);
|
|
31
|
-
}
|
|
32
|
-
if (!options.type) {
|
|
33
|
-
options.type = SlpTokenType.Type1;
|
|
34
|
-
}
|
|
35
|
-
if (!supportedTokenTypes.includes(options.type)) {
|
|
36
|
-
throw new Error(`Unsupported token type ${options.type}`);
|
|
37
|
-
}
|
|
38
|
-
// explicitly convert initial amount to bignumber
|
|
39
|
-
options.initialAmount = new BigNumber(options.initialAmount);
|
|
40
|
-
if (options.initialAmount.isLessThanOrEqualTo(0)) {
|
|
41
|
-
throw Error("Initial genesis token amount should be greater than zero");
|
|
42
|
-
}
|
|
43
|
-
if (options.decimals < 0 || options.decimals > 9) {
|
|
44
|
-
throw new Error("Genesis allows decimal places between 0");
|
|
45
|
-
}
|
|
46
|
-
const addrs = options.endBaton
|
|
47
|
-
? [options.tokenReceiverSlpAddr]
|
|
48
|
-
: [options.tokenReceiverSlpAddr, options.batonReceiverSlpAddr];
|
|
49
|
-
const bchSendRequests = addrs.map((val) => new SendRequest({
|
|
50
|
-
cashaddr: toCashAddress(val),
|
|
51
|
-
value: DUST_UTXO_THRESHOLD,
|
|
52
|
-
unit: UnitEnum.SAT,
|
|
53
|
-
}));
|
|
54
|
-
const template = importAuthenticationTemplate(SlpTxoTemplate);
|
|
55
|
-
if (typeof template === "string") {
|
|
56
|
-
throw new Error("Transaction template error");
|
|
57
|
-
}
|
|
58
|
-
const compiler = await authenticationTemplateToCompilerBCH(template);
|
|
59
|
-
const rawTokenAmount = BigInt(options.initialAmount.shiftedBy(options.decimals));
|
|
60
|
-
const batonVout = options.endBaton ? [0x4c, 0x00] : [0x01, 0x02];
|
|
61
|
-
let genesisTxoBytecode = compiler.generateBytecode({
|
|
62
|
-
scriptId: "genesis_lock",
|
|
63
|
-
data: {
|
|
64
|
-
bytecode: {
|
|
65
|
-
g_token_type: Uint8Array.from([...[0x01], ...[options.type]]),
|
|
66
|
-
g_token_ticker: stringToBin(options.ticker),
|
|
67
|
-
g_token_name: stringToBin(options.name),
|
|
68
|
-
g_token_document_url: stringToBin(options.documentUrl),
|
|
69
|
-
g_token_document_hash: stringToBin(options.documentHash, true),
|
|
70
|
-
g_decimals: Uint8Array.from([...[0x01], ...[options.decimals]]),
|
|
71
|
-
g_mint_baton_vout: Uint8Array.from(batonVout),
|
|
72
|
-
g_initial_token_mint_quantity: Uint8Array.from([
|
|
73
|
-
...[0x08],
|
|
74
|
-
...bigIntToBinUint64BE(rawTokenAmount),
|
|
75
|
-
]),
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
});
|
|
79
|
-
if (!genesisTxoBytecode.success) {
|
|
80
|
-
throw new Error(genesisTxoBytecode.errors.map((e) => e.error).join("\n"));
|
|
81
|
-
}
|
|
82
|
-
return {
|
|
83
|
-
SlpOutputs: [
|
|
84
|
-
{
|
|
85
|
-
lockingBytecode: genesisTxoBytecode.bytecode,
|
|
86
|
-
valueSatoshis: 0n,
|
|
87
|
-
},
|
|
88
|
-
],
|
|
89
|
-
FundingSlpUtxos: [],
|
|
90
|
-
BchSendRequests: bchSendRequests,
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
export const SlpGetMintOutputs = async (options, slpBatonUtxos) => {
|
|
94
|
-
if (!isValidAddress(options.tokenReceiverSlpAddr)) {
|
|
95
|
-
throw new Error(`Invalid tokenReceiverSlpAddr ${options.tokenReceiverSlpAddr}`);
|
|
96
|
-
}
|
|
97
|
-
if (!isValidAddress(options.batonReceiverSlpAddr)) {
|
|
98
|
-
throw new Error(`Invalid batonReceiverSlpAddr ${options.batonReceiverSlpAddr}`);
|
|
99
|
-
}
|
|
100
|
-
const tokenType = slpBatonUtxos[0].type;
|
|
101
|
-
if (!supportedTokenTypes.includes(tokenType)) {
|
|
102
|
-
throw new Error(`Unsupported token type ${tokenType}`);
|
|
103
|
-
}
|
|
104
|
-
const addrs = options.endBaton
|
|
105
|
-
? [options.tokenReceiverSlpAddr]
|
|
106
|
-
: [options.tokenReceiverSlpAddr, options.batonReceiverSlpAddr];
|
|
107
|
-
const bchSendRequests = addrs.map((val) => new SendRequest({
|
|
108
|
-
cashaddr: toCashAddress(val),
|
|
109
|
-
value: DUST_UTXO_THRESHOLD,
|
|
110
|
-
unit: UnitEnum.SAT,
|
|
111
|
-
}));
|
|
112
|
-
const template = importAuthenticationTemplate(SlpTxoTemplate);
|
|
113
|
-
if (typeof template === "string") {
|
|
114
|
-
throw new Error("Transaction template error");
|
|
115
|
-
}
|
|
116
|
-
const compiler = await authenticationTemplateToCompilerBCH(template);
|
|
117
|
-
const decimals = slpBatonUtxos[0].decimals;
|
|
118
|
-
const amount = new BigNumber(options.value).shiftedBy(decimals);
|
|
119
|
-
const batonVout = options.endBaton ? [0x4c, 0x00] : [0x01, 0x02];
|
|
120
|
-
let mintTxoBytecode = compiler.generateBytecode({
|
|
121
|
-
scriptId: "mint_lock",
|
|
122
|
-
data: {
|
|
123
|
-
bytecode: {
|
|
124
|
-
m_token_type: Uint8Array.from([...[0x01], ...[tokenType]]),
|
|
125
|
-
m_token_id: hexToBin(options.tokenId),
|
|
126
|
-
m_mint_baton_vout: Uint8Array.from(batonVout),
|
|
127
|
-
m_additional_token_quantity: Uint8Array.from([
|
|
128
|
-
...[0x08],
|
|
129
|
-
...bigIntToBinUint64BE(BigInt(amount.toString())),
|
|
130
|
-
]),
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
});
|
|
134
|
-
if (!mintTxoBytecode.success) {
|
|
135
|
-
throw new Error(mintTxoBytecode.errors.map((e) => e.error).join("\n"));
|
|
136
|
-
}
|
|
137
|
-
return {
|
|
138
|
-
SlpOutputs: [
|
|
139
|
-
{
|
|
140
|
-
lockingBytecode: mintTxoBytecode.bytecode,
|
|
141
|
-
valueSatoshis: 0n,
|
|
142
|
-
},
|
|
143
|
-
],
|
|
144
|
-
FundingSlpUtxos: slpBatonUtxos,
|
|
145
|
-
BchSendRequests: bchSendRequests,
|
|
146
|
-
};
|
|
147
|
-
};
|
|
148
|
-
export const SlpGetSendOutputs = async (changeSlpaddr, slpUtxos, sendRequests) => {
|
|
149
|
-
if (!isValidAddress(changeSlpaddr)) {
|
|
150
|
-
throw new Error(`Invalid changeSlpaddr ${changeSlpaddr}`);
|
|
151
|
-
}
|
|
152
|
-
if (!slpUtxos.length) {
|
|
153
|
-
throw new Error("No available tokens to spend");
|
|
154
|
-
}
|
|
155
|
-
const decimals = slpUtxos[0].decimals;
|
|
156
|
-
const tokenId = slpUtxos[0].tokenId;
|
|
157
|
-
const tokenType = slpUtxos[0].type;
|
|
158
|
-
if (!supportedTokenTypes.includes(tokenType)) {
|
|
159
|
-
throw new Error(`Unsupported token type ${tokenType}`);
|
|
160
|
-
}
|
|
161
|
-
// sort inputs in ascending order to eliminate the unnecessary splitting
|
|
162
|
-
// and to prefer the consolidation of small inputs
|
|
163
|
-
slpUtxos = slpUtxos.sort((a, b) => a.value.comparedTo(b.value));
|
|
164
|
-
const slpAvailableAmount = slpUtxos
|
|
165
|
-
.map((val) => new BigNumber(val.value))
|
|
166
|
-
.reduce((a, b) => BigNumber.sum(a, b), new BigNumber(0));
|
|
167
|
-
const slpSpendAmount = sendRequests
|
|
168
|
-
.map((val) => new BigNumber(val.value))
|
|
169
|
-
.reduce((a, b) => BigNumber.sum(a, b), new BigNumber(0));
|
|
170
|
-
if (slpSpendAmount.isLessThanOrEqualTo(0)) {
|
|
171
|
-
throw new Error("Refusing to spend 0 tokens");
|
|
172
|
-
}
|
|
173
|
-
if (slpSpendAmount.isGreaterThan(slpAvailableAmount)) {
|
|
174
|
-
throw new Error("Not enough tokens to spend");
|
|
175
|
-
}
|
|
176
|
-
let fundingSlpUtxos = [];
|
|
177
|
-
let totalInputTokens = new BigNumber(0);
|
|
178
|
-
for (let slputxo of slpUtxos) {
|
|
179
|
-
const amountTooLow = totalInputTokens.isLessThan(slpSpendAmount);
|
|
180
|
-
if (amountTooLow) {
|
|
181
|
-
totalInputTokens = totalInputTokens.plus(slputxo.value);
|
|
182
|
-
fundingSlpUtxos.push(slputxo);
|
|
183
|
-
}
|
|
184
|
-
else {
|
|
185
|
-
break;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
const template = importAuthenticationTemplate(SlpTxoTemplate);
|
|
189
|
-
if (typeof template === "string") {
|
|
190
|
-
throw new Error("Transaction template error");
|
|
191
|
-
}
|
|
192
|
-
const compiler = await authenticationTemplateToCompilerBCH(template);
|
|
193
|
-
const change = totalInputTokens.minus(slpSpendAmount);
|
|
194
|
-
let values = sendRequests.map((val) => new BigNumber(val.value));
|
|
195
|
-
if (change.isGreaterThan(new BigNumber(0))) {
|
|
196
|
-
values.push(change);
|
|
197
|
-
sendRequests.push({
|
|
198
|
-
slpaddr: changeSlpaddr,
|
|
199
|
-
tokenId: tokenId,
|
|
200
|
-
value: new BigNumber(0),
|
|
201
|
-
});
|
|
202
|
-
}
|
|
203
|
-
const bchSendRequests = sendRequests.map((val) => new SendRequest({
|
|
204
|
-
cashaddr: toCashAddress(val.slpaddr),
|
|
205
|
-
value: DUST_UTXO_THRESHOLD,
|
|
206
|
-
unit: UnitEnum.SAT,
|
|
207
|
-
}));
|
|
208
|
-
values = values.map((val) => val.shiftedBy(decimals));
|
|
209
|
-
let result = new Uint8Array();
|
|
210
|
-
for (const val of values) {
|
|
211
|
-
result = new Uint8Array([
|
|
212
|
-
...result,
|
|
213
|
-
...[0x08],
|
|
214
|
-
...bigIntToBinUint64BE(BigInt(val.toString())),
|
|
215
|
-
]);
|
|
216
|
-
}
|
|
217
|
-
let sendTxoBytecode = compiler.generateBytecode({
|
|
218
|
-
scriptId: "send_lock",
|
|
219
|
-
data: {
|
|
220
|
-
bytecode: {
|
|
221
|
-
s_token_type: Uint8Array.from([...[0x01], ...[tokenType]]),
|
|
222
|
-
s_token_id: hexToBin(tokenId),
|
|
223
|
-
s_token_output_quantities: result,
|
|
224
|
-
},
|
|
225
|
-
},
|
|
226
|
-
});
|
|
227
|
-
if (!sendTxoBytecode.success) {
|
|
228
|
-
throw new Error(sendTxoBytecode.errors.map((e) => e.error).join("\n"));
|
|
229
|
-
}
|
|
230
|
-
// enforce checking
|
|
231
|
-
parseSLP(Buffer.from(binToHex(sendTxoBytecode.bytecode), "hex"));
|
|
232
|
-
return {
|
|
233
|
-
SlpOutputs: [
|
|
234
|
-
{
|
|
235
|
-
lockingBytecode: sendTxoBytecode.bytecode,
|
|
236
|
-
valueSatoshis: 0n,
|
|
237
|
-
},
|
|
238
|
-
],
|
|
239
|
-
FundingSlpUtxos: fundingSlpUtxos,
|
|
240
|
-
BchSendRequests: bchSendRequests,
|
|
241
|
-
};
|
|
242
|
-
};
|
|
243
|
-
// prettier-ignore
|
|
244
|
-
export const SlpTxoTemplate = {
|
|
245
|
-
"$schema": "https://bitauth.com/schemas/authentication-template-v0.schema.json",
|
|
246
|
-
"description": "SLP Token transaction output templates",
|
|
247
|
-
"name": "SLP",
|
|
248
|
-
"entities": {
|
|
249
|
-
"genesis_variables": {
|
|
250
|
-
"description": "Variables used in genesis template.",
|
|
251
|
-
"name": "Genesis_Variables",
|
|
252
|
-
"scripts": [
|
|
253
|
-
"genesis_lock",
|
|
254
|
-
"genesis_unlock"
|
|
255
|
-
],
|
|
256
|
-
"variables": {
|
|
257
|
-
"g_token_type": {
|
|
258
|
-
"description": "1 to 2 byte integer",
|
|
259
|
-
"name": "token_type",
|
|
260
|
-
"type": "AddressData"
|
|
261
|
-
},
|
|
262
|
-
"g_token_ticker": {
|
|
263
|
-
"description": "0 to ∞ bytes, suggested utf-8",
|
|
264
|
-
"name": "token_ticker",
|
|
265
|
-
"type": "AddressData"
|
|
266
|
-
},
|
|
267
|
-
"g_token_name": {
|
|
268
|
-
"description": "0 to ∞ bytes, suggested utf-8",
|
|
269
|
-
"name": "token_name",
|
|
270
|
-
"type": "AddressData"
|
|
271
|
-
},
|
|
272
|
-
"g_token_document_url": {
|
|
273
|
-
"description": "0 to ∞ bytes, suggested ascii",
|
|
274
|
-
"name": "token_document_url",
|
|
275
|
-
"type": "AddressData"
|
|
276
|
-
},
|
|
277
|
-
"g_token_document_hash": {
|
|
278
|
-
"description": "0 bytes or 32 bytes",
|
|
279
|
-
"name": "token_document_hash",
|
|
280
|
-
"type": "AddressData"
|
|
281
|
-
},
|
|
282
|
-
"g_decimals": {
|
|
283
|
-
"description": "1 byte in range 0x00-0x09",
|
|
284
|
-
"name": "decimals",
|
|
285
|
-
"type": "AddressData"
|
|
286
|
-
},
|
|
287
|
-
"g_mint_baton_vout": {
|
|
288
|
-
"description": "0 bytes, or 1 byte in range 0x02-0xff",
|
|
289
|
-
"name": "mint_baton_vout",
|
|
290
|
-
"type": "AddressData"
|
|
291
|
-
},
|
|
292
|
-
"g_initial_token_mint_quantity": {
|
|
293
|
-
"description": "8 byte integer",
|
|
294
|
-
"name": "initial_token_mint_quantity",
|
|
295
|
-
"type": "AddressData"
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
},
|
|
299
|
-
"send_variables": {
|
|
300
|
-
"description": "",
|
|
301
|
-
"name": "Send_Variables",
|
|
302
|
-
"scripts": [
|
|
303
|
-
"send_lock",
|
|
304
|
-
"send_unlock"
|
|
305
|
-
],
|
|
306
|
-
"variables": {
|
|
307
|
-
"s_token_type": {
|
|
308
|
-
"description": "1 to 2 byte integer",
|
|
309
|
-
"name": "token_type",
|
|
310
|
-
"type": "AddressData"
|
|
311
|
-
},
|
|
312
|
-
"s_token_id": {
|
|
313
|
-
"description": "Token Id, genesis transaction hex",
|
|
314
|
-
"name": "Token_Id",
|
|
315
|
-
"type": "AddressData"
|
|
316
|
-
},
|
|
317
|
-
"s_token_output_quantities": {
|
|
318
|
-
"description": "N 8 byte integer token amounts (up to 19). At least one is required. Each one is a push.\nN BCH transaction outputs should be specified",
|
|
319
|
-
"name": "Token Output Quantities",
|
|
320
|
-
"type": "AddressData"
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
},
|
|
324
|
-
"mint_variables": {
|
|
325
|
-
"description": "",
|
|
326
|
-
"name": "Mint_Variables",
|
|
327
|
-
"scripts": [
|
|
328
|
-
"mint_lock",
|
|
329
|
-
"mint_unlock"
|
|
330
|
-
],
|
|
331
|
-
"variables": {
|
|
332
|
-
"m_token_type": {
|
|
333
|
-
"description": "1 to 2 byte integer",
|
|
334
|
-
"name": "token_type",
|
|
335
|
-
"type": "AddressData"
|
|
336
|
-
},
|
|
337
|
-
"m_token_id": {
|
|
338
|
-
"description": "Token Id, genesis transaction hex",
|
|
339
|
-
"name": "Token_Id",
|
|
340
|
-
"type": "AddressData"
|
|
341
|
-
},
|
|
342
|
-
"m_mint_baton_vout": {
|
|
343
|
-
"description": "0 bytes, or 1 byte in range 0x02-0xff",
|
|
344
|
-
"name": "mint_baton_vout",
|
|
345
|
-
"type": "AddressData"
|
|
346
|
-
},
|
|
347
|
-
"m_additional_token_quantity": {
|
|
348
|
-
"description": "Amount of tokens to mint, 8 byte integer",
|
|
349
|
-
"name": "Additinial token quantity",
|
|
350
|
-
"type": "AddressData"
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
},
|
|
355
|
-
"scenarios": {
|
|
356
|
-
"genesis": {
|
|
357
|
-
"data": {
|
|
358
|
-
"bytecode": {
|
|
359
|
-
"g_token_type": "0x01",
|
|
360
|
-
"g_token_ticker": "0x00",
|
|
361
|
-
"g_token_name": "0x00",
|
|
362
|
-
"g_token_document_url": "0x00",
|
|
363
|
-
"g_token_document_hash": "",
|
|
364
|
-
"g_decimals": "0x09",
|
|
365
|
-
"g_mint_baton_vout": "0x02",
|
|
366
|
-
"g_initial_token_mint_quantity": "0x0102030405060708"
|
|
367
|
-
}
|
|
368
|
-
},
|
|
369
|
-
"description": "Genesis",
|
|
370
|
-
"name": "Genesis",
|
|
371
|
-
"transaction": {
|
|
372
|
-
"locktime": 100
|
|
373
|
-
}
|
|
374
|
-
},
|
|
375
|
-
"send": {
|
|
376
|
-
"data": {
|
|
377
|
-
"bytecode": {
|
|
378
|
-
"s_token_type": "0x01",
|
|
379
|
-
"s_token_id": "0x0000000000000000'0000000000000000'0000000000000000'0000000000000000'",
|
|
380
|
-
"s_token_output_quantities": "0x0000000000000000"
|
|
381
|
-
}
|
|
382
|
-
},
|
|
383
|
-
"description": "Send",
|
|
384
|
-
"name": "Send",
|
|
385
|
-
"transaction": {
|
|
386
|
-
"locktime": 100
|
|
387
|
-
}
|
|
388
|
-
},
|
|
389
|
-
"mint": {
|
|
390
|
-
"data": {
|
|
391
|
-
"bytecode": {
|
|
392
|
-
"m_token_type": "0x01",
|
|
393
|
-
"m_token_id": "0x0000000000000000'0000000000000000'0000000000000000'0000000000000000'",
|
|
394
|
-
"m_mint_baton_vout": "0x00",
|
|
395
|
-
"m_additional_token_quantity": "0x0000000000000000"
|
|
396
|
-
}
|
|
397
|
-
},
|
|
398
|
-
"description": "Mint",
|
|
399
|
-
"name": "Mint",
|
|
400
|
-
"transaction": {
|
|
401
|
-
"locktime": 100
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
},
|
|
405
|
-
"scripts": {
|
|
406
|
-
"genesis_unlock": {
|
|
407
|
-
"fails": [
|
|
408
|
-
"genesis"
|
|
409
|
-
],
|
|
410
|
-
"name": "Genesis Unlock",
|
|
411
|
-
"script": "// unlock script is required, so we leave it empty",
|
|
412
|
-
"unlocks": "genesis_lock"
|
|
413
|
-
},
|
|
414
|
-
"send_unlock": {
|
|
415
|
-
"fails": [
|
|
416
|
-
"send"
|
|
417
|
-
],
|
|
418
|
-
"name": "Send Unlock",
|
|
419
|
-
"script": "",
|
|
420
|
-
"unlocks": "send_lock"
|
|
421
|
-
},
|
|
422
|
-
"mint_unlock": {
|
|
423
|
-
"fails": [
|
|
424
|
-
"mint"
|
|
425
|
-
],
|
|
426
|
-
"name": "Mint Unlock",
|
|
427
|
-
"script": "",
|
|
428
|
-
"unlocks": "mint_lock"
|
|
429
|
-
},
|
|
430
|
-
"genesis_lock": {
|
|
431
|
-
"lockingType": "standard",
|
|
432
|
-
"name": "Genesis",
|
|
433
|
-
"script": "OP_RETURN <'SLP'0x00> g_token_type <'GENESIS'> g_token_ticker g_token_name g_token_document_url g_token_document_hash g_decimals g_mint_baton_vout g_initial_token_mint_quantity"
|
|
434
|
-
},
|
|
435
|
-
"send_lock": {
|
|
436
|
-
"lockingType": "standard",
|
|
437
|
-
"name": "Send",
|
|
438
|
-
"script": "OP_RETURN <'SLP'0x00> s_token_type <'SEND'> <s_token_id> s_token_output_quantities"
|
|
439
|
-
},
|
|
440
|
-
"mint_lock": {
|
|
441
|
-
"lockingType": "standard",
|
|
442
|
-
"name": "Mint",
|
|
443
|
-
"script": "OP_RETURN <'SLP'0x00> m_token_type <'MINT'> <m_token_id> m_mint_baton_vout m_additional_token_quantity"
|
|
444
|
-
}
|
|
445
|
-
},
|
|
446
|
-
"supported": [
|
|
447
|
-
"BCH_2020_05"
|
|
448
|
-
],
|
|
449
|
-
"version": 0
|
|
450
|
-
};
|
|
451
|
-
//# sourceMappingURL=SlpLibAuth.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SlpLibAuth.js","sourceRoot":"","sources":["../../../src/slp/SlpLibAuth.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mCAAmC,EACnC,mBAAmB,EACnB,QAAQ,EACR,QAAQ,EACR,4BAA4B,EAE5B,SAAS,GACV,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,M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