@buildonspark/issuer-sdk 0.0.22 → 0.0.24
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/chunk-GB7N6I5O.js +48 -0
- package/dist/index.cjs +518 -0
- package/dist/index.d.cts +110 -0
- package/dist/index.d.ts +110 -0
- package/dist/index.js +497 -0
- package/dist/types.cjs +77 -0
- package/dist/types.d.cts +99 -0
- package/dist/{issuer-sdk/src/types.d.ts → types.d.ts} +14 -12
- package/dist/types.js +12 -0
- package/package.json +31 -32
- package/src/examples/example.ts +1 -1
- package/src/index.ts +1 -0
- package/src/interface/wallet-interface.ts +7 -6
- package/src/{issuer-sdk.ts → issuer-spark-wallet.ts} +5 -5
- package/src/tests/integration/spark.test.ts +3 -12
- package/src/types.ts +1 -2
- package/src/utils/constants.ts +2 -2
- package/dist/issuer-sdk/src/interface/wallet-interface.d.ts +0 -67
- package/dist/issuer-sdk/src/interface/wallet-interface.js +0 -2
- package/dist/issuer-sdk/src/interface/wallet-interface.js.map +0 -1
- package/dist/issuer-sdk/src/issuer-sdk.d.ts +0 -43
- package/dist/issuer-sdk/src/issuer-sdk.js +0 -153
- package/dist/issuer-sdk/src/issuer-sdk.js.map +0 -1
- package/dist/issuer-sdk/src/proto/common.d.ts +0 -58
- package/dist/issuer-sdk/src/proto/common.js +0 -350
- package/dist/issuer-sdk/src/proto/common.js.map +0 -1
- package/dist/issuer-sdk/src/proto/google/protobuf/descriptor.d.ts +0 -1228
- package/dist/issuer-sdk/src/proto/google/protobuf/descriptor.js +0 -5070
- package/dist/issuer-sdk/src/proto/google/protobuf/descriptor.js.map +0 -1
- package/dist/issuer-sdk/src/proto/google/protobuf/duration.d.ts +0 -99
- package/dist/issuer-sdk/src/proto/google/protobuf/duration.js +0 -90
- package/dist/issuer-sdk/src/proto/google/protobuf/duration.js.map +0 -1
- package/dist/issuer-sdk/src/proto/google/protobuf/empty.d.ts +0 -33
- package/dist/issuer-sdk/src/proto/google/protobuf/empty.js +0 -46
- package/dist/issuer-sdk/src/proto/google/protobuf/empty.js.map +0 -1
- package/dist/issuer-sdk/src/proto/google/protobuf/timestamp.d.ts +0 -128
- package/dist/issuer-sdk/src/proto/google/protobuf/timestamp.js +0 -90
- package/dist/issuer-sdk/src/proto/google/protobuf/timestamp.js.map +0 -1
- package/dist/issuer-sdk/src/proto/mock.d.ts +0 -48
- package/dist/issuer-sdk/src/proto/mock.js +0 -103
- package/dist/issuer-sdk/src/proto/mock.js.map +0 -1
- package/dist/issuer-sdk/src/proto/spark.d.ts +0 -1101
- package/dist/issuer-sdk/src/proto/spark.js +0 -9565
- package/dist/issuer-sdk/src/proto/spark.js.map +0 -1
- package/dist/issuer-sdk/src/proto/spark_authn.d.ts +0 -111
- package/dist/issuer-sdk/src/proto/spark_authn.js +0 -517
- package/dist/issuer-sdk/src/proto/spark_authn.js.map +0 -1
- package/dist/issuer-sdk/src/proto/validate/validate.d.ts +0 -1087
- package/dist/issuer-sdk/src/proto/validate/validate.js +0 -4437
- package/dist/issuer-sdk/src/proto/validate/validate.js.map +0 -1
- package/dist/issuer-sdk/src/services/freeze.d.ts +0 -11
- package/dist/issuer-sdk/src/services/freeze.js +0 -44
- package/dist/issuer-sdk/src/services/freeze.js.map +0 -1
- package/dist/issuer-sdk/src/services/token-transactions.d.ts +0 -8
- package/dist/issuer-sdk/src/services/token-transactions.js +0 -27
- package/dist/issuer-sdk/src/services/token-transactions.js.map +0 -1
- package/dist/issuer-sdk/src/tests/integration/spark.test.d.ts +0 -1
- package/dist/issuer-sdk/src/tests/integration/spark.test.js +0 -373
- package/dist/issuer-sdk/src/tests/integration/spark.test.js.map +0 -1
- package/dist/issuer-sdk/src/types.js +0 -33
- package/dist/issuer-sdk/src/types.js.map +0 -1
- package/dist/issuer-sdk/src/utils/constants.d.ts +0 -16
- package/dist/issuer-sdk/src/utils/constants.js +0 -18
- package/dist/issuer-sdk/src/utils/constants.js.map +0 -1
- package/dist/issuer-sdk/src/utils/enum-mappers.d.ts +0 -6
- package/dist/issuer-sdk/src/utils/enum-mappers.js +0 -66
- package/dist/issuer-sdk/src/utils/enum-mappers.js.map +0 -1
- package/dist/issuer-sdk/src/utils/token-hashing.d.ts +0 -2
- package/dist/issuer-sdk/src/utils/token-hashing.js +0 -45
- package/dist/issuer-sdk/src/utils/token-hashing.js.map +0 -1
- package/dist/issuer-sdk/src/utils/type-mappers.d.ts +0 -4
- package/dist/issuer-sdk/src/utils/type-mappers.js +0 -106
- package/dist/issuer-sdk/src/utils/type-mappers.js.map +0 -1
- package/dist/spark-sdk/src/graphql/client.d.ts +0 -29
- package/dist/spark-sdk/src/graphql/client.js +0 -246
- package/dist/spark-sdk/src/graphql/client.js.map +0 -1
- package/dist/spark-sdk/src/graphql/mutations/CompleteCoopExit.d.ts +0 -1
- package/dist/spark-sdk/src/graphql/mutations/CompleteCoopExit.js +0 -19
- package/dist/spark-sdk/src/graphql/mutations/CompleteCoopExit.js.map +0 -1
- package/dist/spark-sdk/src/graphql/mutations/CompleteLeavesSwap.d.ts +0 -1
- package/dist/spark-sdk/src/graphql/mutations/CompleteLeavesSwap.js +0 -17
- package/dist/spark-sdk/src/graphql/mutations/CompleteLeavesSwap.js.map +0 -1
- package/dist/spark-sdk/src/graphql/mutations/RequestCoopExit.d.ts +0 -1
- package/dist/spark-sdk/src/graphql/mutations/RequestCoopExit.js +0 -20
- package/dist/spark-sdk/src/graphql/mutations/RequestCoopExit.js.map +0 -1
- package/dist/spark-sdk/src/graphql/mutations/RequestLightningReceive.d.ts +0 -1
- package/dist/spark-sdk/src/graphql/mutations/RequestLightningReceive.js +0 -26
- package/dist/spark-sdk/src/graphql/mutations/RequestLightningReceive.js.map +0 -1
- package/dist/spark-sdk/src/graphql/mutations/RequestLightningSend.d.ts +0 -1
- package/dist/spark-sdk/src/graphql/mutations/RequestLightningSend.js +0 -18
- package/dist/spark-sdk/src/graphql/mutations/RequestLightningSend.js.map +0 -1
- package/dist/spark-sdk/src/graphql/mutations/RequestSwapLeaves.d.ts +0 -1
- package/dist/spark-sdk/src/graphql/mutations/RequestSwapLeaves.js +0 -24
- package/dist/spark-sdk/src/graphql/mutations/RequestSwapLeaves.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/BitcoinNetwork.d.ts +0 -17
- package/dist/spark-sdk/src/graphql/objects/BitcoinNetwork.js +0 -20
- package/dist/spark-sdk/src/graphql/objects/BitcoinNetwork.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/CompleteCoopExitInput.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/CompleteCoopExitInput.js +0 -14
- package/dist/spark-sdk/src/graphql/objects/CompleteCoopExitInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/CompleteCoopExitOutput.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/CompleteCoopExitOutput.js +0 -19
- package/dist/spark-sdk/src/graphql/objects/CompleteCoopExitOutput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/CompleteLeavesSwapInput.d.ts +0 -8
- package/dist/spark-sdk/src/graphql/objects/CompleteLeavesSwapInput.js +0 -16
- package/dist/spark-sdk/src/graphql/objects/CompleteLeavesSwapInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/CompleteLeavesSwapOutput.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/CompleteLeavesSwapOutput.js +0 -19
- package/dist/spark-sdk/src/graphql/objects/CompleteLeavesSwapOutput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/CompleteSeedReleaseInput.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/CompleteSeedReleaseInput.js +0 -14
- package/dist/spark-sdk/src/graphql/objects/CompleteSeedReleaseInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/CompleteSeedReleaseOutput.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/CompleteSeedReleaseOutput.js +0 -17
- package/dist/spark-sdk/src/graphql/objects/CompleteSeedReleaseOutput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/Connection.d.ts +0 -16
- package/dist/spark-sdk/src/graphql/objects/Connection.js +0 -56
- package/dist/spark-sdk/src/graphql/objects/Connection.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/CoopExitFeeEstimateInput.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/CoopExitFeeEstimateInput.js +0 -14
- package/dist/spark-sdk/src/graphql/objects/CoopExitFeeEstimateInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/CoopExitFeeEstimateOutput.d.ts +0 -8
- package/dist/spark-sdk/src/graphql/objects/CoopExitFeeEstimateOutput.js +0 -26
- package/dist/spark-sdk/src/graphql/objects/CoopExitFeeEstimateOutput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/CoopExitRequest.d.ts +0 -35
- package/dist/spark-sdk/src/graphql/objects/CoopExitRequest.js +0 -68
- package/dist/spark-sdk/src/graphql/objects/CoopExitRequest.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/CurrencyAmount.d.ts +0 -24
- package/dist/spark-sdk/src/graphql/objects/CurrencyAmount.js +0 -30
- package/dist/spark-sdk/src/graphql/objects/CurrencyAmount.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/CurrencyUnit.d.ts +0 -29
- package/dist/spark-sdk/src/graphql/objects/CurrencyUnit.js +0 -32
- package/dist/spark-sdk/src/graphql/objects/CurrencyUnit.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/Entity.d.ts +0 -16
- package/dist/spark-sdk/src/graphql/objects/Entity.js +0 -169
- package/dist/spark-sdk/src/graphql/objects/Entity.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/GetChallengeInput.d.ts +0 -6
- package/dist/spark-sdk/src/graphql/objects/GetChallengeInput.js +0 -12
- package/dist/spark-sdk/src/graphql/objects/GetChallengeInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/GetChallengeOutput.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/GetChallengeOutput.js +0 -17
- package/dist/spark-sdk/src/graphql/objects/GetChallengeOutput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/Invoice.d.ts +0 -15
- package/dist/spark-sdk/src/graphql/objects/Invoice.js +0 -45
- package/dist/spark-sdk/src/graphql/objects/Invoice.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/Leaf.d.ts +0 -11
- package/dist/spark-sdk/src/graphql/objects/Leaf.js +0 -29
- package/dist/spark-sdk/src/graphql/objects/Leaf.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/LeavesSwapFeeEstimateInput.d.ts +0 -6
- package/dist/spark-sdk/src/graphql/objects/LeavesSwapFeeEstimateInput.js +0 -12
- package/dist/spark-sdk/src/graphql/objects/LeavesSwapFeeEstimateInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/LeavesSwapFeeEstimateOutput.d.ts +0 -8
- package/dist/spark-sdk/src/graphql/objects/LeavesSwapFeeEstimateOutput.js +0 -26
- package/dist/spark-sdk/src/graphql/objects/LeavesSwapFeeEstimateOutput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/LeavesSwapRequest.d.ts +0 -42
- package/dist/spark-sdk/src/graphql/objects/LeavesSwapRequest.js +0 -123
- package/dist/spark-sdk/src/graphql/objects/LeavesSwapRequest.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/LightningReceiveFeeEstimateInput.d.ts +0 -8
- package/dist/spark-sdk/src/graphql/objects/LightningReceiveFeeEstimateInput.js +0 -15
- package/dist/spark-sdk/src/graphql/objects/LightningReceiveFeeEstimateInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/LightningReceiveFeeEstimateOutput.d.ts +0 -8
- package/dist/spark-sdk/src/graphql/objects/LightningReceiveFeeEstimateOutput.js +0 -26
- package/dist/spark-sdk/src/graphql/objects/LightningReceiveFeeEstimateOutput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/LightningReceiveRequest.d.ts +0 -34
- package/dist/spark-sdk/src/graphql/objects/LightningReceiveRequest.js +0 -97
- package/dist/spark-sdk/src/graphql/objects/LightningReceiveRequest.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/LightningReceiveRequestStatus.d.ts +0 -18
- package/dist/spark-sdk/src/graphql/objects/LightningReceiveRequestStatus.js +0 -21
- package/dist/spark-sdk/src/graphql/objects/LightningReceiveRequestStatus.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/LightningSendFeeEstimateInput.d.ts +0 -6
- package/dist/spark-sdk/src/graphql/objects/LightningSendFeeEstimateInput.js +0 -12
- package/dist/spark-sdk/src/graphql/objects/LightningSendFeeEstimateInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/LightningSendFeeEstimateOutput.d.ts +0 -8
- package/dist/spark-sdk/src/graphql/objects/LightningSendFeeEstimateOutput.js +0 -26
- package/dist/spark-sdk/src/graphql/objects/LightningSendFeeEstimateOutput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/LightningSendRequest.d.ts +0 -35
- package/dist/spark-sdk/src/graphql/objects/LightningSendRequest.js +0 -82
- package/dist/spark-sdk/src/graphql/objects/LightningSendRequest.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/LightningSendRequestStatus.d.ts +0 -15
- package/dist/spark-sdk/src/graphql/objects/LightningSendRequestStatus.js +0 -18
- package/dist/spark-sdk/src/graphql/objects/LightningSendRequestStatus.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/NotifyReceiverTransferInput.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/NotifyReceiverTransferInput.js +0 -14
- package/dist/spark-sdk/src/graphql/objects/NotifyReceiverTransferInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/PageInfo.d.ts +0 -11
- package/dist/spark-sdk/src/graphql/objects/PageInfo.js +0 -26
- package/dist/spark-sdk/src/graphql/objects/PageInfo.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/Provider.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/Provider.js +0 -14
- package/dist/spark-sdk/src/graphql/objects/Provider.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/RequestCoopExitInput.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/RequestCoopExitInput.js +0 -14
- package/dist/spark-sdk/src/graphql/objects/RequestCoopExitInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/RequestCoopExitOutput.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/RequestCoopExitOutput.js +0 -19
- package/dist/spark-sdk/src/graphql/objects/RequestCoopExitOutput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/RequestLeavesSwapInput.d.ts +0 -11
- package/dist/spark-sdk/src/graphql/objects/RequestLeavesSwapInput.js +0 -22
- package/dist/spark-sdk/src/graphql/objects/RequestLeavesSwapInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/RequestLeavesSwapOutput.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/RequestLeavesSwapOutput.js +0 -19
- package/dist/spark-sdk/src/graphql/objects/RequestLeavesSwapOutput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/RequestLightningReceiveInput.d.ts +0 -16
- package/dist/spark-sdk/src/graphql/objects/RequestLightningReceiveInput.js +0 -21
- package/dist/spark-sdk/src/graphql/objects/RequestLightningReceiveInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/RequestLightningReceiveOutput.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/RequestLightningReceiveOutput.js +0 -19
- package/dist/spark-sdk/src/graphql/objects/RequestLightningReceiveOutput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/RequestLightningSendInput.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/RequestLightningSendInput.js +0 -14
- package/dist/spark-sdk/src/graphql/objects/RequestLightningSendInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/RequestLightningSendOutput.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/RequestLightningSendOutput.js +0 -19
- package/dist/spark-sdk/src/graphql/objects/RequestLightningSendOutput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/SparkCoopExitRequestStatus.d.ts +0 -14
- package/dist/spark-sdk/src/graphql/objects/SparkCoopExitRequestStatus.js +0 -17
- package/dist/spark-sdk/src/graphql/objects/SparkCoopExitRequestStatus.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/SparkLeavesSwapRequestStatus.d.ts +0 -14
- package/dist/spark-sdk/src/graphql/objects/SparkLeavesSwapRequestStatus.js +0 -17
- package/dist/spark-sdk/src/graphql/objects/SparkLeavesSwapRequestStatus.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/SparkTransferToLeavesConnection.d.ts +0 -19
- package/dist/spark-sdk/src/graphql/objects/SparkTransferToLeavesConnection.js +0 -45
- package/dist/spark-sdk/src/graphql/objects/SparkTransferToLeavesConnection.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/SparkWalletUser.d.ts +0 -21
- package/dist/spark-sdk/src/graphql/objects/SparkWalletUser.js +0 -45
- package/dist/spark-sdk/src/graphql/objects/SparkWalletUser.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/StartSeedReleaseInput.d.ts +0 -6
- package/dist/spark-sdk/src/graphql/objects/StartSeedReleaseInput.js +0 -12
- package/dist/spark-sdk/src/graphql/objects/StartSeedReleaseInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/SwapLeaf.d.ts +0 -9
- package/dist/spark-sdk/src/graphql/objects/SwapLeaf.js +0 -23
- package/dist/spark-sdk/src/graphql/objects/SwapLeaf.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/Transfer.d.ts +0 -24
- package/dist/spark-sdk/src/graphql/objects/Transfer.js +0 -82
- package/dist/spark-sdk/src/graphql/objects/Transfer.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/UserLeafInput.d.ts +0 -8
- package/dist/spark-sdk/src/graphql/objects/UserLeafInput.js +0 -16
- package/dist/spark-sdk/src/graphql/objects/UserLeafInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/UserRequest.d.ts +0 -22
- package/dist/spark-sdk/src/graphql/objects/UserRequest.js +0 -310
- package/dist/spark-sdk/src/graphql/objects/UserRequest.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/VerifyChallengeInput.d.ts +0 -10
- package/dist/spark-sdk/src/graphql/objects/VerifyChallengeInput.js +0 -20
- package/dist/spark-sdk/src/graphql/objects/VerifyChallengeInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/VerifyChallengeOutput.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/VerifyChallengeOutput.js +0 -17
- package/dist/spark-sdk/src/graphql/objects/VerifyChallengeOutput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/WalletUserIdentityPublicKeyInput.d.ts +0 -6
- package/dist/spark-sdk/src/graphql/objects/WalletUserIdentityPublicKeyInput.js +0 -12
- package/dist/spark-sdk/src/graphql/objects/WalletUserIdentityPublicKeyInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/WalletUserIdentityPublicKeyOutput.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/WalletUserIdentityPublicKeyOutput.js +0 -17
- package/dist/spark-sdk/src/graphql/objects/WalletUserIdentityPublicKeyOutput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/index.d.ts +0 -53
- package/dist/spark-sdk/src/graphql/objects/index.js +0 -14
- package/dist/spark-sdk/src/graphql/objects/index.js.map +0 -1
- package/dist/spark-sdk/src/graphql/queries/CoopExitFeeEstimate.d.ts +0 -1
- package/dist/spark-sdk/src/graphql/queries/CoopExitFeeEstimate.js +0 -18
- package/dist/spark-sdk/src/graphql/queries/CoopExitFeeEstimate.js.map +0 -1
- package/dist/spark-sdk/src/graphql/queries/LeavesSwapFeeEstimate.d.ts +0 -1
- package/dist/spark-sdk/src/graphql/queries/LeavesSwapFeeEstimate.js +0 -16
- package/dist/spark-sdk/src/graphql/queries/LeavesSwapFeeEstimate.js.map +0 -1
- package/dist/spark-sdk/src/graphql/queries/LightningReceiveFeeEstimate.d.ts +0 -1
- package/dist/spark-sdk/src/graphql/queries/LightningReceiveFeeEstimate.js +0 -18
- package/dist/spark-sdk/src/graphql/queries/LightningReceiveFeeEstimate.js.map +0 -1
- package/dist/spark-sdk/src/graphql/queries/LightningSendFeeEstimate.d.ts +0 -1
- package/dist/spark-sdk/src/graphql/queries/LightningSendFeeEstimate.js +0 -16
- package/dist/spark-sdk/src/graphql/queries/LightningSendFeeEstimate.js.map +0 -1
- package/dist/spark-sdk/src/graphql/queries/UserRequest.d.ts +0 -1
- package/dist/spark-sdk/src/graphql/queries/UserRequest.js +0 -10
- package/dist/spark-sdk/src/graphql/queries/UserRequest.js.map +0 -1
- package/dist/spark-sdk/src/proto/common.d.ts +0 -58
- package/dist/spark-sdk/src/proto/common.js +0 -350
- package/dist/spark-sdk/src/proto/common.js.map +0 -1
- package/dist/spark-sdk/src/proto/google/protobuf/empty.d.ts +0 -33
- package/dist/spark-sdk/src/proto/google/protobuf/empty.js +0 -46
- package/dist/spark-sdk/src/proto/google/protobuf/empty.js.map +0 -1
- package/dist/spark-sdk/src/proto/google/protobuf/timestamp.d.ts +0 -128
- package/dist/spark-sdk/src/proto/google/protobuf/timestamp.js +0 -90
- package/dist/spark-sdk/src/proto/google/protobuf/timestamp.js.map +0 -1
- package/dist/spark-sdk/src/proto/mock.d.ts +0 -48
- package/dist/spark-sdk/src/proto/mock.js +0 -103
- package/dist/spark-sdk/src/proto/mock.js.map +0 -1
- package/dist/spark-sdk/src/proto/spark.d.ts +0 -1209
- package/dist/spark-sdk/src/proto/spark.js +0 -10516
- package/dist/spark-sdk/src/proto/spark.js.map +0 -1
- package/dist/spark-sdk/src/proto/spark_authn.d.ts +0 -111
- package/dist/spark-sdk/src/proto/spark_authn.js +0 -517
- package/dist/spark-sdk/src/proto/spark_authn.js.map +0 -1
- package/dist/spark-sdk/src/services/config.d.ts +0 -17
- package/dist/spark-sdk/src/services/config.js +0 -54
- package/dist/spark-sdk/src/services/config.js.map +0 -1
- package/dist/spark-sdk/src/services/connection.d.ts +0 -22
- package/dist/spark-sdk/src/services/connection.js +0 -180
- package/dist/spark-sdk/src/services/connection.js.map +0 -1
- package/dist/spark-sdk/src/services/coop-exit.d.ts +0 -20
- package/dist/spark-sdk/src/services/coop-exit.js +0 -101
- package/dist/spark-sdk/src/services/coop-exit.js.map +0 -1
- package/dist/spark-sdk/src/services/deposit.d.ts +0 -21
- package/dist/spark-sdk/src/services/deposit.js +0 -214
- package/dist/spark-sdk/src/services/deposit.js.map +0 -1
- package/dist/spark-sdk/src/services/lightning.d.ts +0 -32
- package/dist/spark-sdk/src/services/lightning.js +0 -210
- package/dist/spark-sdk/src/services/lightning.js.map +0 -1
- package/dist/spark-sdk/src/services/lrc20.d.ts +0 -5
- package/dist/spark-sdk/src/services/lrc20.js +0 -27
- package/dist/spark-sdk/src/services/lrc20.js.map +0 -1
- package/dist/spark-sdk/src/services/token-transactions.d.ts +0 -16
- package/dist/spark-sdk/src/services/token-transactions.js +0 -299
- package/dist/spark-sdk/src/services/token-transactions.js.map +0 -1
- package/dist/spark-sdk/src/services/transfer.d.ts +0 -66
- package/dist/spark-sdk/src/services/transfer.js +0 -791
- package/dist/spark-sdk/src/services/transfer.js.map +0 -1
- package/dist/spark-sdk/src/services/tree-creation.d.ts +0 -29
- package/dist/spark-sdk/src/services/tree-creation.js +0 -399
- package/dist/spark-sdk/src/services/tree-creation.js.map +0 -1
- package/dist/spark-sdk/src/services/wallet-config.d.ts +0 -23
- package/dist/spark-sdk/src/services/wallet-config.js +0 -107
- package/dist/spark-sdk/src/services/wallet-config.js.map +0 -1
- package/dist/spark-sdk/src/signer/signer.d.ts +0 -106
- package/dist/spark-sdk/src/signer/signer.js +0 -275
- package/dist/spark-sdk/src/signer/signer.js.map +0 -1
- package/dist/spark-sdk/src/spark-sdk.d.ts +0 -414
- package/dist/spark-sdk/src/spark-sdk.js +0 -1285
- package/dist/spark-sdk/src/spark-sdk.js.map +0 -1
- package/dist/spark-sdk/src/tests/utils/test-faucet.d.ts +0 -24
- package/dist/spark-sdk/src/tests/utils/test-faucet.js +0 -182
- package/dist/spark-sdk/src/tests/utils/test-faucet.js.map +0 -1
- package/dist/spark-sdk/src/types/grpc.d.ts +0 -6
- package/dist/spark-sdk/src/types/grpc.js +0 -2
- package/dist/spark-sdk/src/types/grpc.js.map +0 -1
- package/dist/spark-sdk/src/types/index.d.ts +0 -3
- package/dist/spark-sdk/src/types/index.js +0 -4
- package/dist/spark-sdk/src/types/index.js.map +0 -1
- package/dist/spark-sdk/src/utils/adaptor-signature.d.ts +0 -7
- package/dist/spark-sdk/src/utils/adaptor-signature.js +0 -114
- package/dist/spark-sdk/src/utils/adaptor-signature.js.map +0 -1
- package/dist/spark-sdk/src/utils/bitcoin.d.ts +0 -12
- package/dist/spark-sdk/src/utils/bitcoin.js +0 -87
- package/dist/spark-sdk/src/utils/bitcoin.js.map +0 -1
- package/dist/spark-sdk/src/utils/crypto.d.ts +0 -1
- package/dist/spark-sdk/src/utils/crypto.js +0 -14
- package/dist/spark-sdk/src/utils/crypto.js.map +0 -1
- package/dist/spark-sdk/src/utils/index.d.ts +0 -12
- package/dist/spark-sdk/src/utils/index.js +0 -13
- package/dist/spark-sdk/src/utils/index.js.map +0 -1
- package/dist/spark-sdk/src/utils/keys.d.ts +0 -9
- package/dist/spark-sdk/src/utils/keys.js +0 -73
- package/dist/spark-sdk/src/utils/keys.js.map +0 -1
- package/dist/spark-sdk/src/utils/mempool.d.ts +0 -1
- package/dist/spark-sdk/src/utils/mempool.js +0 -29
- package/dist/spark-sdk/src/utils/mempool.js.map +0 -1
- package/dist/spark-sdk/src/utils/network.d.ts +0 -36
- package/dist/spark-sdk/src/utils/network.js +0 -65
- package/dist/spark-sdk/src/utils/network.js.map +0 -1
- package/dist/spark-sdk/src/utils/proof.d.ts +0 -1
- package/dist/spark-sdk/src/utils/proof.js +0 -12
- package/dist/spark-sdk/src/utils/proof.js.map +0 -1
- package/dist/spark-sdk/src/utils/response-validation.d.ts +0 -1
- package/dist/spark-sdk/src/utils/response-validation.js +0 -16
- package/dist/spark-sdk/src/utils/response-validation.js.map +0 -1
- package/dist/spark-sdk/src/utils/secret-sharing.d.ts +0 -26
- package/dist/spark-sdk/src/utils/secret-sharing.js +0 -174
- package/dist/spark-sdk/src/utils/secret-sharing.js.map +0 -1
- package/dist/spark-sdk/src/utils/signing.d.ts +0 -12
- package/dist/spark-sdk/src/utils/signing.js +0 -67
- package/dist/spark-sdk/src/utils/signing.js.map +0 -1
- package/dist/spark-sdk/src/utils/token-hashing.d.ts +0 -3
- package/dist/spark-sdk/src/utils/token-hashing.js +0 -116
- package/dist/spark-sdk/src/utils/token-hashing.js.map +0 -1
- package/dist/spark-sdk/src/utils/token-keyshares.d.ts +0 -5
- package/dist/spark-sdk/src/utils/token-keyshares.js +0 -17
- package/dist/spark-sdk/src/utils/token-keyshares.js.map +0 -1
- package/dist/spark-sdk/src/utils/token-transactions.d.ts +0 -5
- package/dist/spark-sdk/src/utils/token-transactions.js +0 -40
- package/dist/spark-sdk/src/utils/token-transactions.js.map +0 -1
- package/dist/spark-sdk/src/utils/transaction.d.ts +0 -9
- package/dist/spark-sdk/src/utils/transaction.js +0 -35
- package/dist/spark-sdk/src/utils/transaction.js.map +0 -1
- package/dist/spark-sdk/src/utils/wasm-wrapper.d.ts +0 -2
- package/dist/spark-sdk/src/utils/wasm-wrapper.js +0 -46
- package/dist/spark-sdk/src/utils/wasm-wrapper.js.map +0 -1
- package/dist/spark-sdk/src/utils/wasm.d.ts +0 -54
- package/dist/spark-sdk/src/utils/wasm.js +0 -26
- package/dist/spark-sdk/src/utils/wasm.js.map +0 -1
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
interface RequestCoopExitOutput {
|
|
2
|
-
requestId: string;
|
|
3
|
-
}
|
|
4
|
-
export declare const RequestCoopExitOutputFromJson: (obj: any) => RequestCoopExitOutput;
|
|
5
|
-
export declare const RequestCoopExitOutputToJson: (obj: RequestCoopExitOutput) => any;
|
|
6
|
-
export declare const FRAGMENT = "\nfragment RequestCoopExitOutputFragment on RequestCoopExitOutput {\n __typename\n request_coop_exit_output_request: request {\n id\n }\n}";
|
|
7
|
-
export default RequestCoopExitOutput;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
-
export const RequestCoopExitOutputFromJson = (obj) => {
|
|
3
|
-
return {
|
|
4
|
-
requestId: obj["request_coop_exit_output_request"].id,
|
|
5
|
-
};
|
|
6
|
-
};
|
|
7
|
-
export const RequestCoopExitOutputToJson = (obj) => {
|
|
8
|
-
return {
|
|
9
|
-
request_coop_exit_output_request: { id: obj.requestId },
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export const FRAGMENT = `
|
|
13
|
-
fragment RequestCoopExitOutputFragment on RequestCoopExitOutput {
|
|
14
|
-
__typename
|
|
15
|
-
request_coop_exit_output_request: request {
|
|
16
|
-
id
|
|
17
|
-
}
|
|
18
|
-
}`;
|
|
19
|
-
//# sourceMappingURL=RequestCoopExitOutput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RequestCoopExitOutput.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/RequestCoopExitOutput.ts"],"names":[],"mappings":"AACA,0EAA0E;AAgB1E,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,GAAQ,EAAyB,EAAE;IAC7E,OAAO;QACH,SAAS,EAAE,GAAG,CAAC,kCAAkC,CAAC,CAAC,EAAE;KAE3B,CAAC;AAEnC,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,GAA0B,EAAO,EAAE;IAC/E,OAAO;QACP,gCAAgC,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,SAAS,EAAE;KAE9C,CAAA;AAET,CAAC,CAAA;AAGG,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;EAM1B,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import UserLeafInput from './UserLeafInput.js';
|
|
2
|
-
interface RequestLeavesSwapInput {
|
|
3
|
-
adaptorPubkey: string;
|
|
4
|
-
totalAmountSats: number;
|
|
5
|
-
targetAmountSats: number;
|
|
6
|
-
feeSats: number;
|
|
7
|
-
userLeaves: UserLeafInput[];
|
|
8
|
-
}
|
|
9
|
-
export declare const RequestLeavesSwapInputFromJson: (obj: any) => RequestLeavesSwapInput;
|
|
10
|
-
export declare const RequestLeavesSwapInputToJson: (obj: RequestLeavesSwapInput) => any;
|
|
11
|
-
export default RequestLeavesSwapInput;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
-
import { UserLeafInputToJson } from './UserLeafInput.js';
|
|
3
|
-
import { UserLeafInputFromJson } from './UserLeafInput.js';
|
|
4
|
-
export const RequestLeavesSwapInputFromJson = (obj) => {
|
|
5
|
-
return {
|
|
6
|
-
adaptorPubkey: obj["request_leaves_swap_input_adaptor_pubkey"],
|
|
7
|
-
totalAmountSats: obj["request_leaves_swap_input_total_amount_sats"],
|
|
8
|
-
targetAmountSats: obj["request_leaves_swap_input_target_amount_sats"],
|
|
9
|
-
feeSats: obj["request_leaves_swap_input_fee_sats"],
|
|
10
|
-
userLeaves: obj["request_leaves_swap_input_user_leaves"].map((e) => UserLeafInputFromJson(e)),
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export const RequestLeavesSwapInputToJson = (obj) => {
|
|
14
|
-
return {
|
|
15
|
-
request_leaves_swap_input_adaptor_pubkey: obj.adaptorPubkey,
|
|
16
|
-
request_leaves_swap_input_total_amount_sats: obj.totalAmountSats,
|
|
17
|
-
request_leaves_swap_input_target_amount_sats: obj.targetAmountSats,
|
|
18
|
-
request_leaves_swap_input_fee_sats: obj.feeSats,
|
|
19
|
-
request_leaves_swap_input_user_leaves: obj.userLeaves.map((e) => UserLeafInputToJson(e)),
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=RequestLeavesSwapInput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RequestLeavesSwapInput.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/RequestLeavesSwapInput.ts"],"names":[],"mappings":"AACA,0EAA0E;AAI1E,OAAO,EAAC,mBAAmB,EAAC,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAC,qBAAqB,EAAC,MAAM,oBAAoB,CAAC;AAqBzD,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,GAAQ,EAA0B,EAAE;IAC/E,OAAO;QACH,aAAa,EAAE,GAAG,CAAC,0CAA0C,CAAC;QAC9D,eAAe,EAAE,GAAG,CAAC,6CAA6C,CAAC;QACnE,gBAAgB,EAAE,GAAG,CAAC,8CAA8C,CAAC;QACrE,OAAO,EAAE,GAAG,CAAC,oCAAoC,CAAC;QAClD,UAAU,EAAE,GAAG,CAAC,uCAAuC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC;KAElE,CAAC;AAEpC,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,GAA2B,EAAO,EAAE;IACjF,OAAO;QACP,wCAAwC,EAAE,GAAG,CAAC,aAAa;QAC3D,2CAA2C,EAAE,GAAG,CAAC,eAAe;QAChE,4CAA4C,EAAE,GAAG,CAAC,gBAAgB;QAClE,kCAAkC,EAAE,GAAG,CAAC,OAAO;QAC/C,qCAAqC,EAAE,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC;KAE/E,CAAA;AAET,CAAC,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
interface RequestLeavesSwapOutput {
|
|
2
|
-
requestId: string;
|
|
3
|
-
}
|
|
4
|
-
export declare const RequestLeavesSwapOutputFromJson: (obj: any) => RequestLeavesSwapOutput;
|
|
5
|
-
export declare const RequestLeavesSwapOutputToJson: (obj: RequestLeavesSwapOutput) => any;
|
|
6
|
-
export declare const FRAGMENT = "\nfragment RequestLeavesSwapOutputFragment on RequestLeavesSwapOutput {\n __typename\n request_leaves_swap_output_request: request {\n id\n }\n}";
|
|
7
|
-
export default RequestLeavesSwapOutput;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
-
export const RequestLeavesSwapOutputFromJson = (obj) => {
|
|
3
|
-
return {
|
|
4
|
-
requestId: obj["request_leaves_swap_output_request"].id,
|
|
5
|
-
};
|
|
6
|
-
};
|
|
7
|
-
export const RequestLeavesSwapOutputToJson = (obj) => {
|
|
8
|
-
return {
|
|
9
|
-
request_leaves_swap_output_request: { id: obj.requestId },
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export const FRAGMENT = `
|
|
13
|
-
fragment RequestLeavesSwapOutputFragment on RequestLeavesSwapOutput {
|
|
14
|
-
__typename
|
|
15
|
-
request_leaves_swap_output_request: request {
|
|
16
|
-
id
|
|
17
|
-
}
|
|
18
|
-
}`;
|
|
19
|
-
//# sourceMappingURL=RequestLeavesSwapOutput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RequestLeavesSwapOutput.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/RequestLeavesSwapOutput.ts"],"names":[],"mappings":"AACA,0EAA0E;AAgB1E,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,GAAQ,EAA2B,EAAE;IACjF,OAAO;QACH,SAAS,EAAE,GAAG,CAAC,oCAAoC,CAAC,CAAC,EAAE;KAE3B,CAAC;AAErC,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,GAA4B,EAAO,EAAE;IACnF,OAAO;QACP,kCAAkC,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,SAAS,EAAE;KAEhD,CAAA;AAET,CAAC,CAAA;AAGG,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;EAM1B,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import BitcoinNetwork from './BitcoinNetwork.js';
|
|
2
|
-
interface RequestLightningReceiveInput {
|
|
3
|
-
/** The bitcoin network the lightning invoice is created on. **/
|
|
4
|
-
network: BitcoinNetwork;
|
|
5
|
-
/** The amount for which the lightning invoice should be created in satoshis. **/
|
|
6
|
-
amountSats: number;
|
|
7
|
-
/** The 32-byte hash of the payment preimage to use when generating the lightning invoice. **/
|
|
8
|
-
paymentHash: string;
|
|
9
|
-
/** The expiry of the lightning invoice in seconds. Default value is 3600 (1 hour). **/
|
|
10
|
-
expirySecs?: number | undefined;
|
|
11
|
-
/** The memo to include in the lightning invoice. **/
|
|
12
|
-
memo?: string | undefined;
|
|
13
|
-
}
|
|
14
|
-
export declare const RequestLightningReceiveInputFromJson: (obj: any) => RequestLightningReceiveInput;
|
|
15
|
-
export declare const RequestLightningReceiveInputToJson: (obj: RequestLightningReceiveInput) => any;
|
|
16
|
-
export default RequestLightningReceiveInput;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
-
import BitcoinNetwork from './BitcoinNetwork.js';
|
|
3
|
-
export const RequestLightningReceiveInputFromJson = (obj) => {
|
|
4
|
-
return {
|
|
5
|
-
network: BitcoinNetwork[obj["request_lightning_receive_input_network"]] ?? BitcoinNetwork.FUTURE_VALUE,
|
|
6
|
-
amountSats: obj["request_lightning_receive_input_amount_sats"],
|
|
7
|
-
paymentHash: obj["request_lightning_receive_input_payment_hash"],
|
|
8
|
-
expirySecs: obj["request_lightning_receive_input_expiry_secs"],
|
|
9
|
-
memo: obj["request_lightning_receive_input_memo"],
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export const RequestLightningReceiveInputToJson = (obj) => {
|
|
13
|
-
return {
|
|
14
|
-
request_lightning_receive_input_network: obj.network,
|
|
15
|
-
request_lightning_receive_input_amount_sats: obj.amountSats,
|
|
16
|
-
request_lightning_receive_input_payment_hash: obj.paymentHash,
|
|
17
|
-
request_lightning_receive_input_expiry_secs: obj.expirySecs,
|
|
18
|
-
request_lightning_receive_input_memo: obj.memo,
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=RequestLightningReceiveInput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RequestLightningReceiveInput.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/RequestLightningReceiveInput.ts"],"names":[],"mappings":"AACA,0EAA0E;AAG1E,OAAO,cAAc,MAAM,qBAAqB,CAAC;AA0BjD,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,GAAQ,EAAgC,EAAE;IAC3F,OAAO;QACH,OAAO,EAAE,cAAc,CAAC,GAAG,CAAC,yCAAyC,CAAC,CAAC,IAAI,cAAc,CAAC,YAAY;QACtG,UAAU,EAAE,GAAG,CAAC,6CAA6C,CAAC;QAC9D,WAAW,EAAE,GAAG,CAAC,8CAA8C,CAAC;QAChE,UAAU,EAAE,GAAG,CAAC,6CAA6C,CAAC;QAC9D,IAAI,EAAE,GAAG,CAAC,sCAAsC,CAAC;KAEhB,CAAC;AAE1C,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,GAAiC,EAAO,EAAE;IAC7F,OAAO;QACP,uCAAuC,EAAE,GAAG,CAAC,OAAO;QACpD,2CAA2C,EAAE,GAAG,CAAC,UAAU;QAC3D,4CAA4C,EAAE,GAAG,CAAC,WAAW;QAC7D,2CAA2C,EAAE,GAAG,CAAC,UAAU;QAC3D,oCAAoC,EAAE,GAAG,CAAC,IAAI;KAErC,CAAA;AAET,CAAC,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
interface RequestLightningReceiveOutput {
|
|
2
|
-
requestId: string;
|
|
3
|
-
}
|
|
4
|
-
export declare const RequestLightningReceiveOutputFromJson: (obj: any) => RequestLightningReceiveOutput;
|
|
5
|
-
export declare const RequestLightningReceiveOutputToJson: (obj: RequestLightningReceiveOutput) => any;
|
|
6
|
-
export declare const FRAGMENT = "\nfragment RequestLightningReceiveOutputFragment on RequestLightningReceiveOutput {\n __typename\n request_lightning_receive_output_request: request {\n id\n }\n}";
|
|
7
|
-
export default RequestLightningReceiveOutput;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
-
export const RequestLightningReceiveOutputFromJson = (obj) => {
|
|
3
|
-
return {
|
|
4
|
-
requestId: obj["request_lightning_receive_output_request"].id,
|
|
5
|
-
};
|
|
6
|
-
};
|
|
7
|
-
export const RequestLightningReceiveOutputToJson = (obj) => {
|
|
8
|
-
return {
|
|
9
|
-
request_lightning_receive_output_request: { id: obj.requestId },
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export const FRAGMENT = `
|
|
13
|
-
fragment RequestLightningReceiveOutputFragment on RequestLightningReceiveOutput {
|
|
14
|
-
__typename
|
|
15
|
-
request_lightning_receive_output_request: request {
|
|
16
|
-
id
|
|
17
|
-
}
|
|
18
|
-
}`;
|
|
19
|
-
//# sourceMappingURL=RequestLightningReceiveOutput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RequestLightningReceiveOutput.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/RequestLightningReceiveOutput.ts"],"names":[],"mappings":"AACA,0EAA0E;AAgB1E,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC,GAAQ,EAAiC,EAAE;IAC7F,OAAO;QACH,SAAS,EAAE,GAAG,CAAC,0CAA0C,CAAC,CAAC,EAAE;KAE3B,CAAC;AAE3C,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,GAAkC,EAAO,EAAE;IAC/F,OAAO;QACP,wCAAwC,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,SAAS,EAAE;KAEtD,CAAA;AAET,CAAC,CAAA;AAGG,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;EAM1B,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
interface RequestLightningSendInput {
|
|
2
|
-
encodedInvoice: string;
|
|
3
|
-
idempotencyKey: string;
|
|
4
|
-
}
|
|
5
|
-
export declare const RequestLightningSendInputFromJson: (obj: any) => RequestLightningSendInput;
|
|
6
|
-
export declare const RequestLightningSendInputToJson: (obj: RequestLightningSendInput) => any;
|
|
7
|
-
export default RequestLightningSendInput;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
-
export const RequestLightningSendInputFromJson = (obj) => {
|
|
3
|
-
return {
|
|
4
|
-
encodedInvoice: obj["request_lightning_send_input_encoded_invoice"],
|
|
5
|
-
idempotencyKey: obj["request_lightning_send_input_idempotency_key"],
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
export const RequestLightningSendInputToJson = (obj) => {
|
|
9
|
-
return {
|
|
10
|
-
request_lightning_send_input_encoded_invoice: obj.encodedInvoice,
|
|
11
|
-
request_lightning_send_input_idempotency_key: obj.idempotencyKey,
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=RequestLightningSendInput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RequestLightningSendInput.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/RequestLightningSendInput.ts"],"names":[],"mappings":"AACA,0EAA0E;AAkB1E,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,GAAQ,EAA6B,EAAE;IACrF,OAAO;QACH,cAAc,EAAE,GAAG,CAAC,8CAA8C,CAAC;QACnE,cAAc,EAAE,GAAG,CAAC,8CAA8C,CAAC;KAErC,CAAC;AAEvC,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,GAA8B,EAAO,EAAE;IACvF,OAAO;QACP,4CAA4C,EAAE,GAAG,CAAC,cAAc;QAChE,4CAA4C,EAAE,GAAG,CAAC,cAAc;KAEvD,CAAA;AAET,CAAC,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
interface RequestLightningSendOutput {
|
|
2
|
-
requestId: string;
|
|
3
|
-
}
|
|
4
|
-
export declare const RequestLightningSendOutputFromJson: (obj: any) => RequestLightningSendOutput;
|
|
5
|
-
export declare const RequestLightningSendOutputToJson: (obj: RequestLightningSendOutput) => any;
|
|
6
|
-
export declare const FRAGMENT = "\nfragment RequestLightningSendOutputFragment on RequestLightningSendOutput {\n __typename\n request_lightning_send_output_request: request {\n id\n }\n}";
|
|
7
|
-
export default RequestLightningSendOutput;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
-
export const RequestLightningSendOutputFromJson = (obj) => {
|
|
3
|
-
return {
|
|
4
|
-
requestId: obj["request_lightning_send_output_request"].id,
|
|
5
|
-
};
|
|
6
|
-
};
|
|
7
|
-
export const RequestLightningSendOutputToJson = (obj) => {
|
|
8
|
-
return {
|
|
9
|
-
request_lightning_send_output_request: { id: obj.requestId },
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export const FRAGMENT = `
|
|
13
|
-
fragment RequestLightningSendOutputFragment on RequestLightningSendOutput {
|
|
14
|
-
__typename
|
|
15
|
-
request_lightning_send_output_request: request {
|
|
16
|
-
id
|
|
17
|
-
}
|
|
18
|
-
}`;
|
|
19
|
-
//# sourceMappingURL=RequestLightningSendOutput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RequestLightningSendOutput.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/RequestLightningSendOutput.ts"],"names":[],"mappings":"AACA,0EAA0E;AAgB1E,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,GAAQ,EAA8B,EAAE;IACvF,OAAO;QACH,SAAS,EAAE,GAAG,CAAC,uCAAuC,CAAC,CAAC,EAAE;KAE3B,CAAC;AAExC,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,GAA+B,EAAO,EAAE;IACzF,OAAO;QACP,qCAAqC,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,SAAS,EAAE;KAEnD,CAAA;AAET,CAAC,CAAA;AAGG,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;EAM1B,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare enum SparkCoopExitRequestStatus {
|
|
2
|
-
/**
|
|
3
|
-
* This is an enum value that represents values that could be added in the future.
|
|
4
|
-
* Clients should support unknown values as more of them could be added without notice.
|
|
5
|
-
*/
|
|
6
|
-
FUTURE_VALUE = "FUTURE_VALUE",
|
|
7
|
-
INITIATED = "INITIATED",
|
|
8
|
-
TX_SIGNED = "TX_SIGNED",
|
|
9
|
-
TX_BROADCASTED = "TX_BROADCASTED",
|
|
10
|
-
SUCCEEDED = "SUCCEEDED",
|
|
11
|
-
EXPIRED = "EXPIRED",
|
|
12
|
-
FAILED = "FAILED"
|
|
13
|
-
}
|
|
14
|
-
export default SparkCoopExitRequestStatus;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
-
export var SparkCoopExitRequestStatus;
|
|
3
|
-
(function (SparkCoopExitRequestStatus) {
|
|
4
|
-
/**
|
|
5
|
-
* This is an enum value that represents values that could be added in the future.
|
|
6
|
-
* Clients should support unknown values as more of them could be added without notice.
|
|
7
|
-
*/
|
|
8
|
-
SparkCoopExitRequestStatus["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
9
|
-
SparkCoopExitRequestStatus["INITIATED"] = "INITIATED";
|
|
10
|
-
SparkCoopExitRequestStatus["TX_SIGNED"] = "TX_SIGNED";
|
|
11
|
-
SparkCoopExitRequestStatus["TX_BROADCASTED"] = "TX_BROADCASTED";
|
|
12
|
-
SparkCoopExitRequestStatus["SUCCEEDED"] = "SUCCEEDED";
|
|
13
|
-
SparkCoopExitRequestStatus["EXPIRED"] = "EXPIRED";
|
|
14
|
-
SparkCoopExitRequestStatus["FAILED"] = "FAILED";
|
|
15
|
-
})(SparkCoopExitRequestStatus || (SparkCoopExitRequestStatus = {}));
|
|
16
|
-
export default SparkCoopExitRequestStatus;
|
|
17
|
-
//# sourceMappingURL=SparkCoopExitRequestStatus.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SparkCoopExitRequestStatus.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/SparkCoopExitRequestStatus.ts"],"names":[],"mappings":"AACA,0EAA0E;AAG1E,MAAM,CAAN,IAAY,0BAmBX;AAnBD,WAAY,0BAA0B;IACtC;;;OAGG;IACF,2DAA6B,CAAA;IAE9B,qDAAuB,CAAA;IAEvB,qDAAuB,CAAA;IAEvB,+DAAiC,CAAA;IAEjC,qDAAuB,CAAA;IAEvB,iDAAmB,CAAA;IAEnB,+CAAiB,CAAA;AAEjB,CAAC,EAnBW,0BAA0B,KAA1B,0BAA0B,QAmBrC;AAED,eAAe,0BAA0B,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare enum SparkLeavesSwapRequestStatus {
|
|
2
|
-
/**
|
|
3
|
-
* This is an enum value that represents values that could be added in the future.
|
|
4
|
-
* Clients should support unknown values as more of them could be added without notice.
|
|
5
|
-
*/
|
|
6
|
-
FUTURE_VALUE = "FUTURE_VALUE",
|
|
7
|
-
INITIATED = "INITIATED",
|
|
8
|
-
REFUND_TX_ADAPTOR_SIGNED = "REFUND_TX_ADAPTOR_SIGNED",
|
|
9
|
-
INBOUND_TRANSFER_CLAIMED = "INBOUND_TRANSFER_CLAIMED",
|
|
10
|
-
SUCCEEDED = "SUCCEEDED",
|
|
11
|
-
EXPIRED = "EXPIRED",
|
|
12
|
-
FAILED = "FAILED"
|
|
13
|
-
}
|
|
14
|
-
export default SparkLeavesSwapRequestStatus;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
-
export var SparkLeavesSwapRequestStatus;
|
|
3
|
-
(function (SparkLeavesSwapRequestStatus) {
|
|
4
|
-
/**
|
|
5
|
-
* This is an enum value that represents values that could be added in the future.
|
|
6
|
-
* Clients should support unknown values as more of them could be added without notice.
|
|
7
|
-
*/
|
|
8
|
-
SparkLeavesSwapRequestStatus["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
9
|
-
SparkLeavesSwapRequestStatus["INITIATED"] = "INITIATED";
|
|
10
|
-
SparkLeavesSwapRequestStatus["REFUND_TX_ADAPTOR_SIGNED"] = "REFUND_TX_ADAPTOR_SIGNED";
|
|
11
|
-
SparkLeavesSwapRequestStatus["INBOUND_TRANSFER_CLAIMED"] = "INBOUND_TRANSFER_CLAIMED";
|
|
12
|
-
SparkLeavesSwapRequestStatus["SUCCEEDED"] = "SUCCEEDED";
|
|
13
|
-
SparkLeavesSwapRequestStatus["EXPIRED"] = "EXPIRED";
|
|
14
|
-
SparkLeavesSwapRequestStatus["FAILED"] = "FAILED";
|
|
15
|
-
})(SparkLeavesSwapRequestStatus || (SparkLeavesSwapRequestStatus = {}));
|
|
16
|
-
export default SparkLeavesSwapRequestStatus;
|
|
17
|
-
//# sourceMappingURL=SparkLeavesSwapRequestStatus.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SparkLeavesSwapRequestStatus.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/SparkLeavesSwapRequestStatus.ts"],"names":[],"mappings":"AACA,0EAA0E;AAG1E,MAAM,CAAN,IAAY,4BAmBX;AAnBD,WAAY,4BAA4B;IACxC;;;OAGG;IACF,6DAA6B,CAAA;IAE9B,uDAAuB,CAAA;IAEvB,qFAAqD,CAAA;IAErD,qFAAqD,CAAA;IAErD,uDAAuB,CAAA;IAEvB,mDAAmB,CAAA;IAEnB,iDAAiB,CAAA;AAEjB,CAAC,EAnBW,4BAA4B,KAA5B,4BAA4B,QAmBvC;AAED,eAAe,4BAA4B,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import PageInfo from './PageInfo.js';
|
|
2
|
-
import Leaf from './Leaf.js';
|
|
3
|
-
interface SparkTransferToLeavesConnection {
|
|
4
|
-
/**
|
|
5
|
-
* The total count of objects in this connection, using the current filters. It is different from the
|
|
6
|
-
* number of objects returned in the current page (in the `entities` field).
|
|
7
|
-
**/
|
|
8
|
-
count: number;
|
|
9
|
-
/** An object that holds pagination information about the objects in this connection. **/
|
|
10
|
-
pageInfo: PageInfo;
|
|
11
|
-
/** The leaves for the current page of this connection. **/
|
|
12
|
-
entities: Leaf[];
|
|
13
|
-
/** The typename of the object **/
|
|
14
|
-
typename: string;
|
|
15
|
-
}
|
|
16
|
-
export declare const SparkTransferToLeavesConnectionFromJson: (obj: any) => SparkTransferToLeavesConnection;
|
|
17
|
-
export declare const SparkTransferToLeavesConnectionToJson: (obj: SparkTransferToLeavesConnection) => any;
|
|
18
|
-
export declare const FRAGMENT = "\nfragment SparkTransferToLeavesConnectionFragment on SparkTransferToLeavesConnection {\n __typename\n spark_transfer_to_leaves_connection_count: count\n spark_transfer_to_leaves_connection_page_info: page_info {\n __typename\n page_info_has_next_page: has_next_page\n page_info_has_previous_page: has_previous_page\n page_info_start_cursor: start_cursor\n page_info_end_cursor: end_cursor\n }\n spark_transfer_to_leaves_connection_entities: entities {\n __typename\n leaf_amount: amount {\n __typename\n currency_amount_original_value: original_value\n currency_amount_original_unit: original_unit\n currency_amount_preferred_currency_unit: preferred_currency_unit\n currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded\n currency_amount_preferred_currency_value_approx: preferred_currency_value_approx\n }\n leaf_spark_node_id: spark_node_id\n }\n}";
|
|
19
|
-
export default SparkTransferToLeavesConnection;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
-
import { PageInfoToJson } from './PageInfo.js';
|
|
3
|
-
import { PageInfoFromJson } from './PageInfo.js';
|
|
4
|
-
import { LeafFromJson } from './Leaf.js';
|
|
5
|
-
import { LeafToJson } from './Leaf.js';
|
|
6
|
-
export const SparkTransferToLeavesConnectionFromJson = (obj) => {
|
|
7
|
-
return {
|
|
8
|
-
count: obj["spark_transfer_to_leaves_connection_count"],
|
|
9
|
-
pageInfo: PageInfoFromJson(obj["spark_transfer_to_leaves_connection_page_info"]),
|
|
10
|
-
entities: obj["spark_transfer_to_leaves_connection_entities"].map((e) => LeafFromJson(e)),
|
|
11
|
-
typename: "SparkTransferToLeavesConnection",
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export const SparkTransferToLeavesConnectionToJson = (obj) => {
|
|
15
|
-
return {
|
|
16
|
-
__typename: "SparkTransferToLeavesConnection", spark_transfer_to_leaves_connection_count: obj.count,
|
|
17
|
-
spark_transfer_to_leaves_connection_page_info: PageInfoToJson(obj.pageInfo),
|
|
18
|
-
spark_transfer_to_leaves_connection_entities: obj.entities.map((e) => LeafToJson(e)),
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export const FRAGMENT = `
|
|
22
|
-
fragment SparkTransferToLeavesConnectionFragment on SparkTransferToLeavesConnection {
|
|
23
|
-
__typename
|
|
24
|
-
spark_transfer_to_leaves_connection_count: count
|
|
25
|
-
spark_transfer_to_leaves_connection_page_info: page_info {
|
|
26
|
-
__typename
|
|
27
|
-
page_info_has_next_page: has_next_page
|
|
28
|
-
page_info_has_previous_page: has_previous_page
|
|
29
|
-
page_info_start_cursor: start_cursor
|
|
30
|
-
page_info_end_cursor: end_cursor
|
|
31
|
-
}
|
|
32
|
-
spark_transfer_to_leaves_connection_entities: entities {
|
|
33
|
-
__typename
|
|
34
|
-
leaf_amount: amount {
|
|
35
|
-
__typename
|
|
36
|
-
currency_amount_original_value: original_value
|
|
37
|
-
currency_amount_original_unit: original_unit
|
|
38
|
-
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
39
|
-
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
40
|
-
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
41
|
-
}
|
|
42
|
-
leaf_spark_node_id: spark_node_id
|
|
43
|
-
}
|
|
44
|
-
}`;
|
|
45
|
-
//# sourceMappingURL=SparkTransferToLeavesConnection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SparkTransferToLeavesConnection.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/SparkTransferToLeavesConnection.ts"],"names":[],"mappings":"AACA,0EAA0E;AAG1E,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAC,gBAAgB,EAAC,MAAM,eAAe,CAAC;AAE/C,OAAO,EAAC,YAAY,EAAC,MAAM,WAAW,CAAC;AACvC,OAAO,EAAC,UAAU,EAAC,MAAM,WAAW,CAAC;AA2BrC,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,GAAQ,EAAmC,EAAE;IACjG,OAAO;QACH,KAAK,EAAE,GAAG,CAAC,2CAA2C,CAAC;QACvD,QAAQ,EAAE,gBAAgB,CAAC,GAAG,CAAC,+CAA+C,CAAC,CAAC;QAChF,QAAQ,EAAE,GAAG,CAAC,8CAA8C,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;QACjG,QAAQ,EAAE,iCAAiC;KACC,CAAC;AAE7C,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC,GAAoC,EAAO,EAAE;IACnG,OAAO;QACP,UAAU,EAAE,iCAAiC,EAAC,yCAAyC,EAAE,GAAG,CAAC,KAAK;QAClG,6CAA6C,EAAE,cAAc,CAAC,GAAG,CAAC,QAAQ,CAAC;QAC3E,4CAA4C,EAAE,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;KAE3E,CAAA;AAET,CAAC,CAAA;AAGG,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;;;;;;;;;;;;;;;;;;EAuB1B,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Query } from '@lightsparkdev/core';
|
|
2
|
-
interface SparkWalletUser {
|
|
3
|
-
/**
|
|
4
|
-
* The unique identifier of this entity across all Lightspark systems. Should be treated as an opaque
|
|
5
|
-
* string.
|
|
6
|
-
**/
|
|
7
|
-
id: string;
|
|
8
|
-
/** The date and time when the entity was first created. **/
|
|
9
|
-
createdAt: string;
|
|
10
|
-
/** The date and time when the entity was last updated. **/
|
|
11
|
-
updatedAt: string;
|
|
12
|
-
/** The identity public key of the user. **/
|
|
13
|
-
identityPublicKey: string;
|
|
14
|
-
/** The typename of the object **/
|
|
15
|
-
typename: string;
|
|
16
|
-
}
|
|
17
|
-
export declare const SparkWalletUserFromJson: (obj: any) => SparkWalletUser;
|
|
18
|
-
export declare const SparkWalletUserToJson: (obj: SparkWalletUser) => any;
|
|
19
|
-
export declare const FRAGMENT = "\nfragment SparkWalletUserFragment on SparkWalletUser {\n __typename\n spark_wallet_user_id: id\n spark_wallet_user_created_at: created_at\n spark_wallet_user_updated_at: updated_at\n spark_wallet_user_identity_public_key: identity_public_key\n}";
|
|
20
|
-
export declare const getSparkWalletUserQuery: (id: string) => Query<SparkWalletUser>;
|
|
21
|
-
export default SparkWalletUser;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
-
import { isObject } from '@lightsparkdev/core';
|
|
3
|
-
export const SparkWalletUserFromJson = (obj) => {
|
|
4
|
-
return {
|
|
5
|
-
id: obj["spark_wallet_user_id"],
|
|
6
|
-
createdAt: obj["spark_wallet_user_created_at"],
|
|
7
|
-
updatedAt: obj["spark_wallet_user_updated_at"],
|
|
8
|
-
identityPublicKey: obj["spark_wallet_user_identity_public_key"],
|
|
9
|
-
typename: "SparkWalletUser",
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export const SparkWalletUserToJson = (obj) => {
|
|
13
|
-
return {
|
|
14
|
-
__typename: "SparkWalletUser", spark_wallet_user_id: obj.id,
|
|
15
|
-
spark_wallet_user_created_at: obj.createdAt,
|
|
16
|
-
spark_wallet_user_updated_at: obj.updatedAt,
|
|
17
|
-
spark_wallet_user_identity_public_key: obj.identityPublicKey,
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
export const FRAGMENT = `
|
|
21
|
-
fragment SparkWalletUserFragment on SparkWalletUser {
|
|
22
|
-
__typename
|
|
23
|
-
spark_wallet_user_id: id
|
|
24
|
-
spark_wallet_user_created_at: created_at
|
|
25
|
-
spark_wallet_user_updated_at: updated_at
|
|
26
|
-
spark_wallet_user_identity_public_key: identity_public_key
|
|
27
|
-
}`;
|
|
28
|
-
export const getSparkWalletUserQuery = (id) => {
|
|
29
|
-
return {
|
|
30
|
-
queryPayload: `
|
|
31
|
-
query GetSparkWalletUser($id: ID!) {
|
|
32
|
-
entity(id: $id) {
|
|
33
|
-
... on SparkWalletUser {
|
|
34
|
-
...SparkWalletUserFragment
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
${FRAGMENT}
|
|
40
|
-
`,
|
|
41
|
-
variables: { id },
|
|
42
|
-
constructObject: (data) => isObject(data) && "entity" in data && isObject(data.entity) ? SparkWalletUserFromJson(data.entity) : null,
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
//# sourceMappingURL=SparkWalletUser.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SparkWalletUser.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/SparkWalletUser.ts"],"names":[],"mappings":"AACA,0EAA0E;AAG1E,OAAO,EAAS,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AA6BtD,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,GAAQ,EAAmB,EAAE;IACjE,OAAO;QACH,EAAE,EAAE,GAAG,CAAC,sBAAsB,CAAC;QAC/B,SAAS,EAAE,GAAG,CAAC,8BAA8B,CAAC;QAC9C,SAAS,EAAE,GAAG,CAAC,8BAA8B,CAAC;QAC9C,iBAAiB,EAAE,GAAG,CAAC,uCAAuC,CAAC;QACvE,QAAQ,EAAE,iBAAiB;KACC,CAAC;AAE7B,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,GAAoB,EAAO,EAAE;IACnE,OAAO;QACP,UAAU,EAAE,iBAAiB,EAAC,oBAAoB,EAAE,GAAG,CAAC,EAAE;QAC1D,4BAA4B,EAAE,GAAG,CAAC,SAAS;QAC3C,4BAA4B,EAAE,GAAG,CAAC,SAAS;QAC3C,qCAAqC,EAAE,GAAG,CAAC,iBAAiB;KAEnD,CAAA;AAET,CAAC,CAAA;AAGG,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;;EAO1B,CAAC;AAIC,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,EAAU,EAA0B,EAAE;IAC1E,OAAO;QACH,YAAY,EAAE;;;;;;;;;EASxB,QAAQ;CACT;QACW,SAAS,EAAE,EAAC,EAAE,EAAC;QACf,eAAe,EAAE,CAAC,IAAa,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,QAAQ,IAAI,IAAI,IAAI,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,uBAAuB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI;KAChJ,CAAA;AACL,CAAC,CAAA"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
interface StartSeedReleaseInput {
|
|
2
|
-
phoneNumber: string;
|
|
3
|
-
}
|
|
4
|
-
export declare const StartSeedReleaseInputFromJson: (obj: any) => StartSeedReleaseInput;
|
|
5
|
-
export declare const StartSeedReleaseInputToJson: (obj: StartSeedReleaseInput) => any;
|
|
6
|
-
export default StartSeedReleaseInput;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
-
export const StartSeedReleaseInputFromJson = (obj) => {
|
|
3
|
-
return {
|
|
4
|
-
phoneNumber: obj["start_seed_release_input_phone_number"],
|
|
5
|
-
};
|
|
6
|
-
};
|
|
7
|
-
export const StartSeedReleaseInputToJson = (obj) => {
|
|
8
|
-
return {
|
|
9
|
-
start_seed_release_input_phone_number: obj.phoneNumber,
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=StartSeedReleaseInput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StartSeedReleaseInput.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/StartSeedReleaseInput.ts"],"names":[],"mappings":"AACA,0EAA0E;AAgB1E,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,GAAQ,EAAyB,EAAE;IAC7E,OAAO;QACH,WAAW,EAAE,GAAG,CAAC,uCAAuC,CAAC;KAE/B,CAAC;AAEnC,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,GAA0B,EAAO,EAAE;IAC/E,OAAO;QACP,qCAAqC,EAAE,GAAG,CAAC,WAAW;KAE7C,CAAA;AAET,CAAC,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
interface SwapLeaf {
|
|
2
|
-
leafId: string;
|
|
3
|
-
rawUnsignedRefundTransaction: string;
|
|
4
|
-
adaptorSignedSignature: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const SwapLeafFromJson: (obj: any) => SwapLeaf;
|
|
7
|
-
export declare const SwapLeafToJson: (obj: SwapLeaf) => any;
|
|
8
|
-
export declare const FRAGMENT = "\nfragment SwapLeafFragment on SwapLeaf {\n __typename\n swap_leaf_leaf_id: leaf_id\n swap_leaf_raw_unsigned_refund_transaction: raw_unsigned_refund_transaction\n swap_leaf_adaptor_signed_signature: adaptor_signed_signature\n}";
|
|
9
|
-
export default SwapLeaf;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
-
export const SwapLeafFromJson = (obj) => {
|
|
3
|
-
return {
|
|
4
|
-
leafId: obj["swap_leaf_leaf_id"],
|
|
5
|
-
rawUnsignedRefundTransaction: obj["swap_leaf_raw_unsigned_refund_transaction"],
|
|
6
|
-
adaptorSignedSignature: obj["swap_leaf_adaptor_signed_signature"],
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
export const SwapLeafToJson = (obj) => {
|
|
10
|
-
return {
|
|
11
|
-
swap_leaf_leaf_id: obj.leafId,
|
|
12
|
-
swap_leaf_raw_unsigned_refund_transaction: obj.rawUnsignedRefundTransaction,
|
|
13
|
-
swap_leaf_adaptor_signed_signature: obj.adaptorSignedSignature,
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export const FRAGMENT = `
|
|
17
|
-
fragment SwapLeafFragment on SwapLeaf {
|
|
18
|
-
__typename
|
|
19
|
-
swap_leaf_leaf_id: leaf_id
|
|
20
|
-
swap_leaf_raw_unsigned_refund_transaction: raw_unsigned_refund_transaction
|
|
21
|
-
swap_leaf_adaptor_signed_signature: adaptor_signed_signature
|
|
22
|
-
}`;
|
|
23
|
-
//# sourceMappingURL=SwapLeaf.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SwapLeaf.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/SwapLeaf.ts"],"names":[],"mappings":"AACA,0EAA0E;AAoB1E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,GAAQ,EAAY,EAAE;IACnD,OAAO;QACH,MAAM,EAAE,GAAG,CAAC,mBAAmB,CAAC;QAChC,4BAA4B,EAAE,GAAG,CAAC,2CAA2C,CAAC;QAC9E,sBAAsB,EAAE,GAAG,CAAC,oCAAoC,CAAC;KAEpD,CAAC;AAEtB,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,GAAa,EAAO,EAAE;IACrD,OAAO;QACP,iBAAiB,EAAE,GAAG,CAAC,MAAM;QAC7B,yCAAyC,EAAE,GAAG,CAAC,4BAA4B;QAC3E,kCAAkC,EAAE,GAAG,CAAC,sBAAsB;KAErD,CAAA;AAET,CAAC,CAAA;AAGG,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;EAM1B,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import LightsparkClient from "../client.js";
|
|
2
|
-
import CurrencyAmount from "./CurrencyAmount.js";
|
|
3
|
-
import SparkTransferToLeavesConnection from "./SparkTransferToLeavesConnection.js";
|
|
4
|
-
declare class Transfer {
|
|
5
|
-
/** The total amount of the transfer. **/
|
|
6
|
-
readonly totalAmount: CurrencyAmount;
|
|
7
|
-
/** The id of the transfer known at signing operators. If not set, the transfer hasn't been
|
|
8
|
-
* initialized. **/
|
|
9
|
-
readonly sparkId?: string | undefined;
|
|
10
|
-
constructor(
|
|
11
|
-
/** The total amount of the transfer. **/
|
|
12
|
-
totalAmount: CurrencyAmount,
|
|
13
|
-
/** The id of the transfer known at signing operators. If not set, the transfer hasn't been
|
|
14
|
-
* initialized. **/
|
|
15
|
-
sparkId?: string | undefined);
|
|
16
|
-
getLeaves(client: LightsparkClient, first?: number | undefined, after?: string | undefined): Promise<SparkTransferToLeavesConnection>;
|
|
17
|
-
toJson(): {
|
|
18
|
-
transfer_total_amount: any;
|
|
19
|
-
transfer_spark_id: string | undefined;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
export declare const TransferFromJson: (obj: any) => Transfer;
|
|
23
|
-
export declare const FRAGMENT = "\nfragment TransferFragment on Transfer {\n __typename\n transfer_total_amount: total_amount {\n __typename\n currency_amount_original_value: original_value\n currency_amount_original_unit: original_unit\n currency_amount_preferred_currency_unit: preferred_currency_unit\n currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded\n currency_amount_preferred_currency_value_approx: preferred_currency_value_approx\n }\n transfer_spark_id: spark_id\n}";
|
|
24
|
-
export default Transfer;
|