@arkade-os/sdk 0.4.26 → 0.4.28
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/README.md +36 -125
- package/dist/adapters/asyncStorage.cjs +48 -0
- package/dist/adapters/asyncStorage.cjs.map +1 -0
- package/dist/adapters/asyncStorage.d.cts +16 -0
- package/dist/{types/storage → adapters}/asyncStorage.d.ts +5 -2
- package/dist/adapters/asyncStorage.js +46 -0
- package/dist/adapters/asyncStorage.js.map +1 -0
- package/dist/adapters/expo.cjs +19 -0
- package/dist/adapters/expo.cjs.map +1 -0
- package/dist/adapters/expo.d.cts +48 -0
- package/dist/adapters/expo.d.ts +48 -0
- package/dist/adapters/expo.js +6 -0
- package/dist/adapters/expo.js.map +1 -0
- package/dist/adapters/fileSystem.cjs +116 -0
- package/dist/adapters/fileSystem.cjs.map +1 -0
- package/dist/adapters/fileSystem.d.cts +17 -0
- package/dist/{types/storage → adapters}/fileSystem.d.ts +5 -2
- package/dist/adapters/fileSystem.js +93 -0
- package/dist/adapters/fileSystem.js.map +1 -0
- package/dist/adapters/indexedDB.cjs +103 -0
- package/dist/adapters/indexedDB.cjs.map +1 -0
- package/dist/adapters/indexedDB.d.cts +18 -0
- package/dist/{types/storage → adapters}/indexedDB.d.ts +5 -2
- package/dist/adapters/indexedDB.js +101 -0
- package/dist/adapters/indexedDB.js.map +1 -0
- package/dist/adapters/localStorage.cjs +50 -0
- package/dist/adapters/localStorage.cjs.map +1 -0
- package/dist/{types/storage/inMemory.d.ts → adapters/localStorage.d.cts} +6 -3
- package/dist/{types/storage → adapters}/localStorage.d.ts +5 -2
- package/dist/adapters/localStorage.js +48 -0
- package/dist/adapters/localStorage.js.map +1 -0
- package/dist/ark-TZ1gXAXU.d.cts +3880 -0
- package/dist/ark-TZ1gXAXU.d.ts +3880 -0
- package/dist/{types/worker/expo/asyncStorageTaskQueue.d.ts → asyncStorageTaskQueue-Cb1F_Z9s.d.ts} +6 -3
- package/dist/asyncStorageTaskQueue-EFqSmYTg.d.cts +49 -0
- package/dist/chunk-5BLDMQED.cjs +18 -0
- package/dist/chunk-5BLDMQED.cjs.map +1 -0
- package/dist/chunk-5PG7DV7A.cjs +805 -0
- package/dist/chunk-5PG7DV7A.cjs.map +1 -0
- package/dist/chunk-A3EMF7RN.js +95 -0
- package/dist/chunk-A3EMF7RN.js.map +1 -0
- package/dist/chunk-ADV27S4N.cjs +2701 -0
- package/dist/chunk-ADV27S4N.cjs.map +1 -0
- package/dist/chunk-BQLHADL7.js +13805 -0
- package/dist/chunk-BQLHADL7.js.map +1 -0
- package/dist/chunk-CFZMTDWI.js +209 -0
- package/dist/chunk-CFZMTDWI.js.map +1 -0
- package/dist/chunk-FG5ACJJW.cjs +212 -0
- package/dist/chunk-FG5ACJJW.cjs.map +1 -0
- package/dist/chunk-HW3JJ323.js +768 -0
- package/dist/chunk-HW3JJ323.js.map +1 -0
- package/dist/chunk-I3DGUUCT.cjs +838 -0
- package/dist/chunk-I3DGUUCT.cjs.map +1 -0
- package/dist/chunk-IPX2R7FR.cjs +100 -0
- package/dist/chunk-IPX2R7FR.cjs.map +1 -0
- package/dist/chunk-NSBPE2FW.js +15 -0
- package/dist/chunk-NSBPE2FW.js.map +1 -0
- package/dist/chunk-T64LAI7L.js +829 -0
- package/dist/chunk-T64LAI7L.js.map +1 -0
- package/dist/chunk-ZBUDLTBO.js +2671 -0
- package/dist/chunk-ZBUDLTBO.js.map +1 -0
- package/dist/chunk-ZLO6NETT.cjs +13910 -0
- package/dist/chunk-ZLO6NETT.cjs.map +1 -0
- package/dist/contracts/handlers/index.cjs +26 -0
- package/dist/contracts/handlers/index.cjs.map +1 -0
- package/dist/contracts/handlers/index.d.cts +7 -0
- package/dist/contracts/handlers/index.d.ts +7 -0
- package/dist/contracts/handlers/index.js +5 -0
- package/dist/contracts/handlers/index.js.map +1 -0
- package/dist/delegate-BFZs69hp.d.cts +84 -0
- package/dist/delegate-aaVGfWsV.d.ts +84 -0
- package/dist/index-B22cA64m.d.cts +199 -0
- package/dist/{types/storage/index.d.ts → index-C0IanN1m.d.cts} +3 -1
- package/dist/index-C0IanN1m.d.ts +11 -0
- package/dist/index-NDla_UoJ.d.ts +199 -0
- package/dist/index.cjs +480 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +3343 -0
- package/dist/index.d.ts +3343 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/repositories/realm/index.cjs +513 -0
- package/dist/repositories/realm/index.cjs.map +1 -0
- package/dist/repositories/realm/index.d.cts +217 -0
- package/dist/{types/repositories/realm/schemas.d.ts → repositories/realm/index.d.ts} +80 -112
- package/dist/repositories/realm/index.js +507 -0
- package/dist/repositories/realm/index.js.map +1 -0
- package/dist/repositories/sqlite/index.cjs +588 -0
- package/dist/repositories/sqlite/index.cjs.map +1 -0
- package/dist/repositories/sqlite/index.d.cts +118 -0
- package/dist/{types/repositories/sqlite/walletRepository.d.ts → repositories/sqlite/index.d.ts} +58 -5
- package/dist/repositories/sqlite/index.js +585 -0
- package/dist/repositories/sqlite/index.js.map +1 -0
- package/dist/taskRunner-C6Ff4OaU.d.cts +114 -0
- package/dist/taskRunner-yvPN8Z0K.d.ts +114 -0
- package/dist/wallet/expo/background.cjs +93 -0
- package/dist/wallet/expo/background.cjs.map +1 -0
- package/dist/wallet/expo/background.d.cts +84 -0
- package/dist/wallet/expo/background.d.ts +84 -0
- package/dist/wallet/expo/background.js +68 -0
- package/dist/wallet/expo/background.js.map +1 -0
- package/dist/wallet/expo/index.cjs +171 -0
- package/dist/wallet/expo/index.cjs.map +1 -0
- package/dist/wallet/expo/index.d.cts +122 -0
- package/dist/{types/wallet/expo/wallet.d.ts → wallet/expo/index.d.ts} +45 -22
- package/dist/wallet/expo/index.js +169 -0
- package/dist/wallet/expo/index.js.map +1 -0
- package/dist/wallet-AF-p-OWj.d.cts +774 -0
- package/dist/wallet-D9NBRqvC.d.ts +774 -0
- package/dist/worker/expo/index.cjs +140 -0
- package/dist/worker/expo/index.cjs.map +1 -0
- package/dist/worker/expo/index.d.cts +29 -0
- package/dist/worker/expo/index.d.ts +29 -0
- package/dist/worker/expo/index.js +121 -0
- package/dist/worker/expo/index.js.map +1 -0
- package/package.json +110 -76
- package/dist/cjs/adapters/asyncStorage.js +0 -5
- package/dist/cjs/adapters/expo.js +0 -8
- package/dist/cjs/adapters/fileSystem.js +0 -5
- package/dist/cjs/adapters/indexedDB.js +0 -5
- package/dist/cjs/adapters/localStorage.js +0 -5
- package/dist/cjs/arkfee/celenv.js +0 -43
- package/dist/cjs/arkfee/estimator.js +0 -143
- package/dist/cjs/arkfee/index.js +0 -5
- package/dist/cjs/arkfee/types.js +0 -26
- package/dist/cjs/arknote/index.js +0 -128
- package/dist/cjs/bip322/index.js +0 -270
- package/dist/cjs/contracts/arkcontract.js +0 -147
- package/dist/cjs/contracts/contractManager.js +0 -629
- package/dist/cjs/contracts/contractWatcher.js +0 -598
- package/dist/cjs/contracts/handlers/default.js +0 -93
- package/dist/cjs/contracts/handlers/delegate.js +0 -90
- package/dist/cjs/contracts/handlers/helpers.js +0 -115
- package/dist/cjs/contracts/handlers/index.js +0 -19
- package/dist/cjs/contracts/handlers/registry.js +0 -89
- package/dist/cjs/contracts/handlers/vhtlc.js +0 -194
- package/dist/cjs/contracts/index.js +0 -41
- package/dist/cjs/contracts/types.js +0 -2
- package/dist/cjs/contracts/vtxoOwnership.js +0 -78
- package/dist/cjs/extension/asset/assetGroup.js +0 -228
- package/dist/cjs/extension/asset/assetId.js +0 -152
- package/dist/cjs/extension/asset/assetInput.js +0 -222
- package/dist/cjs/extension/asset/assetOutput.js +0 -174
- package/dist/cjs/extension/asset/assetRef.js +0 -148
- package/dist/cjs/extension/asset/index.js +0 -23
- package/dist/cjs/extension/asset/metadata.js +0 -187
- package/dist/cjs/extension/asset/packet.js +0 -114
- package/dist/cjs/extension/asset/types.js +0 -22
- package/dist/cjs/extension/asset/utils.js +0 -105
- package/dist/cjs/extension/index.js +0 -254
- package/dist/cjs/extension/packet.js +0 -20
- package/dist/cjs/forfeit.js +0 -45
- package/dist/cjs/identity/descriptor.js +0 -169
- package/dist/cjs/identity/descriptorProvider.js +0 -2
- package/dist/cjs/identity/hdCapableIdentity.js +0 -2
- package/dist/cjs/identity/index.js +0 -38
- package/dist/cjs/identity/seedIdentity.js +0 -461
- package/dist/cjs/identity/serialize.js +0 -171
- package/dist/cjs/identity/singleKey.js +0 -126
- package/dist/cjs/identity/staticDescriptorProvider.js +0 -65
- package/dist/cjs/index.js +0 -200
- package/dist/cjs/intent/index.js +0 -259
- package/dist/cjs/musig2/index.js +0 -11
- package/dist/cjs/musig2/keys.js +0 -57
- package/dist/cjs/musig2/nonces.js +0 -48
- package/dist/cjs/musig2/sign.js +0 -102
- package/dist/cjs/networks.js +0 -26
- package/dist/cjs/package.json +0 -3
- package/dist/cjs/providers/ark.js +0 -577
- package/dist/cjs/providers/delegator.js +0 -85
- package/dist/cjs/providers/electrum.js +0 -869
- package/dist/cjs/providers/errors.js +0 -59
- package/dist/cjs/providers/expoArk.js +0 -82
- package/dist/cjs/providers/expoIndexer.js +0 -111
- package/dist/cjs/providers/expoUtils.js +0 -124
- package/dist/cjs/providers/indexer.js +0 -630
- package/dist/cjs/providers/onchain.js +0 -262
- package/dist/cjs/providers/utils.js +0 -121
- package/dist/cjs/repositories/contractRepository.js +0 -2
- package/dist/cjs/repositories/inMemory/contractRepository.js +0 -55
- package/dist/cjs/repositories/inMemory/walletRepository.js +0 -115
- package/dist/cjs/repositories/index.js +0 -34
- package/dist/cjs/repositories/indexedDB/contractRepository.js +0 -187
- package/dist/cjs/repositories/indexedDB/db.js +0 -19
- package/dist/cjs/repositories/indexedDB/manager.js +0 -100
- package/dist/cjs/repositories/indexedDB/schema.js +0 -204
- package/dist/cjs/repositories/indexedDB/walletRepository.js +0 -474
- package/dist/cjs/repositories/indexedDB/websqlAdapter.js +0 -144
- package/dist/cjs/repositories/migrations/contractRepositoryImpl.js +0 -127
- package/dist/cjs/repositories/migrations/fromStorageAdapter.js +0 -66
- package/dist/cjs/repositories/migrations/walletRepositoryImpl.js +0 -184
- package/dist/cjs/repositories/realm/contractRepository.js +0 -116
- package/dist/cjs/repositories/realm/index.js +0 -11
- package/dist/cjs/repositories/realm/schemas.js +0 -157
- package/dist/cjs/repositories/realm/types.js +0 -7
- package/dist/cjs/repositories/realm/walletRepository.js +0 -305
- package/dist/cjs/repositories/scriptFromAddress.js +0 -16
- package/dist/cjs/repositories/serialization.js +0 -82
- package/dist/cjs/repositories/sqlite/contractRepository.js +0 -135
- package/dist/cjs/repositories/sqlite/index.js +0 -7
- package/dist/cjs/repositories/sqlite/types.js +0 -2
- package/dist/cjs/repositories/sqlite/walletRepository.js +0 -441
- package/dist/cjs/repositories/walletRepository.js +0 -2
- package/dist/cjs/script/address.js +0 -108
- package/dist/cjs/script/base.js +0 -185
- package/dist/cjs/script/default.js +0 -57
- package/dist/cjs/script/delegate.js +0 -53
- package/dist/cjs/script/tapscript.js +0 -619
- package/dist/cjs/script/vhtlc.js +0 -170
- package/dist/cjs/storage/asyncStorage.js +0 -50
- package/dist/cjs/storage/fileSystem.js +0 -141
- package/dist/cjs/storage/inMemory.js +0 -24
- package/dist/cjs/storage/index.js +0 -2
- package/dist/cjs/storage/indexedDB.js +0 -101
- package/dist/cjs/storage/localStorage.js +0 -51
- package/dist/cjs/tree/signingSession.js +0 -229
- package/dist/cjs/tree/txTree.js +0 -192
- package/dist/cjs/tree/validation.js +0 -107
- package/dist/cjs/utils/anchor.js +0 -35
- package/dist/cjs/utils/arkTransaction.js +0 -271
- package/dist/cjs/utils/bip21.js +0 -127
- package/dist/cjs/utils/syncCursors.js +0 -128
- package/dist/cjs/utils/timelock.js +0 -59
- package/dist/cjs/utils/transaction.js +0 -28
- package/dist/cjs/utils/transactionHistory.js +0 -183
- package/dist/cjs/utils/txSizeEstimator.js +0 -132
- package/dist/cjs/utils/unknownFields.js +0 -174
- package/dist/cjs/wallet/asset-manager.js +0 -330
- package/dist/cjs/wallet/asset.js +0 -119
- package/dist/cjs/wallet/batch.js +0 -183
- package/dist/cjs/wallet/delegator.js +0 -302
- package/dist/cjs/wallet/expo/background.js +0 -116
- package/dist/cjs/wallet/expo/index.js +0 -9
- package/dist/cjs/wallet/expo/wallet.js +0 -230
- package/dist/cjs/wallet/hdDescriptorProvider.js +0 -159
- package/dist/cjs/wallet/index.js +0 -82
- package/dist/cjs/wallet/onchain.js +0 -290
- package/dist/cjs/wallet/ramps.js +0 -216
- package/dist/cjs/wallet/serviceWorker/wallet-message-handler.js +0 -953
- package/dist/cjs/wallet/serviceWorker/wallet.js +0 -1173
- package/dist/cjs/wallet/unroll.js +0 -289
- package/dist/cjs/wallet/utils.js +0 -111
- package/dist/cjs/wallet/validation.js +0 -154
- package/dist/cjs/wallet/vtxo-manager.js +0 -1142
- package/dist/cjs/wallet/wallet.js +0 -2049
- package/dist/cjs/worker/browser/service-worker-manager.js +0 -183
- package/dist/cjs/worker/browser/utils.js +0 -67
- package/dist/cjs/worker/errors.js +0 -16
- package/dist/cjs/worker/expo/asyncStorageTaskQueue.js +0 -78
- package/dist/cjs/worker/expo/index.js +0 -13
- package/dist/cjs/worker/expo/processors/contractPollProcessor.js +0 -62
- package/dist/cjs/worker/expo/processors/index.js +0 -6
- package/dist/cjs/worker/expo/taskQueue.js +0 -41
- package/dist/cjs/worker/expo/taskRunner.js +0 -73
- package/dist/cjs/worker/messageBus.js +0 -473
- package/dist/esm/adapters/asyncStorage.js +0 -1
- package/dist/esm/adapters/expo.js +0 -3
- package/dist/esm/adapters/fileSystem.js +0 -1
- package/dist/esm/adapters/indexedDB.js +0 -1
- package/dist/esm/adapters/localStorage.js +0 -1
- package/dist/esm/arkfee/celenv.js +0 -40
- package/dist/esm/arkfee/estimator.js +0 -139
- package/dist/esm/arkfee/index.js +0 -1
- package/dist/esm/arkfee/types.js +0 -22
- package/dist/esm/arknote/index.js +0 -124
- package/dist/esm/bip322/index.js +0 -267
- package/dist/esm/contracts/arkcontract.js +0 -140
- package/dist/esm/contracts/contractManager.js +0 -625
- package/dist/esm/contracts/contractWatcher.js +0 -594
- package/dist/esm/contracts/handlers/default.js +0 -90
- package/dist/esm/contracts/handlers/delegate.js +0 -87
- package/dist/esm/contracts/handlers/helpers.js +0 -110
- package/dist/esm/contracts/handlers/index.js +0 -12
- package/dist/esm/contracts/handlers/registry.js +0 -86
- package/dist/esm/contracts/handlers/vhtlc.js +0 -191
- package/dist/esm/contracts/index.js +0 -13
- package/dist/esm/contracts/types.js +0 -1
- package/dist/esm/contracts/vtxoOwnership.js +0 -69
- package/dist/esm/extension/asset/assetGroup.js +0 -224
- package/dist/esm/extension/asset/assetId.js +0 -148
- package/dist/esm/extension/asset/assetInput.js +0 -217
- package/dist/esm/extension/asset/assetOutput.js +0 -169
- package/dist/esm/extension/asset/assetRef.js +0 -144
- package/dist/esm/extension/asset/index.js +0 -8
- package/dist/esm/extension/asset/metadata.js +0 -182
- package/dist/esm/extension/asset/packet.js +0 -110
- package/dist/esm/extension/asset/types.js +0 -19
- package/dist/esm/extension/asset/utils.js +0 -99
- package/dist/esm/extension/index.js +0 -248
- package/dist/esm/extension/packet.js +0 -16
- package/dist/esm/forfeit.js +0 -41
- package/dist/esm/identity/descriptor.js +0 -161
- package/dist/esm/identity/descriptorProvider.js +0 -1
- package/dist/esm/identity/hdCapableIdentity.js +0 -1
- package/dist/esm/identity/index.js +0 -12
- package/dist/esm/identity/seedIdentity.js +0 -453
- package/dist/esm/identity/serialize.js +0 -164
- package/dist/esm/identity/singleKey.js +0 -121
- package/dist/esm/identity/staticDescriptorProvider.js +0 -61
- package/dist/esm/index.js +0 -87
- package/dist/esm/intent/index.js +0 -255
- package/dist/esm/musig2/index.js +0 -3
- package/dist/esm/musig2/keys.js +0 -21
- package/dist/esm/musig2/nonces.js +0 -11
- package/dist/esm/musig2/sign.js +0 -63
- package/dist/esm/networks.js +0 -22
- package/dist/esm/package.json +0 -3
- package/dist/esm/providers/ark.js +0 -572
- package/dist/esm/providers/delegator.js +0 -81
- package/dist/esm/providers/electrum.js +0 -864
- package/dist/esm/providers/errors.js +0 -54
- package/dist/esm/providers/expoArk.js +0 -78
- package/dist/esm/providers/expoIndexer.js +0 -107
- package/dist/esm/providers/expoUtils.js +0 -87
- package/dist/esm/providers/indexer.js +0 -626
- package/dist/esm/providers/onchain.js +0 -258
- package/dist/esm/providers/utils.js +0 -117
- package/dist/esm/repositories/contractRepository.js +0 -1
- package/dist/esm/repositories/inMemory/contractRepository.js +0 -51
- package/dist/esm/repositories/inMemory/walletRepository.js +0 -111
- package/dist/esm/repositories/index.js +0 -10
- package/dist/esm/repositories/indexedDB/contractRepository.js +0 -183
- package/dist/esm/repositories/indexedDB/db.js +0 -4
- package/dist/esm/repositories/indexedDB/manager.js +0 -95
- package/dist/esm/repositories/indexedDB/schema.js +0 -199
- package/dist/esm/repositories/indexedDB/walletRepository.js +0 -470
- package/dist/esm/repositories/indexedDB/websqlAdapter.js +0 -138
- package/dist/esm/repositories/migrations/contractRepositoryImpl.js +0 -121
- package/dist/esm/repositories/migrations/fromStorageAdapter.js +0 -58
- package/dist/esm/repositories/migrations/walletRepositoryImpl.js +0 -180
- package/dist/esm/repositories/realm/contractRepository.js +0 -112
- package/dist/esm/repositories/realm/index.js +0 -3
- package/dist/esm/repositories/realm/schemas.js +0 -153
- package/dist/esm/repositories/realm/types.js +0 -6
- package/dist/esm/repositories/realm/walletRepository.js +0 -301
- package/dist/esm/repositories/scriptFromAddress.js +0 -13
- package/dist/esm/repositories/serialization.js +0 -67
- package/dist/esm/repositories/sqlite/contractRepository.js +0 -131
- package/dist/esm/repositories/sqlite/index.js +0 -2
- package/dist/esm/repositories/sqlite/types.js +0 -1
- package/dist/esm/repositories/sqlite/walletRepository.js +0 -437
- package/dist/esm/repositories/walletRepository.js +0 -1
- package/dist/esm/script/address.js +0 -104
- package/dist/esm/script/base.js +0 -179
- package/dist/esm/script/default.js +0 -54
- package/dist/esm/script/delegate.js +0 -50
- package/dist/esm/script/tapscript.js +0 -615
- package/dist/esm/script/vhtlc.js +0 -167
- package/dist/esm/storage/asyncStorage.js +0 -46
- package/dist/esm/storage/fileSystem.js +0 -104
- package/dist/esm/storage/inMemory.js +0 -20
- package/dist/esm/storage/index.js +0 -1
- package/dist/esm/storage/indexedDB.js +0 -97
- package/dist/esm/storage/localStorage.js +0 -47
- package/dist/esm/tree/signingSession.js +0 -191
- package/dist/esm/tree/txTree.js +0 -188
- package/dist/esm/tree/validation.js +0 -101
- package/dist/esm/utils/anchor.js +0 -31
- package/dist/esm/utils/arkTransaction.js +0 -264
- package/dist/esm/utils/bip21.js +0 -123
- package/dist/esm/utils/syncCursors.js +0 -119
- package/dist/esm/utils/timelock.js +0 -22
- package/dist/esm/utils/transaction.js +0 -24
- package/dist/esm/utils/transactionHistory.js +0 -180
- package/dist/esm/utils/txSizeEstimator.js +0 -128
- package/dist/esm/utils/unknownFields.js +0 -169
- package/dist/esm/wallet/asset-manager.js +0 -325
- package/dist/esm/wallet/asset.js +0 -113
- package/dist/esm/wallet/batch.js +0 -180
- package/dist/esm/wallet/delegator.js +0 -297
- package/dist/esm/wallet/expo/background.js +0 -111
- package/dist/esm/wallet/expo/index.js +0 -2
- package/dist/esm/wallet/expo/wallet.js +0 -193
- package/dist/esm/wallet/hdDescriptorProvider.js +0 -155
- package/dist/esm/wallet/index.js +0 -75
- package/dist/esm/wallet/onchain.js +0 -285
- package/dist/esm/wallet/ramps.js +0 -212
- package/dist/esm/wallet/serviceWorker/wallet-message-handler.js +0 -946
- package/dist/esm/wallet/serviceWorker/wallet.js +0 -1168
- package/dist/esm/wallet/unroll.js +0 -285
- package/dist/esm/wallet/utils.js +0 -103
- package/dist/esm/wallet/validation.js +0 -142
- package/dist/esm/wallet/vtxo-manager.js +0 -1136
- package/dist/esm/wallet/wallet.js +0 -2041
- package/dist/esm/worker/browser/service-worker-manager.js +0 -177
- package/dist/esm/worker/browser/utils.js +0 -63
- package/dist/esm/worker/errors.js +0 -11
- package/dist/esm/worker/expo/asyncStorageTaskQueue.js +0 -74
- package/dist/esm/worker/expo/index.js +0 -4
- package/dist/esm/worker/expo/processors/contractPollProcessor.js +0 -59
- package/dist/esm/worker/expo/processors/index.js +0 -1
- package/dist/esm/worker/expo/taskQueue.js +0 -37
- package/dist/esm/worker/expo/taskRunner.js +0 -69
- package/dist/esm/worker/messageBus.js +0 -469
- package/dist/types/adapters/asyncStorage.d.ts +0 -2
- package/dist/types/adapters/expo.d.ts +0 -4
- package/dist/types/adapters/fileSystem.d.ts +0 -2
- package/dist/types/adapters/indexedDB.d.ts +0 -2
- package/dist/types/adapters/localStorage.d.ts +0 -2
- package/dist/types/arkfee/celenv.d.ts +0 -25
- package/dist/types/arkfee/estimator.d.ts +0 -49
- package/dist/types/arkfee/index.d.ts +0 -2
- package/dist/types/arkfee/types.d.ts +0 -38
- package/dist/types/arknote/index.d.ts +0 -84
- package/dist/types/bip322/index.d.ts +0 -55
- package/dist/types/contracts/arkcontract.d.ts +0 -99
- package/dist/types/contracts/contractManager.d.ts +0 -381
- package/dist/types/contracts/contractWatcher.d.ts +0 -217
- package/dist/types/contracts/handlers/default.d.ts +0 -19
- package/dist/types/contracts/handlers/delegate.d.ts +0 -21
- package/dist/types/contracts/handlers/helpers.d.ts +0 -19
- package/dist/types/contracts/handlers/index.d.ts +0 -7
- package/dist/types/contracts/handlers/registry.d.ts +0 -65
- package/dist/types/contracts/handlers/vhtlc.d.ts +0 -32
- package/dist/types/contracts/index.d.ts +0 -14
- package/dist/types/contracts/types.d.ts +0 -233
- package/dist/types/contracts/vtxoOwnership.d.ts +0 -33
- package/dist/types/extension/asset/assetGroup.d.ts +0 -119
- package/dist/types/extension/asset/assetId.d.ts +0 -83
- package/dist/types/extension/asset/assetInput.d.ts +0 -64
- package/dist/types/extension/asset/assetOutput.d.ts +0 -54
- package/dist/types/extension/asset/assetRef.d.ts +0 -91
- package/dist/types/extension/asset/index.d.ts +0 -8
- package/dist/types/extension/asset/metadata.d.ts +0 -52
- package/dist/types/extension/asset/packet.d.ts +0 -41
- package/dist/types/extension/asset/types.d.ts +0 -16
- package/dist/types/extension/asset/utils.d.ts +0 -21
- package/dist/types/extension/index.d.ts +0 -56
- package/dist/types/extension/packet.d.ts +0 -21
- package/dist/types/forfeit.d.ts +0 -18
- package/dist/types/identity/descriptor.d.ts +0 -61
- package/dist/types/identity/descriptorProvider.d.ts +0 -35
- package/dist/types/identity/hdCapableIdentity.d.ts +0 -44
- package/dist/types/identity/index.d.ts +0 -56
- package/dist/types/identity/seedIdentity.d.ts +0 -254
- package/dist/types/identity/serialize.d.ts +0 -96
- package/dist/types/identity/singleKey.d.ts +0 -62
- package/dist/types/identity/staticDescriptorProvider.d.ts +0 -18
- package/dist/types/index.d.ts +0 -59
- package/dist/types/intent/index.d.ts +0 -86
- package/dist/types/musig2/index.d.ts +0 -4
- package/dist/types/musig2/keys.d.ts +0 -9
- package/dist/types/musig2/nonces.d.ts +0 -14
- package/dist/types/musig2/sign.d.ts +0 -27
- package/dist/types/networks.d.ts +0 -16
- package/dist/types/providers/ark.d.ts +0 -369
- package/dist/types/providers/delegator.d.ts +0 -82
- package/dist/types/providers/electrum.d.ts +0 -312
- package/dist/types/providers/errors.d.ts +0 -13
- package/dist/types/providers/expoArk.d.ts +0 -22
- package/dist/types/providers/expoIndexer.d.ts +0 -18
- package/dist/types/providers/expoUtils.d.ts +0 -18
- package/dist/types/providers/indexer.d.ts +0 -301
- package/dist/types/providers/onchain.d.ts +0 -148
- package/dist/types/providers/utils.d.ts +0 -12
- package/dist/types/repositories/contractRepository.d.ts +0 -32
- package/dist/types/repositories/inMemory/contractRepository.d.ts +0 -17
- package/dist/types/repositories/inMemory/walletRepository.d.ts +0 -29
- package/dist/types/repositories/index.d.ts +0 -9
- package/dist/types/repositories/indexedDB/contractRepository.d.ts +0 -21
- package/dist/types/repositories/indexedDB/db.d.ts +0 -4
- package/dist/types/repositories/indexedDB/manager.d.ts +0 -25
- package/dist/types/repositories/indexedDB/schema.d.ts +0 -9
- package/dist/types/repositories/indexedDB/walletRepository.d.ts +0 -28
- package/dist/types/repositories/indexedDB/websqlAdapter.d.ts +0 -49
- package/dist/types/repositories/migrations/contractRepositoryImpl.d.ts +0 -24
- package/dist/types/repositories/migrations/fromStorageAdapter.d.ts +0 -19
- package/dist/types/repositories/migrations/walletRepositoryImpl.d.ts +0 -27
- package/dist/types/repositories/realm/contractRepository.d.ts +0 -24
- package/dist/types/repositories/realm/index.d.ts +0 -4
- package/dist/types/repositories/realm/types.d.ts +0 -16
- package/dist/types/repositories/realm/walletRepository.d.ts +0 -34
- package/dist/types/repositories/scriptFromAddress.d.ts +0 -9
- package/dist/types/repositories/serialization.d.ts +0 -65
- package/dist/types/repositories/sqlite/contractRepository.d.ts +0 -33
- package/dist/types/repositories/sqlite/index.d.ts +0 -3
- package/dist/types/repositories/sqlite/types.d.ts +0 -18
- package/dist/types/repositories/walletRepository.d.ts +0 -72
- package/dist/types/script/address.d.ts +0 -67
- package/dist/types/script/base.d.ts +0 -105
- package/dist/types/script/default.d.ts +0 -44
- package/dist/types/script/delegate.d.ts +0 -40
- package/dist/types/script/tapscript.d.ts +0 -169
- package/dist/types/script/vhtlc.d.ts +0 -66
- package/dist/types/tree/signingSession.d.ts +0 -37
- package/dist/types/tree/txTree.d.ts +0 -28
- package/dist/types/tree/validation.d.ts +0 -15
- package/dist/types/utils/anchor.d.ts +0 -19
- package/dist/types/utils/arkTransaction.d.ts +0 -49
- package/dist/types/utils/bip21.d.ts +0 -38
- package/dist/types/utils/syncCursors.d.ts +0 -60
- package/dist/types/utils/timelock.d.ts +0 -9
- package/dist/types/utils/transaction.d.ts +0 -13
- package/dist/types/utils/transactionHistory.d.ts +0 -15
- package/dist/types/utils/txSizeEstimator.d.ts +0 -40
- package/dist/types/utils/unknownFields.d.ts +0 -83
- package/dist/types/wallet/asset-manager.d.ts +0 -69
- package/dist/types/wallet/asset.d.ts +0 -21
- package/dist/types/wallet/batch.d.ts +0 -107
- package/dist/types/wallet/delegator.d.ts +0 -48
- package/dist/types/wallet/expo/background.d.ts +0 -66
- package/dist/types/wallet/expo/index.d.ts +0 -4
- package/dist/types/wallet/hdDescriptorProvider.d.ts +0 -93
- package/dist/types/wallet/index.d.ts +0 -755
- package/dist/types/wallet/onchain.d.ts +0 -109
- package/dist/types/wallet/ramps.d.ts +0 -64
- package/dist/types/wallet/serviceWorker/wallet-message-handler.d.ts +0 -543
- package/dist/types/wallet/serviceWorker/wallet.d.ts +0 -238
- package/dist/types/wallet/unroll.d.ts +0 -114
- package/dist/types/wallet/utils.d.ts +0 -36
- package/dist/types/wallet/validation.d.ts +0 -24
- package/dist/types/wallet/vtxo-manager.d.ts +0 -476
- package/dist/types/wallet/wallet.d.ts +0 -360
- package/dist/types/worker/browser/service-worker-manager.d.ts +0 -32
- package/dist/types/worker/browser/utils.d.ts +0 -17
- package/dist/types/worker/errors.d.ts +0 -7
- package/dist/types/worker/expo/index.d.ts +0 -7
- package/dist/types/worker/expo/processors/contractPollProcessor.d.ts +0 -19
- package/dist/types/worker/expo/processors/index.d.ts +0 -1
- package/dist/types/worker/expo/taskQueue.d.ts +0 -50
- package/dist/types/worker/expo/taskRunner.d.ts +0 -66
- package/dist/types/worker/messageBus.d.ts +0 -188
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import type { NetworkName } from "../networks.js";
|
|
2
|
-
import { Coin } from "../wallet/index.js";
|
|
3
|
-
/**
|
|
4
|
-
* The default base URLs for esplora API providers.
|
|
5
|
-
*
|
|
6
|
-
* Mainnet, mutinynet, and signet point at Ark Labs–operated
|
|
7
|
-
* mempool deployments (mempool.space-compatible esplora API).
|
|
8
|
-
* Testnet falls back to the public mempool.space deployment
|
|
9
|
-
* because Ark doesn't host it. Regtest assumes a local nigiri
|
|
10
|
-
* stack on the standard port.
|
|
11
|
-
*/
|
|
12
|
-
export declare const ESPLORA_URL: Record<NetworkName, string>;
|
|
13
|
-
export type ExplorerTransaction = {
|
|
14
|
-
txid: string;
|
|
15
|
-
vout: {
|
|
16
|
-
scriptpubkey_address: string;
|
|
17
|
-
value: string;
|
|
18
|
-
}[];
|
|
19
|
-
status: {
|
|
20
|
-
confirmed: boolean;
|
|
21
|
-
block_time: number;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export interface OnchainProvider {
|
|
25
|
-
/**
|
|
26
|
-
* Fetch spendable onchain outputs for an address.
|
|
27
|
-
*
|
|
28
|
-
* @param address - Bitcoin address to query
|
|
29
|
-
* @returns Spendable onchain outputs for the address
|
|
30
|
-
* @see Coin
|
|
31
|
-
*/
|
|
32
|
-
getCoins(address: string): Promise<Coin[]>;
|
|
33
|
-
/**
|
|
34
|
-
* Fetch the current fastest fee rate estimate.
|
|
35
|
-
*
|
|
36
|
-
* @returns Fee rate in sats/vB, if available
|
|
37
|
-
* @remarks
|
|
38
|
-
* Implementations may return `undefined` when the backing service does not expose
|
|
39
|
-
* a usable fee estimate.
|
|
40
|
-
*/
|
|
41
|
-
getFeeRate(): Promise<number | undefined>;
|
|
42
|
-
/**
|
|
43
|
-
* Broadcast a single transaction or a 1P1C package.
|
|
44
|
-
*
|
|
45
|
-
* @param txs - One or more raw transaction hex strings
|
|
46
|
-
* @returns Broadcast transaction id
|
|
47
|
-
* @throws Error if the broadcast request fails or the package shape is invalid
|
|
48
|
-
*/
|
|
49
|
-
broadcastTransaction(...txs: string[]): Promise<string>;
|
|
50
|
-
/**
|
|
51
|
-
* Fetch outspend information for every output in a transaction.
|
|
52
|
-
*
|
|
53
|
-
* @param txid - Transaction id to inspect
|
|
54
|
-
* @returns Per-output spend status information
|
|
55
|
-
* @see getTxStatus
|
|
56
|
-
*/
|
|
57
|
-
getTxOutspends(txid: string): Promise<{
|
|
58
|
-
spent: boolean;
|
|
59
|
-
txid: string;
|
|
60
|
-
}[]>;
|
|
61
|
-
/**
|
|
62
|
-
* Fetch transactions associated with an address.
|
|
63
|
-
*
|
|
64
|
-
* @param address - Bitcoin address to query
|
|
65
|
-
* @returns Transactions involving the address
|
|
66
|
-
* @see ExplorerTransaction
|
|
67
|
-
*/
|
|
68
|
-
getTransactions(address: string): Promise<ExplorerTransaction[]>;
|
|
69
|
-
/**
|
|
70
|
-
* Fetch confirmation status for a transaction.
|
|
71
|
-
*
|
|
72
|
-
* @param txid - Transaction id to inspect
|
|
73
|
-
* @returns Confirmation status and block metadata when confirmed
|
|
74
|
-
* @see getTxOutspends
|
|
75
|
-
*/
|
|
76
|
-
getTxStatus(txid: string): Promise<{
|
|
77
|
-
confirmed: false;
|
|
78
|
-
} | {
|
|
79
|
-
confirmed: true;
|
|
80
|
-
blockTime: number;
|
|
81
|
-
blockHeight: number;
|
|
82
|
-
}>;
|
|
83
|
-
/**
|
|
84
|
-
* Fetch the current chain tip.
|
|
85
|
-
*
|
|
86
|
-
* @returns Current chain height, block time, and block hash
|
|
87
|
-
*/
|
|
88
|
-
getChainTip(): Promise<{
|
|
89
|
-
height: number;
|
|
90
|
-
time: number;
|
|
91
|
-
hash: string;
|
|
92
|
-
}>;
|
|
93
|
-
/**
|
|
94
|
-
* Watch a set of addresses and invoke the callback when transactions are observed.
|
|
95
|
-
*
|
|
96
|
-
* @param addresses - Addresses to monitor
|
|
97
|
-
* @param eventCallback - Callback invoked when matching transactions are seen
|
|
98
|
-
* @returns Stop function that cancels the watch
|
|
99
|
-
* @remarks
|
|
100
|
-
* Implementations may use websockets, server-sent events, polling, or a hybrid strategy.
|
|
101
|
-
* @see getTransactions
|
|
102
|
-
*/
|
|
103
|
-
watchAddresses(addresses: string[], eventCallback: (txs: ExplorerTransaction[]) => void): Promise<() => void>;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Implementation of the onchain provider interface for esplora REST API.
|
|
107
|
-
*
|
|
108
|
-
* @see https://mempool.space/docs/api/rest
|
|
109
|
-
* @example
|
|
110
|
-
* ```typescript
|
|
111
|
-
* const provider = new EsploraProvider("https://mempool.space/api");
|
|
112
|
-
* const outputs = await provider.getCoins("bcrt1q679zsd45msawvr7782r0twvmukns3drlstjt77");
|
|
113
|
-
* ```
|
|
114
|
-
*/
|
|
115
|
-
export declare class EsploraProvider implements OnchainProvider {
|
|
116
|
-
private baseUrl;
|
|
117
|
-
readonly pollingInterval: number;
|
|
118
|
-
readonly forcePolling: boolean;
|
|
119
|
-
constructor(baseUrl: string, opts?: {
|
|
120
|
-
/** Polling interval in milliseconds. */
|
|
121
|
-
pollingInterval?: number;
|
|
122
|
-
/** Force polling even when websocket transport is available. */
|
|
123
|
-
forcePolling?: boolean;
|
|
124
|
-
});
|
|
125
|
-
getCoins(address: string): Promise<Coin[]>;
|
|
126
|
-
getFeeRate(): Promise<number | undefined>;
|
|
127
|
-
broadcastTransaction(...txs: string[]): Promise<string>;
|
|
128
|
-
getTxOutspends(txid: string): Promise<{
|
|
129
|
-
spent: boolean;
|
|
130
|
-
txid: string;
|
|
131
|
-
}[]>;
|
|
132
|
-
getTransactions(address: string): Promise<ExplorerTransaction[]>;
|
|
133
|
-
getTxStatus(txid: string): Promise<{
|
|
134
|
-
confirmed: false;
|
|
135
|
-
} | {
|
|
136
|
-
confirmed: true;
|
|
137
|
-
blockTime: number;
|
|
138
|
-
blockHeight: number;
|
|
139
|
-
}>;
|
|
140
|
-
watchAddresses(addresses: string[], callback: (txs: ExplorerTransaction[]) => void): Promise<() => void>;
|
|
141
|
-
getChainTip(): Promise<{
|
|
142
|
-
height: number;
|
|
143
|
-
time: number;
|
|
144
|
-
hash: string;
|
|
145
|
-
}>;
|
|
146
|
-
private broadcastPackage;
|
|
147
|
-
private broadcastTx;
|
|
148
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export type ManagedEventSourceIterator = AsyncGenerator<MessageEvent, void, unknown> & {
|
|
2
|
-
close(): void;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* Creates a close-aware EventSource async iterator.
|
|
6
|
-
*
|
|
7
|
-
* Listeners attach eagerly so events are buffered before the first next() call.
|
|
8
|
-
* close() closes the EventSource, removes listeners, and wakes any pending
|
|
9
|
-
* next() even when the browser does not emit an error from EventSource.close().
|
|
10
|
-
*/
|
|
11
|
-
export declare function eventSourceIterator(eventSource: EventSource): ManagedEventSourceIterator;
|
|
12
|
-
export declare function isEventSourceError(error: unknown): error is Error;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Contract, ContractState } from "../contracts/types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Filter options for querying contracts.
|
|
4
|
-
*/
|
|
5
|
-
export interface ContractFilter {
|
|
6
|
-
/** Filter by script(s) */
|
|
7
|
-
script?: string | string[];
|
|
8
|
-
/** Filter by state(s) */
|
|
9
|
-
state?: ContractState | ContractState[];
|
|
10
|
-
/** Filter by contract type(s) */
|
|
11
|
-
type?: string | string[];
|
|
12
|
-
}
|
|
13
|
-
export interface ContractRepository extends AsyncDisposable {
|
|
14
|
-
readonly version: 1;
|
|
15
|
-
/**
|
|
16
|
-
* Clear all data from storage.
|
|
17
|
-
*/
|
|
18
|
-
clear(): Promise<void>;
|
|
19
|
-
/**
|
|
20
|
-
* Get contracts with optional filter.
|
|
21
|
-
* Returns all contracts if no filter provided.
|
|
22
|
-
*/
|
|
23
|
-
getContracts(filter?: ContractFilter): Promise<Contract[]>;
|
|
24
|
-
/**
|
|
25
|
-
* Save or update a contract.
|
|
26
|
-
*/
|
|
27
|
-
saveContract(contract: Contract): Promise<void>;
|
|
28
|
-
/**
|
|
29
|
-
* Delete a contract by script.
|
|
30
|
-
*/
|
|
31
|
-
deleteContract(script: string): Promise<void>;
|
|
32
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ContractFilter, ContractRepository } from "../contractRepository.js";
|
|
2
|
-
import { Contract } from "../../contracts/index.js";
|
|
3
|
-
/**
|
|
4
|
-
* In-memory implementation of ContractRepository.
|
|
5
|
-
* Data is ephemeral and scoped to the instance.
|
|
6
|
-
*/
|
|
7
|
-
export declare class InMemoryContractRepository implements ContractRepository {
|
|
8
|
-
readonly version: 1;
|
|
9
|
-
private readonly contractData;
|
|
10
|
-
private readonly collections;
|
|
11
|
-
private readonly contractsByScript;
|
|
12
|
-
clear(): Promise<void>;
|
|
13
|
-
getContracts(filter?: ContractFilter): Promise<Contract[]>;
|
|
14
|
-
saveContract(contract: Contract): Promise<void>;
|
|
15
|
-
deleteContract(script: string): Promise<void>;
|
|
16
|
-
[Symbol.asyncDispose](): Promise<void>;
|
|
17
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ArkTransaction, ExtendedCoin, ExtendedVirtualCoin } from "../../wallet/index.js";
|
|
2
|
-
import { WalletRepository, WalletState, VtxoRepositoryKey } from "../walletRepository.js";
|
|
3
|
-
/**
|
|
4
|
-
* In-memory implementation of WalletRepository.
|
|
5
|
-
* Data is ephemeral and scoped to the instance.
|
|
6
|
-
*/
|
|
7
|
-
export declare class InMemoryWalletRepository implements WalletRepository {
|
|
8
|
-
readonly version: 1;
|
|
9
|
-
private readonly vtxosByAddress;
|
|
10
|
-
private readonly utxosByAddress;
|
|
11
|
-
private readonly txsByAddress;
|
|
12
|
-
private walletState;
|
|
13
|
-
getVtxos(address: string): Promise<ExtendedVirtualCoin[]>;
|
|
14
|
-
saveVtxos(address: string, vtxos: ExtendedVirtualCoin[]): Promise<void>;
|
|
15
|
-
deleteVtxos(address: string): Promise<void>;
|
|
16
|
-
getVtxosForScript(script: string): Promise<ExtendedVirtualCoin[]>;
|
|
17
|
-
saveVtxosForScript(key: VtxoRepositoryKey, vtxos: ExtendedVirtualCoin[]): Promise<void>;
|
|
18
|
-
deleteVtxosForScript(script: string): Promise<void>;
|
|
19
|
-
getUtxos(address: string): Promise<ExtendedCoin[]>;
|
|
20
|
-
saveUtxos(address: string, utxos: ExtendedCoin[]): Promise<void>;
|
|
21
|
-
deleteUtxos(address: string): Promise<void>;
|
|
22
|
-
getTransactionHistory(address: string): Promise<ArkTransaction[]>;
|
|
23
|
-
saveTransactions(address: string, txs: ArkTransaction[]): Promise<void>;
|
|
24
|
-
deleteTransactions(address: string): Promise<void>;
|
|
25
|
-
getWalletState(): Promise<WalletState | null>;
|
|
26
|
-
saveWalletState(state: WalletState): Promise<void>;
|
|
27
|
-
clear(): Promise<void>;
|
|
28
|
-
[Symbol.asyncDispose](): Promise<void>;
|
|
29
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from "./walletRepository.js";
|
|
2
|
-
export * from "./contractRepository.js";
|
|
3
|
-
export * from "./inMemory/walletRepository.js";
|
|
4
|
-
export * from "./inMemory/contractRepository.js";
|
|
5
|
-
export * from "./indexedDB/contractRepository.js";
|
|
6
|
-
export * from "./indexedDB/walletRepository.js";
|
|
7
|
-
export { MIGRATION_KEY, migrateWalletRepository, requiresMigration, getMigrationStatus, rollbackMigration, type MigrationStatus, } from "./migrations/fromStorageAdapter.js";
|
|
8
|
-
export { WalletRepositoryImpl } from "./migrations/walletRepositoryImpl.js";
|
|
9
|
-
export { ContractRepositoryImpl } from "./migrations/contractRepositoryImpl.js";
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Contract } from "../../contracts/index.js";
|
|
2
|
-
import { ContractFilter, ContractRepository } from "../contractRepository.js";
|
|
3
|
-
/**
|
|
4
|
-
* IndexedDB-based implementation of ContractRepository.
|
|
5
|
-
*
|
|
6
|
-
* Data is stored as JSON strings in key/value stores.
|
|
7
|
-
*/
|
|
8
|
-
export declare class IndexedDBContractRepository implements ContractRepository {
|
|
9
|
-
private readonly dbName;
|
|
10
|
-
readonly version: 1;
|
|
11
|
-
private db;
|
|
12
|
-
constructor(dbName?: string);
|
|
13
|
-
clear(): Promise<void>;
|
|
14
|
-
getContracts(filter?: ContractFilter): Promise<Contract[]>;
|
|
15
|
-
saveContract(contract: Contract): Promise<void>;
|
|
16
|
-
deleteContract(script: string): Promise<void>;
|
|
17
|
-
private getContractsByIndexValues;
|
|
18
|
-
private applyContractFilter;
|
|
19
|
-
private getDB;
|
|
20
|
-
[Symbol.asyncDispose](): Promise<void>;
|
|
21
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DB_VERSION, STORE_CONTRACTS, LEGACY_STORE_CONTRACT_COLLECTIONS, STORE_TRANSACTIONS, STORE_UTXOS, STORE_VTXOS, STORE_WALLET_STATE } from "./schema.js";
|
|
2
|
-
export { STORE_VTXOS, STORE_UTXOS, STORE_TRANSACTIONS, STORE_WALLET_STATE, STORE_CONTRACTS, LEGACY_STORE_CONTRACT_COLLECTIONS, DB_VERSION, };
|
|
3
|
-
export { serializeTapLeaf, serializeVtxo, serializeUtxo, deserializeTapLeaf, deserializeVtxo, deserializeUtxo, } from "../serialization.js";
|
|
4
|
-
export type { SerializedTapLeaf, SerializedVtxo, SerializedUtxo, } from "../serialization.js";
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export declare function getGlobalObject(): {
|
|
2
|
-
globalObject: typeof globalThis;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* Opens an IndexedDB database and increments the reference count.
|
|
6
|
-
* Handles global object detection and callbacks.
|
|
7
|
-
*
|
|
8
|
-
* @param dbName The name of the database to open.
|
|
9
|
-
* @param dbVersion The database version to open.
|
|
10
|
-
* @param initDatabase A function that migrates the database schema, called
|
|
11
|
-
* on `onupgradeneeded` only. Receives the database, the previous version
|
|
12
|
-
* (0 for fresh installs), and the upgrade transaction — the transaction is
|
|
13
|
-
* required for data migrations (cursor/update on existing stores).
|
|
14
|
-
*
|
|
15
|
-
* @returns A promise that resolves to the database instance.
|
|
16
|
-
*/
|
|
17
|
-
export declare function openDatabase(dbName: string, dbVersion: number, initDatabase: (db: IDBDatabase, oldVersion: number, transaction: IDBTransaction | null) => void): Promise<IDBDatabase>;
|
|
18
|
-
/**
|
|
19
|
-
* Decrements the reference count and closes the database when no references remain.
|
|
20
|
-
*
|
|
21
|
-
* @param dbName The name of the database to close.
|
|
22
|
-
*
|
|
23
|
-
* @returns True if the database was closed, false otherwise.
|
|
24
|
-
*/
|
|
25
|
-
export declare function closeDatabase(dbName: string): Promise<boolean>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const STORE_VTXOS = "vtxos";
|
|
2
|
-
export declare const STORE_UTXOS = "utxos";
|
|
3
|
-
export declare const STORE_TRANSACTIONS = "transactions";
|
|
4
|
-
export declare const STORE_WALLET_STATE = "walletState";
|
|
5
|
-
export declare const STORE_CONTRACTS = "contracts";
|
|
6
|
-
export declare const LEGACY_STORE_CONTRACT_COLLECTIONS = "contractsCollections";
|
|
7
|
-
export declare const DB_VERSION = 3;
|
|
8
|
-
export declare function initDatabase(db: IDBDatabase, oldVersion: number, transaction: IDBTransaction | null): void;
|
|
9
|
-
export declare function backfillVtxoScripts(transaction: IDBTransaction): void;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ExtendedCoin, ExtendedVirtualCoin, ArkTransaction } from "../../wallet/index.js";
|
|
2
|
-
import { WalletRepository, WalletState, VtxoRepositoryKey } from "../walletRepository.js";
|
|
3
|
-
/**
|
|
4
|
-
* IndexedDB-based implementation of WalletRepository.
|
|
5
|
-
*/
|
|
6
|
-
export declare class IndexedDBWalletRepository implements WalletRepository {
|
|
7
|
-
private readonly dbName;
|
|
8
|
-
readonly version: 1;
|
|
9
|
-
private db;
|
|
10
|
-
constructor(dbName?: string);
|
|
11
|
-
clear(): Promise<void>;
|
|
12
|
-
[Symbol.asyncDispose](): Promise<void>;
|
|
13
|
-
getVtxos(address: string): Promise<ExtendedVirtualCoin[]>;
|
|
14
|
-
saveVtxos(address: string, vtxos: ExtendedVirtualCoin[]): Promise<void>;
|
|
15
|
-
deleteVtxos(address: string): Promise<void>;
|
|
16
|
-
getVtxosForScript(script: string): Promise<ExtendedVirtualCoin[]>;
|
|
17
|
-
saveVtxosForScript(key: VtxoRepositoryKey, vtxos: ExtendedVirtualCoin[]): Promise<void>;
|
|
18
|
-
deleteVtxosForScript(script: string): Promise<void>;
|
|
19
|
-
getUtxos(address: string): Promise<ExtendedCoin[]>;
|
|
20
|
-
saveUtxos(address: string, utxos: ExtendedCoin[]): Promise<void>;
|
|
21
|
-
deleteUtxos(address: string): Promise<void>;
|
|
22
|
-
getTransactionHistory(address: string): Promise<ArkTransaction[]>;
|
|
23
|
-
saveTransactions(address: string, txs: ArkTransaction[]): Promise<void>;
|
|
24
|
-
deleteTransactions(address: string): Promise<void>;
|
|
25
|
-
getWalletState(): Promise<WalletState | null>;
|
|
26
|
-
saveWalletState(state: WalletState): Promise<void>;
|
|
27
|
-
private getDB;
|
|
28
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WebSQL adapter over expo-sqlite.
|
|
3
|
-
*
|
|
4
|
-
* Bridges the WebSQL API surface that indexeddbshim expects to the
|
|
5
|
-
* synchronous expo-sqlite driver. Only the subset actually called by
|
|
6
|
-
* the shim is implemented:
|
|
7
|
-
*
|
|
8
|
-
* openDatabase(name, version, displayName, estimatedSize) → WebSQLDatabase
|
|
9
|
-
* db.transaction(cb, errCb?, successCb?)
|
|
10
|
-
* tx.executeSql(sql, args?, successCb?, errorCb?)
|
|
11
|
-
* resultSet = { insertId, rowsAffected, rows: { length, item(i) } }
|
|
12
|
-
*/
|
|
13
|
-
import { type SQLiteDatabase } from "expo-sqlite";
|
|
14
|
-
export interface SQLResultSetRowList {
|
|
15
|
-
length: number;
|
|
16
|
-
item(index: number): any;
|
|
17
|
-
}
|
|
18
|
-
export interface SQLResultSet {
|
|
19
|
-
insertId: number;
|
|
20
|
-
rowsAffected: number;
|
|
21
|
-
rows: SQLResultSetRowList;
|
|
22
|
-
}
|
|
23
|
-
export interface SQLError {
|
|
24
|
-
code: number;
|
|
25
|
-
message: string;
|
|
26
|
-
}
|
|
27
|
-
type ExecuteSqlSuccessCb = (tx: WebSQLTransaction, resultSet: SQLResultSet) => void;
|
|
28
|
-
type ExecuteSqlErrorCb = (tx: WebSQLTransaction, error: SQLError) => boolean | void;
|
|
29
|
-
interface QueuedStatement {
|
|
30
|
-
sql: string;
|
|
31
|
-
args: any[];
|
|
32
|
-
successCb?: ExecuteSqlSuccessCb;
|
|
33
|
-
errorCb?: ExecuteSqlErrorCb;
|
|
34
|
-
}
|
|
35
|
-
export declare class WebSQLTransaction {
|
|
36
|
-
/** @internal */
|
|
37
|
-
_queue: QueuedStatement[];
|
|
38
|
-
executeSql(sql: string, args?: any[], successCb?: ExecuteSqlSuccessCb, errorCb?: ExecuteSqlErrorCb): void;
|
|
39
|
-
}
|
|
40
|
-
export declare class WebSQLDatabase {
|
|
41
|
-
/** @internal */
|
|
42
|
-
_db: SQLiteDatabase;
|
|
43
|
-
version: string;
|
|
44
|
-
constructor(db: SQLiteDatabase, version: string);
|
|
45
|
-
transaction(callback: (tx: WebSQLTransaction) => void, errorCb?: (error: SQLError) => void, successCb?: () => void): void;
|
|
46
|
-
readTransaction(callback: (tx: WebSQLTransaction) => void, errorCb?: (error: SQLError) => void, successCb?: () => void): void;
|
|
47
|
-
}
|
|
48
|
-
export declare function openDatabase(name: string, version: string, _displayName: string, _estimatedSize: number, _creationCallback?: (db: WebSQLDatabase) => void): WebSQLDatabase;
|
|
49
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { StorageAdapter } from "../../storage/index.js";
|
|
2
|
-
import { ContractFilter, ContractRepository } from "../contractRepository.js";
|
|
3
|
-
import { Contract } from "../../contracts/types.js";
|
|
4
|
-
export declare const getContractStorageKey: (id: string, key: string) => string;
|
|
5
|
-
export declare const getCollectionStorageKey: (type: string) => string;
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated This is only to be used in migration from storage V1
|
|
8
|
-
*/
|
|
9
|
-
export declare class ContractRepositoryImpl implements ContractRepository {
|
|
10
|
-
readonly version: 1;
|
|
11
|
-
private storage;
|
|
12
|
-
constructor(storage: StorageAdapter);
|
|
13
|
-
getContractData<T>(contractId: string, key: string): Promise<T | null>;
|
|
14
|
-
setContractData<T>(contractId: string, key: string, data: T): Promise<void>;
|
|
15
|
-
deleteContractData(contractId: string, key: string): Promise<void>;
|
|
16
|
-
getContractCollection<T>(contractType: string): Promise<ReadonlyArray<T>>;
|
|
17
|
-
saveToContractCollection<T, K extends keyof T>(contractType: string, item: T, idField: K): Promise<void>;
|
|
18
|
-
removeFromContractCollection<T, K extends keyof T>(contractType: string, id: T[K], idField: K): Promise<void>;
|
|
19
|
-
getContracts(_?: ContractFilter): Promise<Contract[]>;
|
|
20
|
-
saveContract(_: Contract): Promise<void>;
|
|
21
|
-
deleteContract(_: string): Promise<void>;
|
|
22
|
-
clear(): Promise<void>;
|
|
23
|
-
[Symbol.asyncDispose](): Promise<void>;
|
|
24
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { StorageAdapter } from "../../storage/index.js";
|
|
2
|
-
import { WalletRepository } from "../walletRepository.js";
|
|
3
|
-
export declare const MIGRATION_KEY: (repoType: "wallet" | "contract") => string;
|
|
4
|
-
export type MigrationStatus = "pending" | "in-progress" | "done" | "not-needed";
|
|
5
|
-
export declare function getMigrationStatus(repoType: "wallet" | "contract", storageAdapter: StorageAdapter): Promise<MigrationStatus>;
|
|
6
|
-
export declare function requiresMigration(repoType: "wallet" | "contract", storageAdapter: StorageAdapter): Promise<boolean>;
|
|
7
|
-
export declare function rollbackMigration(repoType: "wallet" | "contract", storageAdapter: StorageAdapter): Promise<void>;
|
|
8
|
-
/**
|
|
9
|
-
* Migrate wallet data from the legacy storage adapter to the new one.
|
|
10
|
-
* It accepts both onchain and offchain addresses, make sure to pass both.
|
|
11
|
-
*
|
|
12
|
-
* @param storageAdapter
|
|
13
|
-
* @param fresh
|
|
14
|
-
* @param addresses
|
|
15
|
-
*/
|
|
16
|
-
export declare function migrateWalletRepository(storageAdapter: StorageAdapter, fresh: WalletRepository, addresses: {
|
|
17
|
-
onchain: string[];
|
|
18
|
-
offchain: string[];
|
|
19
|
-
}): Promise<void>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { WalletRepository, WalletState } from "../walletRepository.js";
|
|
2
|
-
import { StorageAdapter } from "../../storage/index.js";
|
|
3
|
-
import { ArkTransaction, ExtendedCoin, ExtendedVirtualCoin } from "../../wallet/index.js";
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated This is only to be used in migration from storage V1
|
|
6
|
-
*/
|
|
7
|
-
export declare class WalletRepositoryImpl implements WalletRepository {
|
|
8
|
-
readonly version: 1;
|
|
9
|
-
private storage;
|
|
10
|
-
constructor(storage: StorageAdapter);
|
|
11
|
-
getVtxos(address: string): Promise<ExtendedVirtualCoin[]>;
|
|
12
|
-
saveVtxos(address: string, vtxos: ExtendedVirtualCoin[]): Promise<void>;
|
|
13
|
-
clearVtxos(address: string): Promise<void>;
|
|
14
|
-
deleteVtxos(address: string): Promise<void>;
|
|
15
|
-
getUtxos(address: string): Promise<ExtendedCoin[]>;
|
|
16
|
-
saveUtxos(address: string, utxos: ExtendedCoin[]): Promise<void>;
|
|
17
|
-
clearUtxos(address: string): Promise<void>;
|
|
18
|
-
deleteUtxos(address: string): Promise<void>;
|
|
19
|
-
getTransactionHistory(address: string): Promise<ArkTransaction[]>;
|
|
20
|
-
saveTransactions(address: string, txs: ArkTransaction[]): Promise<void>;
|
|
21
|
-
clearTransactions(address: string): Promise<void>;
|
|
22
|
-
deleteTransactions(address: string): Promise<void>;
|
|
23
|
-
getWalletState(): Promise<WalletState | null>;
|
|
24
|
-
saveWalletState(state: WalletState): Promise<void>;
|
|
25
|
-
clear(): Promise<void>;
|
|
26
|
-
[Symbol.asyncDispose](): Promise<void>;
|
|
27
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Contract } from "../../contracts/types.js";
|
|
2
|
-
import { ContractFilter, ContractRepository } from "../contractRepository.js";
|
|
3
|
-
import { RealmLike } from "./types.js";
|
|
4
|
-
/**
|
|
5
|
-
* Realm-based implementation of ContractRepository.
|
|
6
|
-
*
|
|
7
|
-
* Consumers must open Realm with the schemas from `./schemas.ts` and pass
|
|
8
|
-
* the instance to the constructor.
|
|
9
|
-
*
|
|
10
|
-
* Realm handles schema creation on open, so `ensureInit()` is a no-op.
|
|
11
|
-
* The consumer owns the Realm lifecycle — `[Symbol.asyncDispose]` is a no-op.
|
|
12
|
-
*/
|
|
13
|
-
export declare class RealmContractRepository implements ContractRepository {
|
|
14
|
-
private readonly realm;
|
|
15
|
-
readonly version: 1;
|
|
16
|
-
constructor(realm: RealmLike);
|
|
17
|
-
private ensureInit;
|
|
18
|
-
[Symbol.asyncDispose](): Promise<void>;
|
|
19
|
-
clear(): Promise<void>;
|
|
20
|
-
getContracts(filter?: ContractFilter): Promise<Contract[]>;
|
|
21
|
-
saveContract(contract: Contract): Promise<void>;
|
|
22
|
-
deleteContract(script: string): Promise<void>;
|
|
23
|
-
private addFilterCondition;
|
|
24
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { RealmWalletRepository } from "./walletRepository.js";
|
|
2
|
-
export { RealmContractRepository } from "./contractRepository.js";
|
|
3
|
-
export { ArkRealmSchemas, ARK_REALM_SCHEMA_VERSION, runArkRealmMigrations, } from "./schemas.js";
|
|
4
|
-
export type { RealmLike, RealmResults } from "./types.js";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Minimal interface for the subset of the Realm API used by the
|
|
3
|
-
* Arkade repositories. Consumers pass their real Realm instance and
|
|
4
|
-
* the compiler validates it satisfies this shape.
|
|
5
|
-
*/
|
|
6
|
-
/** Result set returned by `realm.objects()`. */
|
|
7
|
-
export interface RealmResults<T = Record<string, unknown>> extends Iterable<T> {
|
|
8
|
-
filtered(query: string, ...args: unknown[]): RealmResults<T>;
|
|
9
|
-
}
|
|
10
|
-
/** The Realm API surface used by Arkade repositories. */
|
|
11
|
-
export interface RealmLike {
|
|
12
|
-
write(callback: () => void): void;
|
|
13
|
-
objects<T = Record<string, unknown>>(schemaName: string): RealmResults<T>;
|
|
14
|
-
create(schemaName: string, values: Record<string, any>, mode?: string): void;
|
|
15
|
-
delete(objects: unknown): void;
|
|
16
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ArkTransaction, ExtendedCoin, ExtendedVirtualCoin } from "../../wallet/index.js";
|
|
2
|
-
import { WalletRepository, WalletState, VtxoRepositoryKey } from "../walletRepository.js";
|
|
3
|
-
import { RealmLike } from "./types.js";
|
|
4
|
-
/**
|
|
5
|
-
* Realm-based implementation of WalletRepository.
|
|
6
|
-
*
|
|
7
|
-
* Consumers must open Realm with the schemas from `./schemas.ts` and pass
|
|
8
|
-
* the instance to the constructor.
|
|
9
|
-
*
|
|
10
|
-
* Realm handles schema creation on open, so `ensureInit()` is a no-op.
|
|
11
|
-
* The consumer owns the Realm lifecycle — `[Symbol.asyncDispose]` is a no-op.
|
|
12
|
-
*/
|
|
13
|
-
export declare class RealmWalletRepository implements WalletRepository {
|
|
14
|
-
private readonly realm;
|
|
15
|
-
readonly version: 1;
|
|
16
|
-
constructor(realm: RealmLike);
|
|
17
|
-
private ensureInit;
|
|
18
|
-
[Symbol.asyncDispose](): Promise<void>;
|
|
19
|
-
clear(): Promise<void>;
|
|
20
|
-
getVtxos(address: string): Promise<ExtendedVirtualCoin[]>;
|
|
21
|
-
saveVtxos(address: string, vtxos: ExtendedVirtualCoin[]): Promise<void>;
|
|
22
|
-
deleteVtxos(address: string): Promise<void>;
|
|
23
|
-
getVtxosForScript(script: string): Promise<ExtendedVirtualCoin[]>;
|
|
24
|
-
saveVtxosForScript(key: VtxoRepositoryKey, vtxos: ExtendedVirtualCoin[]): Promise<void>;
|
|
25
|
-
deleteVtxosForScript(script: string): Promise<void>;
|
|
26
|
-
getUtxos(address: string): Promise<ExtendedCoin[]>;
|
|
27
|
-
saveUtxos(address: string, utxos: ExtendedCoin[]): Promise<void>;
|
|
28
|
-
deleteUtxos(address: string): Promise<void>;
|
|
29
|
-
getTransactionHistory(address: string): Promise<ArkTransaction[]>;
|
|
30
|
-
saveTransactions(address: string, txs: ArkTransaction[]): Promise<void>;
|
|
31
|
-
deleteTransactions(address: string): Promise<void>;
|
|
32
|
-
getWalletState(): Promise<WalletState | null>;
|
|
33
|
-
saveWalletState(state: WalletState): Promise<void>;
|
|
34
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Compute the hex-encoded `scriptPubKey` locking a VTXO from its owning Ark
|
|
3
|
-
* address. Used by repository-layer migrations to backfill `script` on legacy
|
|
4
|
-
* rows that pre-date the column (the indexer now guarantees the field, so new
|
|
5
|
-
* rows never go through this path). The `script` field is required by the
|
|
6
|
-
* domain type, so backfill must produce the same value the indexer would
|
|
7
|
-
* have returned — which is the hex of the address's `pkScript`.
|
|
8
|
-
*/
|
|
9
|
-
export declare function scriptFromArkAddress(address: string): string;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { TapLeafScript } from "../script/base.js";
|
|
2
|
-
import { ArkTransaction, Asset, ExtendedCoin, ExtendedVirtualCoin } from "../wallet/index.js";
|
|
3
|
-
export type SerializedTapLeaf = {
|
|
4
|
-
cb: string;
|
|
5
|
-
s: string;
|
|
6
|
-
};
|
|
7
|
-
export type SerializedVtxo = ReturnType<typeof serializeVtxo>;
|
|
8
|
-
export type SerializedUtxo = ReturnType<typeof serializeUtxo>;
|
|
9
|
-
export type SerializedTransaction = ReturnType<typeof serializeTransaction>;
|
|
10
|
-
export type SerializedAsset = {
|
|
11
|
-
assetId: string;
|
|
12
|
-
amount: string;
|
|
13
|
-
};
|
|
14
|
-
export declare const serializeTapLeaf: ([cb, s,]: TapLeafScript) => SerializedTapLeaf;
|
|
15
|
-
export declare const serializeAsset: (a: Asset) => SerializedAsset;
|
|
16
|
-
export declare const deserializeAsset: (a: {
|
|
17
|
-
assetId: string;
|
|
18
|
-
amount: string | number | bigint;
|
|
19
|
-
}) => Asset;
|
|
20
|
-
export declare const serializeAssets: (assets: Asset[] | undefined) => SerializedAsset[] | undefined;
|
|
21
|
-
export declare const deserializeAssets: (assets: Array<{
|
|
22
|
-
assetId: string;
|
|
23
|
-
amount: string | number | bigint;
|
|
24
|
-
}> | undefined) => Asset[] | undefined;
|
|
25
|
-
export declare const serializeVtxo: (v: ExtendedVirtualCoin) => {
|
|
26
|
-
tapTree: string;
|
|
27
|
-
forfeitTapLeafScript: SerializedTapLeaf;
|
|
28
|
-
intentTapLeafScript: SerializedTapLeaf;
|
|
29
|
-
extraWitness: string[] | undefined;
|
|
30
|
-
assets: SerializedAsset[] | undefined;
|
|
31
|
-
createdAt: Date;
|
|
32
|
-
script: string;
|
|
33
|
-
isUnrolled: boolean;
|
|
34
|
-
isSpent?: boolean;
|
|
35
|
-
settledBy?: string;
|
|
36
|
-
spentBy?: string;
|
|
37
|
-
arkTxId?: string;
|
|
38
|
-
virtualStatus: import("../wallet/index.js").VirtualStatus;
|
|
39
|
-
value: number;
|
|
40
|
-
status: import("../wallet/index.js").Status;
|
|
41
|
-
txid: string;
|
|
42
|
-
vout: number;
|
|
43
|
-
};
|
|
44
|
-
export declare const serializeUtxo: (u: ExtendedCoin) => {
|
|
45
|
-
tapTree: string;
|
|
46
|
-
forfeitTapLeafScript: SerializedTapLeaf;
|
|
47
|
-
intentTapLeafScript: SerializedTapLeaf;
|
|
48
|
-
extraWitness: string[] | undefined;
|
|
49
|
-
value: number;
|
|
50
|
-
status: import("../wallet/index.js").Status;
|
|
51
|
-
txid: string;
|
|
52
|
-
vout: number;
|
|
53
|
-
};
|
|
54
|
-
export declare const serializeTransaction: (t: ArkTransaction) => {
|
|
55
|
-
assets: SerializedAsset[] | undefined;
|
|
56
|
-
key: import("../wallet/index.js").TxKey;
|
|
57
|
-
type: import("../wallet/index.js").TxType;
|
|
58
|
-
amount: number;
|
|
59
|
-
settled: boolean;
|
|
60
|
-
createdAt: number;
|
|
61
|
-
};
|
|
62
|
-
export declare const deserializeTapLeaf: (t: SerializedTapLeaf) => TapLeafScript;
|
|
63
|
-
export declare const deserializeVtxo: (o: SerializedVtxo) => ExtendedVirtualCoin;
|
|
64
|
-
export declare const deserializeUtxo: (o: SerializedUtxo) => ExtendedCoin;
|
|
65
|
-
export declare const deserializeTransaction: (o: SerializedTransaction) => ArkTransaction;
|