phantasma-sdk-ts 0.1.76 → 0.2.0-rc.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/core/index.d.ts +10 -0
- package/dist/core/index.d.ts.map +1 -0
- package/{core → dist/core}/index.js +8 -8
- package/dist/core/interfaces/Carbon/ICarbonBlob.d.ts +6 -0
- package/dist/core/interfaces/Carbon/ICarbonBlob.d.ts.map +1 -0
- package/dist/core/interfaces/Carbon/index.d.ts +2 -0
- package/dist/core/interfaces/Carbon/index.d.ts.map +1 -0
- package/dist/core/interfaces/Carbon/index.js +17 -0
- package/dist/core/interfaces/IContract.d.ts.map +1 -0
- package/dist/core/interfaces/IKeyPair.d.ts.map +1 -0
- package/dist/core/interfaces/ISerializable.d.ts.map +1 -0
- package/{core → dist/core}/interfaces/ISerializable.js +2 -5
- package/dist/core/interfaces/IStack.d.ts.map +1 -0
- package/dist/core/interfaces/IToken.d.ts.map +1 -0
- package/dist/core/interfaces/Signature.d.ts.map +1 -0
- package/{core → dist/core}/interfaces/Signature.js +11 -17
- package/{core → dist/core}/interfaces/index.d.ts +1 -0
- package/dist/core/interfaces/index.d.ts.map +1 -0
- package/{core → dist/core}/interfaces/index.js +1 -0
- package/dist/core/ledger/Address-Transcode.d.ts.map +1 -0
- package/{core → dist/core}/ledger/Address-Transcode.js +11 -11
- package/dist/core/ledger/Ledger-Commands.d.ts.map +1 -0
- package/dist/core/ledger/Ledger-Commands.js +405 -0
- package/dist/core/ledger/Ledger-Utils.d.ts.map +1 -0
- package/dist/core/ledger/Ledger-Utils.js +503 -0
- package/dist/core/ledger/Mnemonic.d.ts.map +1 -0
- package/{core → dist/core}/ledger/Mnemonic.js +19 -19
- package/dist/core/ledger/Transaction-Sign.d.ts.map +1 -0
- package/{core → dist/core}/ledger/Transaction-Sign.js +33 -33
- package/dist/core/ledger/Transaction-Transcode.d.ts.map +1 -0
- package/{core → dist/core}/ledger/Transaction-Transcode.js +9 -9
- package/dist/core/ledger/index.d.ts.map +1 -0
- package/dist/core/ledger/interfaces/ApplicationNameResponse.d.ts.map +1 -0
- package/dist/core/ledger/interfaces/Device.d.ts.map +1 -0
- package/dist/core/ledger/interfaces/DeviceResponse.d.ts.map +1 -0
- package/dist/core/ledger/interfaces/Ledger.d.ts.map +1 -0
- package/dist/core/ledger/interfaces/LedgerBalanceFromLedgerResponse.d.ts.map +1 -0
- package/dist/core/ledger/interfaces/LedgerConfig.d.ts.map +1 -0
- package/dist/core/ledger/interfaces/LedgerDeviceInfoResponse.d.ts.map +1 -0
- package/dist/core/ledger/interfaces/LedgerSendTransactionResponse.d.ts.map +1 -0
- package/dist/core/ledger/interfaces/LedgerSigner.d.ts.map +1 -0
- package/dist/core/ledger/interfaces/LedgerSignerData.d.ts.map +1 -0
- package/dist/core/ledger/interfaces/PublicKeyResponse.d.ts.map +1 -0
- package/dist/core/ledger/interfaces/SignResponse.d.ts.map +1 -0
- package/dist/core/ledger/interfaces/VersionResponse.d.ts.map +1 -0
- package/dist/core/ledger/interfaces/index.d.ts.map +1 -0
- package/dist/core/link/easyConnect.d.ts.map +1 -0
- package/dist/core/link/easyConnect.js +159 -0
- package/dist/core/link/easyScript.d.ts.map +1 -0
- package/{core → dist/core}/link/easyScript.js +14 -17
- package/dist/core/link/index.d.ts.map +1 -0
- package/dist/core/link/interfaces/IAccount.d.ts.map +1 -0
- package/dist/core/link/interfaces/IFile.d.ts.map +1 -0
- package/dist/core/link/interfaces/ProofOfWork.d.ts.map +1 -0
- package/dist/core/link/interfaces/index.d.ts.map +1 -0
- package/dist/core/link/phantasmaLink.d.ts.map +1 -0
- package/{core → dist/core}/link/phantasmaLink.js +66 -82
- package/dist/core/rpc/index.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/ABIContract.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/ABIEvent.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/ABIMethod.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/ABIParameter.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/Account.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/AccountTransactions.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/Archive.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/Auction.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/Balance.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/Block.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/Chain.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/Channel.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/Contract.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/Dapp.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/Event.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/Governance.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/Interop.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/KeyValue.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/Leaderboard.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/LeaderboardRow.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/NFT.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/Nexus.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/Oracle.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/Organization.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/Paginated.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/Peer.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/Platform.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/Receipt.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/Script.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/SendRawTx.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/SignatureResult.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/Stake.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/Storage.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/Swap.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/Token.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/TokenData.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/TokenExternal.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/TokenPrice.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/TokenSeries.d.ts.map +1 -0
- package/{core → dist/core}/rpc/interfaces/TransactionData.d.ts +1 -0
- package/dist/core/rpc/interfaces/TransactionData.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/Validator.d.ts.map +1 -0
- package/dist/core/rpc/interfaces/index.d.ts.map +1 -0
- package/{core → dist/core}/rpc/phantasma.d.ts +2 -1
- package/dist/core/rpc/phantasma.d.ts.map +1 -0
- package/dist/core/rpc/phantasma.js +368 -0
- package/dist/core/tx/ExecutionState.d.ts +7 -0
- package/dist/core/tx/ExecutionState.d.ts.map +1 -0
- package/dist/core/tx/ExecutionState.js +10 -0
- package/dist/core/tx/Transaction.d.ts.map +1 -0
- package/{core → dist/core}/tx/Transaction.js +84 -85
- package/dist/core/tx/index.d.ts +4 -0
- package/dist/core/tx/index.d.ts.map +1 -0
- package/{core → dist/core}/tx/index.js +1 -0
- package/dist/core/tx/utils.d.ts.map +1 -0
- package/{core → dist/core}/tx/utils.js +44 -66
- package/dist/core/types/Address.d.ts.map +1 -0
- package/dist/core/types/Address.js +251 -0
- package/dist/core/types/Carbon/Blockchain/CarbonTokenFlags.d.ts +6 -0
- package/dist/core/types/Carbon/Blockchain/CarbonTokenFlags.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/CarbonTokenFlags.js +9 -0
- package/dist/core/types/Carbon/Blockchain/Extensions/TxMsgSigner.d.ts +8 -0
- package/dist/core/types/Carbon/Blockchain/Extensions/TxMsgSigner.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/Extensions/TxMsgSigner.js +23 -0
- package/dist/core/types/Carbon/Blockchain/ModuleId.d.ts +7 -0
- package/dist/core/types/Carbon/Blockchain/ModuleId.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/ModuleId.js +10 -0
- package/dist/core/types/Carbon/Blockchain/Modules/Builders/IdHelper.d.ts +5 -0
- package/dist/core/types/Carbon/Blockchain/Modules/Builders/IdHelper.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/Modules/Builders/IdHelper.js +47 -0
- package/dist/core/types/Carbon/Blockchain/Modules/Builders/NftRomBuilder.d.ts +5 -0
- package/dist/core/types/Carbon/Blockchain/Modules/Builders/NftRomBuilder.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/Modules/Builders/NftRomBuilder.js +26 -0
- package/dist/core/types/Carbon/Blockchain/Modules/Builders/SeriesInfoBuilder.d.ts +6 -0
- package/dist/core/types/Carbon/Blockchain/Modules/Builders/SeriesInfoBuilder.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/Modules/Builders/SeriesInfoBuilder.js +21 -0
- package/dist/core/types/Carbon/Blockchain/Modules/Builders/TokenInfoBuilder.d.ts +7 -0
- package/dist/core/types/Carbon/Blockchain/Modules/Builders/TokenInfoBuilder.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/Modules/Builders/TokenInfoBuilder.js +21 -0
- package/dist/core/types/Carbon/Blockchain/Modules/Builders/TokenMetadataBuilder.d.ts +4 -0
- package/dist/core/types/Carbon/Blockchain/Modules/Builders/TokenMetadataBuilder.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/Modules/Builders/TokenMetadataBuilder.js +23 -0
- package/dist/core/types/Carbon/Blockchain/Modules/Builders/TokenSchemasBuilder.d.ts +7 -0
- package/dist/core/types/Carbon/Blockchain/Modules/Builders/TokenSchemasBuilder.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/Modules/Builders/TokenSchemasBuilder.js +52 -0
- package/dist/core/types/Carbon/Blockchain/Modules/Builders/TokenSeriesMetadataBuilder.d.ts +5 -0
- package/dist/core/types/Carbon/Blockchain/Modules/Builders/TokenSeriesMetadataBuilder.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/Modules/Builders/TokenSeriesMetadataBuilder.js +22 -0
- package/dist/core/types/Carbon/Blockchain/Modules/Builders/index.d.ts +8 -0
- package/dist/core/types/Carbon/Blockchain/Modules/Builders/index.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/Modules/Builders/index.js +23 -0
- package/dist/core/types/Carbon/Blockchain/Modules/SeriesInfo.d.ts +17 -0
- package/dist/core/types/Carbon/Blockchain/Modules/SeriesInfo.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/Modules/SeriesInfo.js +38 -0
- package/dist/core/types/Carbon/Blockchain/Modules/StandardMeta.d.ts +27 -0
- package/dist/core/types/Carbon/Blockchain/Modules/StandardMeta.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/Modules/StandardMeta.js +29 -0
- package/dist/core/types/Carbon/Blockchain/Modules/TokenContract_Methods.d.ts +25 -0
- package/dist/core/types/Carbon/Blockchain/Modules/TokenContract_Methods.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/Modules/TokenContract_Methods.js +28 -0
- package/dist/core/types/Carbon/Blockchain/Modules/TokenInfo.d.ts +20 -0
- package/dist/core/types/Carbon/Blockchain/Modules/TokenInfo.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/Modules/TokenInfo.js +50 -0
- package/dist/core/types/Carbon/Blockchain/Modules/TokenSchemas.d.ts +13 -0
- package/dist/core/types/Carbon/Blockchain/Modules/TokenSchemas.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/Modules/TokenSchemas.js +28 -0
- package/dist/core/types/Carbon/Blockchain/Modules/index.d.ts +6 -0
- package/dist/core/types/Carbon/Blockchain/Modules/index.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/Modules/index.js +21 -0
- package/dist/core/types/Carbon/Blockchain/SignedTxMsg.d.ts +13 -0
- package/dist/core/types/Carbon/Blockchain/SignedTxMsg.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/SignedTxMsg.js +113 -0
- package/dist/core/types/Carbon/Blockchain/TxHelpers/CreateTokenSeriesTxHelper.d.ts +16 -0
- package/dist/core/types/Carbon/Blockchain/TxHelpers/CreateTokenSeriesTxHelper.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/TxHelpers/CreateTokenSeriesTxHelper.js +54 -0
- package/dist/core/types/Carbon/Blockchain/TxHelpers/CreateTokenTxHelper.d.ts +12 -0
- package/dist/core/types/Carbon/Blockchain/TxHelpers/CreateTokenTxHelper.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/TxHelpers/CreateTokenTxHelper.js +49 -0
- package/dist/core/types/Carbon/Blockchain/TxHelpers/FeeOptions.d.ts +31 -0
- package/dist/core/types/Carbon/Blockchain/TxHelpers/FeeOptions.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/TxHelpers/FeeOptions.js +56 -0
- package/dist/core/types/Carbon/Blockchain/TxHelpers/MintNonFungibleTxHelper.d.ts +10 -0
- package/dist/core/types/Carbon/Blockchain/TxHelpers/MintNonFungibleTxHelper.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/TxHelpers/MintNonFungibleTxHelper.js +45 -0
- package/dist/core/types/Carbon/Blockchain/TxHelpers/index.d.ts +5 -0
- package/dist/core/types/Carbon/Blockchain/TxHelpers/index.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/TxHelpers/index.js +20 -0
- package/dist/core/types/Carbon/Blockchain/TxMsg.d.ts +24 -0
- package/dist/core/types/Carbon/Blockchain/TxMsg.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/TxMsg.js +73 -0
- package/dist/core/types/Carbon/Blockchain/TxMsgCall.d.ts +12 -0
- package/dist/core/types/Carbon/Blockchain/TxMsgCall.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/TxMsgCall.js +26 -0
- package/dist/core/types/Carbon/Blockchain/TxMsgMintNonFungible.d.ts +15 -0
- package/dist/core/types/Carbon/Blockchain/TxMsgMintNonFungible.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/TxMsgMintNonFungible.js +34 -0
- package/dist/core/types/Carbon/Blockchain/TxMsgTransferFungible.d.ts +13 -0
- package/dist/core/types/Carbon/Blockchain/TxMsgTransferFungible.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/TxMsgTransferFungible.js +27 -0
- package/dist/core/types/Carbon/Blockchain/Vm/VmDynamicStruct.d.ts +16 -0
- package/dist/core/types/Carbon/Blockchain/Vm/VmDynamicStruct.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/Vm/VmDynamicStruct.js +87 -0
- package/dist/core/types/Carbon/Blockchain/Vm/VmDynamicVariable.d.ts +17 -0
- package/dist/core/types/Carbon/Blockchain/Vm/VmDynamicVariable.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/Vm/VmDynamicVariable.js +360 -0
- package/dist/core/types/Carbon/Blockchain/Vm/VmNamedDynamicVariable.d.ts +14 -0
- package/dist/core/types/Carbon/Blockchain/Vm/VmNamedDynamicVariable.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/Vm/VmNamedDynamicVariable.js +29 -0
- package/dist/core/types/Carbon/Blockchain/Vm/VmNamedVariableSchema.d.ts +14 -0
- package/dist/core/types/Carbon/Blockchain/Vm/VmNamedVariableSchema.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/Vm/VmNamedVariableSchema.js +39 -0
- package/dist/core/types/Carbon/Blockchain/Vm/VmStructArray.d.ts +7 -0
- package/dist/core/types/Carbon/Blockchain/Vm/VmStructArray.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/Vm/VmStructArray.js +11 -0
- package/dist/core/types/Carbon/Blockchain/Vm/VmStructFlags.d.ts +5 -0
- package/dist/core/types/Carbon/Blockchain/Vm/VmStructFlags.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/Vm/VmStructFlags.js +8 -0
- package/dist/core/types/Carbon/Blockchain/Vm/VmStructSchema.d.ts +17 -0
- package/dist/core/types/Carbon/Blockchain/Vm/VmStructSchema.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/Vm/VmStructSchema.js +35 -0
- package/dist/core/types/Carbon/Blockchain/Vm/VmType.d.ts +28 -0
- package/dist/core/types/Carbon/Blockchain/Vm/VmType.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/Vm/VmType.js +31 -0
- package/dist/core/types/Carbon/Blockchain/Vm/VmVariableSchema.d.ts +13 -0
- package/dist/core/types/Carbon/Blockchain/Vm/VmVariableSchema.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/Vm/VmVariableSchema.js +31 -0
- package/dist/core/types/Carbon/Blockchain/Vm/index.d.ts +10 -0
- package/dist/core/types/Carbon/Blockchain/Vm/index.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/Vm/index.js +25 -0
- package/dist/core/types/Carbon/Blockchain/index.d.ts +8 -0
- package/dist/core/types/Carbon/Blockchain/index.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/index.js +23 -0
- package/dist/core/types/Carbon/Bytes16.d.ts +13 -0
- package/dist/core/types/Carbon/Bytes16.d.ts.map +1 -0
- package/dist/core/types/Carbon/Bytes16.js +42 -0
- package/dist/core/types/Carbon/Bytes32.d.ts +13 -0
- package/dist/core/types/Carbon/Bytes32.d.ts.map +1 -0
- package/dist/core/types/Carbon/Bytes32.js +42 -0
- package/dist/core/types/Carbon/Bytes64.d.ts +13 -0
- package/dist/core/types/Carbon/Bytes64.d.ts.map +1 -0
- package/dist/core/types/Carbon/Bytes64.js +42 -0
- package/dist/core/types/Carbon/CarbonBlob.d.ts +11 -0
- package/dist/core/types/Carbon/CarbonBlob.d.ts.map +1 -0
- package/dist/core/types/Carbon/CarbonBlob.js +36 -0
- package/dist/core/types/Carbon/IntX.d.ts +15 -0
- package/dist/core/types/Carbon/IntX.d.ts.map +1 -0
- package/dist/core/types/Carbon/IntX.js +97 -0
- package/dist/core/types/Carbon/SmallString.d.ts +12 -0
- package/dist/core/types/Carbon/SmallString.d.ts.map +1 -0
- package/dist/core/types/Carbon/SmallString.js +38 -0
- package/dist/core/types/Carbon/TxTypes.d.ts +20 -0
- package/dist/core/types/Carbon/TxTypes.d.ts.map +1 -0
- package/dist/core/types/Carbon/TxTypes.js +23 -0
- package/dist/core/types/Carbon/Witness.d.ts +13 -0
- package/dist/core/types/Carbon/Witness.d.ts.map +1 -0
- package/dist/core/types/Carbon/Witness.js +25 -0
- package/dist/core/types/Carbon/index.d.ts +9 -0
- package/dist/core/types/Carbon/index.d.ts.map +1 -0
- package/dist/core/types/Carbon/index.js +24 -0
- package/dist/core/types/CarbonSerialization.d.ts +91 -0
- package/dist/core/types/CarbonSerialization.d.ts.map +1 -0
- package/dist/core/types/CarbonSerialization.js +447 -0
- package/{core → dist/core}/types/Consensus.d.ts +3 -3
- package/dist/core/types/Consensus.d.ts.map +1 -0
- package/{core → dist/core}/types/Consensus.js +56 -67
- package/{core → dist/core}/types/Contract.d.ts +4 -4
- package/dist/core/types/Contract.d.ts.map +1 -0
- package/dist/core/types/Contract.js +236 -0
- package/dist/core/types/DomainSettings.d.ts.map +1 -0
- package/dist/core/types/DomainSettings.js +103 -0
- package/{core → dist/core}/types/Ed25519Signature.d.ts +4 -4
- package/dist/core/types/Ed25519Signature.d.ts.map +1 -0
- package/dist/core/types/Ed25519Signature.js +55 -0
- package/dist/core/types/Entropy.d.ts.map +1 -0
- package/{core → dist/core}/types/Entropy.js +8 -11
- package/dist/core/types/Extensions/Base16.d.ts.map +1 -0
- package/dist/core/types/Extensions/Base16.js +34 -0
- package/dist/core/types/Extensions/Describer.d.ts.map +1 -0
- package/{core → dist/core}/types/Extensions/Describer.js +5 -9
- package/{core → dist/core}/types/Extensions/PBinaryReader.d.ts +3 -3
- package/dist/core/types/Extensions/PBinaryReader.d.ts.map +1 -0
- package/dist/core/types/Extensions/PBinaryReader.js +235 -0
- package/{core → dist/core}/types/Extensions/PBinaryWriter.d.ts +5 -5
- package/dist/core/types/Extensions/PBinaryWriter.d.ts.map +1 -0
- package/dist/core/types/Extensions/PBinaryWriter.js +233 -0
- package/dist/core/types/Extensions/index.d.ts.map +1 -0
- package/dist/core/types/PhantasmaBigIntSerialization.d.ts +59 -0
- package/dist/core/types/PhantasmaBigIntSerialization.d.ts.map +1 -0
- package/dist/core/types/PhantasmaBigIntSerialization.js +172 -0
- package/{core → dist/core}/types/PhantasmaKeys.d.ts +3 -3
- package/dist/core/types/PhantasmaKeys.d.ts.map +1 -0
- package/dist/core/types/PhantasmaKeys.js +83 -0
- package/dist/core/types/Serialization.d.ts.map +1 -0
- package/{core → dist/core}/types/Serialization.js +38 -43
- package/dist/core/types/Stack.d.ts.map +1 -0
- package/{core → dist/core}/types/Stack.js +21 -23
- package/dist/core/types/Timestamp.d.ts.map +1 -0
- package/dist/core/types/Timestamp.js +73 -0
- package/{core → dist/core}/types/index.d.ts +2 -0
- package/dist/core/types/index.d.ts.map +1 -0
- package/{core → dist/core}/types/index.js +2 -0
- package/dist/core/utils/Hex.d.ts +5 -0
- package/dist/core/utils/Hex.d.ts.map +1 -0
- package/dist/core/utils/Hex.js +31 -0
- package/{core → dist/core}/utils/index.d.ts +1 -8
- package/dist/core/utils/index.d.ts.map +1 -0
- package/dist/core/utils/index.js +173 -0
- package/dist/core/vm/Contracts.d.ts.map +1 -0
- package/dist/core/vm/Decoder.d.ts.map +1 -0
- package/dist/core/vm/Decoder.js +153 -0
- package/dist/core/vm/Disassembler.d.ts +3 -0
- package/dist/core/vm/Disassembler.d.ts.map +1 -0
- package/dist/core/vm/Disassembler.js +6 -0
- package/dist/core/vm/EventData.d.ts.map +1 -0
- package/{core → dist/core}/vm/EventData.js +1 -1
- package/dist/core/vm/Opcode.d.ts.map +1 -0
- package/dist/core/vm/ScriptBuilder.d.ts.map +1 -0
- package/dist/core/vm/ScriptBuilder.js +486 -0
- package/{core → dist/core}/vm/VMObject.d.ts +5 -5
- package/dist/core/vm/VMObject.d.ts.map +1 -0
- package/{core → dist/core}/vm/VMObject.js +348 -461
- package/dist/core/vm/VMType.d.ts.map +1 -0
- package/dist/core/vm/index.d.ts.map +1 -0
- package/dist/core/vm/utils/DisasmMethodCall.d.ts +8 -0
- package/dist/core/vm/utils/DisasmMethodCall.d.ts.map +1 -0
- package/dist/core/vm/utils/DisasmMethodCall.js +19 -0
- package/dist/core/vm/utils/DisasmUtils.d.ts +4 -0
- package/dist/core/vm/utils/DisasmUtils.d.ts.map +1 -0
- package/dist/core/vm/utils/DisasmUtils.js +26 -0
- package/{src/core/vm/utils/index.ts → dist/core/vm/utils/index.d.ts} +1 -0
- package/dist/core/vm/utils/index.d.ts.map +1 -0
- package/dist/core/vm/utils/index.js +18 -0
- package/dist/index.d.ts.map +1 -0
- package/package.json +42 -39
- package/.eslintignore +0 -13
- package/.eslintrc.cjs +0 -15
- package/.github/workflows/npm-publish.yml +0 -47
- package/.prettierignore +0 -13
- package/.prettierrc +0 -8
- package/babel.config.js +0 -6
- package/core/index.d.ts +0 -10
- package/core/index.d.ts.map +0 -1
- package/core/interfaces/IContract.d.ts.map +0 -1
- package/core/interfaces/IKeyPair.d.ts.map +0 -1
- package/core/interfaces/ISerializable.d.ts.map +0 -1
- package/core/interfaces/IStack.d.ts.map +0 -1
- package/core/interfaces/IToken.d.ts.map +0 -1
- package/core/interfaces/Signature.d.ts.map +0 -1
- package/core/interfaces/index.d.ts.map +0 -1
- package/core/ledger/Address-Transcode.d.ts.map +0 -1
- package/core/ledger/Ledger-Commands.d.ts.map +0 -1
- package/core/ledger/Ledger-Commands.js +0 -530
- package/core/ledger/Ledger-Utils.d.ts.map +0 -1
- package/core/ledger/Ledger-Utils.js +0 -609
- package/core/ledger/LedgerConfig.d.ts +0 -17
- package/core/ledger/LedgerConfig.d.ts.map +0 -1
- package/core/ledger/Mnemonic.d.ts.map +0 -1
- package/core/ledger/Transaction-Sign.d.ts.map +0 -1
- package/core/ledger/Transaction-Transcode.d.ts.map +0 -1
- package/core/ledger/index.d.ts.map +0 -1
- package/core/ledger/interfaces/ApplicationNameResponse.d.ts.map +0 -1
- package/core/ledger/interfaces/Device.d.ts.map +0 -1
- package/core/ledger/interfaces/DeviceResponse.d.ts.map +0 -1
- package/core/ledger/interfaces/Ledger.d.ts.map +0 -1
- package/core/ledger/interfaces/LedgerBalanceFromLedgerResponse.d.ts.map +0 -1
- package/core/ledger/interfaces/LedgerConfig.d.ts.map +0 -1
- package/core/ledger/interfaces/LedgerDeviceInfoResponse.d.ts.map +0 -1
- package/core/ledger/interfaces/LedgerSendTransactionResponse.d.ts.map +0 -1
- package/core/ledger/interfaces/LedgerSigner.d.ts.map +0 -1
- package/core/ledger/interfaces/LedgerSignerData.d.ts.map +0 -1
- package/core/ledger/interfaces/PublicKeyResponse.d.ts.map +0 -1
- package/core/ledger/interfaces/SignResponse.d.ts.map +0 -1
- package/core/ledger/interfaces/VersionResponse.d.ts.map +0 -1
- package/core/ledger/interfaces/index.d.ts.map +0 -1
- package/core/ledger/ledger-comm.d.ts +0 -85
- package/core/ledger/ledger-comm.d.ts.map +0 -1
- package/core/ledger/ledger-comm.js +0 -613
- package/core/link/easyConnect.d.ts.map +0 -1
- package/core/link/easyConnect.js +0 -237
- package/core/link/easyScript.d.ts.map +0 -1
- package/core/link/index.d.ts.map +0 -1
- package/core/link/interfaces/IAccount.d.ts.map +0 -1
- package/core/link/interfaces/IFile.d.ts.map +0 -1
- package/core/link/interfaces/ProofOfWork.d.ts.map +0 -1
- package/core/link/interfaces/index.d.ts.map +0 -1
- package/core/link/phantasmaLink.d.ts.map +0 -1
- package/core/rpc/index.d.ts.map +0 -1
- package/core/rpc/interfaces/ABIContract.d.ts.map +0 -1
- package/core/rpc/interfaces/ABIEvent.d.ts.map +0 -1
- package/core/rpc/interfaces/ABIMethod.d.ts.map +0 -1
- package/core/rpc/interfaces/ABIParameter.d.ts.map +0 -1
- package/core/rpc/interfaces/Account.d.ts.map +0 -1
- package/core/rpc/interfaces/AccountTransactions.d.ts.map +0 -1
- package/core/rpc/interfaces/Archive.d.ts.map +0 -1
- package/core/rpc/interfaces/Auction.d.ts.map +0 -1
- package/core/rpc/interfaces/Balance.d.ts.map +0 -1
- package/core/rpc/interfaces/Block.d.ts.map +0 -1
- package/core/rpc/interfaces/Chain.d.ts.map +0 -1
- package/core/rpc/interfaces/Channel.d.ts.map +0 -1
- package/core/rpc/interfaces/Contract.d.ts.map +0 -1
- package/core/rpc/interfaces/Dapp.d.ts.map +0 -1
- package/core/rpc/interfaces/Event.d.ts.map +0 -1
- package/core/rpc/interfaces/Governance.d.ts.map +0 -1
- package/core/rpc/interfaces/Interop.d.ts.map +0 -1
- package/core/rpc/interfaces/KeyValue.d.ts.map +0 -1
- package/core/rpc/interfaces/Leaderboard.d.ts.map +0 -1
- package/core/rpc/interfaces/LeaderboardRow.d.ts.map +0 -1
- package/core/rpc/interfaces/NFT.d.ts.map +0 -1
- package/core/rpc/interfaces/Nexus.d.ts.map +0 -1
- package/core/rpc/interfaces/Oracle.d.ts.map +0 -1
- package/core/rpc/interfaces/Organization.d.ts.map +0 -1
- package/core/rpc/interfaces/Paginated.d.ts.map +0 -1
- package/core/rpc/interfaces/Peer.d.ts.map +0 -1
- package/core/rpc/interfaces/Platform.d.ts.map +0 -1
- package/core/rpc/interfaces/Receipt.d.ts.map +0 -1
- package/core/rpc/interfaces/Script.d.ts.map +0 -1
- package/core/rpc/interfaces/SendRawTx.d.ts.map +0 -1
- package/core/rpc/interfaces/SignatureResult.d.ts.map +0 -1
- package/core/rpc/interfaces/Stake.d.ts.map +0 -1
- package/core/rpc/interfaces/Storage.d.ts.map +0 -1
- package/core/rpc/interfaces/Swap.d.ts.map +0 -1
- package/core/rpc/interfaces/Token.d.ts.map +0 -1
- package/core/rpc/interfaces/TokenData.d.ts.map +0 -1
- package/core/rpc/interfaces/TokenExternal.d.ts.map +0 -1
- package/core/rpc/interfaces/TokenPrice.d.ts.map +0 -1
- package/core/rpc/interfaces/TokenSeries.d.ts.map +0 -1
- package/core/rpc/interfaces/TransactionData.d.ts.map +0 -1
- package/core/rpc/interfaces/Validator.d.ts.map +0 -1
- package/core/rpc/interfaces/index.d.ts.map +0 -1
- package/core/rpc/phantasma.d.ts.map +0 -1
- package/core/rpc/phantasma.js +0 -900
- package/core/tx/SignatureKind.js +0 -9
- package/core/tx/Transaction.d.ts.map +0 -1
- package/core/tx/index.d.ts +0 -3
- package/core/tx/index.d.ts.map +0 -1
- package/core/tx/utils.d.ts.map +0 -1
- package/core/types/Address.d.ts.map +0 -1
- package/core/types/Address.js +0 -276
- package/core/types/Consensus.d.ts.map +0 -1
- package/core/types/Contract.d.ts.map +0 -1
- package/core/types/Contract.js +0 -342
- package/core/types/DomainSettings.d.ts.map +0 -1
- package/core/types/DomainSettings.js +0 -107
- package/core/types/Ed25519Signature.d.ts.map +0 -1
- package/core/types/Ed25519Signature.js +0 -78
- package/core/types/Entropy.d.ts.map +0 -1
- package/core/types/Extensions/Base16.d.ts.map +0 -1
- package/core/types/Extensions/Base16.js +0 -36
- package/core/types/Extensions/BinaryReader.d.ts +0 -17
- package/core/types/Extensions/BinaryReader.d.ts.map +0 -1
- package/core/types/Extensions/BinaryReader.js +0 -192
- package/core/types/Extensions/BinaryWriter.d.ts +0 -25
- package/core/types/Extensions/BinaryWriter.d.ts.map +0 -1
- package/core/types/Extensions/BinaryWriter.js +0 -191
- package/core/types/Extensions/Describer.d.ts.map +0 -1
- package/core/types/Extensions/PBinaryReader.d.ts.map +0 -1
- package/core/types/Extensions/PBinaryReader.js +0 -269
- package/core/types/Extensions/PBinaryWriter.d.ts.map +0 -1
- package/core/types/Extensions/PBinaryWriter.js +0 -250
- package/core/types/Extensions/TableColumns.d.ts +0 -5
- package/core/types/Extensions/TableColumns.d.ts.map +0 -1
- package/core/types/Extensions/TableColumns.js +0 -22
- package/core/types/Extensions/index.d.ts.map +0 -1
- package/core/types/PhantasmaKeys.d.ts.map +0 -1
- package/core/types/PhantasmaKeys.js +0 -92
- package/core/types/Serialization.d.ts.map +0 -1
- package/core/types/Stack.d.ts.map +0 -1
- package/core/types/Timestamp.d.ts.map +0 -1
- package/core/types/Timestamp.js +0 -74
- package/core/types/index.d.ts.map +0 -1
- package/core/utils/index.d.ts.map +0 -1
- package/core/utils/index.js +0 -236
- package/core/vm/Contracts.d.ts.map +0 -1
- package/core/vm/Decoder.d.ts.map +0 -1
- package/core/vm/Decoder.js +0 -175
- package/core/vm/EventData.d.ts.map +0 -1
- package/core/vm/Opcode.d.ts.map +0 -1
- package/core/vm/ScriptBuilder.d.ts.map +0 -1
- package/core/vm/ScriptBuilder.js +0 -586
- package/core/vm/VMObject.d.ts.map +0 -1
- package/core/vm/VMType.d.ts.map +0 -1
- package/core/vm/index.d.ts.map +0 -1
- package/html/TestWebPage.html +0 -187
- package/html/phantasma.js +0 -60504
- package/index.d.ts.map +0 -1
- package/jest.config.js +0 -5
- package/justfile +0 -15
- package/src/core/index.ts +0 -9
- package/src/core/interfaces/IContract.ts +0 -28
- package/src/core/interfaces/IKeyPair.ts +0 -14
- package/src/core/interfaces/ISerializable.ts +0 -6
- package/src/core/interfaces/IStack.ts +0 -6
- package/src/core/interfaces/IToken.ts +0 -31
- package/src/core/interfaces/Signature.ts +0 -32
- package/src/core/interfaces/index.ts +0 -6
- package/src/core/ledger/Address-Transcode.ts +0 -44
- package/src/core/ledger/Ledger-Commands.ts +0 -463
- package/src/core/ledger/Ledger-Utils.ts +0 -549
- package/src/core/ledger/Mnemonic.ts +0 -79
- package/src/core/ledger/Transaction-Sign.ts +0 -126
- package/src/core/ledger/Transaction-Transcode.ts +0 -56
- package/src/core/ledger/index.ts +0 -8
- package/src/core/ledger/interfaces/ApplicationNameResponse.ts +0 -5
- package/src/core/ledger/interfaces/Device.ts +0 -6
- package/src/core/ledger/interfaces/DeviceResponse.ts +0 -6
- package/src/core/ledger/interfaces/Ledger.ts +0 -10
- package/src/core/ledger/interfaces/LedgerBalanceFromLedgerResponse.ts +0 -9
- package/src/core/ledger/interfaces/LedgerConfig.ts +0 -17
- package/src/core/ledger/interfaces/LedgerDeviceInfoResponse.ts +0 -7
- package/src/core/ledger/interfaces/LedgerSendTransactionResponse.ts +0 -4
- package/src/core/ledger/interfaces/LedgerSigner.ts +0 -6
- package/src/core/ledger/interfaces/LedgerSignerData.ts +0 -8
- package/src/core/ledger/interfaces/PublicKeyResponse.ts +0 -5
- package/src/core/ledger/interfaces/SignResponse.ts +0 -5
- package/src/core/ledger/interfaces/VersionResponse.ts +0 -5
- package/src/core/ledger/interfaces/index.ts +0 -13
- package/src/core/link/easyConnect.ts +0 -214
- package/src/core/link/easyScript.ts +0 -67
- package/src/core/link/index.ts +0 -1
- package/src/core/link/interfaces/IAccount.ts +0 -13
- package/src/core/link/interfaces/IFile.ts +0 -6
- package/src/core/link/interfaces/ProofOfWork.ts +0 -8
- package/src/core/link/interfaces/index.ts +0 -3
- package/src/core/link/phantasmaLink.ts +0 -561
- package/src/core/rpc/index.ts +0 -2
- package/src/core/rpc/interfaces/ABIContract.ts +0 -6
- package/src/core/rpc/interfaces/ABIEvent.ts +0 -6
- package/src/core/rpc/interfaces/ABIMethod.ts +0 -7
- package/src/core/rpc/interfaces/ABIParameter.ts +0 -4
- package/src/core/rpc/interfaces/Account.ts +0 -16
- package/src/core/rpc/interfaces/AccountTransactions.ts +0 -6
- package/src/core/rpc/interfaces/Archive.ts +0 -10
- package/src/core/rpc/interfaces/Auction.ts +0 -12
- package/src/core/rpc/interfaces/Balance.ts +0 -7
- package/src/core/rpc/interfaces/Block.ts +0 -17
- package/src/core/rpc/interfaces/Chain.ts +0 -9
- package/src/core/rpc/interfaces/Channel.ts +0 -12
- package/src/core/rpc/interfaces/Contract.ts +0 -11
- package/src/core/rpc/interfaces/Dapp.ts +0 -5
- package/src/core/rpc/interfaces/Event.ts +0 -6
- package/src/core/rpc/interfaces/Governance.ts +0 -4
- package/src/core/rpc/interfaces/Interop.ts +0 -4
- package/src/core/rpc/interfaces/KeyValue.ts +0 -4
- package/src/core/rpc/interfaces/Leaderboard.ts +0 -6
- package/src/core/rpc/interfaces/LeaderboardRow.ts +0 -4
- package/src/core/rpc/interfaces/NFT.ts +0 -14
- package/src/core/rpc/interfaces/Nexus.ts +0 -14
- package/src/core/rpc/interfaces/Oracle.ts +0 -4
- package/src/core/rpc/interfaces/Organization.ts +0 -5
- package/src/core/rpc/interfaces/Paginated.ts +0 -7
- package/src/core/rpc/interfaces/Peer.ts +0 -7
- package/src/core/rpc/interfaces/Platform.ts +0 -9
- package/src/core/rpc/interfaces/Receipt.ts +0 -9
- package/src/core/rpc/interfaces/Script.ts +0 -9
- package/src/core/rpc/interfaces/SendRawTx.ts +0 -4
- package/src/core/rpc/interfaces/SignatureResult.ts +0 -4
- package/src/core/rpc/interfaces/Stake.ts +0 -5
- package/src/core/rpc/interfaces/Storage.ts +0 -8
- package/src/core/rpc/interfaces/Swap.ts +0 -12
- package/src/core/rpc/interfaces/Token.ts +0 -19
- package/src/core/rpc/interfaces/TokenData.ts +0 -12
- package/src/core/rpc/interfaces/TokenExternal.ts +0 -4
- package/src/core/rpc/interfaces/TokenPrice.ts +0 -7
- package/src/core/rpc/interfaces/TokenSeries.ts +0 -12
- package/src/core/rpc/interfaces/TransactionData.ts +0 -23
- package/src/core/rpc/interfaces/Validator.ts +0 -4
- package/src/core/rpc/interfaces/index.ts +0 -41
- package/src/core/rpc/phantasma.ts +0 -466
- package/src/core/tx/Transaction.ts +0 -258
- package/src/core/tx/index.ts +0 -2
- package/src/core/tx/utils.ts +0 -106
- package/src/core/types/Address.ts +0 -290
- package/src/core/types/Consensus.ts +0 -181
- package/src/core/types/Contract.ts +0 -324
- package/src/core/types/DomainSettings.ts +0 -128
- package/src/core/types/Ed25519Signature.ts +0 -78
- package/src/core/types/Entropy.ts +0 -16
- package/src/core/types/Extensions/Base16.ts +0 -36
- package/src/core/types/Extensions/Describer.ts +0 -17
- package/src/core/types/Extensions/PBinaryReader.ts +0 -247
- package/src/core/types/Extensions/PBinaryWriter.ts +0 -278
- package/src/core/types/Extensions/index.ts +0 -4
- package/src/core/types/PhantasmaKeys.ts +0 -119
- package/src/core/types/Serialization.ts +0 -211
- package/src/core/types/Stack.ts +0 -46
- package/src/core/types/Timestamp.ts +0 -93
- package/src/core/types/index.ts +0 -11
- package/src/core/utils/index.ts +0 -206
- package/src/core/vm/Contracts.ts +0 -17
- package/src/core/vm/Decoder.ts +0 -162
- package/src/core/vm/Disassembler.ts +0 -1
- package/src/core/vm/EventData.ts +0 -135
- package/src/core/vm/Opcode.ts +0 -74
- package/src/core/vm/ScriptBuilder.ts +0 -569
- package/src/core/vm/VMObject.ts +0 -1162
- package/src/core/vm/VMType.ts +0 -11
- package/src/core/vm/index.ts +0 -7
- package/src/core/vm/utils/DisasmMethodCall.ts +0 -22
- package/src/core/vm/utils/DisasmUtils.ts +0 -89
- package/src/index.ts +0 -7
- package/tests/VMObject.test.ts +0 -146
- package/tests/ledger/Address-Transacode.test.ts +0 -26
- package/tests/tx/Transaction.test.ts +0 -269
- package/tests/types/Address.test.ts +0 -26
- package/tests/types/Consensus.test.ts +0 -67
- package/tsconfig.json +0 -29
- /package/{core/interfaces/IKeyPair.js → dist/core/interfaces/Carbon/ICarbonBlob.js} +0 -0
- /package/{core → dist/core}/interfaces/IContract.d.ts +0 -0
- /package/{core → dist/core}/interfaces/IContract.js +0 -0
- /package/{core → dist/core}/interfaces/IKeyPair.d.ts +0 -0
- /package/{core/interfaces/IStack.js → dist/core/interfaces/IKeyPair.js} +0 -0
- /package/{core → dist/core}/interfaces/ISerializable.d.ts +0 -0
- /package/{core → dist/core}/interfaces/IStack.d.ts +0 -0
- /package/{core/ledger/LedgerConfig.js → dist/core/interfaces/IStack.js} +0 -0
- /package/{core → dist/core}/interfaces/IToken.d.ts +0 -0
- /package/{core → dist/core}/interfaces/IToken.js +0 -0
- /package/{core → dist/core}/interfaces/Signature.d.ts +0 -0
- /package/{core → dist/core}/ledger/Address-Transcode.d.ts +0 -0
- /package/{core → dist/core}/ledger/Ledger-Commands.d.ts +0 -0
- /package/{core → dist/core}/ledger/Ledger-Utils.d.ts +0 -0
- /package/{core → dist/core}/ledger/Mnemonic.d.ts +0 -0
- /package/{core → dist/core}/ledger/Transaction-Sign.d.ts +0 -0
- /package/{core → dist/core}/ledger/Transaction-Transcode.d.ts +0 -0
- /package/{core → dist/core}/ledger/index.d.ts +0 -0
- /package/{core → dist/core}/ledger/index.js +0 -0
- /package/{core → dist/core}/ledger/interfaces/ApplicationNameResponse.d.ts +0 -0
- /package/{core → dist/core}/ledger/interfaces/ApplicationNameResponse.js +0 -0
- /package/{core → dist/core}/ledger/interfaces/Device.d.ts +0 -0
- /package/{core → dist/core}/ledger/interfaces/Device.js +0 -0
- /package/{core → dist/core}/ledger/interfaces/DeviceResponse.d.ts +0 -0
- /package/{core → dist/core}/ledger/interfaces/DeviceResponse.js +0 -0
- /package/{core → dist/core}/ledger/interfaces/Ledger.d.ts +0 -0
- /package/{core → dist/core}/ledger/interfaces/Ledger.js +0 -0
- /package/{core → dist/core}/ledger/interfaces/LedgerBalanceFromLedgerResponse.d.ts +0 -0
- /package/{core → dist/core}/ledger/interfaces/LedgerBalanceFromLedgerResponse.js +0 -0
- /package/{core → dist/core}/ledger/interfaces/LedgerConfig.d.ts +0 -0
- /package/{core → dist/core}/ledger/interfaces/LedgerConfig.js +0 -0
- /package/{core → dist/core}/ledger/interfaces/LedgerDeviceInfoResponse.d.ts +0 -0
- /package/{core → dist/core}/ledger/interfaces/LedgerDeviceInfoResponse.js +0 -0
- /package/{core → dist/core}/ledger/interfaces/LedgerSendTransactionResponse.d.ts +0 -0
- /package/{core → dist/core}/ledger/interfaces/LedgerSendTransactionResponse.js +0 -0
- /package/{core → dist/core}/ledger/interfaces/LedgerSigner.d.ts +0 -0
- /package/{core → dist/core}/ledger/interfaces/LedgerSigner.js +0 -0
- /package/{core → dist/core}/ledger/interfaces/LedgerSignerData.d.ts +0 -0
- /package/{core → dist/core}/ledger/interfaces/LedgerSignerData.js +0 -0
- /package/{core → dist/core}/ledger/interfaces/PublicKeyResponse.d.ts +0 -0
- /package/{core → dist/core}/ledger/interfaces/PublicKeyResponse.js +0 -0
- /package/{core → dist/core}/ledger/interfaces/SignResponse.d.ts +0 -0
- /package/{core → dist/core}/ledger/interfaces/SignResponse.js +0 -0
- /package/{core → dist/core}/ledger/interfaces/VersionResponse.d.ts +0 -0
- /package/{core → dist/core}/ledger/interfaces/VersionResponse.js +0 -0
- /package/{core → dist/core}/ledger/interfaces/index.d.ts +0 -0
- /package/{core → dist/core}/ledger/interfaces/index.js +0 -0
- /package/{core → dist/core}/link/easyConnect.d.ts +0 -0
- /package/{core → dist/core}/link/easyScript.d.ts +0 -0
- /package/{core → dist/core}/link/index.d.ts +0 -0
- /package/{core → dist/core}/link/index.js +0 -0
- /package/{core → dist/core}/link/interfaces/IAccount.d.ts +0 -0
- /package/{core → dist/core}/link/interfaces/IAccount.js +0 -0
- /package/{core → dist/core}/link/interfaces/IFile.d.ts +0 -0
- /package/{core → dist/core}/link/interfaces/IFile.js +0 -0
- /package/{core → dist/core}/link/interfaces/ProofOfWork.d.ts +0 -0
- /package/{core → dist/core}/link/interfaces/ProofOfWork.js +0 -0
- /package/{core → dist/core}/link/interfaces/index.d.ts +0 -0
- /package/{core → dist/core}/link/interfaces/index.js +0 -0
- /package/{core → dist/core}/link/phantasmaLink.d.ts +0 -0
- /package/{core → dist/core}/rpc/index.d.ts +0 -0
- /package/{core → dist/core}/rpc/index.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/ABIContract.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/ABIContract.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/ABIEvent.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/ABIEvent.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/ABIMethod.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/ABIMethod.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/ABIParameter.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/ABIParameter.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/Account.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/Account.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/AccountTransactions.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/AccountTransactions.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/Archive.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/Archive.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/Auction.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/Auction.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/Balance.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/Balance.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/Block.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/Block.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/Chain.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/Chain.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/Channel.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/Channel.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/Contract.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/Contract.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/Dapp.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/Dapp.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/Event.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/Event.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/Governance.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/Governance.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/Interop.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/Interop.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/KeyValue.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/KeyValue.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/Leaderboard.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/Leaderboard.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/LeaderboardRow.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/LeaderboardRow.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/NFT.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/NFT.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/Nexus.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/Nexus.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/Oracle.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/Oracle.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/Organization.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/Organization.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/Paginated.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/Paginated.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/Peer.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/Peer.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/Platform.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/Platform.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/Receipt.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/Receipt.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/Script.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/Script.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/SendRawTx.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/SendRawTx.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/SignatureResult.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/SignatureResult.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/Stake.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/Stake.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/Storage.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/Storage.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/Swap.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/Swap.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/Token.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/Token.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/TokenData.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/TokenData.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/TokenExternal.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/TokenExternal.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/TokenPrice.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/TokenPrice.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/TokenSeries.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/TokenSeries.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/TransactionData.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/Validator.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/Validator.js +0 -0
- /package/{core → dist/core}/rpc/interfaces/index.d.ts +0 -0
- /package/{core → dist/core}/rpc/interfaces/index.js +0 -0
- /package/{core → dist/core}/tx/Transaction.d.ts +0 -0
- /package/{core → dist/core}/tx/utils.d.ts +0 -0
- /package/{core → dist/core}/types/Address.d.ts +0 -0
- /package/{core → dist/core}/types/DomainSettings.d.ts +0 -0
- /package/{core → dist/core}/types/Entropy.d.ts +0 -0
- /package/{core → dist/core}/types/Extensions/Base16.d.ts +0 -0
- /package/{core → dist/core}/types/Extensions/Describer.d.ts +0 -0
- /package/{core → dist/core}/types/Extensions/index.d.ts +0 -0
- /package/{core → dist/core}/types/Extensions/index.js +0 -0
- /package/{core → dist/core}/types/Serialization.d.ts +0 -0
- /package/{core → dist/core}/types/Stack.d.ts +0 -0
- /package/{core → dist/core}/types/Timestamp.d.ts +0 -0
- /package/{core → dist/core}/vm/Contracts.d.ts +0 -0
- /package/{core → dist/core}/vm/Contracts.js +0 -0
- /package/{core → dist/core}/vm/Decoder.d.ts +0 -0
- /package/{core → dist/core}/vm/EventData.d.ts +0 -0
- /package/{core → dist/core}/vm/Opcode.d.ts +0 -0
- /package/{core → dist/core}/vm/Opcode.js +0 -0
- /package/{core → dist/core}/vm/ScriptBuilder.d.ts +0 -0
- /package/{core → dist/core}/vm/VMType.d.ts +0 -0
- /package/{core → dist/core}/vm/VMType.js +0 -0
- /package/{core → dist/core}/vm/index.d.ts +0 -0
- /package/{core → dist/core}/vm/index.js +0 -0
- /package/{index.d.ts → dist/index.d.ts} +0 -0
- /package/{index.js → dist/index.js} +0 -0
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Binary serialization helpers matching Carbon's Serialization.cs
|
|
4
|
+
* - Little-endian for all integers
|
|
5
|
+
* - Zero-terminated UTF-8 strings
|
|
6
|
+
* - BigInt compact format:
|
|
7
|
+
* header: 0 -> zero; otherwise lower 6 bits = length (1..32), bit7 = sign (1 for negative)
|
|
8
|
+
* payload: little-endian two's complement without extra sign byte
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.readBlob = exports.writeBlob = exports.twosComplementLEToBigInt = exports.bigIntToTwosComplementLE = exports.CarbonBinaryReader = exports.CarbonBinaryWriter = exports.Throw = void 0;
|
|
12
|
+
const textEncoder = new TextEncoder();
|
|
13
|
+
const textDecoder = new TextDecoder();
|
|
14
|
+
class Throw {
|
|
15
|
+
static If(cond, msg) {
|
|
16
|
+
if (cond) {
|
|
17
|
+
throw new Error(msg);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
static Assert(cond, msg = 'assertion failed') {
|
|
21
|
+
if (!cond) {
|
|
22
|
+
throw new Error(msg);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.Throw = Throw;
|
|
27
|
+
class CarbonBinaryWriter {
|
|
28
|
+
constructor() {
|
|
29
|
+
this.chunks = [];
|
|
30
|
+
this.size = 0;
|
|
31
|
+
}
|
|
32
|
+
push(data) {
|
|
33
|
+
this.chunks.push(data);
|
|
34
|
+
this.size += data.length;
|
|
35
|
+
}
|
|
36
|
+
toUint8Array() {
|
|
37
|
+
const out = new Uint8Array(this.size);
|
|
38
|
+
let offset = 0;
|
|
39
|
+
for (const c of this.chunks) {
|
|
40
|
+
out.set(c, offset);
|
|
41
|
+
offset += c.length;
|
|
42
|
+
}
|
|
43
|
+
return out;
|
|
44
|
+
}
|
|
45
|
+
// Raw write helpers
|
|
46
|
+
write(data) {
|
|
47
|
+
this.push(data);
|
|
48
|
+
}
|
|
49
|
+
write1(v) {
|
|
50
|
+
const b = new Uint8Array(1);
|
|
51
|
+
b[0] = v & 0xff;
|
|
52
|
+
this.push(b);
|
|
53
|
+
}
|
|
54
|
+
write2(v) {
|
|
55
|
+
const b = new Uint8Array(2);
|
|
56
|
+
new DataView(b.buffer).setInt16(0, v, true);
|
|
57
|
+
this.push(b);
|
|
58
|
+
}
|
|
59
|
+
write4(v) {
|
|
60
|
+
const b = new Uint8Array(4);
|
|
61
|
+
new DataView(b.buffer).setInt32(0, v | 0, true);
|
|
62
|
+
this.push(b);
|
|
63
|
+
}
|
|
64
|
+
write4u(v) {
|
|
65
|
+
const b = new Uint8Array(4);
|
|
66
|
+
new DataView(b.buffer).setUint32(0, v >>> 0, true);
|
|
67
|
+
this.push(b);
|
|
68
|
+
}
|
|
69
|
+
write8(v) {
|
|
70
|
+
const b = new Uint8Array(8);
|
|
71
|
+
const dv = new DataView(b.buffer);
|
|
72
|
+
dv.setBigInt64(0, v, true);
|
|
73
|
+
this.push(b);
|
|
74
|
+
}
|
|
75
|
+
write8u(v) {
|
|
76
|
+
const b = new Uint8Array(8);
|
|
77
|
+
const dv = new DataView(b.buffer);
|
|
78
|
+
dv.setBigUint64(0, v, true);
|
|
79
|
+
this.push(b);
|
|
80
|
+
}
|
|
81
|
+
// Fixed-size blobs
|
|
82
|
+
writeExactly(data, count) {
|
|
83
|
+
Throw.If(data.length !== count, 'incorrect input size');
|
|
84
|
+
this.push(data);
|
|
85
|
+
}
|
|
86
|
+
write16(data) {
|
|
87
|
+
const bytes = data instanceof Uint8Array ? data : data.bytes;
|
|
88
|
+
this.writeExactly(bytes, 16);
|
|
89
|
+
}
|
|
90
|
+
write32(data) {
|
|
91
|
+
const bytes = data instanceof Uint8Array ? data : data.bytes;
|
|
92
|
+
this.writeExactly(bytes, 32);
|
|
93
|
+
}
|
|
94
|
+
write64(data) {
|
|
95
|
+
const bytes = data instanceof Uint8Array ? data : data.bytes;
|
|
96
|
+
this.writeExactly(bytes, 64);
|
|
97
|
+
}
|
|
98
|
+
// Blobs (ICarbonBlob)
|
|
99
|
+
writeBlob(data) {
|
|
100
|
+
data.write(this);
|
|
101
|
+
}
|
|
102
|
+
writeArrayBlob(arr) {
|
|
103
|
+
this.write4(arr.length);
|
|
104
|
+
for (const t of arr) {
|
|
105
|
+
t.write(this);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
// BigInt compact format (<= 32 bytes)
|
|
109
|
+
writeBigInt(value) {
|
|
110
|
+
if (value === 0n) {
|
|
111
|
+
this.write1(0);
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
// Convert to minimal little-endian two's complement
|
|
115
|
+
let bytes = bigIntToTwosComplementLE(value);
|
|
116
|
+
// If longer than 32 and is only sign extension to 33, trim to 32 and recurse (mimics C#)
|
|
117
|
+
if (bytes.length > 32) {
|
|
118
|
+
Throw.Assert(bytes.length === 33 && (bytes[32] === 0x00 || bytes[32] === 0xff), 'BigInt overflow');
|
|
119
|
+
bytes = bytes.slice(0, 32);
|
|
120
|
+
this.writeBigInt(twosComplementLEToBigInt(bytes));
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
this.writeBigIntRaw(bytes);
|
|
124
|
+
}
|
|
125
|
+
writeBigIntRaw(bytes) {
|
|
126
|
+
const length = bytes.length;
|
|
127
|
+
Throw.Assert(length > 0 && length <= 32, 'BigInt too big');
|
|
128
|
+
// infer sign from inherent top bit
|
|
129
|
+
const signFromBytes = (bytes[length - 1] & 0x80) !== 0 ? -1 : 1;
|
|
130
|
+
const signBit = signFromBytes < 0 ? 0x80 : 0;
|
|
131
|
+
const header = (length & 0x3f) | signBit;
|
|
132
|
+
this.write1(header);
|
|
133
|
+
this.writeExactly(bytes, length);
|
|
134
|
+
}
|
|
135
|
+
writeArrayBigInt(items) {
|
|
136
|
+
this.write4(items.length);
|
|
137
|
+
for (const x of items) {
|
|
138
|
+
this.writeBigInt(x);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
// Strings (zero-terminated UTF-8)
|
|
142
|
+
writeSz(s) {
|
|
143
|
+
const bytes = textEncoder.encode(s);
|
|
144
|
+
for (const b of bytes) {
|
|
145
|
+
Throw.Assert(b !== 0, 'string contains zero byte');
|
|
146
|
+
}
|
|
147
|
+
this.write(bytes);
|
|
148
|
+
this.write1(0);
|
|
149
|
+
}
|
|
150
|
+
writeArraySz(arr) {
|
|
151
|
+
this.write4(arr.length);
|
|
152
|
+
for (const s of arr) {
|
|
153
|
+
this.writeSz(s);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
// Variable-length byte arrays
|
|
157
|
+
writeArray(bytes) {
|
|
158
|
+
this.write4(bytes.length);
|
|
159
|
+
this.write(bytes);
|
|
160
|
+
}
|
|
161
|
+
writeArray64u(arr) {
|
|
162
|
+
this.write4(arr.length);
|
|
163
|
+
for (const v of arr) {
|
|
164
|
+
this.write8u(v);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
writeArray64(arr) {
|
|
168
|
+
this.write4(arr.length);
|
|
169
|
+
for (const v of arr) {
|
|
170
|
+
this.write8(v);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
writeArray32(arr) {
|
|
174
|
+
this.write4(arr.length);
|
|
175
|
+
for (const v of arr) {
|
|
176
|
+
this.write4(v);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
writeArray16(arr) {
|
|
180
|
+
this.write4(arr.length);
|
|
181
|
+
for (const v of arr) {
|
|
182
|
+
this.write2(v);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
writeArray8(arr) {
|
|
186
|
+
this.write4(arr.length);
|
|
187
|
+
for (const v of arr) {
|
|
188
|
+
this.write1(v);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
writeArrayOfArrays(arr) {
|
|
192
|
+
this.write4(arr.length);
|
|
193
|
+
for (const a of arr) {
|
|
194
|
+
this.writeArray(a);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
exports.CarbonBinaryWriter = CarbonBinaryWriter;
|
|
199
|
+
class CarbonBinaryReader {
|
|
200
|
+
constructor(buffer) {
|
|
201
|
+
this.offset = 0;
|
|
202
|
+
this.bytes = buffer instanceof Uint8Array ? buffer : new Uint8Array(buffer);
|
|
203
|
+
this.view = new DataView(this.bytes.buffer, this.bytes.byteOffset, this.bytes.byteLength);
|
|
204
|
+
}
|
|
205
|
+
take(count) {
|
|
206
|
+
Throw.If(this.offset + count > this.bytes.length, 'end of stream reached');
|
|
207
|
+
const out = this.bytes.subarray(this.offset, this.offset + count);
|
|
208
|
+
this.offset += count;
|
|
209
|
+
return out;
|
|
210
|
+
}
|
|
211
|
+
readRemaining() {
|
|
212
|
+
return this.take(this.bytes.length - this.offset);
|
|
213
|
+
}
|
|
214
|
+
// Raw reads
|
|
215
|
+
read1() {
|
|
216
|
+
const b = this.bytes[this.offset];
|
|
217
|
+
this.offset += 1;
|
|
218
|
+
return b;
|
|
219
|
+
}
|
|
220
|
+
read2() {
|
|
221
|
+
const v = this.view.getInt16(this.offset, true);
|
|
222
|
+
this.offset += 2;
|
|
223
|
+
return v;
|
|
224
|
+
}
|
|
225
|
+
read4() {
|
|
226
|
+
const v = this.view.getInt32(this.offset, true);
|
|
227
|
+
this.offset += 4;
|
|
228
|
+
return v;
|
|
229
|
+
}
|
|
230
|
+
read4u() {
|
|
231
|
+
const v = this.view.getUint32(this.offset, true);
|
|
232
|
+
this.offset += 4;
|
|
233
|
+
return v;
|
|
234
|
+
}
|
|
235
|
+
read8() {
|
|
236
|
+
const v = this.view.getBigInt64(this.offset, true);
|
|
237
|
+
this.offset += 8;
|
|
238
|
+
return v;
|
|
239
|
+
}
|
|
240
|
+
read8u() {
|
|
241
|
+
const v = this.view.getBigUint64(this.offset, true);
|
|
242
|
+
this.offset += 8;
|
|
243
|
+
return v;
|
|
244
|
+
}
|
|
245
|
+
// Fixed-size blobs
|
|
246
|
+
readExactly(count) {
|
|
247
|
+
return this.take(count);
|
|
248
|
+
}
|
|
249
|
+
read16() {
|
|
250
|
+
return this.take(16);
|
|
251
|
+
}
|
|
252
|
+
read32() {
|
|
253
|
+
return this.take(32);
|
|
254
|
+
}
|
|
255
|
+
read64() {
|
|
256
|
+
return this.take(64);
|
|
257
|
+
}
|
|
258
|
+
readInto16(out) {
|
|
259
|
+
out.bytes = this.read16();
|
|
260
|
+
}
|
|
261
|
+
readInto32(out) {
|
|
262
|
+
out.bytes = this.read32();
|
|
263
|
+
}
|
|
264
|
+
readInto64(out) {
|
|
265
|
+
out.bytes = this.read64();
|
|
266
|
+
}
|
|
267
|
+
// Blobs (ICarbonBlob)
|
|
268
|
+
readBlob(ctor) {
|
|
269
|
+
const t = new ctor();
|
|
270
|
+
t.read(this);
|
|
271
|
+
return t;
|
|
272
|
+
}
|
|
273
|
+
readArrayBlob(ctor) {
|
|
274
|
+
const len = this.read4();
|
|
275
|
+
const arr = new Array(len);
|
|
276
|
+
for (let i = 0; i < len; i++) {
|
|
277
|
+
const t = new ctor();
|
|
278
|
+
t.read(this);
|
|
279
|
+
arr[i] = t;
|
|
280
|
+
}
|
|
281
|
+
return arr;
|
|
282
|
+
}
|
|
283
|
+
// BigInt compact format
|
|
284
|
+
readBigInt() {
|
|
285
|
+
const header = this.read1();
|
|
286
|
+
if (header === 0) {
|
|
287
|
+
return 0n;
|
|
288
|
+
}
|
|
289
|
+
const sign = (header & 0x80) !== 0 ? -1 : 1;
|
|
290
|
+
const length = header & 0x3f;
|
|
291
|
+
Throw.If(length > 32, 'BigInt too big');
|
|
292
|
+
if (length === 0) {
|
|
293
|
+
return 0n;
|
|
294
|
+
}
|
|
295
|
+
let bytes = this.readExactly(length);
|
|
296
|
+
// Ensure inherent sign matches header by adding explicit sign extension byte if needed
|
|
297
|
+
const inherentSign = (bytes[bytes.length - 1] & 0x80) !== 0 ? -1 : 1;
|
|
298
|
+
if (inherentSign !== sign) {
|
|
299
|
+
const ext = sign >= 0 ? 0x00 : 0xff;
|
|
300
|
+
const tmp = new Uint8Array(bytes.length + 1);
|
|
301
|
+
tmp.set(bytes, 0);
|
|
302
|
+
tmp[tmp.length - 1] = ext;
|
|
303
|
+
bytes = tmp;
|
|
304
|
+
}
|
|
305
|
+
const bi = twosComplementLEToBigInt(bytes);
|
|
306
|
+
// Sanity check: signs must match
|
|
307
|
+
Throw.Assert((bi < 0n ? -1 : bi > 0n ? 1 : 0) === sign || bi === 0n, 'BigInt sign mismatch');
|
|
308
|
+
return bi;
|
|
309
|
+
}
|
|
310
|
+
readArrayBigInt() {
|
|
311
|
+
const len = this.read4();
|
|
312
|
+
const arr = new Array(len);
|
|
313
|
+
for (let i = 0; i < len; i++)
|
|
314
|
+
arr[i] = this.readBigInt();
|
|
315
|
+
return arr;
|
|
316
|
+
}
|
|
317
|
+
// Strings (zero-terminated UTF-8)
|
|
318
|
+
readSz() {
|
|
319
|
+
const start = this.offset;
|
|
320
|
+
while (true) {
|
|
321
|
+
Throw.If(this.offset >= this.bytes.length, 'end of stream reached');
|
|
322
|
+
if (this.bytes[this.offset] === 0)
|
|
323
|
+
break;
|
|
324
|
+
this.offset++;
|
|
325
|
+
}
|
|
326
|
+
const slice = this.bytes.subarray(start, this.offset);
|
|
327
|
+
this.offset++; // skip zero
|
|
328
|
+
return textDecoder.decode(slice);
|
|
329
|
+
}
|
|
330
|
+
readArraySz() {
|
|
331
|
+
const len = this.read4();
|
|
332
|
+
const out = new Array(len);
|
|
333
|
+
for (let i = 0; i < len; i++)
|
|
334
|
+
out[i] = this.readSz();
|
|
335
|
+
return out;
|
|
336
|
+
}
|
|
337
|
+
// Variable-length byte arrays
|
|
338
|
+
readArray() {
|
|
339
|
+
const len = this.read4();
|
|
340
|
+
return this.readExactly(len);
|
|
341
|
+
}
|
|
342
|
+
readArrayOfArrays() {
|
|
343
|
+
const len = this.read4();
|
|
344
|
+
const arr = new Array(len);
|
|
345
|
+
for (let i = 0; i < len; i++)
|
|
346
|
+
arr[i] = this.readArray();
|
|
347
|
+
return arr;
|
|
348
|
+
}
|
|
349
|
+
readArray64u() {
|
|
350
|
+
const len = this.read4();
|
|
351
|
+
const out = new Array(len);
|
|
352
|
+
for (let i = 0; i < len; i++)
|
|
353
|
+
out[i] = this.read8u();
|
|
354
|
+
return out;
|
|
355
|
+
}
|
|
356
|
+
readArray64() {
|
|
357
|
+
const len = this.read4();
|
|
358
|
+
const out = new Array(len);
|
|
359
|
+
for (let i = 0; i < len; i++)
|
|
360
|
+
out[i] = this.read8();
|
|
361
|
+
return out;
|
|
362
|
+
}
|
|
363
|
+
readArray32() {
|
|
364
|
+
const len = this.read4();
|
|
365
|
+
const out = new Array(len);
|
|
366
|
+
for (let i = 0; i < len; i++)
|
|
367
|
+
out[i] = this.read4();
|
|
368
|
+
return out;
|
|
369
|
+
}
|
|
370
|
+
readArray16() {
|
|
371
|
+
const len = this.read4();
|
|
372
|
+
const out = new Array(len);
|
|
373
|
+
for (let i = 0; i < len; i++)
|
|
374
|
+
out[i] = this.read2();
|
|
375
|
+
return out;
|
|
376
|
+
}
|
|
377
|
+
readArray8() {
|
|
378
|
+
const len = this.read4();
|
|
379
|
+
const out = new Array(len);
|
|
380
|
+
for (let i = 0; i < len; i++)
|
|
381
|
+
out[i] = this.read1();
|
|
382
|
+
return out;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
exports.CarbonBinaryReader = CarbonBinaryReader;
|
|
386
|
+
/**
|
|
387
|
+
* Convert bigint to minimal little-endian two's complement bytes
|
|
388
|
+
* Behavior mirrors .NET BigInteger.ToByteArray() but never returns 0-length
|
|
389
|
+
*/
|
|
390
|
+
function bigIntToTwosComplementLE(value) {
|
|
391
|
+
if (value === 0n)
|
|
392
|
+
return new Uint8Array([0]);
|
|
393
|
+
const negative = value < 0n;
|
|
394
|
+
let v = value;
|
|
395
|
+
// Extract bytes little-endian
|
|
396
|
+
const out = [];
|
|
397
|
+
if (!negative) {
|
|
398
|
+
while (v > 0n) {
|
|
399
|
+
out.push(Number(v & 0xffn));
|
|
400
|
+
v >>= 8n;
|
|
401
|
+
}
|
|
402
|
+
// If the highest byte would imply negative (bit7 set), append a 0x00 sign byte
|
|
403
|
+
if ((out[out.length - 1] & 0x80) !== 0)
|
|
404
|
+
out.push(0x00);
|
|
405
|
+
}
|
|
406
|
+
else {
|
|
407
|
+
// For negative numbers, two's complement infinite ones; emulate via loop
|
|
408
|
+
// We repeatedly take (v & 0xFF) then arithmetic shift
|
|
409
|
+
while (v !== -1n && v !== 0n) {
|
|
410
|
+
out.push(Number(v & 0xffn));
|
|
411
|
+
v >>= 8n;
|
|
412
|
+
}
|
|
413
|
+
// Ensure top byte has MSB set to keep negative sign
|
|
414
|
+
if (out.length === 0 || (out[out.length - 1] & 0x80) === 0)
|
|
415
|
+
out.push(0xff);
|
|
416
|
+
}
|
|
417
|
+
return Uint8Array.from(out);
|
|
418
|
+
}
|
|
419
|
+
exports.bigIntToTwosComplementLE = bigIntToTwosComplementLE;
|
|
420
|
+
/** Convert little-endian two's complement bytes to bigint */
|
|
421
|
+
function twosComplementLEToBigInt(bytes) {
|
|
422
|
+
if (bytes.length === 0)
|
|
423
|
+
return 0n;
|
|
424
|
+
const negative = (bytes[bytes.length - 1] & 0x80) !== 0;
|
|
425
|
+
let result = 0n;
|
|
426
|
+
for (let i = bytes.length - 1; i >= 0; i--) {
|
|
427
|
+
result = (result << 8n) | BigInt(bytes[i]);
|
|
428
|
+
}
|
|
429
|
+
if (negative) {
|
|
430
|
+
const bitLen = BigInt(bytes.length * 8);
|
|
431
|
+
const mod = 1n << bitLen;
|
|
432
|
+
result = result - mod;
|
|
433
|
+
}
|
|
434
|
+
return result;
|
|
435
|
+
}
|
|
436
|
+
exports.twosComplementLEToBigInt = twosComplementLEToBigInt;
|
|
437
|
+
// Convenience helpers to mirror C# generic methods
|
|
438
|
+
function writeBlob(w, data) {
|
|
439
|
+
data.write(w);
|
|
440
|
+
}
|
|
441
|
+
exports.writeBlob = writeBlob;
|
|
442
|
+
function readBlob(r, ctor) {
|
|
443
|
+
const t = new ctor();
|
|
444
|
+
t.read(r);
|
|
445
|
+
return t;
|
|
446
|
+
}
|
|
447
|
+
exports.readBlob = readBlob;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ISerializable } from
|
|
2
|
-
import { PBinaryReader, PBinaryWriter } from
|
|
3
|
-
import { Timestamp } from
|
|
1
|
+
import { ISerializable } from '../interfaces';
|
|
2
|
+
import { PBinaryReader, PBinaryWriter } from './Extensions';
|
|
3
|
+
import { Timestamp } from './Timestamp';
|
|
4
4
|
export declare enum ConsensusMode {
|
|
5
5
|
Unanimity = 0,
|
|
6
6
|
Majority = 1,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Consensus.d.ts","sourceRoot":"","sources":["../../../src/core/types/Consensus.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,EAAU,aAAa,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,oBAAY,aAAa;IACvB,SAAS,IAAA;IACT,QAAQ,IAAA;IACR,UAAU,IAAA;IACV,OAAO,IAAA;CACR;AAED,oBAAY,SAAS;IACnB,QAAQ,IAAA;IACR,MAAM,IAAA;IACN,SAAS,IAAA;IACT,OAAO,IAAA;CACR;AAED,qBAAa,UAAW,YAAW,aAAa;IACvC,KAAK,EAAE,MAAM,CAAC;gBAEF,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE;IAK3C,aAAa,CAAC,MAAM,EAAE,aAAa;IAInC,eAAe,CAAC,MAAM,EAAE,aAAa;IAIrC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,aAAa,GAAG,UAAU;CAKtD;AAED,qBAAa,SAAU,YAAW,aAAa;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IAErB,aAAa,CAAC,MAAM,EAAE,aAAa;IAMnC,eAAe,CAAC,MAAM,EAAE,aAAa;IAMrC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,aAAa,GAAG,SAAS;CAKrD;AAED,qBAAa,QAAS,YAAW,aAAa;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IAE1B,aAAa,CAAC,MAAM,EAAE,aAAa;IAInC,eAAe,CAAC,MAAM,EAAE,aAAa;IAKrC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,aAAa,GAAG,QAAQ;CAKpD;AAED,qBAAa,aAAc,YAAW,aAAa;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,SAAS,CAAC;IACrB,OAAO,EAAE,SAAS,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;;IAe1B,aAAa,CAAC,MAAM,EAAE,aAAa;IAiBnC,eAAe,CAAC,MAAM,EAAE,aAAa;IAmBrC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,aAAa,GAAG,aAAa;CAKzD;AAED,qBAAa,YAAa,YAAW,aAAa;IACzC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IAErB,aAAa,CAAC,MAAM,EAAE,aAAa;IAInC,eAAe,CAAC,MAAM,EAAE,aAAa;IAKrC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,aAAa,GAAG,YAAY;CAKxD"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PollPresence = exports.ConsensusPoll = exports.PollVote = exports.PollValue = exports.PollChoice = exports.PollState = exports.ConsensusMode = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
const utils_1 = require("../utils");
|
|
5
|
+
const Extensions_1 = require("./Extensions");
|
|
6
|
+
const Timestamp_1 = require("./Timestamp");
|
|
7
7
|
var ConsensusMode;
|
|
8
8
|
(function (ConsensusMode) {
|
|
9
9
|
ConsensusMode[ConsensusMode["Unanimity"] = 0] = "Unanimity";
|
|
@@ -18,71 +18,64 @@ var PollState;
|
|
|
18
18
|
PollState[PollState["Consensus"] = 2] = "Consensus";
|
|
19
19
|
PollState[PollState["Failure"] = 3] = "Failure";
|
|
20
20
|
})(PollState = exports.PollState || (exports.PollState = {}));
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
class PollChoice {
|
|
22
|
+
constructor(value) {
|
|
23
23
|
if (value instanceof Array)
|
|
24
|
-
this.value = Extensions_1.Base16.decode((0, utils_1.
|
|
24
|
+
this.value = Extensions_1.Base16.decode((0, utils_1.bytesToHex)(value));
|
|
25
25
|
else
|
|
26
26
|
this.value = value;
|
|
27
27
|
}
|
|
28
|
-
|
|
28
|
+
SerializeData(writer) {
|
|
29
29
|
writer.writeByteArray((0, utils_1.stringToUint8Array)(this.value));
|
|
30
|
-
}
|
|
31
|
-
|
|
30
|
+
}
|
|
31
|
+
UnserializeData(reader) {
|
|
32
32
|
this.value = Extensions_1.Base16.decode(reader.readByteArray());
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
}
|
|
34
|
+
static Unserialize(reader) {
|
|
35
|
+
let pollChoice = new PollChoice('');
|
|
36
36
|
pollChoice.UnserializeData(reader);
|
|
37
37
|
return pollChoice;
|
|
38
|
-
};
|
|
39
|
-
return PollChoice;
|
|
40
|
-
}());
|
|
41
|
-
exports.PollChoice = PollChoice;
|
|
42
|
-
var PollValue = /** @class */ (function () {
|
|
43
|
-
function PollValue() {
|
|
44
38
|
}
|
|
45
|
-
|
|
39
|
+
}
|
|
40
|
+
exports.PollChoice = PollChoice;
|
|
41
|
+
class PollValue {
|
|
42
|
+
SerializeData(writer) {
|
|
46
43
|
writer.writeByteArray((0, utils_1.stringToUint8Array)(this.value));
|
|
47
44
|
writer.writeBigInteger(this.ranking);
|
|
48
45
|
writer.writeBigInteger(this.votes);
|
|
49
|
-
}
|
|
50
|
-
|
|
46
|
+
}
|
|
47
|
+
UnserializeData(reader) {
|
|
51
48
|
this.value = Extensions_1.Base16.decode(reader.readByteArray());
|
|
52
49
|
this.ranking = reader.readBigInteger();
|
|
53
50
|
this.votes = reader.readBigInteger();
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
51
|
+
}
|
|
52
|
+
static Unserialize(reader) {
|
|
53
|
+
let pollValue = new PollValue();
|
|
57
54
|
pollValue.UnserializeData(reader);
|
|
58
55
|
return pollValue;
|
|
59
|
-
};
|
|
60
|
-
return PollValue;
|
|
61
|
-
}());
|
|
62
|
-
exports.PollValue = PollValue;
|
|
63
|
-
var PollVote = /** @class */ (function () {
|
|
64
|
-
function PollVote() {
|
|
65
56
|
}
|
|
66
|
-
|
|
57
|
+
}
|
|
58
|
+
exports.PollValue = PollValue;
|
|
59
|
+
class PollVote {
|
|
60
|
+
SerializeData(writer) {
|
|
67
61
|
writer.writeBigInteger(this.index);
|
|
68
62
|
writer.writeBigInteger(this.percentage);
|
|
69
|
-
}
|
|
70
|
-
|
|
63
|
+
}
|
|
64
|
+
UnserializeData(reader) {
|
|
71
65
|
this.index = reader.readBigInteger();
|
|
72
66
|
this.percentage = reader.readBigInteger();
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
|
|
67
|
+
}
|
|
68
|
+
static Unserialize(reader) {
|
|
69
|
+
let pollVote = new PollVote();
|
|
76
70
|
pollVote.UnserializeData(reader);
|
|
77
71
|
return pollVote;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
}());
|
|
72
|
+
}
|
|
73
|
+
}
|
|
81
74
|
exports.PollVote = PollVote;
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
this.subject =
|
|
85
|
-
this.organization =
|
|
75
|
+
class ConsensusPoll {
|
|
76
|
+
constructor() {
|
|
77
|
+
this.subject = '';
|
|
78
|
+
this.organization = '';
|
|
86
79
|
this.mode = ConsensusMode.Unanimity;
|
|
87
80
|
this.state = PollState.Inactive;
|
|
88
81
|
this.entries = [];
|
|
@@ -92,13 +85,13 @@ var ConsensusPoll = /** @class */ (function () {
|
|
|
92
85
|
this.choicesPerUser = BigInt(0);
|
|
93
86
|
this.totalVotes = BigInt(0);
|
|
94
87
|
}
|
|
95
|
-
|
|
88
|
+
SerializeData(writer) {
|
|
96
89
|
writer.writeString(this.subject);
|
|
97
90
|
writer.writeString(this.organization);
|
|
98
91
|
writer.writeByte(this.mode);
|
|
99
92
|
writer.writeByte(this.state);
|
|
100
93
|
writer.writeByte(this.entries.length);
|
|
101
|
-
this.entries.forEach(
|
|
94
|
+
this.entries.forEach((entry) => {
|
|
102
95
|
entry.SerializeData(writer);
|
|
103
96
|
});
|
|
104
97
|
writer.writeBigInteger(this.round);
|
|
@@ -106,15 +99,15 @@ var ConsensusPoll = /** @class */ (function () {
|
|
|
106
99
|
writer.writeTimestamp(this.endTime);
|
|
107
100
|
writer.writeBigInteger(this.choicesPerUser);
|
|
108
101
|
writer.writeBigInteger(this.totalVotes);
|
|
109
|
-
}
|
|
110
|
-
|
|
102
|
+
}
|
|
103
|
+
UnserializeData(reader) {
|
|
111
104
|
this.subject = reader.readString();
|
|
112
105
|
this.organization = reader.readString();
|
|
113
106
|
this.mode = reader.readByte();
|
|
114
107
|
this.state = reader.readByte();
|
|
115
108
|
this.entries = [];
|
|
116
|
-
|
|
117
|
-
for (
|
|
109
|
+
const entriesLength = reader.readUnsignedInt();
|
|
110
|
+
for (let i = 0; i < entriesLength; i++) {
|
|
118
111
|
this.entries.push(PollValue.Unserialize(reader));
|
|
119
112
|
}
|
|
120
113
|
this.round = reader.readBigInteger();
|
|
@@ -122,30 +115,26 @@ var ConsensusPoll = /** @class */ (function () {
|
|
|
122
115
|
this.endTime = reader.readTimestamp();
|
|
123
116
|
this.choicesPerUser = reader.readBigInteger();
|
|
124
117
|
this.totalVotes = reader.readBigInteger();
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
|
|
118
|
+
}
|
|
119
|
+
static Unserialize(reader) {
|
|
120
|
+
let consensusPoll = new ConsensusPoll();
|
|
128
121
|
consensusPoll.UnserializeData(reader);
|
|
129
122
|
return consensusPoll;
|
|
130
|
-
};
|
|
131
|
-
return ConsensusPoll;
|
|
132
|
-
}());
|
|
133
|
-
exports.ConsensusPoll = ConsensusPoll;
|
|
134
|
-
var PollPresence = /** @class */ (function () {
|
|
135
|
-
function PollPresence() {
|
|
136
123
|
}
|
|
137
|
-
|
|
124
|
+
}
|
|
125
|
+
exports.ConsensusPoll = ConsensusPoll;
|
|
126
|
+
class PollPresence {
|
|
127
|
+
SerializeData(writer) {
|
|
138
128
|
writer.writeString(this.subject);
|
|
139
|
-
}
|
|
140
|
-
|
|
129
|
+
}
|
|
130
|
+
UnserializeData(reader) {
|
|
141
131
|
this.subject = reader.readString();
|
|
142
132
|
this.round = reader.readBigInteger();
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
|
|
133
|
+
}
|
|
134
|
+
static Unserialize(reader) {
|
|
135
|
+
let pollPresence = new PollPresence();
|
|
146
136
|
pollPresence.UnserializeData(reader);
|
|
147
137
|
return pollPresence;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
}());
|
|
138
|
+
}
|
|
139
|
+
}
|
|
151
140
|
exports.PollPresence = PollPresence;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ISerializable } from
|
|
2
|
-
import { VMType } from
|
|
3
|
-
import { TokenTrigger } from
|
|
4
|
-
import { PBinaryReader, PBinaryWriter } from
|
|
1
|
+
import { ISerializable } from '../interfaces';
|
|
2
|
+
import { VMType } from '../vm/VMType';
|
|
3
|
+
import { TokenTrigger } from './DomainSettings';
|
|
4
|
+
import { PBinaryReader, PBinaryWriter } from './Extensions';
|
|
5
5
|
export declare class ContractParameter {
|
|
6
6
|
name: string;
|
|
7
7
|
type: VMType;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Contract.d.ts","sourceRoot":"","sources":["../../../src/core/types/Contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE5D,qBAAa,iBAAiB;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;gBAED,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;CAIvC;AAED,qBAAa,iBAAkB,YAAW,aAAa;IACrD,gBAAuB,KAAK,EAAE,iBAAiB,CAAiC;IAChF,OAAO,CAAC,QAAQ,CAAqC;IAC9C,OAAO,mBAAsC;IAC7C,WAAW,SAAsB;IAExC,OAAO,CAAC,OAAO,CAAkB;IAC1B,MAAM,IAAI,aAAa,EAAE;IAIzB,UAAU;IAIV,QAAQ;gBAKI,OAAO,EAAE,cAAc,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE;IAO9D,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI;IAGxC,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAIhC,eAAe,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO;IAM/C,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI;IAO/C,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI;IAS9C,eAAe,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO;IAa5C,gBAAgB,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO;IAkBjD,mBAAmB,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO;IAgBtD,eAAe,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI;IAa5C,aAAa,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI;CAUlD;AAED,qBAAa,cAAe,YAAW,aAAa;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,iBAAiB,EAAE,CAAC;IAChC,MAAM,EAAE,MAAM,CAAC;IAEtB,aAAa,CAAC,MAAM,EAAE,aAAa;IAGnC,eAAe,CAAC,MAAM,EAAE,aAAa;IAI9B,cAAc,CACnB,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC3B,UAAU,EAAE,iBAAiB,EAAE;gBAcrB,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,iBAAiB,EAAE;IAOtF,UAAU,IAAI,OAAO;IAoBrB,SAAS,IAAI,OAAO;IAYpB,QAAQ,IAAI,MAAM;WAIX,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,cAAc;WAM5C,WAAW,CAAC,MAAM,EAAE,aAAa,GAAG,cAAc;IAezD,SAAS,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI;IAWtC,OAAO,IAAI,UAAU;CAM7B;AAED,qBAAa,aAAc,YAAW,aAAa;IACjD,SAAgB,KAAK,EAAE,MAAM,CAAC;IAC9B,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,SAAgB,UAAU,EAAE,MAAM,CAAC;IACnC,SAAgB,WAAW,EAAE,UAAU,CAAC;gBAE5B,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,UAAU;IAOpF,aAAa,CAAC,MAAM,EAAE,aAAa;IAInC,eAAe,CAAC,MAAM,EAAE,aAAa;IAI9B,QAAQ,IAAI,MAAM;WAIX,WAAW,CAAC,MAAM,EAAE,aAAa,GAAG,aAAa;IASxD,SAAS,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI;CAO9C"}
|