@kynesyslabs/demosdk 2.9.0 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/abstraction/CoinFinder.js +19 -23
- package/build/abstraction/CoinFinder.js.map +1 -1
- package/build/abstraction/EvmCoinFinder.js +48 -89
- package/build/abstraction/EvmCoinFinder.js.map +1 -1
- package/build/abstraction/Identities.d.ts +28 -1
- package/build/abstraction/Identities.js +58 -24
- package/build/abstraction/Identities.js.map +1 -1
- package/build/abstraction/index.js +4 -9
- package/build/abstraction/index.js.map +1 -1
- package/build/abstraction/providers/AbstractionProviders.js +1 -3
- package/build/abstraction/providers/AbstractionProviders.js.map +1 -1
- package/build/abstraction/providers/CoinAddresses.js +4 -7
- package/build/abstraction/providers/CoinAddresses.js.map +1 -1
- package/build/abstraction/providers/Providers.js +13 -18
- package/build/abstraction/providers/Providers.js.map +1 -1
- package/build/abstraction/providers/evm/ankr.js +8 -14
- package/build/abstraction/providers/evm/ankr.js.map +1 -1
- package/build/abstraction/providers/evm/arbitrum.js +4 -10
- package/build/abstraction/providers/evm/arbitrum.js.map +1 -1
- package/build/abstraction/providers/evm/bsc.js +4 -10
- package/build/abstraction/providers/evm/bsc.js.map +1 -1
- package/build/abstraction/providers/evm/ethereum.js +5 -11
- package/build/abstraction/providers/evm/ethereum.js.map +1 -1
- package/build/abstraction/providers/evm/index.js +4 -14
- package/build/abstraction/providers/evm/index.js.map +1 -1
- package/build/abstraction/providers/evm/optimism.js +4 -10
- package/build/abstraction/providers/evm/optimism.js.map +1 -1
- package/build/abstraction/providers/index.js +2 -7
- package/build/abstraction/providers/index.js.map +1 -1
- package/build/abstraction/providers/non-evm/bitcoin.js +4 -10
- package/build/abstraction/providers/non-evm/bitcoin.js.map +1 -1
- package/build/abstraction/providers/non-evm/index.js +4 -14
- package/build/abstraction/providers/non-evm/index.js.map +1 -1
- package/build/abstraction/providers/non-evm/multiversx.js +4 -10
- package/build/abstraction/providers/non-evm/multiversx.js.map +1 -1
- package/build/abstraction/providers/non-evm/solana.js +7 -13
- package/build/abstraction/providers/non-evm/solana.js.map +1 -1
- package/build/abstraction/providers/non-evm/xrp.js +4 -10
- package/build/abstraction/providers/non-evm/xrp.js.map +1 -1
- package/build/abstraction/types/UDResolution.js +1 -2
- package/build/abstraction/types/UDResolution.js.map +1 -1
- package/build/bridge/index.js +12 -33
- package/build/bridge/index.js.map +1 -1
- package/build/bridge/nativeBridge.js +16 -19
- package/build/bridge/nativeBridge.js.map +1 -1
- package/build/bridge/nativeBridgeTypes.js +6 -9
- package/build/bridge/nativeBridgeTypes.js.map +1 -1
- package/build/bridge/rubicBridge.js +1 -4
- package/build/bridge/rubicBridge.js.map +1 -1
- package/build/contracts/ContractDeployer.js +6 -43
- package/build/contracts/ContractDeployer.js.map +1 -1
- package/build/contracts/ContractFactory.js +8 -13
- package/build/contracts/ContractFactory.js.map +1 -1
- package/build/contracts/ContractInstance.js +3 -7
- package/build/contracts/ContractInstance.js.map +1 -1
- package/build/contracts/ContractInteractor.js +4 -41
- package/build/contracts/ContractInteractor.js.map +1 -1
- package/build/contracts/index.js +4 -12
- package/build/contracts/index.js.map +1 -1
- package/build/contracts/templates/TemplateRegistry.js +3 -7
- package/build/contracts/templates/TemplateRegistry.js.map +1 -1
- package/build/contracts/templates/TemplateValidator.js +1 -5
- package/build/contracts/templates/TemplateValidator.js.map +1 -1
- package/build/contracts/types/ContractABI.js +1 -2
- package/build/contracts/types/ContractABI.js.map +1 -1
- package/build/contracts/types/TypedContract.js +1 -2
- package/build/contracts/types/TypedContract.js.map +1 -1
- package/build/d402/client/D402Client.js +4 -41
- package/build/d402/client/D402Client.js.map +1 -1
- package/build/d402/client/index.js +1 -5
- package/build/d402/client/index.js.map +1 -1
- package/build/d402/client/types.js +1 -2
- package/build/d402/client/types.js.map +1 -1
- package/build/d402/index.js +2 -20
- package/build/d402/index.js.map +1 -1
- package/build/d402/server/D402Server.js +1 -5
- package/build/d402/server/D402Server.js.map +1 -1
- package/build/d402/server/index.js +2 -7
- package/build/d402/server/index.js.map +1 -1
- package/build/d402/server/middleware.js +3 -6
- package/build/d402/server/middleware.js.map +1 -1
- package/build/d402/server/types.js +1 -2
- package/build/d402/server/types.js.map +1 -1
- package/build/demoswork/executor/index.js +1 -4
- package/build/demoswork/executor/index.js.map +1 -1
- package/build/demoswork/executor/stepexecutor.js +2 -6
- package/build/demoswork/executor/stepexecutor.js.map +1 -1
- package/build/demoswork/index.js +8 -25
- package/build/demoswork/index.js.map +1 -1
- package/build/demoswork/operations/baseoperation.js +2 -6
- package/build/demoswork/operations/baseoperation.js.map +1 -1
- package/build/demoswork/operations/conditional/condition.js +7 -11
- package/build/demoswork/operations/conditional/condition.js.map +1 -1
- package/build/demoswork/operations/conditional/index.js +9 -13
- package/build/demoswork/operations/conditional/index.js.map +1 -1
- package/build/demoswork/operations/index.js +5 -9
- package/build/demoswork/operations/index.js.map +1 -1
- package/build/demoswork/utils/createTestWorkScript.js +22 -28
- package/build/demoswork/utils/createTestWorkScript.js.map +1 -1
- package/build/demoswork/utils/index.js +3 -8
- package/build/demoswork/utils/index.js.map +1 -1
- package/build/demoswork/validator/index.js +3 -6
- package/build/demoswork/validator/index.js.map +1 -1
- package/build/demoswork/validator/steps.validator.js +3 -6
- package/build/demoswork/validator/steps.validator.js.map +1 -1
- package/build/demoswork/work.js +6 -11
- package/build/demoswork/work.js.map +1 -1
- package/build/demoswork/workstep.js +16 -26
- package/build/demoswork/workstep.js.map +1 -1
- package/build/encryption/Cryptography.js +36 -71
- package/build/encryption/Cryptography.js.map +1 -1
- package/build/encryption/FHE/index.js +3 -9
- package/build/encryption/FHE/index.js.map +1 -1
- package/build/encryption/Hashing.js +8 -15
- package/build/encryption/Hashing.js.map +1 -1
- package/build/encryption/PQC/enigma.js +22 -59
- package/build/encryption/PQC/enigma.js.map +1 -1
- package/build/encryption/PQC/falconts/falcon.js +3 -6
- package/build/encryption/PQC/falconts/falcon.js.map +1 -1
- package/build/encryption/PQC/falconts/index.js +3 -15
- package/build/encryption/PQC/falconts/index.js.map +1 -1
- package/build/encryption/PQC/falconts/mnemonic.js +9 -15
- package/build/encryption/PQC/falconts/mnemonic.js.map +1 -1
- package/build/encryption/PQC/falconts/wordlist.js +1 -4
- package/build/encryption/PQC/falconts/wordlist.js.map +1 -1
- package/build/encryption/PQC/utils.js +2 -7
- package/build/encryption/PQC/utils.js.map +1 -1
- package/build/encryption/index.js +7 -50
- package/build/encryption/index.js.map +1 -1
- package/build/encryption/unifiedCrypto.js +23 -63
- package/build/encryption/unifiedCrypto.js.map +1 -1
- package/build/encryption/zK/identity/CommitmentService.js +5 -10
- package/build/encryption/zK/identity/CommitmentService.js.map +1 -1
- package/build/encryption/zK/identity/ProofGenerator.js +3 -40
- package/build/encryption/zK/identity/ProofGenerator.js.map +1 -1
- package/build/encryption/zK/identity/ZKIdentity.js +3 -40
- package/build/encryption/zK/identity/ZKIdentity.js.map +1 -1
- package/build/encryption/zK/identity/index.js +3 -40
- package/build/encryption/zK/identity/index.js.map +1 -1
- package/build/encryption/zK/index.js +2 -38
- package/build/encryption/zK/index.js.map +1 -1
- package/build/encryption/zK/interactive/index.js +4 -12
- package/build/encryption/zK/interactive/index.js.map +1 -1
- package/build/encryption/zK/primer.js +7 -13
- package/build/encryption/zK/primer.js.map +1 -1
- package/build/escrow/EscrowQueries.js +1 -5
- package/build/escrow/EscrowQueries.js.map +1 -1
- package/build/escrow/EscrowTransaction.js +8 -45
- package/build/escrow/EscrowTransaction.js.map +1 -1
- package/build/escrow/index.js +2 -7
- package/build/escrow/index.js.map +1 -1
- package/build/index.js +18 -54
- package/build/index.js.map +1 -1
- package/build/instant_messaging/index.js +13 -17
- package/build/instant_messaging/index.js.map +1 -1
- package/build/ipfs/IPFSOperations.js +5 -9
- package/build/ipfs/IPFSOperations.js.map +1 -1
- package/build/ipfs/index.js +1 -6
- package/build/ipfs/index.js.map +1 -1
- package/build/keyserver/KeyServerClient.js +10 -14
- package/build/keyserver/KeyServerClient.js.map +1 -1
- package/build/keyserver/errors.js +1 -5
- package/build/keyserver/errors.js.map +1 -1
- package/build/keyserver/index.js +3 -10
- package/build/keyserver/index.js.map +1 -1
- package/build/keyserver/types.js +1 -2
- package/build/keyserver/types.js.map +1 -1
- package/build/keyserver/verification.js +4 -8
- package/build/keyserver/verification.js.map +1 -1
- package/build/l2ps/index.js +2 -8
- package/build/l2ps/index.js.map +1 -1
- package/build/l2ps/l2ps.js +6 -41
- package/build/l2ps/l2ps.js.map +1 -1
- package/build/multichain/core/aptos.js +40 -77
- package/build/multichain/core/aptos.js.map +1 -1
- package/build/multichain/core/btc.js +22 -62
- package/build/multichain/core/btc.js.map +1 -1
- package/build/multichain/core/evm.js +24 -61
- package/build/multichain/core/evm.js.map +1 -1
- package/build/multichain/core/ibc.js +34 -71
- package/build/multichain/core/ibc.js.map +1 -1
- package/build/multichain/core/index.js +12 -28
- package/build/multichain/core/index.js.map +1 -1
- package/build/multichain/core/multiversx.js +34 -41
- package/build/multichain/core/multiversx.js.map +1 -1
- package/build/multichain/core/near.js +44 -84
- package/build/multichain/core/near.js.map +1 -1
- package/build/multichain/core/solana.js +51 -91
- package/build/multichain/core/solana.js.map +1 -1
- package/build/multichain/core/ten.js +11 -48
- package/build/multichain/core/ten.js.map +1 -1
- package/build/multichain/core/ton.d.ts +1 -1
- package/build/multichain/core/ton.js +30 -37
- package/build/multichain/core/ton.js.map +1 -1
- package/build/multichain/core/tron.js +34 -41
- package/build/multichain/core/tron.js.map +1 -1
- package/build/multichain/core/types/SolanaPhantomProvider.js +1 -2
- package/build/multichain/core/types/SolanaPhantomProvider.js.map +1 -1
- package/build/multichain/core/types/defaultChain.js +1 -5
- package/build/multichain/core/types/defaultChain.js.map +1 -1
- package/build/multichain/core/types/interfaces.js +2 -5
- package/build/multichain/core/types/interfaces.js.map +1 -1
- package/build/multichain/core/utils.js +1 -4
- package/build/multichain/core/utils.js.map +1 -1
- package/build/multichain/core/xrp.js +17 -22
- package/build/multichain/core/xrp.js.map +1 -1
- package/build/multichain/index.js +3 -39
- package/build/multichain/index.js.map +1 -1
- package/build/multichain/localsdk/aptos.js +11 -15
- package/build/multichain/localsdk/aptos.js.map +1 -1
- package/build/multichain/localsdk/btc.js +10 -50
- package/build/multichain/localsdk/btc.js.map +1 -1
- package/build/multichain/localsdk/evm.js +6 -10
- package/build/multichain/localsdk/evm.js.map +1 -1
- package/build/multichain/localsdk/ibc.js +5 -9
- package/build/multichain/localsdk/ibc.js.map +1 -1
- package/build/multichain/localsdk/index.js +10 -23
- package/build/multichain/localsdk/index.js.map +1 -1
- package/build/multichain/localsdk/multiversx.js +12 -16
- package/build/multichain/localsdk/multiversx.js.map +1 -1
- package/build/multichain/localsdk/near.js +9 -13
- package/build/multichain/localsdk/near.js.map +1 -1
- package/build/multichain/localsdk/solana.js +5 -9
- package/build/multichain/localsdk/solana.js.map +1 -1
- package/build/multichain/localsdk/ten.js +8 -45
- package/build/multichain/localsdk/ten.js.map +1 -1
- package/build/multichain/localsdk/ton.js +9 -13
- package/build/multichain/localsdk/ton.js.map +1 -1
- package/build/multichain/localsdk/tron.js +2 -6
- package/build/multichain/localsdk/tron.js.map +1 -1
- package/build/multichain/localsdk/xrp.js +6 -43
- package/build/multichain/localsdk/xrp.js.map +1 -1
- package/build/multichain/websdk/aptos.js +1 -5
- package/build/multichain/websdk/aptos.js.map +1 -1
- package/build/multichain/websdk/btc.js +2 -6
- package/build/multichain/websdk/btc.js.map +1 -1
- package/build/multichain/websdk/evm.js +2 -6
- package/build/multichain/websdk/evm.js.map +1 -1
- package/build/multichain/websdk/ibc.js +2 -6
- package/build/multichain/websdk/ibc.js.map +1 -1
- package/build/multichain/websdk/index.js +9 -21
- package/build/multichain/websdk/index.js.map +1 -1
- package/build/multichain/websdk/multiversx.js +9 -13
- package/build/multichain/websdk/multiversx.js.map +1 -1
- package/build/multichain/websdk/near.js +2 -6
- package/build/multichain/websdk/near.js.map +1 -1
- package/build/multichain/websdk/solana.js +10 -18
- package/build/multichain/websdk/solana.js.map +1 -1
- package/build/multichain/websdk/ton.js +2 -6
- package/build/multichain/websdk/ton.js.map +1 -1
- package/build/multichain/websdk/xrp.js +2 -6
- package/build/multichain/websdk/xrp.js.map +1 -1
- package/build/storage/StorageProgram.js +11 -18
- package/build/storage/StorageProgram.js.map +1 -1
- package/build/storage/index.js +2 -10
- package/build/storage/index.js.map +1 -1
- package/build/tlsnotary/TLSNotary.js +11 -52
- package/build/tlsnotary/TLSNotary.js.map +1 -1
- package/build/tlsnotary/TLSNotaryService.js +21 -25
- package/build/tlsnotary/TLSNotaryService.js.map +1 -1
- package/build/tlsnotary/auto-init.js +11 -17
- package/build/tlsnotary/auto-init.js.map +1 -1
- package/build/tlsnotary/helpers.js +1 -4
- package/build/tlsnotary/helpers.js.map +1 -1
- package/build/tlsnotary/index.js +8 -25
- package/build/tlsnotary/index.js.map +1 -1
- package/build/tlsnotary/service.js +2 -7
- package/build/tlsnotary/service.js.map +1 -1
- package/build/tlsnotary/types.js +1 -2
- package/build/tlsnotary/types.js.map +1 -1
- package/build/tlsnotary/webpack.js +10 -52
- package/build/tlsnotary/webpack.js.map +1 -1
- package/build/tlsnotary/worker.js +5 -40
- package/build/tlsnotary/worker.js.map +1 -1
- package/build/types/abstraction/index.d.ts +64 -1
- package/build/types/abstraction/index.js +1 -2
- package/build/types/abstraction/index.js.map +1 -1
- package/build/types/blockchain/Confirmation.js +1 -4
- package/build/types/blockchain/Confirmation.js.map +1 -1
- package/build/types/blockchain/CustomCharges.js +2 -6
- package/build/types/blockchain/CustomCharges.js.map +1 -1
- package/build/types/blockchain/GCREdit.d.ts +1 -1
- package/build/types/blockchain/GCREdit.js +1 -2
- package/build/types/blockchain/GCREdit.js.map +1 -1
- package/build/types/blockchain/ISignature.js +1 -2
- package/build/types/blockchain/Transaction.js +1 -17
- package/build/types/blockchain/Transaction.js.map +1 -1
- package/build/types/blockchain/TransactionSubtypes/ContractCallTransaction.js +1 -2
- package/build/types/blockchain/TransactionSubtypes/ContractDeployTransaction.js +1 -2
- package/build/types/blockchain/TransactionSubtypes/CrosschainTransaction.js +1 -2
- package/build/types/blockchain/TransactionSubtypes/D402PaymentTransaction.js +1 -2
- package/build/types/blockchain/TransactionSubtypes/DemosworkTransaction.js +1 -2
- package/build/types/blockchain/TransactionSubtypes/EscrowTransaction.js +1 -2
- package/build/types/blockchain/TransactionSubtypes/IPFSTransaction.js +5 -12
- package/build/types/blockchain/TransactionSubtypes/IPFSTransaction.js.map +1 -1
- package/build/types/blockchain/TransactionSubtypes/IdentityTransaction.js +1 -2
- package/build/types/blockchain/TransactionSubtypes/InstantMessagingTransaction.js +1 -2
- package/build/types/blockchain/TransactionSubtypes/L2PSHashTransaction.js +1 -2
- package/build/types/blockchain/TransactionSubtypes/L2PSTransaction.js +1 -2
- package/build/types/blockchain/TransactionSubtypes/NativeBridgeTransaction.js +1 -2
- package/build/types/blockchain/TransactionSubtypes/NativeTransaction.js +1 -2
- package/build/types/blockchain/TransactionSubtypes/StorageProgramTransaction.js +4 -10
- package/build/types/blockchain/TransactionSubtypes/StorageProgramTransaction.js.map +1 -1
- package/build/types/blockchain/TransactionSubtypes/StorageTransaction.js +1 -2
- package/build/types/blockchain/TransactionSubtypes/Web2Transaction.js +1 -2
- package/build/types/blockchain/TransactionSubtypes/index.js +16 -32
- package/build/types/blockchain/TransactionSubtypes/index.js.map +1 -1
- package/build/types/blockchain/TransactionSubtypes/utils.js +2 -6
- package/build/types/blockchain/TransactionSubtypes/utils.js.map +1 -1
- package/build/types/blockchain/TxFee.js +1 -2
- package/build/types/blockchain/ValidityData.js +1 -5
- package/build/types/blockchain/ValidityData.js.map +1 -1
- package/build/types/blockchain/WalletTypes.js +1 -2
- package/build/types/blockchain/address.js +1 -2
- package/build/types/blockchain/addressInfo.js +1 -2
- package/build/types/blockchain/blocks.js +1 -2
- package/build/types/blockchain/blocks.js.map +1 -1
- package/build/types/blockchain/encryptedTransaction.js +1 -2
- package/build/types/blockchain/genesisTypes.js +1 -2
- package/build/types/blockchain/genesisTypes.js.map +1 -1
- package/build/types/blockchain/identities.js +1 -2
- package/build/types/blockchain/identities.js.map +1 -1
- package/build/types/blockchain/rawTransaction.js +1 -2
- package/build/types/blockchain/rawTransaction.js.map +1 -1
- package/build/types/blockchain/statusNative.js +1 -2
- package/build/types/blockchain/statusProperties.js +1 -2
- package/build/types/bridge/bridgeTradePayload.js +1 -2
- package/build/types/bridge/constants.js +3 -6
- package/build/types/bridge/constants.js.map +1 -1
- package/build/types/communication/demosWork.js +1 -2
- package/build/types/communication/rpc.js +1 -4
- package/build/types/communication/rpc.js.map +1 -1
- package/build/types/communication/transmit.js +1 -2
- package/build/types/communication/transmit.js.map +1 -1
- package/build/types/cryptography.js +1 -2
- package/build/types/demoswork/datatypes.js +2 -5
- package/build/types/demoswork/datatypes.js.map +1 -1
- package/build/types/demoswork/index.js +1 -2
- package/build/types/demoswork/operations.js +1 -2
- package/build/types/demoswork/steps.js +4 -7
- package/build/types/demoswork/steps.js.map +1 -1
- package/build/types/gls/Operation.js +1 -2
- package/build/types/gls/StateChange.js +1 -2
- package/build/types/gls/StateChange.js.map +1 -1
- package/build/types/gls/account.js +1 -2
- package/build/types/index.js +10 -30
- package/build/types/index.js.map +1 -1
- package/build/types/instantMessaging/index.js +1 -2
- package/build/types/native/INativePayload.js +1 -2
- package/build/types/native/INativePayload.js.map +1 -1
- package/build/types/native/index.js +1 -17
- package/build/types/native/index.js.map +1 -1
- package/build/types/network/ExecutionResult.js +1 -2
- package/build/types/network/SecurityTypes.js +1 -2
- package/build/types/peers/Peer.js +1 -2
- package/build/types/peers/Peer.js.map +1 -1
- package/build/types/web2/discord.js +1 -2
- package/build/types/web2/index.js +2 -5
- package/build/types/web2/index.js.map +1 -1
- package/build/types/web2/telegram.js +1 -2
- package/build/types/web2/telegram.js.map +1 -1
- package/build/types/web2/twitter.js +1 -2
- package/build/types/xm/apiTools.js +1 -2
- package/build/types/xm/index.js +1 -2
- package/build/utils/dataManipulation.js +5 -12
- package/build/utils/dataManipulation.js.map +1 -1
- package/build/utils/getRemoteIP.js +3 -9
- package/build/utils/getRemoteIP.js.map +1 -1
- package/build/utils/index.js +4 -44
- package/build/utils/index.js.map +1 -1
- package/build/utils/pprint.js +3 -9
- package/build/utils/pprint.js.map +1 -1
- package/build/utils/uint8Serialize.js +2 -6
- package/build/utils/uint8Serialize.js.map +1 -1
- package/build/wallet/Wallet.js +11 -46
- package/build/wallet/Wallet.js.map +1 -1
- package/build/wallet/index.js +1 -37
- package/build/wallet/index.js.map +1 -1
- package/build/wallet/passkeys/passkeys.js +9 -16
- package/build/wallet/passkeys/passkeys.js.map +1 -1
- package/build/websdk/DemosContracts.d.ts +1 -1
- package/build/websdk/DemosContracts.js +9 -13
- package/build/websdk/DemosContracts.js.map +1 -1
- package/build/websdk/DemosTransactions.js +33 -69
- package/build/websdk/DemosTransactions.js.map +1 -1
- package/build/websdk/DemosWebAuth.js +17 -24
- package/build/websdk/DemosWebAuth.js.map +1 -1
- package/build/websdk/GCRGeneration.js +31 -19
- package/build/websdk/GCRGeneration.js.map +1 -1
- package/build/websdk/Web2Calls.js +14 -18
- package/build/websdk/Web2Calls.js.map +1 -1
- package/build/websdk/XMTransactions.js +8 -13
- package/build/websdk/XMTransactions.js.map +1 -1
- package/build/websdk/bridge.js +1 -5
- package/build/websdk/bridge.js.map +1 -1
- package/build/websdk/demos.js +2 -5
- package/build/websdk/demos.js.map +1 -1
- package/build/websdk/demosclass.js +55 -95
- package/build/websdk/demosclass.js.map +1 -1
- package/build/websdk/examples/tryWeb2.js +4 -6
- package/build/websdk/examples/tryWeb2.js.map +1 -1
- package/build/websdk/index.js +14 -69
- package/build/websdk/index.js.map +1 -1
- package/build/websdk/rsa.js +17 -24
- package/build/websdk/rsa.js.map +1 -1
- package/build/websdk/types/IBuffer.js +1 -2
- package/build/websdk/types/KeyPair.js +1 -2
- package/build/websdk/utils/bufferizer.js +1 -4
- package/build/websdk/utils/bufferizer.js.map +1 -1
- package/build/websdk/utils/canonicalJson.js +3 -8
- package/build/websdk/utils/canonicalJson.js.map +1 -1
- package/build/websdk/utils/forge_converter.js +4 -7
- package/build/websdk/utils/forge_converter.js.map +1 -1
- package/build/websdk/utils/required.js +2 -6
- package/build/websdk/utils/required.js.map +1 -1
- package/build/websdk/utils/sha256.js +1 -4
- package/build/websdk/utils/sha256.js.map +1 -1
- package/build/websdk/utils/skeletons.js +3 -8
- package/build/websdk/utils/skeletons.js.map +1 -1
- package/package.json +2 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* TLSNotary Webpack Configuration Helper
|
|
4
3
|
*
|
|
@@ -37,48 +36,7 @@
|
|
|
37
36
|
* });
|
|
38
37
|
* ```
|
|
39
38
|
*/
|
|
40
|
-
|
|
41
|
-
if (k2 === undefined) k2 = k;
|
|
42
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
43
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
44
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
45
|
-
}
|
|
46
|
-
Object.defineProperty(o, k2, desc);
|
|
47
|
-
}) : (function(o, m, k, k2) {
|
|
48
|
-
if (k2 === undefined) k2 = k;
|
|
49
|
-
o[k2] = m[k];
|
|
50
|
-
}));
|
|
51
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
52
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
53
|
-
}) : function(o, v) {
|
|
54
|
-
o["default"] = v;
|
|
55
|
-
});
|
|
56
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
57
|
-
var ownKeys = function(o) {
|
|
58
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
59
|
-
var ar = [];
|
|
60
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
61
|
-
return ar;
|
|
62
|
-
};
|
|
63
|
-
return ownKeys(o);
|
|
64
|
-
};
|
|
65
|
-
return function (mod) {
|
|
66
|
-
if (mod && mod.__esModule) return mod;
|
|
67
|
-
var result = {};
|
|
68
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
69
|
-
__setModuleDefault(result, mod);
|
|
70
|
-
return result;
|
|
71
|
-
};
|
|
72
|
-
})();
|
|
73
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
74
|
-
exports.nodeFallbacks = void 0;
|
|
75
|
-
exports.getTlsnWasmPath = getTlsnWasmPath;
|
|
76
|
-
exports.getTlsnWasmFile = getTlsnWasmFile;
|
|
77
|
-
exports.getTlsnWebpackConfig = getTlsnWebpackConfig;
|
|
78
|
-
exports.mergeTlsnWebpackConfig = mergeTlsnWebpackConfig;
|
|
79
|
-
exports.getCrossOriginHeaders = getCrossOriginHeaders;
|
|
80
|
-
exports.getTlsnDevServerConfig = getTlsnDevServerConfig;
|
|
81
|
-
const path = __importStar(require("path"));
|
|
39
|
+
import * as path from "path";
|
|
82
40
|
/**
|
|
83
41
|
* Get the absolute path to the bundled WASM files directory.
|
|
84
42
|
*
|
|
@@ -99,7 +57,7 @@ const path = __importStar(require("path"));
|
|
|
99
57
|
* });
|
|
100
58
|
* ```
|
|
101
59
|
*/
|
|
102
|
-
function getTlsnWasmPath() {
|
|
60
|
+
export function getTlsnWasmPath() {
|
|
103
61
|
// __dirname will be build/tlsnotary after compilation
|
|
104
62
|
// WASM files are in build/tlsnotary/wasm
|
|
105
63
|
return path.resolve(__dirname, "wasm");
|
|
@@ -110,7 +68,7 @@ function getTlsnWasmPath() {
|
|
|
110
68
|
* @param filename - The WASM filename (e.g., 'tlsn_wasm_bg.wasm')
|
|
111
69
|
* @returns Absolute path to the specific WASM file
|
|
112
70
|
*/
|
|
113
|
-
function getTlsnWasmFile(filename) {
|
|
71
|
+
export function getTlsnWasmFile(filename) {
|
|
114
72
|
return path.join(getTlsnWasmPath(), filename);
|
|
115
73
|
}
|
|
116
74
|
/**
|
|
@@ -119,7 +77,7 @@ function getTlsnWasmFile(filename) {
|
|
|
119
77
|
* TLSNotary requires certain Node.js modules to be polyfilled
|
|
120
78
|
* when running in the browser.
|
|
121
79
|
*/
|
|
122
|
-
|
|
80
|
+
export const nodeFallbacks = {
|
|
123
81
|
crypto: false,
|
|
124
82
|
stream: false,
|
|
125
83
|
buffer: require.resolve("buffer/"),
|
|
@@ -148,7 +106,7 @@ exports.nodeFallbacks = {
|
|
|
148
106
|
* const config = getTlsnWebpackConfig({ wasmOutputPath: 'assets/wasm' });
|
|
149
107
|
* ```
|
|
150
108
|
*/
|
|
151
|
-
function getTlsnWebpackConfig(options = {}) {
|
|
109
|
+
export function getTlsnWebpackConfig(options = {}) {
|
|
152
110
|
const { wasmOutputPath = "tlsn-wasm" } = options;
|
|
153
111
|
// Dynamic import to avoid requiring CopyWebpackPlugin as a peer dependency
|
|
154
112
|
// Users must have it installed in their project
|
|
@@ -161,7 +119,7 @@ function getTlsnWebpackConfig(options = {}) {
|
|
|
161
119
|
"Install it with: npm install --save-dev copy-webpack-plugin");
|
|
162
120
|
return {
|
|
163
121
|
plugins: [],
|
|
164
|
-
resolve: { fallback:
|
|
122
|
+
resolve: { fallback: nodeFallbacks },
|
|
165
123
|
experiments: { asyncWebAssembly: true },
|
|
166
124
|
};
|
|
167
125
|
}
|
|
@@ -180,7 +138,7 @@ function getTlsnWebpackConfig(options = {}) {
|
|
|
180
138
|
}),
|
|
181
139
|
],
|
|
182
140
|
resolve: {
|
|
183
|
-
fallback:
|
|
141
|
+
fallback: nodeFallbacks,
|
|
184
142
|
},
|
|
185
143
|
experiments: {
|
|
186
144
|
asyncWebAssembly: true,
|
|
@@ -215,7 +173,7 @@ function getTlsnWebpackConfig(options = {}) {
|
|
|
215
173
|
* });
|
|
216
174
|
* ```
|
|
217
175
|
*/
|
|
218
|
-
function mergeTlsnWebpackConfig(existingConfig, tlsnOptions = {}) {
|
|
176
|
+
export function mergeTlsnWebpackConfig(existingConfig, tlsnOptions = {}) {
|
|
219
177
|
const tlsnConfig = getTlsnWebpackConfig(tlsnOptions);
|
|
220
178
|
return {
|
|
221
179
|
...existingConfig,
|
|
@@ -254,7 +212,7 @@ function mergeTlsnWebpackConfig(existingConfig, tlsnOptions = {}) {
|
|
|
254
212
|
* }
|
|
255
213
|
* ```
|
|
256
214
|
*/
|
|
257
|
-
function getCrossOriginHeaders() {
|
|
215
|
+
export function getCrossOriginHeaders() {
|
|
258
216
|
return {
|
|
259
217
|
"Cross-Origin-Opener-Policy": "same-origin",
|
|
260
218
|
"Cross-Origin-Embedder-Policy": "require-corp",
|
|
@@ -266,7 +224,7 @@ function getCrossOriginHeaders() {
|
|
|
266
224
|
* @param port - Dev server port (default: 8080)
|
|
267
225
|
* @returns Dev server configuration object
|
|
268
226
|
*/
|
|
269
|
-
function getTlsnDevServerConfig(port = 8080) {
|
|
227
|
+
export function getTlsnDevServerConfig(port = 8080) {
|
|
270
228
|
return {
|
|
271
229
|
port,
|
|
272
230
|
hot: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webpack.js","sourceRoot":"","sources":["../../../src/tlsnotary/webpack.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"webpack.js","sourceRoot":"","sources":["../../../src/tlsnotary/webpack.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,46 +1,11 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
1
|
/**
|
|
37
2
|
* TLSNotary Web Worker
|
|
38
3
|
*
|
|
39
4
|
* Runs TLSNotary WASM operations in a separate thread to avoid blocking the main thread.
|
|
40
5
|
* Uses Comlink for seamless RPC between main thread and worker.
|
|
41
6
|
*/
|
|
42
|
-
|
|
43
|
-
|
|
7
|
+
import * as Comlink from "comlink";
|
|
8
|
+
import init, { Prover, Presentation } from "tlsn-js";
|
|
44
9
|
/**
|
|
45
10
|
* Worker API exposed via Comlink
|
|
46
11
|
*/
|
|
@@ -48,15 +13,15 @@ const workerApi = {
|
|
|
48
13
|
/**
|
|
49
14
|
* Initialize the WASM module
|
|
50
15
|
*/
|
|
51
|
-
init
|
|
16
|
+
init,
|
|
52
17
|
/**
|
|
53
18
|
* Prover class for creating attestations
|
|
54
19
|
*/
|
|
55
|
-
Prover
|
|
20
|
+
Prover,
|
|
56
21
|
/**
|
|
57
22
|
* Presentation class for verifying attestations
|
|
58
23
|
*/
|
|
59
|
-
Presentation
|
|
24
|
+
Presentation,
|
|
60
25
|
};
|
|
61
26
|
// Expose the API via Comlink
|
|
62
27
|
Comlink.expose(workerApi);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker.js","sourceRoot":"","sources":["../../../src/tlsnotary/worker.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"worker.js","sourceRoot":"","sources":["../../../src/tlsnotary/worker.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,OAAO,MAAM,SAAS,CAAA;AAClC,OAAO,IAAI,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEpD;;GAEG;AACH,MAAM,SAAS,GAAG;IACd;;OAEG;IACH,IAAI;IAEJ;;OAEG;IACH,MAAM;IAEN;;OAEG;IACH,YAAY;CACf,CAAA;AAED,6BAA6B;AAC7B,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA"}
|
|
@@ -223,7 +223,70 @@ export interface NomisIdentityRemovePayload extends BaseNomisIdentityPayload {
|
|
|
223
223
|
payload: NomisWalletIdentity;
|
|
224
224
|
}
|
|
225
225
|
export type NomisIdentityPayload = NomisIdentityAssignPayload | NomisIdentityRemovePayload;
|
|
226
|
-
|
|
226
|
+
/**
|
|
227
|
+
* TLSNotary presentation format (from tlsn-js attestation)
|
|
228
|
+
*
|
|
229
|
+
* This is the proof structure returned by TLSNotary attestation.
|
|
230
|
+
* Contains cryptographically signed proof of an HTTPS request/response.
|
|
231
|
+
*/
|
|
232
|
+
export interface TLSNotaryPresentation {
|
|
233
|
+
/** TLSNotary version (e.g., "0.1.0-alpha.12") */
|
|
234
|
+
version: string;
|
|
235
|
+
/** Hex-encoded proof data containing request/response and signatures */
|
|
236
|
+
data: string;
|
|
237
|
+
/** Metadata about the attestation */
|
|
238
|
+
meta: {
|
|
239
|
+
notaryUrl?: string;
|
|
240
|
+
websocketProxyUrl?: string;
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Supported TLSN identity contexts
|
|
245
|
+
*/
|
|
246
|
+
export type TLSNIdentityContext = "github" | "discord" | "telegram";
|
|
247
|
+
/**
|
|
248
|
+
* Generic Web2 identity payload via TLSNotary
|
|
249
|
+
*
|
|
250
|
+
* Used for verifying any Web2 identity through TLSNotary attestation.
|
|
251
|
+
* The context determines which platform's API was attested.
|
|
252
|
+
*/
|
|
253
|
+
export interface InferFromTLSNPayload {
|
|
254
|
+
/** The platform context (github, discord, telegram) */
|
|
255
|
+
context: TLSNIdentityContext;
|
|
256
|
+
/** The TLSNotary presentation proof */
|
|
257
|
+
proof: TLSNotaryPresentation;
|
|
258
|
+
/** Username from the proven response */
|
|
259
|
+
username: string;
|
|
260
|
+
/** User ID from the proven response */
|
|
261
|
+
userId: string;
|
|
262
|
+
/** Optional referral code */
|
|
263
|
+
referralCode?: string;
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Base TLSN identity payload
|
|
267
|
+
*/
|
|
268
|
+
export interface BaseTLSNIdentityPayload {
|
|
269
|
+
context: "tlsn";
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* TLSN identity assign payload
|
|
273
|
+
*/
|
|
274
|
+
export interface TLSNIdentityAssignPayload extends BaseTLSNIdentityPayload {
|
|
275
|
+
method: "tlsn_identity_assign";
|
|
276
|
+
payload: InferFromTLSNPayload;
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* TLSN identity remove payload
|
|
280
|
+
*/
|
|
281
|
+
export interface TLSNIdentityRemovePayload extends BaseTLSNIdentityPayload {
|
|
282
|
+
method: "tlsn_identity_remove";
|
|
283
|
+
payload: {
|
|
284
|
+
context: string;
|
|
285
|
+
username: string;
|
|
286
|
+
};
|
|
287
|
+
}
|
|
288
|
+
export type TLSNIdentityPayload = TLSNIdentityAssignPayload | TLSNIdentityRemovePayload;
|
|
289
|
+
export type IdentityPayload = XmIdentityPayload | Web2IdentityPayload | PqcIdentityPayload | UdIdentityPayload | NomisIdentityPayload | TLSNIdentityPayload;
|
|
227
290
|
export interface UserPoints {
|
|
228
291
|
userId: string;
|
|
229
292
|
referralCode: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/abstraction/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/abstraction/index.ts"],"names":[],"mappings":"AAAA,gCAAgC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/* LICENSE
|
|
3
2
|
|
|
4
3
|
© 2023 by KyneSys Labs, licensed under CC BY-NC-ND 4.0
|
|
@@ -9,8 +8,7 @@ Human readable license: https://creativecommons.org/licenses/by-nc-nd/4.0/
|
|
|
9
8
|
KyneSys Labs: https://www.kynesys.xyz/
|
|
10
9
|
|
|
11
10
|
*/
|
|
12
|
-
|
|
13
|
-
class Confirmation {
|
|
11
|
+
export default class Confirmation {
|
|
14
12
|
constructor() {
|
|
15
13
|
this.data = {
|
|
16
14
|
validator: null,
|
|
@@ -19,5 +17,4 @@ class Confirmation {
|
|
|
19
17
|
this.signature = null;
|
|
20
18
|
}
|
|
21
19
|
}
|
|
22
|
-
exports.default = Confirmation;
|
|
23
20
|
//# sourceMappingURL=Confirmation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Confirmation.js","sourceRoot":"","sources":["../../../../src/types/blockchain/Confirmation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Confirmation.js","sourceRoot":"","sources":["../../../../src/types/blockchain/Confirmation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;EASE;AAIF,MAAM,CAAC,OAAO,OAAO,YAAY;IAO7B;QACI,IAAI,CAAC,IAAI,GAAG;YACR,SAAS,EAAE,IAAI;YACf,iBAAiB,EAAE,IAAI;SAC1B,CAAA;QACD,IAAI,CAAC,SAAS,GAAG,IAAI,CAAA;IACzB,CAAC;CACJ"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Custom Charges Types
|
|
4
3
|
*
|
|
@@ -8,22 +7,19 @@
|
|
|
8
7
|
*
|
|
9
8
|
* @fileoverview Custom charges type definitions for cost estimation
|
|
10
9
|
*/
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.hasIPFSCustomCharges = hasIPFSCustomCharges;
|
|
13
|
-
exports.isValidCharge = isValidCharge;
|
|
14
10
|
// ============================================================================
|
|
15
11
|
// Type Guards
|
|
16
12
|
// ============================================================================
|
|
17
13
|
/**
|
|
18
14
|
* Check if custom charges include IPFS configuration
|
|
19
15
|
*/
|
|
20
|
-
function hasIPFSCustomCharges(charges) {
|
|
16
|
+
export function hasIPFSCustomCharges(charges) {
|
|
21
17
|
return charges?.ipfs !== undefined;
|
|
22
18
|
}
|
|
23
19
|
/**
|
|
24
20
|
* Validate that actual cost does not exceed maximum
|
|
25
21
|
*/
|
|
26
|
-
function isValidCharge(maxCostDem, actualCostDem) {
|
|
22
|
+
export function isValidCharge(maxCostDem, actualCostDem) {
|
|
27
23
|
try {
|
|
28
24
|
const max = BigInt(maxCostDem);
|
|
29
25
|
const actual = BigInt(actualCostDem);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomCharges.js","sourceRoot":"","sources":["../../../../src/types/blockchain/CustomCharges.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CustomCharges.js","sourceRoot":"","sources":["../../../../src/types/blockchain/CustomCharges.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AA2GH,+EAA+E;AAC/E,cAAc;AACd,+EAA+E;AAE/E;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAChC,OAAkC;IAElC,OAAO,OAAO,EAAE,IAAI,KAAK,SAAS,CAAA;AACtC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,aAAa,CACzB,UAAkB,EAClB,aAAqB;IAErB,IAAI,CAAC;QACD,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC,CAAA;QAC9B,MAAM,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC,CAAA;QACpC,OAAO,MAAM,IAAI,GAAG,CAAA;IACxB,CAAC;IAAC,MAAM,CAAC;QACL,OAAO,KAAK,CAAA;IAChB,CAAC;AACL,CAAC"}
|
|
@@ -71,7 +71,7 @@ export interface GCREditIdentity {
|
|
|
71
71
|
type: "identity";
|
|
72
72
|
isRollback: boolean;
|
|
73
73
|
account: string;
|
|
74
|
-
context: "xm" | "web2" | "pqc" | "nomis" | "ud";
|
|
74
|
+
context: "xm" | "web2" | "pqc" | "nomis" | "ud" | "tlsn";
|
|
75
75
|
operation: "add" | "remove";
|
|
76
76
|
data: Web2GCRData | XmGCRIdentityData | XMCoreTargetIdentityPayload | PQCIdentityGCREditData[] | PqcIdentityRemovePayload["payload"] | UdGCRData | {
|
|
77
77
|
domain: string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// TODO See handleGCR.ts for the execution of the GCREdit
|
|
3
2
|
// TODO See endpointHandlers.ts for the derivation of the GCREdit from a Transaction (see handleExecuteTransaction)
|
|
4
|
-
|
|
3
|
+
export {};
|
|
5
4
|
//# sourceMappingURL=GCREdit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GCREdit.js","sourceRoot":"","sources":["../../../../src/types/blockchain/GCREdit.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GCREdit.js","sourceRoot":"","sources":["../../../../src/types/blockchain/GCREdit.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,mHAAmH"}
|
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
1
|
// Re-export specific transaction types
|
|
18
|
-
|
|
2
|
+
export * from './TransactionSubtypes/index.js';
|
|
19
3
|
//# sourceMappingURL=Transaction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Transaction.js","sourceRoot":"","sources":["../../../../src/types/blockchain/Transaction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Transaction.js","sourceRoot":"","sources":["../../../../src/types/blockchain/Transaction.ts"],"names":[],"mappings":"AAqGA,uCAAuC;AACvC,cAAc,uBAAuB,CAAA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* IPFS Transaction Types
|
|
4
3
|
*
|
|
@@ -9,44 +8,38 @@
|
|
|
9
8
|
*
|
|
10
9
|
* @fileoverview IPFS transaction type definitions for SDK
|
|
11
10
|
*/
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.isIPFSAddPayload = isIPFSAddPayload;
|
|
14
|
-
exports.isIPFSPinPayload = isIPFSPinPayload;
|
|
15
|
-
exports.isIPFSUnpinPayload = isIPFSUnpinPayload;
|
|
16
|
-
exports.isIPFSExtendPinPayload = isIPFSExtendPinPayload;
|
|
17
|
-
exports.isIPFSPayload = isIPFSPayload;
|
|
18
11
|
// ============================================================================
|
|
19
12
|
// Type Guards
|
|
20
13
|
// ============================================================================
|
|
21
14
|
/**
|
|
22
15
|
* Check if a payload is an IPFS_ADD operation
|
|
23
16
|
*/
|
|
24
|
-
function isIPFSAddPayload(payload) {
|
|
17
|
+
export function isIPFSAddPayload(payload) {
|
|
25
18
|
return payload.operation === "IPFS_ADD";
|
|
26
19
|
}
|
|
27
20
|
/**
|
|
28
21
|
* Check if a payload is an IPFS_PIN operation
|
|
29
22
|
*/
|
|
30
|
-
function isIPFSPinPayload(payload) {
|
|
23
|
+
export function isIPFSPinPayload(payload) {
|
|
31
24
|
return payload.operation === "IPFS_PIN";
|
|
32
25
|
}
|
|
33
26
|
/**
|
|
34
27
|
* Check if a payload is an IPFS_UNPIN operation
|
|
35
28
|
*/
|
|
36
|
-
function isIPFSUnpinPayload(payload) {
|
|
29
|
+
export function isIPFSUnpinPayload(payload) {
|
|
37
30
|
return payload.operation === "IPFS_UNPIN";
|
|
38
31
|
}
|
|
39
32
|
// REVIEW: DEM-481 - Pin extension type guard
|
|
40
33
|
/**
|
|
41
34
|
* Check if a payload is an IPFS_EXTEND_PIN operation
|
|
42
35
|
*/
|
|
43
|
-
function isIPFSExtendPinPayload(payload) {
|
|
36
|
+
export function isIPFSExtendPinPayload(payload) {
|
|
44
37
|
return payload.operation === "IPFS_EXTEND_PIN";
|
|
45
38
|
}
|
|
46
39
|
/**
|
|
47
40
|
* Check if any payload is an IPFS payload
|
|
48
41
|
*/
|
|
49
|
-
function isIPFSPayload(payload) {
|
|
42
|
+
export function isIPFSPayload(payload) {
|
|
50
43
|
if (!payload || typeof payload !== "object")
|
|
51
44
|
return false;
|
|
52
45
|
const p = payload;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPFSTransaction.js","sourceRoot":"","sources":["../../../../../src/types/blockchain/TransactionSubtypes/IPFSTransaction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IPFSTransaction.js","sourceRoot":"","sources":["../../../../../src/types/blockchain/TransactionSubtypes/IPFSTransaction.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAkJH,+EAA+E;AAC/E,cAAc;AACd,+EAA+E;AAE/E;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAoB;IACjD,OAAO,OAAO,CAAC,SAAS,KAAK,UAAU,CAAA;AAC3C,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAoB;IACjD,OAAO,OAAO,CAAC,SAAS,KAAK,UAAU,CAAA;AAC3C,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAAoB;IACnD,OAAO,OAAO,CAAC,SAAS,KAAK,YAAY,CAAA;AAC7C,CAAC;AAED,6CAA6C;AAC7C;;GAEG;AACH,MAAM,UAAU,sBAAsB,CAAC,OAAoB;IACvD,OAAO,OAAO,CAAC,SAAS,KAAK,iBAAiB,CAAA;AAClD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,OAAgB;IAC1C,IAAI,CAAC,OAAO,IAAI,OAAO,OAAO,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAA;IACzD,MAAM,CAAC,GAAG,OAAkC,CAAA;IAC5C,OAAO,CACH,CAAC,CAAC,SAAS,KAAK,UAAU;QAC1B,CAAC,CAAC,SAAS,KAAK,UAAU;QAC1B,CAAC,CAAC,SAAS,KAAK,YAAY;QAC5B,CAAC,CAAC,SAAS,KAAK,iBAAiB,CACpC,CAAA;AACL,CAAC"}
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.STORAGE_PROGRAM_CONSTANTS = void 0;
|
|
4
|
-
exports.isStorageProgramPayload = isStorageProgramPayload;
|
|
5
|
-
exports.isValidEncoding = isValidEncoding;
|
|
6
|
-
exports.isValidStorageLocation = isValidStorageLocation;
|
|
7
1
|
// REVIEW: Unified Storage Program transaction types for both JSON and Binary storage
|
|
8
2
|
// ============================================================================
|
|
9
3
|
// Constants
|
|
@@ -11,7 +5,7 @@ exports.isValidStorageLocation = isValidStorageLocation;
|
|
|
11
5
|
/**
|
|
12
6
|
* Storage Program constants for validation and pricing
|
|
13
7
|
*/
|
|
14
|
-
|
|
8
|
+
export const STORAGE_PROGRAM_CONSTANTS = {
|
|
15
9
|
/** Maximum storage size in bytes (1MB) */
|
|
16
10
|
MAX_SIZE_BYTES: 1048576,
|
|
17
11
|
/** Size chunk for pricing in bytes (10KB) */
|
|
@@ -27,7 +21,7 @@ exports.STORAGE_PROGRAM_CONSTANTS = {
|
|
|
27
21
|
/**
|
|
28
22
|
* Check if a payload is a StorageProgram payload
|
|
29
23
|
*/
|
|
30
|
-
function isStorageProgramPayload(payload) {
|
|
24
|
+
export function isStorageProgramPayload(payload) {
|
|
31
25
|
if (!payload || typeof payload !== "object")
|
|
32
26
|
return false;
|
|
33
27
|
const p = payload;
|
|
@@ -51,13 +45,13 @@ function isStorageProgramPayload(payload) {
|
|
|
51
45
|
/**
|
|
52
46
|
* Check if encoding is valid
|
|
53
47
|
*/
|
|
54
|
-
function isValidEncoding(encoding) {
|
|
48
|
+
export function isValidEncoding(encoding) {
|
|
55
49
|
return encoding === "json" || encoding === "binary";
|
|
56
50
|
}
|
|
57
51
|
/**
|
|
58
52
|
* Check if storage location is valid
|
|
59
53
|
*/
|
|
60
|
-
function isValidStorageLocation(location) {
|
|
54
|
+
export function isValidStorageLocation(location) {
|
|
61
55
|
return location === "onchain" || location === "ipfs";
|
|
62
56
|
}
|
|
63
57
|
//# sourceMappingURL=StorageProgramTransaction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageProgramTransaction.js","sourceRoot":"","sources":["../../../../../src/types/blockchain/TransactionSubtypes/StorageProgramTransaction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StorageProgramTransaction.js","sourceRoot":"","sources":["../../../../../src/types/blockchain/TransactionSubtypes/StorageProgramTransaction.ts"],"names":[],"mappings":"AAEA,qFAAqF;AAErF,+EAA+E;AAC/E,YAAY;AACZ,+EAA+E;AAE/E;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACrC,0CAA0C;IAC1C,cAAc,EAAE,OAAO;IAEvB,6CAA6C;IAC7C,mBAAmB,EAAE,KAAK;IAE1B,2BAA2B;IAC3B,aAAa,EAAE,EAAE;IAEjB,8CAA8C;IAC9C,sBAAsB,EAAE,EAAE;CACpB,CAAA;AA0OV,+EAA+E;AAC/E,cAAc;AACd,+EAA+E;AAE/E;;GAEG;AACH,MAAM,UAAU,uBAAuB,CAAC,OAAgB;IACpD,IAAI,CAAC,OAAO,IAAI,OAAO,OAAO,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAA;IACzD,MAAM,CAAC,GAAG,OAAkC,CAAA;IAC5C,MAAM,eAAe,GAAG;QACpB,wBAAwB;QACxB,eAAe;QACf,cAAc;QACd,uBAAuB;QACvB,wBAAwB;QACxB,sBAAsB;QACtB,WAAW;QACX,UAAU;QACV,aAAa;QACb,cAAc;QACd,aAAa;KAChB,CAAA;IACD,OAAO,CACH,OAAO,CAAC,CAAC,SAAS,KAAK,QAAQ;QAC/B,OAAO,CAAC,CAAC,cAAc,KAAK,QAAQ;QACpC,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAmB,CAAC,CAClD,CAAA;AACL,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,QAAiB;IAC7C,OAAO,QAAQ,KAAK,MAAM,IAAI,QAAQ,KAAK,QAAQ,CAAA;AACvD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,sBAAsB,CAAC,QAAiB;IACpD,OAAO,QAAQ,KAAK,SAAS,IAAI,QAAQ,KAAK,MAAM,CAAA;AACxD,CAAC"}
|