@onekeyfe/hd-web-sdk 0.2.50-alpha.1 → 0.2.51
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/build/data/messages/messages.json +126 -0
- package/build/iframe.html +1 -1
- package/build/js/iframe.8bb1023e69151e276135.js +3 -0
- package/build/js/iframe.8bb1023e69151e276135.js.map +1 -0
- package/build/onekey-js-sdk.js +19 -45
- package/build/onekey-js-sdk.js.map +1 -1
- package/build/onekey-js-sdk.min.js +1 -1
- package/build/onekey-js-sdk.min.js.map +1 -1
- package/dist/index.d.ts +2 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -27
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/src/index.ts +3 -38
- package/build/js/iframe.d3d4afb627cf69ff32ea.js +0 -3
- package/build/js/iframe.d3d4afb627cf69ff32ea.js.map +0 -1
- /package/build/js/{iframe.d3d4afb627cf69ff32ea.js.LICENSE.txt → iframe.8bb1023e69151e276135.js.LICENSE.txt} +0 -0
|
@@ -4468,6 +4468,122 @@
|
|
|
4468
4468
|
}
|
|
4469
4469
|
}
|
|
4470
4470
|
},
|
|
4471
|
+
"KaspaGetAddress": {
|
|
4472
|
+
"fields": {
|
|
4473
|
+
"address_n": {
|
|
4474
|
+
"rule": "repeated",
|
|
4475
|
+
"type": "uint32",
|
|
4476
|
+
"id": 1,
|
|
4477
|
+
"options": {
|
|
4478
|
+
"packed": false
|
|
4479
|
+
}
|
|
4480
|
+
},
|
|
4481
|
+
"show_display": {
|
|
4482
|
+
"type": "bool",
|
|
4483
|
+
"id": 2
|
|
4484
|
+
},
|
|
4485
|
+
"prefix": {
|
|
4486
|
+
"type": "string",
|
|
4487
|
+
"id": 3,
|
|
4488
|
+
"options": {
|
|
4489
|
+
"default": "kaspa"
|
|
4490
|
+
}
|
|
4491
|
+
},
|
|
4492
|
+
"scheme": {
|
|
4493
|
+
"type": "string",
|
|
4494
|
+
"id": 4,
|
|
4495
|
+
"options": {
|
|
4496
|
+
"default": "schnorr"
|
|
4497
|
+
}
|
|
4498
|
+
}
|
|
4499
|
+
}
|
|
4500
|
+
},
|
|
4501
|
+
"KaspaAddress": {
|
|
4502
|
+
"fields": {
|
|
4503
|
+
"address": {
|
|
4504
|
+
"rule": "required",
|
|
4505
|
+
"type": "string",
|
|
4506
|
+
"id": 1
|
|
4507
|
+
}
|
|
4508
|
+
}
|
|
4509
|
+
},
|
|
4510
|
+
"KaspaSignTx": {
|
|
4511
|
+
"fields": {
|
|
4512
|
+
"address_n": {
|
|
4513
|
+
"rule": "repeated",
|
|
4514
|
+
"type": "uint32",
|
|
4515
|
+
"id": 1,
|
|
4516
|
+
"options": {
|
|
4517
|
+
"packed": false
|
|
4518
|
+
}
|
|
4519
|
+
},
|
|
4520
|
+
"raw_message": {
|
|
4521
|
+
"rule": "required",
|
|
4522
|
+
"type": "bytes",
|
|
4523
|
+
"id": 2
|
|
4524
|
+
},
|
|
4525
|
+
"scheme": {
|
|
4526
|
+
"type": "string",
|
|
4527
|
+
"id": 3,
|
|
4528
|
+
"options": {
|
|
4529
|
+
"default": "schnorr"
|
|
4530
|
+
}
|
|
4531
|
+
},
|
|
4532
|
+
"prefix": {
|
|
4533
|
+
"type": "string",
|
|
4534
|
+
"id": 4,
|
|
4535
|
+
"options": {
|
|
4536
|
+
"default": "kaspa"
|
|
4537
|
+
}
|
|
4538
|
+
},
|
|
4539
|
+
"input_count": {
|
|
4540
|
+
"type": "uint32",
|
|
4541
|
+
"id": 5,
|
|
4542
|
+
"options": {
|
|
4543
|
+
"default": 1
|
|
4544
|
+
}
|
|
4545
|
+
}
|
|
4546
|
+
}
|
|
4547
|
+
},
|
|
4548
|
+
"KaspaTxInputRequest": {
|
|
4549
|
+
"fields": {
|
|
4550
|
+
"request_index": {
|
|
4551
|
+
"rule": "required",
|
|
4552
|
+
"type": "uint32",
|
|
4553
|
+
"id": 1
|
|
4554
|
+
},
|
|
4555
|
+
"signature": {
|
|
4556
|
+
"type": "bytes",
|
|
4557
|
+
"id": 2
|
|
4558
|
+
}
|
|
4559
|
+
}
|
|
4560
|
+
},
|
|
4561
|
+
"KaspaTxInputAck": {
|
|
4562
|
+
"fields": {
|
|
4563
|
+
"address_n": {
|
|
4564
|
+
"rule": "repeated",
|
|
4565
|
+
"type": "uint32",
|
|
4566
|
+
"id": 1,
|
|
4567
|
+
"options": {
|
|
4568
|
+
"packed": false
|
|
4569
|
+
}
|
|
4570
|
+
},
|
|
4571
|
+
"raw_message": {
|
|
4572
|
+
"rule": "required",
|
|
4573
|
+
"type": "bytes",
|
|
4574
|
+
"id": 2
|
|
4575
|
+
}
|
|
4576
|
+
}
|
|
4577
|
+
},
|
|
4578
|
+
"KaspaSignedTx": {
|
|
4579
|
+
"fields": {
|
|
4580
|
+
"signature": {
|
|
4581
|
+
"rule": "required",
|
|
4582
|
+
"type": "bytes",
|
|
4583
|
+
"id": 2
|
|
4584
|
+
}
|
|
4585
|
+
}
|
|
4586
|
+
},
|
|
4471
4587
|
"BackupType": {
|
|
4472
4588
|
"values": {
|
|
4473
4589
|
"Bip39": 0,
|
|
@@ -4743,6 +4859,10 @@
|
|
|
4743
4859
|
"build_id": {
|
|
4744
4860
|
"type": "string",
|
|
4745
4861
|
"id": 518
|
|
4862
|
+
},
|
|
4863
|
+
"battery_level": {
|
|
4864
|
+
"type": "uint32",
|
|
4865
|
+
"id": 520
|
|
4746
4866
|
}
|
|
4747
4867
|
},
|
|
4748
4868
|
"nested": {
|
|
@@ -8936,6 +9056,12 @@
|
|
|
8936
9056
|
"MessageType_FilecoinAddress": 11201,
|
|
8937
9057
|
"MessageType_FilecoinSignTx": 11202,
|
|
8938
9058
|
"MessageType_FilecoinSignedTx": 11203,
|
|
9059
|
+
"MessageType_KaspaGetAddress": 11300,
|
|
9060
|
+
"MessageType_KaspaAddress": 11301,
|
|
9061
|
+
"MessageType_KaspaSignTx": 11302,
|
|
9062
|
+
"MessageType_KaspaSignedTx": 11303,
|
|
9063
|
+
"MessageType_KaspaTxInputRequest": 11304,
|
|
9064
|
+
"MessageType_KaspaTxInputAck": 11305,
|
|
8939
9065
|
"MessageType_DeviceBackToBoot": 903,
|
|
8940
9066
|
"MessageType_DeviceInfoSettings": 10001,
|
|
8941
9067
|
"MessageType_GetDeviceInfo": 10002,
|
package/build/iframe.html
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
const iframeScript = document.createElement('script');
|
|
26
26
|
iframeScript.setAttribute('type', 'text/javascript');
|
|
27
|
-
iframeScript.setAttribute('src', './js/iframe.
|
|
27
|
+
iframeScript.setAttribute('src', './js/iframe.8bb1023e69151e276135.js');
|
|
28
28
|
iframeScript.setAttribute('async', 'false');
|
|
29
29
|
document.body.appendChild(iframeScript);
|
|
30
30
|
</script>
|