@chainstream-io/sdk 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -0
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +77 -61
- package/dist/esm/openapi/apis/BlockchainApi.js +118 -0
- package/dist/esm/openapi/apis/DefiSolanaMoonshotApi.js +109 -0
- package/dist/esm/openapi/apis/DefiSolanaPumpfunApi.js +69 -0
- package/dist/esm/openapi/apis/DexApi.js +347 -0
- package/dist/esm/openapi/apis/DexPoolApi.js +87 -0
- package/dist/esm/openapi/apis/EndpointApi.js +316 -0
- package/dist/esm/openapi/apis/IpfsApi.js +68 -0
- package/dist/esm/openapi/apis/JobsApi.js +107 -0
- package/dist/esm/openapi/{src/apis → apis}/RankingApi.js +278 -249
- package/dist/esm/openapi/apis/RedPacketApi.js +454 -0
- package/dist/esm/openapi/apis/TokenApi.js +1837 -0
- package/dist/esm/openapi/apis/TradeApi.js +450 -0
- package/dist/esm/openapi/apis/TransactionApi.js +73 -0
- package/dist/esm/openapi/apis/WalletApi.js +272 -0
- package/dist/esm/openapi/apis/WatchlistApi.js +87 -0
- package/dist/esm/openapi/{src/runtime.js → runtime.js} +81 -69
- package/dist/esm/stream/index.d.ts +3 -0
- package/dist/esm/stream/index.js +3 -0
- package/dist/{api → esm/stream}/stream.d.ts +1 -1
- package/dist/esm/{api → stream}/stream.js +36 -29
- package/dist/{api → esm/stream}/stream.model.d.ts +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +92 -76
- package/dist/openapi/apis/BlockchainApi.js +122 -0
- package/dist/openapi/apis/DefiSolanaMoonshotApi.js +113 -0
- package/dist/openapi/apis/DefiSolanaPumpfunApi.js +73 -0
- package/dist/openapi/apis/DexApi.js +351 -0
- package/dist/openapi/apis/DexPoolApi.js +91 -0
- package/dist/openapi/apis/EndpointApi.js +320 -0
- package/dist/openapi/apis/IpfsApi.js +72 -0
- package/dist/openapi/apis/JobsApi.js +111 -0
- package/dist/openapi/{src/apis → apis}/RankingApi.js +279 -283
- package/dist/openapi/apis/RedPacketApi.js +458 -0
- package/dist/openapi/apis/TokenApi.js +1841 -0
- package/dist/openapi/apis/TradeApi.js +454 -0
- package/dist/openapi/apis/TransactionApi.js +77 -0
- package/dist/openapi/apis/WalletApi.js +276 -0
- package/dist/openapi/apis/WatchlistApi.js +91 -0
- package/dist/openapi/{src/runtime.js → runtime.js} +81 -69
- package/dist/stream/index.d.ts +3 -0
- package/dist/stream/index.js +19 -0
- package/dist/{esm/api → stream}/stream.d.ts +1 -1
- package/dist/{api → stream}/stream.js +36 -29
- package/dist/{esm/api → stream}/stream.model.d.ts +1 -1
- package/package.json +29 -29
- package/dist/esm/openapi/src/apis/BlockchainApi.js +0 -101
- package/dist/esm/openapi/src/apis/DefiSolanaMoonshotApi.js +0 -92
- package/dist/esm/openapi/src/apis/DefiSolanaPumpfunApi.js +0 -56
- package/dist/esm/openapi/src/apis/DexApi.js +0 -318
- package/dist/esm/openapi/src/apis/DexPoolApi.js +0 -74
- package/dist/esm/openapi/src/apis/EndpointApi.js +0 -279
- package/dist/esm/openapi/src/apis/IpfsApi.js +0 -55
- package/dist/esm/openapi/src/apis/JobsApi.js +0 -90
- package/dist/esm/openapi/src/apis/RedPacketApi.js +0 -413
- package/dist/esm/openapi/src/apis/TokenApi.js +0 -1748
- package/dist/esm/openapi/src/apis/TradeApi.js +0 -425
- package/dist/esm/openapi/src/apis/TransactionApi.js +0 -60
- package/dist/esm/openapi/src/apis/WalletApi.js +0 -247
- package/dist/esm/openapi/src/apis/WatchlistApi.js +0 -74
- package/dist/openapi/src/apis/BlockchainApi.js +0 -138
- package/dist/openapi/src/apis/DefiSolanaMoonshotApi.js +0 -129
- package/dist/openapi/src/apis/DefiSolanaPumpfunApi.js +0 -93
- package/dist/openapi/src/apis/DexApi.js +0 -355
- package/dist/openapi/src/apis/DexPoolApi.js +0 -111
- package/dist/openapi/src/apis/EndpointApi.js +0 -316
- package/dist/openapi/src/apis/IpfsApi.js +0 -92
- package/dist/openapi/src/apis/JobsApi.js +0 -127
- package/dist/openapi/src/apis/RedPacketApi.js +0 -450
- package/dist/openapi/src/apis/TokenApi.js +0 -1785
- package/dist/openapi/src/apis/TradeApi.js +0 -462
- package/dist/openapi/src/apis/TransactionApi.js +0 -97
- package/dist/openapi/src/apis/WalletApi.js +0 -284
- package/dist/openapi/src/apis/WatchlistApi.js +0 -111
- package/src/api/stream.fields.ts +0 -271
- package/src/api/stream.model.ts +0 -307
- package/src/api/stream.ts +0 -1086
- package/src/index.ts +0 -188
- package/src/openapi/src/apis/BlockchainApi.ts +0 -140
- package/src/openapi/src/apis/DefiSolanaMoonshotApi.ts +0 -145
- package/src/openapi/src/apis/DefiSolanaPumpfunApi.ts +0 -86
- package/src/openapi/src/apis/DexApi.ts +0 -490
- package/src/openapi/src/apis/DexPoolApi.ts +0 -107
- package/src/openapi/src/apis/EndpointApi.ts +0 -421
- package/src/openapi/src/apis/IpfsApi.ts +0 -66
- package/src/openapi/src/apis/JobsApi.ts +0 -135
- package/src/openapi/src/apis/RankingApi.ts +0 -939
- package/src/openapi/src/apis/RedPacketApi.ts +0 -621
- package/src/openapi/src/apis/TokenApi.ts +0 -2569
- package/src/openapi/src/apis/TradeApi.ts +0 -596
- package/src/openapi/src/apis/TransactionApi.ts +0 -95
- package/src/openapi/src/apis/WalletApi.ts +0 -365
- package/src/openapi/src/apis/WatchlistApi.ts +0 -107
- package/src/openapi/src/apis/index.ts +0 -17
- package/src/openapi/src/index.ts +0 -5
- package/src/openapi/src/models/BlockchainDTO.ts +0 -93
- package/src/openapi/src/models/BlockchainLatestBlockDTO.ts +0 -75
- package/src/openapi/src/models/BooleanResultDTO.ts +0 -66
- package/src/openapi/src/models/CalculatePnlInput.ts +0 -65
- package/src/openapi/src/models/Candle.ts +0 -130
- package/src/openapi/src/models/ClaimRedPacketInput.ts +0 -90
- package/src/openapi/src/models/CreateEndpointInput.ts +0 -121
- package/src/openapi/src/models/CreateRedPacketInput.ts +0 -124
- package/src/openapi/src/models/CreateRedPacketReply.ts +0 -75
- package/src/openapi/src/models/CreateTokenInput.ts +0 -139
- package/src/openapi/src/models/CreateTokenReply.ts +0 -75
- package/src/openapi/src/models/DexDTO.ts +0 -90
- package/src/openapi/src/models/DexPage.ts +0 -114
- package/src/openapi/src/models/DexPoolDTO.ts +0 -141
- package/src/openapi/src/models/EndpointListResponse.ts +0 -97
- package/src/openapi/src/models/EndpointOperationResponse.ts +0 -65
- package/src/openapi/src/models/EndpointResponse.ts +0 -145
- package/src/openapi/src/models/EndpointSecretResponse.ts +0 -65
- package/src/openapi/src/models/FilterCondition.ts +0 -135
- package/src/openapi/src/models/GainersAndLosersDTO.ts +0 -93
- package/src/openapi/src/models/GainersAndLosersPage.ts +0 -114
- package/src/openapi/src/models/JobDTO.ts +0 -75
- package/src/openapi/src/models/JobStreamingDTO.ts +0 -75
- package/src/openapi/src/models/Link.ts +0 -88
- package/src/openapi/src/models/MoonshotCreateTokenInput.ts +0 -182
- package/src/openapi/src/models/MoonshotCreateTokenReply.ts +0 -75
- package/src/openapi/src/models/MoonshotSubmitCreateToken200Response.ts +0 -73
- package/src/openapi/src/models/MoonshotSubmitCreateTokenInput.ts +0 -74
- package/src/openapi/src/models/PumpCreateTokenInput.ts +0 -180
- package/src/openapi/src/models/PumpCreateTokenReply.ts +0 -74
- package/src/openapi/src/models/QuoteResponse.ts +0 -105
- package/src/openapi/src/models/RedPacketClaimDTO.ts +0 -148
- package/src/openapi/src/models/RedPacketClaimsPage.ts +0 -110
- package/src/openapi/src/models/RedPacketDTO.ts +0 -229
- package/src/openapi/src/models/RedPacketReply.ts +0 -66
- package/src/openapi/src/models/RedPacketSendTxInput.ts +0 -66
- package/src/openapi/src/models/RedPacketSendTxResponse.ts +0 -66
- package/src/openapi/src/models/RedPacketsPage.ts +0 -110
- package/src/openapi/src/models/Resolution.ts +0 -61
- package/src/openapi/src/models/SendTxInput.ts +0 -93
- package/src/openapi/src/models/SendTxResponse.ts +0 -84
- package/src/openapi/src/models/SwapInput.ts +0 -157
- package/src/openapi/src/models/SwapReply.ts +0 -75
- package/src/openapi/src/models/SwapRouteInput.ts +0 -186
- package/src/openapi/src/models/SwapRouteResponse.ts +0 -101
- package/src/openapi/src/models/Token.ts +0 -251
- package/src/openapi/src/models/TokenCreationDTO.ts +0 -131
- package/src/openapi/src/models/TokenCreationPage.ts +0 -114
- package/src/openapi/src/models/TokenCreatorsDTO.ts +0 -81
- package/src/openapi/src/models/TokenExtraDTO.ts +0 -225
- package/src/openapi/src/models/TokenHolder.ts +0 -93
- package/src/openapi/src/models/TokenHolderPage.ts +0 -114
- package/src/openapi/src/models/TokenListPage.ts +0 -114
- package/src/openapi/src/models/TokenMarketData.ts +0 -190
- package/src/openapi/src/models/TokenMetadata.ts +0 -188
- package/src/openapi/src/models/TokenPage.ts +0 -122
- package/src/openapi/src/models/TokenPriceDTO.ts +0 -93
- package/src/openapi/src/models/TokenPricePage.ts +0 -114
- package/src/openapi/src/models/TokenSocialMediasDTO.ts +0 -161
- package/src/openapi/src/models/TokenStat.ts +0 -1152
- package/src/openapi/src/models/TopTradersDTO.ts +0 -164
- package/src/openapi/src/models/TopTradersPage.ts +0 -114
- package/src/openapi/src/models/TradeDetailDTO.ts +0 -282
- package/src/openapi/src/models/TradeEvent.ts +0 -184
- package/src/openapi/src/models/TradePage.ts +0 -114
- package/src/openapi/src/models/TradeType.ts +0 -53
- package/src/openapi/src/models/UpdateEndpointInput.ts +0 -129
- package/src/openapi/src/models/WalletBalanceDetailDTO.ts +0 -282
- package/src/openapi/src/models/WalletBalancesDTO.ts +0 -92
- package/src/openapi/src/models/WalletPnlDTO.ts +0 -264
- package/src/openapi/src/models/index.ts +0 -72
- package/src/openapi/src/runtime.ts +0 -432
- /package/dist/esm/openapi/{src/apis → apis}/BlockchainApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/DefiSolanaMoonshotApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/DefiSolanaPumpfunApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/DexApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/DexPoolApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/EndpointApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/IpfsApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/JobsApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/RankingApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/RedPacketApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/TokenApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/TradeApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/TransactionApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/WalletApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/WatchlistApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/index.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/index.js +0 -0
- /package/dist/esm/openapi/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/esm/openapi/{src/index.js → index.js} +0 -0
- /package/dist/esm/openapi/{src/models → models}/BlockchainDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/BlockchainDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/BlockchainLatestBlockDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/BlockchainLatestBlockDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/BooleanResultDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/BooleanResultDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/CalculatePnlInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/CalculatePnlInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/Candle.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/Candle.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/ClaimRedPacketInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/ClaimRedPacketInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/CreateEndpointInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/CreateEndpointInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/CreateRedPacketInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/CreateRedPacketInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/CreateRedPacketReply.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/CreateRedPacketReply.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/CreateTokenInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/CreateTokenInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/CreateTokenReply.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/CreateTokenReply.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/DexDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/DexDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/DexPage.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/DexPage.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/DexPoolDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/DexPoolDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/EndpointListResponse.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/EndpointListResponse.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/EndpointOperationResponse.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/EndpointOperationResponse.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/EndpointResponse.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/EndpointResponse.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/EndpointSecretResponse.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/EndpointSecretResponse.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/FilterCondition.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/FilterCondition.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/GainersAndLosersDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/GainersAndLosersDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/GainersAndLosersPage.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/GainersAndLosersPage.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/JobDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/JobDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/JobStreamingDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/JobStreamingDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/Link.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/Link.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/MoonshotCreateTokenInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/MoonshotCreateTokenInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/MoonshotCreateTokenReply.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/MoonshotCreateTokenReply.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/MoonshotSubmitCreateToken200Response.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/MoonshotSubmitCreateToken200Response.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/MoonshotSubmitCreateTokenInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/MoonshotSubmitCreateTokenInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/PumpCreateTokenInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/PumpCreateTokenInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/PumpCreateTokenReply.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/PumpCreateTokenReply.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/QuoteResponse.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/QuoteResponse.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketClaimDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketClaimDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketClaimsPage.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketClaimsPage.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketReply.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketReply.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketSendTxInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketSendTxInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketSendTxResponse.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketSendTxResponse.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketsPage.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketsPage.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/Resolution.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/Resolution.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/SendTxInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/SendTxInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/SendTxResponse.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/SendTxResponse.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/SwapInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/SwapInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/SwapReply.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/SwapReply.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/SwapRouteInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/SwapRouteInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/SwapRouteResponse.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/SwapRouteResponse.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/Token.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/Token.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenCreationDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenCreationDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenCreationPage.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenCreationPage.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenCreatorsDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenCreatorsDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenExtraDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenExtraDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenHolder.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenHolder.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenHolderPage.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenHolderPage.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenListPage.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenListPage.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenMarketData.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenMarketData.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenMetadata.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenMetadata.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenPage.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenPage.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenPriceDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenPriceDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenPricePage.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenPricePage.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenSocialMediasDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenSocialMediasDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenStat.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenStat.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TopTradersDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TopTradersDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TopTradersPage.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TopTradersPage.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TradeDetailDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TradeDetailDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TradeEvent.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TradeEvent.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TradePage.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TradePage.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TradeType.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TradeType.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/UpdateEndpointInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/UpdateEndpointInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/WalletBalanceDetailDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/WalletBalanceDetailDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/WalletBalancesDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/WalletBalancesDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/WalletPnlDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/WalletPnlDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/index.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/index.js +0 -0
- /package/dist/esm/openapi/{src/runtime.d.ts → runtime.d.ts} +0 -0
- /package/dist/{api → esm/stream}/stream.fields.d.ts +0 -0
- /package/dist/esm/{api → stream}/stream.fields.js +0 -0
- /package/dist/esm/{api → stream}/stream.model.js +0 -0
- /package/dist/openapi/{src/apis → apis}/BlockchainApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/DefiSolanaMoonshotApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/DefiSolanaPumpfunApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/DexApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/DexPoolApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/EndpointApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/IpfsApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/JobsApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/RankingApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/RedPacketApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/TokenApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/TradeApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/TransactionApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/WalletApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/WatchlistApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/index.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/index.js +0 -0
- /package/dist/openapi/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/openapi/{src/index.js → index.js} +0 -0
- /package/dist/openapi/{src/models → models}/BlockchainDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/BlockchainDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/BlockchainLatestBlockDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/BlockchainLatestBlockDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/BooleanResultDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/BooleanResultDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/CalculatePnlInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/CalculatePnlInput.js +0 -0
- /package/dist/openapi/{src/models → models}/Candle.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/Candle.js +0 -0
- /package/dist/openapi/{src/models → models}/ClaimRedPacketInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/ClaimRedPacketInput.js +0 -0
- /package/dist/openapi/{src/models → models}/CreateEndpointInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/CreateEndpointInput.js +0 -0
- /package/dist/openapi/{src/models → models}/CreateRedPacketInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/CreateRedPacketInput.js +0 -0
- /package/dist/openapi/{src/models → models}/CreateRedPacketReply.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/CreateRedPacketReply.js +0 -0
- /package/dist/openapi/{src/models → models}/CreateTokenInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/CreateTokenInput.js +0 -0
- /package/dist/openapi/{src/models → models}/CreateTokenReply.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/CreateTokenReply.js +0 -0
- /package/dist/openapi/{src/models → models}/DexDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/DexDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/DexPage.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/DexPage.js +0 -0
- /package/dist/openapi/{src/models → models}/DexPoolDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/DexPoolDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/EndpointListResponse.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/EndpointListResponse.js +0 -0
- /package/dist/openapi/{src/models → models}/EndpointOperationResponse.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/EndpointOperationResponse.js +0 -0
- /package/dist/openapi/{src/models → models}/EndpointResponse.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/EndpointResponse.js +0 -0
- /package/dist/openapi/{src/models → models}/EndpointSecretResponse.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/EndpointSecretResponse.js +0 -0
- /package/dist/openapi/{src/models → models}/FilterCondition.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/FilterCondition.js +0 -0
- /package/dist/openapi/{src/models → models}/GainersAndLosersDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/GainersAndLosersDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/GainersAndLosersPage.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/GainersAndLosersPage.js +0 -0
- /package/dist/openapi/{src/models → models}/JobDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/JobDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/JobStreamingDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/JobStreamingDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/Link.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/Link.js +0 -0
- /package/dist/openapi/{src/models → models}/MoonshotCreateTokenInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/MoonshotCreateTokenInput.js +0 -0
- /package/dist/openapi/{src/models → models}/MoonshotCreateTokenReply.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/MoonshotCreateTokenReply.js +0 -0
- /package/dist/openapi/{src/models → models}/MoonshotSubmitCreateToken200Response.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/MoonshotSubmitCreateToken200Response.js +0 -0
- /package/dist/openapi/{src/models → models}/MoonshotSubmitCreateTokenInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/MoonshotSubmitCreateTokenInput.js +0 -0
- /package/dist/openapi/{src/models → models}/PumpCreateTokenInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/PumpCreateTokenInput.js +0 -0
- /package/dist/openapi/{src/models → models}/PumpCreateTokenReply.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/PumpCreateTokenReply.js +0 -0
- /package/dist/openapi/{src/models → models}/QuoteResponse.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/QuoteResponse.js +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketClaimDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketClaimDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketClaimsPage.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketClaimsPage.js +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketReply.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketReply.js +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketSendTxInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketSendTxInput.js +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketSendTxResponse.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketSendTxResponse.js +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketsPage.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketsPage.js +0 -0
- /package/dist/openapi/{src/models → models}/Resolution.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/Resolution.js +0 -0
- /package/dist/openapi/{src/models → models}/SendTxInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/SendTxInput.js +0 -0
- /package/dist/openapi/{src/models → models}/SendTxResponse.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/SendTxResponse.js +0 -0
- /package/dist/openapi/{src/models → models}/SwapInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/SwapInput.js +0 -0
- /package/dist/openapi/{src/models → models}/SwapReply.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/SwapReply.js +0 -0
- /package/dist/openapi/{src/models → models}/SwapRouteInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/SwapRouteInput.js +0 -0
- /package/dist/openapi/{src/models → models}/SwapRouteResponse.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/SwapRouteResponse.js +0 -0
- /package/dist/openapi/{src/models → models}/Token.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/Token.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenCreationDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenCreationDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenCreationPage.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenCreationPage.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenCreatorsDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenCreatorsDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenExtraDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenExtraDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenHolder.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenHolder.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenHolderPage.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenHolderPage.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenListPage.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenListPage.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenMarketData.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenMarketData.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenMetadata.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenMetadata.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenPage.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenPage.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenPriceDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenPriceDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenPricePage.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenPricePage.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenSocialMediasDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenSocialMediasDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenStat.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenStat.js +0 -0
- /package/dist/openapi/{src/models → models}/TopTradersDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TopTradersDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/TopTradersPage.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TopTradersPage.js +0 -0
- /package/dist/openapi/{src/models → models}/TradeDetailDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TradeDetailDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/TradeEvent.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TradeEvent.js +0 -0
- /package/dist/openapi/{src/models → models}/TradePage.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TradePage.js +0 -0
- /package/dist/openapi/{src/models → models}/TradeType.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TradeType.js +0 -0
- /package/dist/openapi/{src/models → models}/UpdateEndpointInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/UpdateEndpointInput.js +0 -0
- /package/dist/openapi/{src/models → models}/WalletBalanceDetailDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/WalletBalanceDetailDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/WalletBalancesDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/WalletBalancesDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/WalletPnlDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/WalletPnlDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/index.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/index.js +0 -0
- /package/dist/openapi/{src/runtime.d.ts → runtime.d.ts} +0 -0
- /package/dist/{esm/api → stream}/stream.fields.d.ts +0 -0
- /package/dist/{api → stream}/stream.fields.js +0 -0
- /package/dist/{api → stream}/stream.model.js +0 -0
|
@@ -1,450 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Dex Aggregator API
|
|
6
|
-
* Dex Aggregator API ⚡️
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact: ai@sx.ai
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
-
if (k2 === undefined) k2 = k;
|
|
17
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
-
}
|
|
21
|
-
Object.defineProperty(o, k2, desc);
|
|
22
|
-
}) : (function(o, m, k, k2) {
|
|
23
|
-
if (k2 === undefined) k2 = k;
|
|
24
|
-
o[k2] = m[k];
|
|
25
|
-
}));
|
|
26
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
-
}) : function(o, v) {
|
|
29
|
-
o["default"] = v;
|
|
30
|
-
});
|
|
31
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
-
var ownKeys = function(o) {
|
|
33
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
-
var ar = [];
|
|
35
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
-
return ar;
|
|
37
|
-
};
|
|
38
|
-
return ownKeys(o);
|
|
39
|
-
};
|
|
40
|
-
return function (mod) {
|
|
41
|
-
if (mod && mod.__esModule) return mod;
|
|
42
|
-
var result = {};
|
|
43
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
-
__setModuleDefault(result, mod);
|
|
45
|
-
return result;
|
|
46
|
-
};
|
|
47
|
-
})();
|
|
48
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
-
exports.RedpacketSendChainEnum = exports.GetRedpacketsChainEnum = exports.CreateRedpacketChainEnum = exports.ClaimRedpacketChainEnum = exports.RedPacketApi = void 0;
|
|
50
|
-
const runtime = __importStar(require("../runtime"));
|
|
51
|
-
const index_1 = require("../models/index");
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
*/
|
|
55
|
-
class RedPacketApi extends runtime.BaseAPI {
|
|
56
|
-
/**
|
|
57
|
-
* CONTROLLER.RED_PACKET.CLAIM.DESCRIPTION
|
|
58
|
-
* CONTROLLER.RED_PACKET.CLAIM.SUMMARY
|
|
59
|
-
*/
|
|
60
|
-
async claimRedpacketRaw(requestParameters, initOverrides) {
|
|
61
|
-
if (requestParameters['chain'] == null) {
|
|
62
|
-
throw new runtime.RequiredError('chain', 'Required parameter "chain" was null or undefined when calling claimRedpacket().');
|
|
63
|
-
}
|
|
64
|
-
if (requestParameters['claimRedPacketInput'] == null) {
|
|
65
|
-
throw new runtime.RequiredError('claimRedPacketInput', 'Required parameter "claimRedPacketInput" was null or undefined when calling claimRedpacket().');
|
|
66
|
-
}
|
|
67
|
-
const queryParameters = {};
|
|
68
|
-
const headerParameters = {};
|
|
69
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
70
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
71
|
-
const token = this.configuration.accessToken;
|
|
72
|
-
const tokenString = await token("bearer", []);
|
|
73
|
-
if (tokenString) {
|
|
74
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
let urlPath = `/v1/redpacket/{chain}/claim`;
|
|
78
|
-
urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
|
|
79
|
-
const response = await this.request({
|
|
80
|
-
path: urlPath,
|
|
81
|
-
method: 'POST',
|
|
82
|
-
headers: headerParameters,
|
|
83
|
-
query: queryParameters,
|
|
84
|
-
body: (0, index_1.ClaimRedPacketInputToJSON)(requestParameters['claimRedPacketInput']),
|
|
85
|
-
}, initOverrides);
|
|
86
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RedPacketReplyFromJSON)(jsonValue));
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* CONTROLLER.RED_PACKET.CLAIM.DESCRIPTION
|
|
90
|
-
* CONTROLLER.RED_PACKET.CLAIM.SUMMARY
|
|
91
|
-
*/
|
|
92
|
-
async claimRedpacket(requestParameters, initOverrides) {
|
|
93
|
-
const response = await this.claimRedpacketRaw(requestParameters, initOverrides);
|
|
94
|
-
return await response.value();
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* CONTROLLER.RED_PACKET.CREATE.DESCRIPTION
|
|
98
|
-
* CONTROLLER.RED_PACKET.CREATE.SUMMARY
|
|
99
|
-
*/
|
|
100
|
-
async createRedpacketRaw(requestParameters, initOverrides) {
|
|
101
|
-
if (requestParameters['chain'] == null) {
|
|
102
|
-
throw new runtime.RequiredError('chain', 'Required parameter "chain" was null or undefined when calling createRedpacket().');
|
|
103
|
-
}
|
|
104
|
-
if (requestParameters['createRedPacketInput'] == null) {
|
|
105
|
-
throw new runtime.RequiredError('createRedPacketInput', 'Required parameter "createRedPacketInput" was null or undefined when calling createRedpacket().');
|
|
106
|
-
}
|
|
107
|
-
const queryParameters = {};
|
|
108
|
-
const headerParameters = {};
|
|
109
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
110
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
111
|
-
const token = this.configuration.accessToken;
|
|
112
|
-
const tokenString = await token("bearer", []);
|
|
113
|
-
if (tokenString) {
|
|
114
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
let urlPath = `/v1/redpacket/{chain}/create`;
|
|
118
|
-
urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
|
|
119
|
-
const response = await this.request({
|
|
120
|
-
path: urlPath,
|
|
121
|
-
method: 'POST',
|
|
122
|
-
headers: headerParameters,
|
|
123
|
-
query: queryParameters,
|
|
124
|
-
body: (0, index_1.CreateRedPacketInputToJSON)(requestParameters['createRedPacketInput']),
|
|
125
|
-
}, initOverrides);
|
|
126
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateRedPacketReplyFromJSON)(jsonValue));
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* CONTROLLER.RED_PACKET.CREATE.DESCRIPTION
|
|
130
|
-
* CONTROLLER.RED_PACKET.CREATE.SUMMARY
|
|
131
|
-
*/
|
|
132
|
-
async createRedpacket(requestParameters, initOverrides) {
|
|
133
|
-
const response = await this.createRedpacketRaw(requestParameters, initOverrides);
|
|
134
|
-
return await response.value();
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* CONTROLLER.RED_PACKET.GET_CLAIMS.DESCRIPTION
|
|
138
|
-
* CONTROLLER.RED_PACKET.GET_CLAIMS.SUMMARY
|
|
139
|
-
*/
|
|
140
|
-
async getClaimsRaw(requestParameters, initOverrides) {
|
|
141
|
-
if (requestParameters['id'] == null) {
|
|
142
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getClaims().');
|
|
143
|
-
}
|
|
144
|
-
const queryParameters = {};
|
|
145
|
-
if (requestParameters['cursor'] != null) {
|
|
146
|
-
queryParameters['cursor'] = requestParameters['cursor'];
|
|
147
|
-
}
|
|
148
|
-
if (requestParameters['limit'] != null) {
|
|
149
|
-
queryParameters['limit'] = requestParameters['limit'];
|
|
150
|
-
}
|
|
151
|
-
if (requestParameters['direction'] != null) {
|
|
152
|
-
queryParameters['direction'] = requestParameters['direction'];
|
|
153
|
-
}
|
|
154
|
-
const headerParameters = {};
|
|
155
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
156
|
-
const token = this.configuration.accessToken;
|
|
157
|
-
const tokenString = await token("bearer", []);
|
|
158
|
-
if (tokenString) {
|
|
159
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
let urlPath = `/v1/redpacket/{id}/claims`;
|
|
163
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
164
|
-
const response = await this.request({
|
|
165
|
-
path: urlPath,
|
|
166
|
-
method: 'GET',
|
|
167
|
-
headers: headerParameters,
|
|
168
|
-
query: queryParameters,
|
|
169
|
-
}, initOverrides);
|
|
170
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RedPacketClaimsPageFromJSON)(jsonValue));
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* CONTROLLER.RED_PACKET.GET_CLAIMS.DESCRIPTION
|
|
174
|
-
* CONTROLLER.RED_PACKET.GET_CLAIMS.SUMMARY
|
|
175
|
-
*/
|
|
176
|
-
async getClaims(requestParameters, initOverrides) {
|
|
177
|
-
const response = await this.getClaimsRaw(requestParameters, initOverrides);
|
|
178
|
-
return await response.value();
|
|
179
|
-
}
|
|
180
|
-
/**
|
|
181
|
-
* CONTROLLER.RED_PACKET.GET_CLAIMS_BY_ADDRESS.DESCRIPTION
|
|
182
|
-
* CONTROLLER.RED_PACKET.GET_CLAIMS_BY_ADDRESS.SUMMARY
|
|
183
|
-
*/
|
|
184
|
-
async getClaimsByAddressRaw(requestParameters, initOverrides) {
|
|
185
|
-
if (requestParameters['address'] == null) {
|
|
186
|
-
throw new runtime.RequiredError('address', 'Required parameter "address" was null or undefined when calling getClaimsByAddress().');
|
|
187
|
-
}
|
|
188
|
-
const queryParameters = {};
|
|
189
|
-
if (requestParameters['cursor'] != null) {
|
|
190
|
-
queryParameters['cursor'] = requestParameters['cursor'];
|
|
191
|
-
}
|
|
192
|
-
if (requestParameters['limit'] != null) {
|
|
193
|
-
queryParameters['limit'] = requestParameters['limit'];
|
|
194
|
-
}
|
|
195
|
-
if (requestParameters['direction'] != null) {
|
|
196
|
-
queryParameters['direction'] = requestParameters['direction'];
|
|
197
|
-
}
|
|
198
|
-
const headerParameters = {};
|
|
199
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
200
|
-
const token = this.configuration.accessToken;
|
|
201
|
-
const tokenString = await token("bearer", []);
|
|
202
|
-
if (tokenString) {
|
|
203
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
let urlPath = `/v1/redpacket/wallet/{address}/claims`;
|
|
207
|
-
urlPath = urlPath.replace(`{${"address"}}`, encodeURIComponent(String(requestParameters['address'])));
|
|
208
|
-
const response = await this.request({
|
|
209
|
-
path: urlPath,
|
|
210
|
-
method: 'GET',
|
|
211
|
-
headers: headerParameters,
|
|
212
|
-
query: queryParameters,
|
|
213
|
-
}, initOverrides);
|
|
214
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RedPacketClaimsPageFromJSON)(jsonValue));
|
|
215
|
-
}
|
|
216
|
-
/**
|
|
217
|
-
* CONTROLLER.RED_PACKET.GET_CLAIMS_BY_ADDRESS.DESCRIPTION
|
|
218
|
-
* CONTROLLER.RED_PACKET.GET_CLAIMS_BY_ADDRESS.SUMMARY
|
|
219
|
-
*/
|
|
220
|
-
async getClaimsByAddress(requestParameters, initOverrides) {
|
|
221
|
-
const response = await this.getClaimsByAddressRaw(requestParameters, initOverrides);
|
|
222
|
-
return await response.value();
|
|
223
|
-
}
|
|
224
|
-
/**
|
|
225
|
-
* CONTROLLER.RED_PACKET.GET.DESCRIPTION
|
|
226
|
-
* CONTROLLER.RED_PACKET.GET.SUMMARY
|
|
227
|
-
*/
|
|
228
|
-
async getRedpacketRaw(requestParameters, initOverrides) {
|
|
229
|
-
if (requestParameters['id'] == null) {
|
|
230
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRedpacket().');
|
|
231
|
-
}
|
|
232
|
-
const queryParameters = {};
|
|
233
|
-
const headerParameters = {};
|
|
234
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
235
|
-
const token = this.configuration.accessToken;
|
|
236
|
-
const tokenString = await token("bearer", []);
|
|
237
|
-
if (tokenString) {
|
|
238
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
let urlPath = `/v1/redpacket/{id}`;
|
|
242
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
243
|
-
const response = await this.request({
|
|
244
|
-
path: urlPath,
|
|
245
|
-
method: 'GET',
|
|
246
|
-
headers: headerParameters,
|
|
247
|
-
query: queryParameters,
|
|
248
|
-
}, initOverrides);
|
|
249
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RedPacketDTOFromJSON)(jsonValue));
|
|
250
|
-
}
|
|
251
|
-
/**
|
|
252
|
-
* CONTROLLER.RED_PACKET.GET.DESCRIPTION
|
|
253
|
-
* CONTROLLER.RED_PACKET.GET.SUMMARY
|
|
254
|
-
*/
|
|
255
|
-
async getRedpacket(requestParameters, initOverrides) {
|
|
256
|
-
const response = await this.getRedpacketRaw(requestParameters, initOverrides);
|
|
257
|
-
return await response.value();
|
|
258
|
-
}
|
|
259
|
-
/**
|
|
260
|
-
* CONTROLLER.RED_PACKET.GET_REDPACKETS.DESCRIPTION
|
|
261
|
-
* CONTROLLER.RED_PACKET.GET_REDPACKETS.SUMMARY
|
|
262
|
-
*/
|
|
263
|
-
async getRedpacketsRaw(requestParameters, initOverrides) {
|
|
264
|
-
const queryParameters = {};
|
|
265
|
-
if (requestParameters['cursor'] != null) {
|
|
266
|
-
queryParameters['cursor'] = requestParameters['cursor'];
|
|
267
|
-
}
|
|
268
|
-
if (requestParameters['limit'] != null) {
|
|
269
|
-
queryParameters['limit'] = requestParameters['limit'];
|
|
270
|
-
}
|
|
271
|
-
if (requestParameters['direction'] != null) {
|
|
272
|
-
queryParameters['direction'] = requestParameters['direction'];
|
|
273
|
-
}
|
|
274
|
-
if (requestParameters['creator'] != null) {
|
|
275
|
-
queryParameters['creator'] = requestParameters['creator'];
|
|
276
|
-
}
|
|
277
|
-
if (requestParameters['chain'] != null) {
|
|
278
|
-
queryParameters['chain'] = requestParameters['chain'];
|
|
279
|
-
}
|
|
280
|
-
const headerParameters = {};
|
|
281
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
282
|
-
const token = this.configuration.accessToken;
|
|
283
|
-
const tokenString = await token("bearer", []);
|
|
284
|
-
if (tokenString) {
|
|
285
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
let urlPath = `/v1/redpacket`;
|
|
289
|
-
const response = await this.request({
|
|
290
|
-
path: urlPath,
|
|
291
|
-
method: 'GET',
|
|
292
|
-
headers: headerParameters,
|
|
293
|
-
query: queryParameters,
|
|
294
|
-
}, initOverrides);
|
|
295
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RedPacketsPageFromJSON)(jsonValue));
|
|
296
|
-
}
|
|
297
|
-
/**
|
|
298
|
-
* CONTROLLER.RED_PACKET.GET_REDPACKETS.DESCRIPTION
|
|
299
|
-
* CONTROLLER.RED_PACKET.GET_REDPACKETS.SUMMARY
|
|
300
|
-
*/
|
|
301
|
-
async getRedpackets(requestParameters = {}, initOverrides) {
|
|
302
|
-
const response = await this.getRedpacketsRaw(requestParameters, initOverrides);
|
|
303
|
-
return await response.value();
|
|
304
|
-
}
|
|
305
|
-
/**
|
|
306
|
-
* CONTROLLER.RED_PACKET.GET_REDPACKETS_BY_ADDRESS.DESCRIPTION
|
|
307
|
-
* CONTROLLER.RED_PACKET.GET_REDPACKETS_BY_ADDRESS.SUMMARY
|
|
308
|
-
*/
|
|
309
|
-
async getRedpacketsByAddressRaw(requestParameters, initOverrides) {
|
|
310
|
-
if (requestParameters['address'] == null) {
|
|
311
|
-
throw new runtime.RequiredError('address', 'Required parameter "address" was null or undefined when calling getRedpacketsByAddress().');
|
|
312
|
-
}
|
|
313
|
-
const queryParameters = {};
|
|
314
|
-
if (requestParameters['cursor'] != null) {
|
|
315
|
-
queryParameters['cursor'] = requestParameters['cursor'];
|
|
316
|
-
}
|
|
317
|
-
if (requestParameters['limit'] != null) {
|
|
318
|
-
queryParameters['limit'] = requestParameters['limit'];
|
|
319
|
-
}
|
|
320
|
-
if (requestParameters['direction'] != null) {
|
|
321
|
-
queryParameters['direction'] = requestParameters['direction'];
|
|
322
|
-
}
|
|
323
|
-
const headerParameters = {};
|
|
324
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
325
|
-
const token = this.configuration.accessToken;
|
|
326
|
-
const tokenString = await token("bearer", []);
|
|
327
|
-
if (tokenString) {
|
|
328
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
let urlPath = `/v1/redpacket/wallet/{address}/redpackets`;
|
|
332
|
-
urlPath = urlPath.replace(`{${"address"}}`, encodeURIComponent(String(requestParameters['address'])));
|
|
333
|
-
const response = await this.request({
|
|
334
|
-
path: urlPath,
|
|
335
|
-
method: 'GET',
|
|
336
|
-
headers: headerParameters,
|
|
337
|
-
query: queryParameters,
|
|
338
|
-
}, initOverrides);
|
|
339
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RedPacketsPageFromJSON)(jsonValue));
|
|
340
|
-
}
|
|
341
|
-
/**
|
|
342
|
-
* CONTROLLER.RED_PACKET.GET_REDPACKETS_BY_ADDRESS.DESCRIPTION
|
|
343
|
-
* CONTROLLER.RED_PACKET.GET_REDPACKETS_BY_ADDRESS.SUMMARY
|
|
344
|
-
*/
|
|
345
|
-
async getRedpacketsByAddress(requestParameters, initOverrides) {
|
|
346
|
-
const response = await this.getRedpacketsByAddressRaw(requestParameters, initOverrides);
|
|
347
|
-
return await response.value();
|
|
348
|
-
}
|
|
349
|
-
/**
|
|
350
|
-
* CONTROLLER.RED_PACKET.SEND.DESCRIPTION
|
|
351
|
-
* CONTROLLER.RED_PACKET.SEND.SUMMARY
|
|
352
|
-
*/
|
|
353
|
-
async redpacketSendRaw(requestParameters, initOverrides) {
|
|
354
|
-
if (requestParameters['chain'] == null) {
|
|
355
|
-
throw new runtime.RequiredError('chain', 'Required parameter "chain" was null or undefined when calling redpacketSend().');
|
|
356
|
-
}
|
|
357
|
-
if (requestParameters['redPacketSendTxInput'] == null) {
|
|
358
|
-
throw new runtime.RequiredError('redPacketSendTxInput', 'Required parameter "redPacketSendTxInput" was null or undefined when calling redpacketSend().');
|
|
359
|
-
}
|
|
360
|
-
const queryParameters = {};
|
|
361
|
-
const headerParameters = {};
|
|
362
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
363
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
364
|
-
const token = this.configuration.accessToken;
|
|
365
|
-
const tokenString = await token("bearer", []);
|
|
366
|
-
if (tokenString) {
|
|
367
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
let urlPath = `/v1/redpacket/{chain}/send`;
|
|
371
|
-
urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
|
|
372
|
-
const response = await this.request({
|
|
373
|
-
path: urlPath,
|
|
374
|
-
method: 'POST',
|
|
375
|
-
headers: headerParameters,
|
|
376
|
-
query: queryParameters,
|
|
377
|
-
body: (0, index_1.RedPacketSendTxInputToJSON)(requestParameters['redPacketSendTxInput']),
|
|
378
|
-
}, initOverrides);
|
|
379
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RedPacketSendTxResponseFromJSON)(jsonValue));
|
|
380
|
-
}
|
|
381
|
-
/**
|
|
382
|
-
* CONTROLLER.RED_PACKET.SEND.DESCRIPTION
|
|
383
|
-
* CONTROLLER.RED_PACKET.SEND.SUMMARY
|
|
384
|
-
*/
|
|
385
|
-
async redpacketSend(requestParameters, initOverrides) {
|
|
386
|
-
const response = await this.redpacketSendRaw(requestParameters, initOverrides);
|
|
387
|
-
return await response.value();
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
exports.RedPacketApi = RedPacketApi;
|
|
391
|
-
/**
|
|
392
|
-
* @export
|
|
393
|
-
*/
|
|
394
|
-
exports.ClaimRedpacketChainEnum = {
|
|
395
|
-
Sol: 'sol',
|
|
396
|
-
Base: 'base',
|
|
397
|
-
Bsc: 'bsc',
|
|
398
|
-
Polygon: 'polygon',
|
|
399
|
-
Arbitrum: 'arbitrum',
|
|
400
|
-
Optimism: 'optimism',
|
|
401
|
-
Avalanche: 'avalanche',
|
|
402
|
-
Ethereum: 'ethereum',
|
|
403
|
-
Zksync: 'zksync',
|
|
404
|
-
Sui: 'sui'
|
|
405
|
-
};
|
|
406
|
-
/**
|
|
407
|
-
* @export
|
|
408
|
-
*/
|
|
409
|
-
exports.CreateRedpacketChainEnum = {
|
|
410
|
-
Sol: 'sol',
|
|
411
|
-
Base: 'base',
|
|
412
|
-
Bsc: 'bsc',
|
|
413
|
-
Polygon: 'polygon',
|
|
414
|
-
Arbitrum: 'arbitrum',
|
|
415
|
-
Optimism: 'optimism',
|
|
416
|
-
Avalanche: 'avalanche',
|
|
417
|
-
Ethereum: 'ethereum',
|
|
418
|
-
Zksync: 'zksync',
|
|
419
|
-
Sui: 'sui'
|
|
420
|
-
};
|
|
421
|
-
/**
|
|
422
|
-
* @export
|
|
423
|
-
*/
|
|
424
|
-
exports.GetRedpacketsChainEnum = {
|
|
425
|
-
Sol: 'sol',
|
|
426
|
-
Base: 'base',
|
|
427
|
-
Bsc: 'bsc',
|
|
428
|
-
Polygon: 'polygon',
|
|
429
|
-
Arbitrum: 'arbitrum',
|
|
430
|
-
Optimism: 'optimism',
|
|
431
|
-
Avalanche: 'avalanche',
|
|
432
|
-
Ethereum: 'ethereum',
|
|
433
|
-
Zksync: 'zksync',
|
|
434
|
-
Sui: 'sui'
|
|
435
|
-
};
|
|
436
|
-
/**
|
|
437
|
-
* @export
|
|
438
|
-
*/
|
|
439
|
-
exports.RedpacketSendChainEnum = {
|
|
440
|
-
Sol: 'sol',
|
|
441
|
-
Base: 'base',
|
|
442
|
-
Bsc: 'bsc',
|
|
443
|
-
Polygon: 'polygon',
|
|
444
|
-
Arbitrum: 'arbitrum',
|
|
445
|
-
Optimism: 'optimism',
|
|
446
|
-
Avalanche: 'avalanche',
|
|
447
|
-
Ethereum: 'ethereum',
|
|
448
|
-
Zksync: 'zksync',
|
|
449
|
-
Sui: 'sui'
|
|
450
|
-
};
|