Documentation
¶
Index ¶
- Variables
- type APIResponse
- type AdminAgentActionByRefReq
- type AdminAgentActionReq
- type AdminCreatePumpfunMemeReq
- type AdminTradeBaseMemeReq
- type AdminTradePumpfunMemeReq
- type AdminTweetReq
- type AgentActionReq
- type AgentChainFeeResp
- type AgentChatMessageReq
- type AgentEaiTopupResp
- type AgentExternalInfoReq
- type AgentInfoResp
- type AgentLibraryReq
- type AgentLibraryResp
- type AgentReportResp
- type AgentSnapshotMissionConfigsResp
- type AgentSnapshotMissionInfo
- type AgentSnapshotPostActionResp
- type AgentSnapshotPostResp
- type AgentStoreMissionReq
- type AgentStoreMissionResp
- type AgentStoreReq
- type AgentStoreResp
- type AgentStoreTryDetailResp
- type AgentTokenReq
- type AgentTokenResp
- type AgentTradeTokenResp
- type AgentTwitterInfoReq
- type AgentTwitterPostResp
- type AgentUseKnowledgeBaseRequest
- type AgentUtilityTwitterReq
- type AgentUtilityTwitterResp
- type ApiSubscriptionHistoryResp
- type ApiSubscriptionKeyResp
- type ApiSubscriptionPackageResp
- type ApiSubscriptionUsageLogResp
- type ApiTokenUsageReq
- type AssistantCharacter
- type AssistantResp
- type Assistants
- type AssistantsReq
- type AuthenAgentStoreCallback
- type BaseReq
- type Cat20TransferTransactionResp
- type ChatCompletionRequest
- type CreateAgentWalletActionReq
- type CreateKnowledgeRequest
- type DataChartResp
- type DataUploadToLightHouse
- type ExternalWalletOrderReq
- type ExternalWalletOrderResp
- type ExternalWalletResp
- type ExternalWalletTokenResp
- type File
- type HttpEventStreamResponse
- type KnowledgeBase
- type KnowledgeBaseFile
- type KnowledgeBaseInfo
- type KnowledgeBaseInfoType
- type MemeBurnHistoryResp
- type MemeFollowersResp
- type MemeNotificationResp
- type MemeReq
- type MemeResp
- type MemeThreadReq
- type MemeThreadResp
- type MemeTradeHistoryResp
- type MissionParam
- type MissionStoreHistoryResp
- type MissionStoreRatingReq
- type MissionStoreRatingResp
- type MissionStoreReq
- type MissionStoreResp
- type ParamWakeupRequest
- type PreviewRequest
- type PumpFunTradeResp
- type Resp
- type RespChart
- type RespExtra
- type RetrieveKnowledgeBaseRequest
- type RetrieveKnowledgeBaseResponse
- type RetrieveKnowledgeRequest
- type ShareHolderResp
- type SignatureReq
- type SignatureTimestampReq
- type SolanaTokenBalanceResp
- type StudioReq
- type TierReq
- type TokenHolderResp
- type TransferCatReq
- type TwitterInfoResp
- type TwitterTweetLikedResp
- type UpdateAgentAssistantInContractRequest
- type UpdateAgentAssistantInContractResponse
- type UpdateKnowledgeBaseWithSignatureRequest
- type UpdateKnowledgeRequest
- type UpdateTwinStatusRequest
- type UserProfileReq
- type UserResp
- type UserTransactionResp
- type WakeupRequestMetadata
- type WalletActionTradeResp
- type WithdrawCrossChainReq
Constants ¶
This section is empty.
Variables ¶
View Source
var DoneResponseStreamData, _ = json.Marshal(models.ChatCompletionStreamResponse{Message: "DONE", Code: http.StatusOK})
View Source
var FakeResponseStreamData, _ = json.Marshal(models.ChatCompletionStreamResponse{
Message: "",
Code: http.StatusContinue,
ChatCompletionStreamResponse: openai.ChatCompletionStreamResponse{
Choices: []openai.ChatCompletionStreamChoice{
openai.ChatCompletionStreamChoice{
Delta: openai.ChatCompletionStreamChoiceDelta{},
},
},
},
})
View Source
var TimeoutResponseStreamData, _ = json.Marshal(models.ChatCompletionStreamResponse{Message: "Timeout", Code: http.StatusGatewayTimeout})
Functions ¶
This section is empty.
Types ¶
type APIResponse ¶
type AdminAgentActionByRefReq ¶
type AdminAgentActionByRefReq struct { ActionType models.AgentSnapshotPostActionType `json:"action_type"` Reason string `json:"reason"` }
type AdminAgentActionReq ¶
type AdminAgentActionReq struct { ChainID uint64 `json:"chain_id"` AgentContractId string `json:"agent_contract_id"` ActionType models.AgentSnapshotPostActionType `json:"action_type"` IsTesting bool `json:"is_testing"` RefID string `json:"ref_id"` MissionID uint `json:"mission_id"` ConversationId string `json:"conversation_id"` InscribeTxHash string `json:"inscribe_tx_hash"` BitcoinTxHash string `json:"bitcoin_tx_hash"` ActionInput struct { Content string `json:"content"` TweetId string `json:"tweet_id"` Twid string `json:"twid"` TargetUsername string `json:"target_username"` Comment string `json:"comment"` Name string `json:"name"` Symbol string `json:"symbol"` Description string `json:"description"` ImageUrl string `json:"image_url"` Price numeric.BigFloat `json:"price"` } `json:"action_input"` }
type AdminTradeBaseMemeReq ¶
type AdminTradeBaseMemeReq struct { FromAssetId string `json:"from_asset_id"` ToAssetId string `json:"to_asset_id"` Amount string `json:"amount"` }
//coinbase
type AdminTweetReq ¶
type AdminTweetReq struct {
Text string `json:"text"`
}
type AgentActionReq ¶
type AgentChainFeeResp ¶
type AgentChainFeeResp struct { NetworkID uint64 `json:"network_id"` InferFee numeric.BigFloat `json:"infer_fee"` MintFee numeric.BigFloat `json:"mint_fee"` TokenFee numeric.BigFloat `json:"token_fee"` }
func NewAgentChainFeeResp ¶
func NewAgentChainFeeResp(m *models.AgentChainFee) *AgentChainFeeResp
func NewAgentChainFeeRespArr ¶
func NewAgentChainFeeRespArr(arr []*models.AgentChainFee) []*AgentChainFeeResp
type AgentChatMessageReq ¶
type AgentEaiTopupResp ¶
type AgentEaiTopupResp struct { ID uint `json:"id"` CreatedAt time.Time `json:"created_at"` AgentInfoID uint `json:"agent_info_id"` AgentInfo *AgentInfoResp `json:"agent_info"` NetworkID uint64 `json:"network_id"` NetworkName string `json:"network_name"` Type string `json:"type"` DepositTxHash string `json:"deposit_tx_hash"` TopupTxHash string `json:"topup_tx_hash"` Amount numeric.BigFloat `json:"amount"` Status models.AgentEaiTopupStatus `json:"status"` InscribeTxHash string `json:"inscribe_tx_hash"` DepositAddress string `json:"sender_address"` Toolset string `json:"toolset"` ToolsetName string `json:"toolset_name"` }
func NewAgentEaiTopupResp ¶
func NewAgentEaiTopupResp(m *models.AgentEaiTopup) *AgentEaiTopupResp
func NewAgentEaiTopupRespArry ¶
func NewAgentEaiTopupRespArry(arr []*models.AgentEaiTopup) []*AgentEaiTopupResp
type AgentExternalInfoReq ¶
type AgentInfoResp ¶
type AgentInfoResp struct { ID uint `json:"id"` CreatedAt time.Time `json:"created_at"` TwitterInfoID uint `json:"twitter_info_id"` TwitterInfo *TwitterInfoResp `json:"twitter_info"` AgentID string `json:"agent_id"` AgentContractID string `json:"agent_contract_id"` AgentContractAddress string `json:"agent_contract_address"` AgentName string `json:"agent_name"` NetworkID uint64 `json:"network_id"` NetworkName string `json:"network_name"` ETHAddress string `json:"eth_address"` SOLAddress string `json:"sol_address"` TipAmount numeric.BigFloat `json:"tip_amount"` WalletBalance numeric.BigFloat `json:"wallet_balance"` Creator string `json:"creator"` Mentions uint `json:"mentions"` XFollowers uint `json:"x_followers"` TipEthAddress string `json:"tip_eth_address"` TipBtcAddress string `json:"tip_btc_address"` TipSolAddress string `json:"tip_sol_address"` IsFaucet bool `json:"is_faucet"` UserPrompt string `json:"user_prompt"` AgentSnapshotMission []*AgentSnapshotMissionInfo `json:"agent_snapshot_mission"` TokenName string `json:"token_name"` TokenSymbol string `json:"token_symbol"` TokenAddress string `json:"token_address"` TokenImageUrl string `json:"token_image_url"` TokenStatus string `json:"token_status"` TokenMode string `json:"create_token_mode"` TotalSupply int64 `json:"total_supply"` UsdMarketCap float64 `json:"usd_market_cap"` PriceUsd numeric.BigFloat `json:"price_usd"` DexUrl string `json:"dex_url"` LatestTwitterPost *AgentTwitterPostResp `json:"latest_twitter_post"` Personality string `json:"personality"` TmpTwitterInfo *TwitterInfoResp `json:"tmp_twitter_info"` IsClaimed bool `json:"is_claimed"` Meme *MemeResp `json:"meme"` TokenNetworkID uint64 `json:"token_network_id"` TokenNetworkName string `json:"token_network_name"` ReplyLatestTime *time.Time `json:"active_latest_time"` Thumbnail string `json:"thumbnail"` ReplyEnabled bool `json:"reply_enabled"` AgentBaseModel string `json:"agent_base_model"` AssistantCharacter `json:",inline"` SocialInfo []*models.SocialInfo `json:"social_info"` VerifiedNftOwner bool `json:"verified_nft_owner"` NftAddress string `json:"nft_address"` NftTokenID string `json:"nft_token_id"` NftTokenImage string `json:"nft_token_image"` NftOwnerAddress string `json:"nft_owner_address"` Status models.AssistantStatus `json:"status"` InferenceCalls int64 `json:"inference_calls"` TotalMintTwinFee float64 `json:"total_mint_twin_fee"` EstimateTwinDoneTimestamp *time.Time `json:"estimate_twin_done_timestamp"` TokenDesc string `json:"token_desc"` ExternalChartUrl string `json:"external_chart_url"` MissionTopics string `json:"mission_topics"` GraphData string `json:"graph_data"` AgentType models.AgentInfoAgentType `json:"agent_type"` ConfigData string `json:"config_data"` SourceURL string `json:"source_url"` AuthenURL string `json:"authen_url"` AgentKBId uint `json:"kb_id"` DependAgents string `json:"depend_agents"` RequiredWallet bool `json:"required_wallet"` IsOnchain bool `json:"is_onchain"` }
func NewAgentInfoResp ¶
func NewAgentInfoResp(m *models.AgentInfo) *AgentInfoResp
func NewAgentInfoRespArry ¶
func NewAgentInfoRespArry(arr []*models.AgentInfo) []*AgentInfoResp
type AgentLibraryReq ¶
type AgentLibraryResp ¶
type AgentLibraryResp struct { ID uint `json:"id"` CreatedAt time.Time `json:"created_at"` Name string `json:"name"` SourceUrl string `json:"source_url"` AgentType int `json:"agent_type"` }
func NewAgentLibraryResp ¶
func NewAgentLibraryResp(m *models.AgentLibrary) *AgentLibraryResp
func NewAgentLibraryRespArray ¶
func NewAgentLibraryRespArray(arr []*models.AgentLibrary) []*AgentLibraryResp
type AgentReportResp ¶
type AgentReportResp struct { NetworkID uint64 `json:"network_id"` NetworkName string `json:"network_name"` Counts int64 `json:"counts"` }
func NewAgentReportResp ¶
func NewAgentReportResp(m *models.AgentInfo) *AgentReportResp
func NewAgentReportRespArr ¶
func NewAgentReportRespArr(arr []*models.AgentInfo) []*AgentReportResp
type AgentSnapshotMissionConfigsResp ¶
type AgentSnapshotMissionConfigsResp struct { ID uint `json:"id"` NetworkID uint64 `json:"network_id"` ToolSet models.ToolsetType `json:"tool_set"` ToolSetName string `json:"tool_set_name"` }
func NewAgentSnapshotMissionConfigsResp ¶
func NewAgentSnapshotMissionConfigsResp(m *models.AgentSnapshotMissionConfigs) *AgentSnapshotMissionConfigsResp
func NewAgentSnapshotMissionConfigsRespArry ¶
func NewAgentSnapshotMissionConfigsRespArry(arr []*models.AgentSnapshotMissionConfigs) []*AgentSnapshotMissionConfigsResp
type AgentSnapshotMissionInfo ¶
type AgentSnapshotMissionInfo struct { ID uint `json:"id"` UserPrompt string `json:"user_prompt"` Interval int `json:"interval"` ToolSet models.ToolsetType `json:"tool_set"` AgentType models.AgentInfoAgentType `json:"agent_type"` UserTwitterIDs string `json:"user_twitter_ids"` ToolList string `json:"tool_list"` Tokens string `json:"tokens"` AgentBaseModel string `json:"agent_base_model"` AgentStoreMissionID uint `json:"agent_store_mission_id"` AgentStoreID uint `json:"agent_store_id"` MissionStoreParams map[string]string `json:"mission_store_params"` Topics string `json:"topics"` IsTwitterSearch bool `json:"is_twitter_search"` IsBingSearch bool `json:"is_bing_search"` RewardAmount numeric.BigFloat `json:"reward_amount"` MinTokenHolding numeric.BigFloat `json:"min_token_holding"` RewardUser int `json:"reward_user"` LookupInterval int `json:"lookup_interval"` }
func NewAgentSnapshotMissionResp ¶
func NewAgentSnapshotMissionResp(m *models.AgentSnapshotMission) *AgentSnapshotMissionInfo
type AgentSnapshotPostActionResp ¶
type AgentSnapshotPostActionResp struct { ID uint `json:"id"` CreatedAt time.Time `json:"created_at"` AgentInfoID uint `json:"agent_info_id"` AgentSnapshotPostID uint `json:"agent_snapshot_post_id"` AgentTwitterId string `json:"agent_twitter_id"` Type models.AgentSnapshotPostActionType `json:"type"` TargetUsername string `json:"target_username"` TargetTwitterId string `json:"target_twitter_id"` Tweetid string `json:"tweetid"` Content string `json:"content"` Status models.AgentSnapshotPostActionStatus `json:"status"` FollowerCount uint `json:"follower_count"` Price numeric.BigFloat `json:"price"` InscribeTxHash string `json:"inscribe_tx_hash"` BitcoinTxHash string `json:"bitcoin_tx_hash"` }
//
func NewAgentSnapshotPostActionResp ¶
func NewAgentSnapshotPostActionResp(m *models.AgentSnapshotPostAction) *AgentSnapshotPostActionResp
func NewAgentSnapshotPostActionRespArry ¶
func NewAgentSnapshotPostActionRespArry(arr []*models.AgentSnapshotPostAction) []*AgentSnapshotPostActionResp
type AgentSnapshotPostResp ¶
type AgentSnapshotPostResp struct { ID uint `json:"id"` CreatedAt time.Time `json:"created_at"` AgentInfoID uint `json:"agent_info_id"` AgentInfo *AgentInfoResp `json:"agent_info"` InferData string `json:"infer_data"` InferSnapshotHash string `json:"infer_snapshot_hash"` InferTxHash string `json:"infer_tx_hash"` InferAt *time.Time `json:"infer_at"` InferNum uint `json:"infer_num"` InferOutputData string `json:"infer_output_data"` InferOutputAt *time.Time `json:"infer_output_at"` Status models.AgentSnapshotPostStatus `json:"status"` InscribeTxHash string `json:"inscribe_tx_hash"` BitcoinTxHash string `json:"bitcoin_tx_hash"` Fee numeric.BigFloat `json:"fee"` AgentSnapshotPostAction []*AgentSnapshotPostActionResp `json:"agent_snapshot_post_action"` }
func NewAgentSnapshotPostResp ¶
func NewAgentSnapshotPostResp(m *models.AgentSnapshotPost) *AgentSnapshotPostResp
func NewAgentSnapshotPostRespArry ¶
func NewAgentSnapshotPostRespArry(arr []*models.AgentSnapshotPost) []*AgentSnapshotPostResp
type AgentStoreMissionReq ¶
type AgentStoreMissionReq struct { ID uint `json:"id"` Name string `json:"name"` Description string `json:"description"` Prompt string `json:"prompt"` Price numeric.BigFloat `json:"price"` ToolList string `json:"tool_list"` Icon string `json:"icon"` NetworkID uint64 `json:"network_id"` Model string `json:"model"` Status string `json:"status"` }
type AgentStoreMissionResp ¶
type AgentStoreMissionResp struct { AgentStoreID uint `json:"agent_store_id"` ID uint `json:"id"` CreatedAt time.Time `json:"created_at"` Name string `json:"name"` Description string `json:"description"` UserPrompt string `json:"user_prompt"` Price numeric.BigFloat `json:"price"` ToolList string `json:"tool_list"` Icon string `json:"icon"` NumUsed uint `json:"num_used"` Status string `json:"status"` }
func NewAgentStoreMissionResp ¶
func NewAgentStoreMissionResp(m *models.AgentStoreMission) *AgentStoreMissionResp
func NewAgentStoreMissionRespArray ¶
func NewAgentStoreMissionRespArray(arr []*models.AgentStoreMission) []*AgentStoreMissionResp
type AgentStoreReq ¶
type AgentStoreReq struct { ID uint `json:"id"` Type models.AgentStoreType `json:"type"` Name string `json:"name"` Description string `json:"description"` AuthenUrl string `json:"authen_url"` ApiUrl string `json:"api_url"` Icon string `json:"icon"` Docs string `json:"docs"` Price numeric.BigFloat `json:"price"` Status models.AgentStoreStatus `json:"status"` }
type AgentStoreResp ¶
type AgentStoreResp struct { ID uint `json:"id"` CreatedAt time.Time `json:"created_at"` Name string `json:"name"` Owner string `json:"owner"` Description string `json:"description"` AuthenUrl string `json:"authen_url"` Icon string `json:"icon"` Docs string `json:"docs"` ApiUrl string `json:"api_url"` Status models.AgentStoreStatus `json:"status"` Price numeric.BigFloat `json:"price"` NumInstall uint `json:"num_install"` NumUsage uint `json:"num_usage"` Type string `json:"type"` AgentStoreMissions []*AgentStoreMissionResp `json:"agent_store_missions"` }
func NewAgentStoreResp ¶
func NewAgentStoreResp(m *models.AgentStore) *AgentStoreResp
func NewAgentStoreRespArray ¶
func NewAgentStoreRespArray(arr []*models.AgentStore) []*AgentStoreResp
func NewAgentStoreRespArrayFromInstall ¶
func NewAgentStoreRespArrayFromInstall(arr []*models.AgentStoreInstall) []*AgentStoreResp
type AgentStoreTryDetailResp ¶
type AgentStoreTryDetailResp struct { HistoryID uint `json:"history_id"` DetailID uint `json:"detail_id"` FromUser bool `json:"from_user"` Content string `json:"content"` AgentSnapshotPost *AgentSnapshotPostResp `json:"id"` CreatedAt time.Time `json:"created_at"` }
func NewAgentStoreTryDetailResp ¶
func NewAgentStoreTryDetailResp(m *models.AgentStoreTryDetail) *AgentStoreTryDetailResp
func NewAgentStoreTryDetailRespArray ¶
func NewAgentStoreTryDetailRespArray(arr []*models.AgentStoreTryDetail) []*AgentStoreTryDetailResp
type AgentTokenReq ¶
type AgentTokenResp ¶
type AgentTokenResp struct { ID uint `json:"id"` AgentInfoID uint `json:"twitter_info_id"` AgentInfo *AgentInfoResp `json:"agent_info"` ContractAddress string `json:"contract_address"` Name string `json:"name"` Symbol string `json:"symbol"` ImageUrl string `json:"image_url"` NetworkID uint64 `json:"network_id"` NetworkName string `json:"network_name"` Price numeric.BigFloat `json:"price"` PriceUsd numeric.BigFloat `json:"price_usd"` TotalSupply numeric.BigFloat `json:"total_supply"` MarketCap numeric.BigFloat `json:"market_cap"` TipAmount numeric.BigFloat `json:"tip_amount"` Holders uint `json:"holders"` XFollowers uint `json:"x_followers"` BaseTokenSymbol string `json:"base_token_symbol"` BaseTokenPrice numeric.BigFloat `json:"base_token_price"` Percent float64 `json:"percent"` TotalVolume numeric.BigFloat `json:"total_volume"` Mentions uint `json:"mentions"` WalletBalance numeric.BigFloat `json:"wallet_balance"` DexUrl string `json:"dex_url"` }
func NewAgentTokenResp ¶
func NewAgentTokenResp(m *models.AgentInfo) *AgentTokenResp
func NewAgentTokenRespArry ¶
func NewAgentTokenRespArry(arr []*models.AgentInfo) []*AgentTokenResp
type AgentTradeTokenResp ¶
type AgentTradeTokenResp struct { NetworkID uint64 `json:"network_id"` NetworkName string `json:"network_name"` TokenSymbol string `json:"token_symbol"` TokenName string `json:"token_name"` TokenAddress string `json:"token_address"` }
func NewAgentTradeTokenResp ¶
func NewAgentTradeTokenResp(m *models.AgentTradeToken) *AgentTradeTokenResp
func NewAgentTradeTokenRespArry ¶
func NewAgentTradeTokenRespArry(arr []*models.AgentTradeToken) []*AgentTradeTokenResp
type AgentTwitterInfoReq ¶
type AgentTwitterPostResp ¶
type AgentTwitterPostResp struct { ID uint `json:"id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` TwitterID string `json:"twitter_id"` TwitterUser *TwitterInfoResp `json:"twitter_user"` TwitterUsername string `json:"twitter_username"` TwitterName string `json:"twitter_name"` TwitterPostID string `json:"twitter_post_id"` PostAt *time.Time `json:"post_at"` Content string `json:"content"` ReplyContent string `json:"reply_content"` AgentInfoID uint `json:"agent_info_id"` AgentInfo *AgentInfoResp `json:"agent_info"` ReplyPostId string `json:"reply_post_id"` ReplyPostAt *time.Time `json:"reply_post_at"` ReplyPostReply int `json:"reply_post_reply"` ReplyPostView int `json:"reply_post_view"` ReplyPostFavorite int `json:"reply_post_favorite"` ReplyPostBookmark int `json:"reply_post_bookmark"` ReplyPostQuote int `json:"reply_post_quote"` ReplyPostRetweet int `json:"reply_post_retweet"` InscribeTxHash string `json:"inscribe_tx_hash"` BitcoinTxHash string `json:"bitcoin_tx_hash"` PostType models.AgentSnapshotPostActionType `json:"post_type"` }
func NewAgentTwitterPostResp ¶
func NewAgentTwitterPostResp(m *models.AgentTwitterPost) *AgentTwitterPostResp
func NewAgentTwitterPostRespArry ¶
func NewAgentTwitterPostRespArry(arr []*models.AgentTwitterPost) []*AgentTwitterPostResp
type AgentUtilityTwitterReq ¶
type AgentUtilityTwitterReq struct { AgentID string `json:"agent_id"` Content string `json:"content"` TxHash string `json:"tx_hash"` }
////
type AgentUtilityTwitterResp ¶
type ApiSubscriptionHistoryResp ¶
type ApiSubscriptionHistoryResp struct { NetworkID uint64 `json:"network_id"` UserAddress string `json:"user_address"` ApiKey string `json:"api_key"` PackageID uint `json:"package_id"` Package *ApiSubscriptionPackageResp `json:"package"` DepositAddress string `json:"deposit_address"` DepositStatus models.DepositStatus `json:"deposit_status"` TxHash string `json:"tx_hash"` NumToken uint64 `json:"num_token"` StartedAt *time.Time `json:"started_at"` ExpiresAt *time.Time `json:"expires_at"` }
func NewApiSubscriptionHistoryResp ¶
func NewApiSubscriptionHistoryResp(m *models.ApiSubscriptionHistory) *ApiSubscriptionHistoryResp
func NewApiSubscriptionHistoryRespArr ¶
func NewApiSubscriptionHistoryRespArr(arr []*models.ApiSubscriptionHistory) []*ApiSubscriptionHistoryResp
type ApiSubscriptionKeyResp ¶
type ApiSubscriptionKeyResp struct { NetworkID uint64 `json:"network_id"` UserAddress string `json:"user_address"` TwitterID string `json:"twitter_id"` TwitterInfoID uint `json:"twitter_info_id"` ApiKey string `json:"api_key"` PackageID uint `json:"package_id"` Package *ApiSubscriptionPackageResp `json:"package"` QuotaRemaining uint64 `json:"quota_remaining"` StartedAt *time.Time `json:"started_at"` ExpiresAt *time.Time `json:"expires_at"` DepositAddress string `json:"deposit_address"` }
func NewApiSubscriptionKeyResp ¶
func NewApiSubscriptionKeyResp(m *models.ApiSubscriptionKey) *ApiSubscriptionKeyResp
func NewApiSubscriptionKeyRespArr ¶
func NewApiSubscriptionKeyRespArr(arr []*models.ApiSubscriptionKey) []*ApiSubscriptionKeyResp
type ApiSubscriptionPackageResp ¶
type ApiSubscriptionPackageResp struct { Name string `json:"name"` Description string `json:"description"` Price numeric.BigFloat `json:"price"` NetworkID uint64 `json:"network_id"` NumToken uint64 `json:"num_token"` Type models.PackageType `json:"type"` DurationDay uint `json:"duration_day"` }
func NewApiSubscriptionPackageResp ¶
func NewApiSubscriptionPackageResp(m *models.ApiSubscriptionPackage) *ApiSubscriptionPackageResp
func NewApiSubscriptionPackageRespArr ¶
func NewApiSubscriptionPackageRespArr(arr []*models.ApiSubscriptionPackage) []*ApiSubscriptionPackageResp
type ApiSubscriptionUsageLogResp ¶
type ApiSubscriptionUsageLogResp struct { ApiKey string `json:"api_key"` Endpoint string `json:"endpoint"` NumToken uint64 `json:"num_token"` }
func NewApiSubscriptionUsageLogResp ¶
func NewApiSubscriptionUsageLogResp(m *models.ApiSubscriptionUsageLog) *ApiSubscriptionUsageLogResp
func NewApiSubscriptionUsageLogRespArr ¶
func NewApiSubscriptionUsageLogRespArr(arr []*models.ApiSubscriptionUsageLog) []*ApiSubscriptionUsageLogResp
type ApiTokenUsageReq ¶
type AssistantCharacter ¶
type AssistantCharacter struct { Bio []string `json:"bio"` Lore []string `json:"lore"` Knowledge []string `json:"knowledge"` MessageExamples [][]struct { User string `json:"user"` Content struct { Text string `json:"text"` } `json:"content"` } `json:"messageExamples"` PostExamples []string `json:"postExamples"` Topics []string `json:"topics"` Style map[string][]string `json:"style"` Adjectives []string `json:"adjectives"` }
type AssistantResp ¶
type AssistantResp struct { Assistants `json:",inline"` AgentInfo *AgentInfoResp `json:"agent_info"` KnowledgeBase *KnowledgeBase `json:"knowledge_base"` }
func NewAssistantResp ¶
func NewAssistantResp(m *models.AgentInfo) *AssistantResp
func NewAssistantRespArry ¶
func NewAssistantRespArry(arr []*models.AgentInfo) []*AssistantResp
type Assistants ¶
type Assistants struct { ID string `json:"id"` CreatedAt time.Time `json:"created_at"` InferFee string `bson:"infer_fee" json:"infer_fee"` AgentName string `bson:"agent_name" json:"agent_name"` Creator string `bson:"creator" json:"creator"` Minter string `bson:"minter" json:"minter"` ContractAgentID string `bson:"contract_agent_id" json:"contract_agent_id"` MetaData string `bson:"meta_data" json:"meta_data"` ChainID uint64 `bson:"chain_id" json:"chain_id"` AgentContractAddress string `bson:"agent_contract_address" json:"agent_contract_address"` TxHash string `bson:"tx_hash" json:"tx_hash"` Uri string `bson:"uri" json:"uri"` Thumbnail string `bson:"thumbnail" json:"thumbnail"` TokenChainId uint64 `json:"token_chain_id" ` TokenImage string `json:"token_image" bson:"token_image"` Ticker string `json:"ticker" bson:"ticker"` TokenName string `json:"token_name" bson:"token_name"` TokenAddress string `bson:"token_address" json:"token_address"` CreateTokenMode models.CreateTokenModeType `bson:"create_token_mode" json:"create_token_mode"` Status models.AssistantStatus `bson:"status" json:"status"` SystemReminder string `bson:"system_reminder" json:"system_reminder"` AgentBaseModel string `bson:"open_ai_assistant_model" json:"agent_base_model"` SystemContent string `bson:"system_content" json:"system_content"` TwitterID string `bson:"twitter_id" json:"twitter_id"` TwitterName string `bson:"twitter_name" json:"twitter_name"` TwitterUserName string `bson:"twitter_username" json:"twitter_username"` TwitterAvatar string `bson:"twitter_avatar" json:"twitter_avatar"` AssistantCharacter `bson:",inline"` VerifiedNFTOwner bool `json:"verified_nft_owner"` NFTAddress string `json:"nft_address"` NFTTokenID string `json:"nft_token_id"` NFTTokenImage string `json:"nft_token_image"` NFTOwnerAddress string `json:"nft_owner_address"` NFTSignature string `json:"nft_signature" bson:"nft_signature"` NFTSignMessage string `json:"nft_sign_message" bson:"nft_sign_message"` NFTDelegateAddress string `json:"nft_delegate_address" bson:"nft_delegate_address"` NFTPublicKey string `json:"nft_public_key" bson:"nft_public_key"` SocialInfo []*models.SocialInfo `json:"social_info" bson:"social_info"` TwinTwitterUsernames string `json:"twin_twitter_usernames"` TwinStatus string `json:"twin_status"` TwinTrainingProgress float64 `json:"twin_training_progress"` TwinTrainingMessage string `json:"twin_training_message"` GraphData string `json:"graph_data"` }
///////////////
type AssistantsReq ¶
type AssistantsReq struct { ID uint `json:"id"` AgentID string `json:"agent_id"` AgentName string `json:"agent_name"` Creator string `json:"creator"` AgentContractAddress string `json:"agent_contract_address"` AgentContractID string `json:"agent_contract_id"` Minter string `json:"minter"` MetaData string `json:"meta_data"` ChainID uint64 `json:"chain_id"` Thumbnail string `json:"thumbnail"` CreateTokenMode models.CreateTokenModeType `json:"create_token_mode"` Status models.AssistantStatus `json:"status"` UserPrompt string `json:"user_prompt"` SystemContent string `json:"system_content"` Ticker string `json:"ticker"` TokenName string `json:"token_name"` TokenAddress string `json:"token_address"` TokenImageUrl string `json:"token_image_url"` TokenDesc string `json:"token_desc"` AssistantCharacter `json:",inline"` TokenChainId string `json:"token_chain_id"` SocialInfo []*models.SocialInfo `json:"social_info"` AgentType models.AgentInfoAgentType `json:"agent_type"` ConfigData string `json:"config_data"` VerifiedNFTOwner bool `json:"verified_nft_owner"` NFTAddress string `json:"nft_address"` NFTTokenID string `json:"nft_token_id"` NFTTokenImage string `json:"nft_token_image"` NFTOwnerAddress string `json:"nft_owner_address"` NFTSignature string `json:"nft_signature"` NFTSignMessage string `json:"nft_sign_message"` NFTDelegateAddress string `json:"nft_delegate_address"` NFTPublicKey string `json:"nft_public_key"` AgentBaseModel string `json:"agent_base_model"` TwinTwitterUsernames string `json:"twin_twitter_usernames"` MissionTopics string `json:"mission_topics"` CreateKnowledgeRequest *CreateKnowledgeRequest `json:"create_knowledge_request"` KbIds []uint `json:"kb_ids"` SourceUrl string `json:"source_url"` AuthenUrl string `json:"authen_url"` MinFeeToUse numeric.BigFloat `json:"min_fee_to_use"` Worker string `json:"worker"` DependAgents string `json:"depend_agents"` RequiredWallet *bool `json:"required_wallet"` IsOnchain *bool `json:"is_onchain"` }
func (*AssistantsReq) GetAssistantCharacter ¶
func (m *AssistantsReq) GetAssistantCharacter(character interface{}) string
type Cat20TransferTransactionResp ¶
type Cat20TransferTransactionResp struct { TokenId string `json:"token_id"` ReceiverAddress string `json:"receiver_address"` SendAmount numeric.BigFloat `json:"send_amount"` SenderAddress string `json:"sender_address"` TxHash string `json:"tx_hash"` TxAt *time.Time `json:"tx_at"` Error string `json:"error"` }
func NewCat20TransferTransactionResp ¶
func NewCat20TransferTransactionResp(m *models.Cat20TransferTransaction) *Cat20TransferTransactionResp
type ChatCompletionRequest ¶
type ChatCompletionRequest struct { openai.ChatCompletionRequest `json:",inline"` ChainId uint64 `json:"chain_id"` UserAddress string `json:"user_address"` InternalServer bool `json:"internal_server"` MetaData *WakeupRequestMetadata `json:"meta_data"` }
type CreateKnowledgeRequest ¶
type CreateKnowledgeRequest struct { Name string `json:"name" form:"name"` Description string `json:"description" form:"description"` NetworkID uint64 `json:"network_id" form:"network_id"` AgentInfoId uint `json:"agent_info_id" form:"-"` Files []*File `json:"files" form:"files"` UserAddress string `json:"user_address" form:"-"` DepositAddress string `json:"-" form:"-"` ThumbnailUrl string `json:"thumbnail_url" form:"thumbnail_url"` SolanaDepositAddress string `json:"-" form:"-"` DomainUrl string `json:"domain_url" form:"domain_url"` }
type DataChartResp ¶
type DataUploadToLightHouse ¶
type DataUploadToLightHouse struct {
Content string `json:"content"`
}
type ExternalWalletOrderReq ¶
type ExternalWalletOrderReq struct { Action models.ExternalWalletOrderType `json:"action"` Mint string `json:"mint"` Amount float64 `json:"amount"` Destination string `json:"destination"` }
type ExternalWalletOrderResp ¶
type ExternalWalletOrderResp struct { ID uint `json:"id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` ExternalWalletID uint `json:"external_wallet_id"` Type models.ExternalWalletOrderType `json:"type"` TokenAddress string `json:"token_address"` Destination string `json:"destination"` AmountIn numeric.BigFloat `json:"amount_in"` AmountOut numeric.BigFloat `json:"amount_out"` TxHash string `json:"tx_hash"` Status models.ExternalWalletOrderStatus `json:"status"` Error string `json:"error"` }
func NewExternalWalletOrderResp ¶
func NewExternalWalletOrderResp(m *models.ExternalWalletOrder) *ExternalWalletOrderResp
func NewExternalWalletOrderRespArr ¶
func NewExternalWalletOrderRespArr(arr []*models.ExternalWalletOrder) []*ExternalWalletOrderResp
type ExternalWalletResp ¶
type ExternalWalletTokenResp ¶
type ExternalWalletTokenResp struct { ID uint `json:"id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` Symbol string `json:"symbol"` Name string `json:"name"` TokenAddress string `json:"token_address"` Enabled bool `json:"enabled"` Decimals int `json:"decimals"` CoingeckoSlug string `json:"coingecko_slug"` }
func NewExternalWalletTokenResp ¶
func NewExternalWalletTokenResp(m *models.ExternalWalletToken) *ExternalWalletTokenResp
func NewExternalWalletTokenRespArr ¶
func NewExternalWalletTokenRespArr(arr []*models.ExternalWalletToken) []*ExternalWalletTokenResp
type HttpEventStreamResponse ¶
type HttpEventStreamResponse struct {
Data []byte
}
func (HttpEventStreamResponse) ToOutPut ¶
func (ev HttpEventStreamResponse) ToOutPut() []byte
type KnowledgeBase ¶
type KnowledgeBase struct { ID uint `json:"id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` Status int64 `json:"status"` UserAddress string `json:"user_address"` DepositAddress string `json:"deposit_address"` SolanaDepositAddress string `json:"solana_deposit_address"` DepositTxHash string `json:"deposit_tx_hash"` Name string `json:"name"` Description string `json:"description"` AgentInfoId uint `json:"agent_info_id"` ResultUrl string `json:"result_url"` NetworkID uint64 `json:"network_id"` Fee float64 `json:"fee"` KnowledgeBaseFiles []*KnowledgeBaseFile `json:"knowledge_base_files"` KBTokenContractAddress string `json:"kb_token_contract_address"` KBTokenID string `json:"kb_token_id"` KbId string `json:"kb_id"` ThumbnailUrl string `json:"thumbnail_url"` LastErrorMessage string `json:"last_error_message"` UsageFee float64 `json:"usage_fee"` UserCount int64 `json:"user_count"` UsageCount int64 `json:"usage_count"` ChargeMore float64 `json:"charge_more"` FilecoinHash string `json:"filecoin_hash"` DomainUrl string `json:"domain_url"` }
func NewKnowledgeBaseResp ¶
func NewKnowledgeBaseResp(m *models.KnowledgeBase) *KnowledgeBase
type KnowledgeBaseFile ¶
type KnowledgeBaseFile struct { Id uint `json:"id"` KnowledgeBaseId uint `json:"knowledge_base_id"` FileUrl string `json:"file_url"` FileName string `json:"file_name"` FileSize uint `json:"file_size"` FilecoinHash string `json:"filecoin_hash"` Status int `json:"status"` LastErrorMessage string `json:"last_error_message"` }
type KnowledgeBaseInfo ¶
type KnowledgeBaseInfo struct { Type KnowledgeBaseInfoType `json:"type"` Title string `json:"title"` FileDescription string `json:"file_description"` Creator string `json:"creator"` }
type KnowledgeBaseInfoType ¶
type KnowledgeBaseInfoType string
var KnowledgeBaseInfoTypePrivate KnowledgeBaseInfoType = "private"
var KnowledgeBaseInfoTypePublic KnowledgeBaseInfoType = "public"
type MemeBurnHistoryResp ¶
type MemeBurnHistoryResp struct { TxHash string `json:"tx_hash"` TxAt time.Time `json:"tx_at"` Value numeric.BigFloat `json:"value"` ContractAddress string `json:"contract_address"` Name string `json:"token_name"` Ticker string `json:"token_ticker"` Image string `json:"token_image"` TwitterName string `json:"twitter_name"` TwitterUsername string `json:"twitter_username"` TwitterAvatar string `json:"twitter_avatar"` UserTwitterID string `json:"user_twitter_id"` UserAddress string `json:"user_address"` UserName string `json:"user_name"` ImageURL string `json:"user_image_url"` }
func NewMemeBurnHistoryResp ¶
func NewMemeBurnHistoryResp(m *models.TokenTransfer) *MemeBurnHistoryResp
func NewMemeBurnHistoryRespArry ¶
func NewMemeBurnHistoryRespArry(arr []*models.TokenTransfer) []*MemeBurnHistoryResp
type MemeFollowersResp ¶
type MemeFollowersResp struct { UserID uint `json:"user_id"` User *UserResp `json:"user"` FollowUserID uint `json:"follow_user_id"` FollowUser *UserResp `json:"follow_user"` }
////
func NewMemeFollowersResp ¶
func NewMemeFollowersResp(m *models.MemeFollowers) *MemeFollowersResp
func NewMemeFollowersRespArray ¶
func NewMemeFollowersRespArray(arr []*models.MemeFollowers) []*MemeFollowersResp
type MemeNotificationResp ¶
type MemeNotificationResp struct { ID uint `json:"id"` CreatedAt time.Time `json:"created_at"` MemeID uint `json:"meme_id"` Meme *MemeResp `json:"meme"` FollowerID uint `json:"follower_id"` Follower *UserResp `json:"follower"` NotiType models.NotiType `json:"noti_type"` Value string `json:"value"` Seen bool `json:"seen"` }
///
func NewMemeNotificationResp ¶
func NewMemeNotificationResp(m *models.MemeNotification) *MemeNotificationResp
func NewMemeNotificationRespArry ¶
func NewMemeNotificationRespArry(arr []*models.MemeNotification) []*MemeNotificationResp
type MemeReq ¶
type MemeReq struct { Name string `json:"name"` Ticker string `json:"ticker"` Description string `json:"description"` Image string `json:"image"` Twitter string `json:"twitter"` Telegram string `json:"telegram"` Website string `json:"website"` TxHash string `json:"tx_hash"` SystemPrompt string `json:"system_prompt"` OnchainImage bool `json:"onchain_image"` TotalSuply numeric.BigFloat `json:"total_suply"` Decimals uint64 `json:"decimals"` Cat20Token string `json:"cat20_token"` BtcPair bool `json:"bt_pair"` FbPair bool `json:"fb_pair"` AgentInfoID uint `json:"agent_info_id"` BaseTokenSymbol string `json:"base_token_symbol"` }
type MemeResp ¶
type MemeResp struct { ID uint `json:"id"` NetworkID uint64 `json:"network_id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` OwnerAddress string `json:"owner_address"` Owner *UserResp `json:"owner"` TokenAddress string `json:"token_address"` TokenId string `json:"token_id"` Name string `json:"name"` Description string `json:"description"` Ticker string `json:"ticker"` Image string `json:"image"` Twitter string `json:"twitter"` Telegram string `json:"telegram"` Website string `json:"website"` TxHash string `json:"tx_hash"` Status string `json:"status"` ReplyCount uint64 `json:"reply_count"` LastReply *time.Time `json:"last_reply"` Pool string `json:"pool"` UniswapPool string `json:"uniswap_pool"` Supply numeric.BigFloat `json:"supply"` Price numeric.BigFloat `json:"price"` PriceUsd numeric.BigFloat `json:"price_usd"` PriceLast24h numeric.BigFloat `json:"price_last24h"` VolumeLast24h numeric.BigFloat `json:"volume_last24h"` TotalVolume numeric.BigFloat `json:"total_volume"` BaseTokenSymbol string `json:"base_token_symbol"` Percent float64 `json:"percent"` Decimals uint64 `json:"decimals"` PoolFee uint `json:"pool_fee"` MarketCap numeric.BigFloat `json:"market_cap"` TotalBalance numeric.BigFloat `json:"total_balance"` SystemPrompt string `json:"system_prompt"` Holders int `json:"holders"` AgentInfo *AgentInfoResp `json:"agent_info"` LatestTwitterPost *AgentTwitterPostResp `json:"latest_twitter_post"` DexUrl string `json:"dex_url"` TradeUrl string `json:"trade_url"` DexId string `json:"dex_id"` }
func NewMemeFromTokenInfoResp ¶
func NewMemeFromTokenInfoResp(m *models.AgentTokenInfo, agentInfo *models.AgentInfo) *MemeResp
func NewMemeResp ¶
func NewMemeRespArray ¶
func NewMemeRespWithToken ¶
type MemeThreadReq ¶
type MemeThreadResp ¶
type MemeThreadResp struct { ID uint `json:"id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` UserID uint `json:"user_id"` User *UserResp `json:"user"` MemeID uint `json:"meme_id"` Meme *MemeResp `json:"meme"` Text string `json:"text"` ImageUrl string `json:"image_url"` Likes int64 `json:"likes"` ParentThreadID uint `json:"parent_thread_id"` Liked bool `json:"liked"` }
func NewMemeThreadResp ¶
func NewMemeThreadResp(m *models.MemeThreads) *MemeThreadResp
func NewMemeThreadRespArry ¶
func NewMemeThreadRespArry(arr []*models.MemeThreads) []*MemeThreadResp
type MemeTradeHistoryResp ¶
type MemeTradeHistoryResp struct { TxHash string `json:"tx_hash"` TxAt time.Time `json:"tx_at"` RecipientAddress string `json:"recipient_address"` RecipientUser *UserResp `json:"recipient_user"` Price numeric.BigFloat `json:"price"` MemeTokenAddress string `json:"meme_token_address"` MemeID uint `json:"meme_id"` Meme *MemeResp `json:"meme"` AmountIn numeric.BigFloat `json:"amount_in"` AmountOut numeric.BigFloat `json:"amount_out"` BaseTokenSymbol string `json:"base_token_symbol"` BaseTokenPrice numeric.BigFloat `json:"base_token_price"` BaseAmount numeric.BigFloat `json:"base_amount"` TokenAmount numeric.BigFloat `json:"token_amount"` IsBuy bool `json:"is_buy"` }
func NewTradeHistoryResp ¶
func NewTradeHistoryResp(m *models.MemeTradeHistory) *MemeTradeHistoryResp
func NewTradeHistoryRespArry ¶
func NewTradeHistoryRespArry(arr []*models.MemeTradeHistory) []*MemeTradeHistoryResp
type MissionParam ¶
type MissionStoreHistoryResp ¶
type MissionStoreHistoryResp struct { ID uint `json:"id"` CreatedAt time.Time `json:"created_at"` UserAddress string `json:"user_address"` MissionStoreID uint `json:"mission_store_id"` MissionStore *MissionStoreResp `json:"mission_store"` TxHash string `json:"tx_hash"` EventId string `json:"event_id"` StartedAt *time.Time `json:"started_at"` ExpiresAt *time.Time `json:"expires_at"` IsRated bool `json:"is_rated"` }
func NewMissionStoreHistoryResp ¶
func NewMissionStoreHistoryResp(h *models.MissionStoreHistory) *MissionStoreHistoryResp
func NewMissionStoreHistoryRespArray ¶
func NewMissionStoreHistoryRespArray(arr []*models.MissionStoreHistory) []*MissionStoreHistoryResp
type MissionStoreRatingReq ¶
type MissionStoreRatingResp ¶
type MissionStoreRatingResp struct { ID uint `json:"id"` CreatedAt time.Time `json:"created_at"` UserAddress string `json:"user_address"` MissionStoreID uint `json:"mission_store_id"` MissionStore *MissionStoreResp `json:"mission_store"` Rating float64 `json:"rating"` Comment string `json:"comment"` }
func NewMissionStoreRatingResp ¶
func NewMissionStoreRatingResp(r *models.MissionStoreRating) *MissionStoreRatingResp
func NewMissionStoreRatingRespArray ¶
func NewMissionStoreRatingRespArray(arr []*models.MissionStoreRating) []*MissionStoreRatingResp
type MissionStoreReq ¶
type MissionStoreReq struct { ID uint `json:"id"` OwnerAddress string `json:"owner_address"` Name string `json:"name"` Description string `json:"description"` Prompt string `json:"prompt"` Price uint `json:"price"` DurationDay uint `json:"duration_day"` ToolList string `json:"tool_list"` Icon string `json:"icon"` OutputType string `json:"output_type"` Params []*MissionParam `json:"params"` }
type MissionStoreResp ¶
type MissionStoreResp struct { ID uint `json:"id"` CreatedAt time.Time `json:"created_at"` Name string `json:"name"` Description string `json:"description"` UserPrompt string `json:"user_prompt"` Price uint `json:"price"` OwnerAddress string `json:"owner_address"` ToolList string `json:"tool_list"` DepositAddress string `json:"deposit_address"` DurationDay uint `json:"duration_day"` Rating float64 `json:"rating"` NumRating uint `json:"num_rating"` NumUsed uint `json:"num_used"` Icon string `json:"icon"` OutputType string `json:"output_type"` Params []*MissionParam `json:"params"` }
func NewMissionStoreResp ¶
func NewMissionStoreResp(m *models.MissionStore) *MissionStoreResp
func NewMissionStoreRespArray ¶
func NewMissionStoreRespArray(arr []*models.MissionStore) []*MissionStoreResp
type ParamWakeupRequest ¶
type ParamWakeupRequest struct {
QuoteUsername string `json:"quote_username"`
}
type PreviewRequest ¶
type PumpFunTradeResp ¶
type ShareHolderResp ¶
type ShareHolderResp struct {}
type SignatureReq ¶
type SignatureTimestampReq ¶
type SolanaTokenBalanceResp ¶
type TokenHolderResp ¶
type TokenHolderResp struct { ContractAddress string `json:"token_address"` Address string `json:"user_address"` UserName string `json:"user_name"` UserImageURL string `json:"user_image_url"` Balance string `json:"balance"` MemeName string `json:"meme_name"` MemeTicker string `json:"meme_ticker"` MemeImage string `json:"meme_image"` MemePrice numeric.BigFloat `json:"meme_price"` MemePriceUsd numeric.BigFloat `json:"meme_price_usd"` MemeBaseTokenSymbol string `json:"meme_base_token_symbol"` }
func NewTokenHolderResp ¶
func NewTokenHolderResp(m *models.Erc20Holder) *TokenHolderResp
func NewTokenHolderRespArray ¶
func NewTokenHolderRespArray(arr []*models.Erc20Holder) []*TokenHolderResp
type TransferCatReq ¶
type TwitterInfoResp ¶
type TwitterInfoResp struct { TwitterID string `json:"twitter_id"` TwitterAvatar string `json:"twitter_avatar"` TwitterUsername string `json:"twitter_username"` TwitterName string `json:"twitter_name"` Description string `json:"description"` ReLink bool `json:"re_link"` }
func NewTwitterInfoResp ¶
func NewTwitterInfoResp(m *models.TwitterInfo) *TwitterInfoResp
func NewTwitterUserResp ¶
func NewTwitterUserResp(m *models.TwitterUser) *TwitterInfoResp
type TwitterTweetLikedResp ¶
type TwitterTweetLikedResp struct { LikedUserID string `json:"liked_user_id"` TweetID string `json:"tweet_id"` TwitterID string `json:"twitter_id"` LikeCount int `json:"like_count"` RetweetCount int `json:"retweet_count"` ReplyCount int `json:"reply_count"` QuoteCount int `json:"quote_count"` ImpressionCount int `json:"impression_count"` FullText string `json:"full_text"` PostedAt time.Time `json:"posted_at"` InReplyToUserID string `json:"in_reply_to_user_id"` InReplyToTweetID string `json:"in_reply_to_tweet_id"` IsReply bool `json:"is_reply"` OriginalText string `json:"original_text"` // Retweet-related fields IsRetweet bool `json:"is_retweet"` RepostTweetID string `json:"repost_tweet_id"` RepostText string `json:"repost_text"` // Quote-related fields IsQuote bool `json:"is_quote"` QuoteTweetID string `json:"quote_tweet_id"` QuoteText string `json:"quote_text"` }
func NewTwitterTweetLikedResp ¶
func NewTwitterTweetLikedResp(m *models.TwitterTweetLiked) *TwitterTweetLikedResp
func NewTwitterTweetLikedRespArr ¶
func NewTwitterTweetLikedRespArr(arr []*models.TwitterTweetLiked) []*TwitterTweetLikedResp
type UpdateAgentAssistantInContractRequest ¶
type UpdateAgentAssistantInContractRequest struct { ID uint `json:"id"` AgentID string `json:"agent_id"` HashName string `json:"hash_name"` HashSystemPrompt string `json:"hash_system_prompt"` SignatureName string `json:"signature_name"` SignatureSystemPrompt string `json:"signature_system_prompt"` RandomNonceName string `json:"random_nonce_name"` RandomNonceSystemPrompt string `json:"random_nonce_system_prompt"` }
type UpdateKnowledgeBaseWithSignatureRequest ¶
type UpdateKnowledgeBaseWithSignatureRequest struct { KnowledgeBaseId string `json:"knowledge_base_id"` NetworkID string `json:"network_id"` // sysPrompt []byte, promptKey string, promptIdx *big.Int, randomNonce *big.Int, signature []byte HashData string `json:"hash_data"` PromptKeyData string `json:"prompt_key_data"` RandomNonceData string `json:"random_nonce_data"` SignatureData string `json:"signature_data"` }
type UpdateKnowledgeRequest ¶
type UpdateKnowledgeRequest struct { Name string `json:"name" form:"name"` Description string `json:"description" form:"description"` NetworkID uint64 `json:"network_id"` UserAddress string `json:"user_address" form:"-"` Files []*File `json:"files" form:"files"` DomainUrl string `json:"domain_url" form:"domain_url"` }
type UpdateTwinStatusRequest ¶
type UpdateTwinStatusRequest struct { AgentID string `json:"agent_id"` TwinStatus string `json:"twin_status"` KnowledgeBaseID string `json:"knowledge_base_id"` SystemPrompt string `json:"system_prompt"` TwinTrainingProgress float64 `json:"twin_training_progress"` TwinTrainingMessage string `json:"twin_training_message"` }
type UserProfileReq ¶
type UserResp ¶
type UserResp struct { ID uint `json:"id"` CreatedAt time.Time `json:"created_at"` NetworkID uint64 `json:"network_id"` Address string `json:"address"` Username string `json:"username"` SubscriptionNum uint `json:"subscription_num"` Description string `json:"description"` ImageURL string `json:"image_url"` Social map[string]interface{} `json:"social"` Price30d numeric.BigFloat `json:"price30d"` Price90d numeric.BigFloat `json:"price90d"` Subscribed bool `json:"subscribed"` TotalLike uint `json:"total_like"` TotalPost uint `json:"total_post"` TotalMessage uint `json:"total_message"` TipPayment numeric.BigFloat `json:"tip_payment"` TipReceive numeric.BigFloat `json:"tip_receive"` TwitterID string `json:"twitter_id"` TwitterAvatar string `json:"twitter_avatar"` TwitterUsername string `json:"twitter_username"` TwitterName string `json:"twitter_name"` EthAddress string `json:"eth_address"` TronAddress string `json:"tron_address"` SolAddress string `json:"sol_address"` EaiBalance numeric.BigFloat `json:"eai_balance"` }
func NewUserResp ¶
func NewUserRespArr ¶
type UserTransactionResp ¶
type UserTransactionResp struct { ID uint `json:"id"` CreatedAt time.Time `json:"created_at"` NetworkID uint64 `json:"network_id"` UserID uint `json:"user_id"` Type models.UserTransactionType `json:"type"` FromAddress string `json:"from_address"` ToAddress string `json:"to_address"` TxHash string `json:"tx_hash"` Amount numeric.BigFloat `json:"amount"` Status models.UserTransactionStatus `json:"status"` }
func NewUserTransactionResp ¶
func NewUserTransactionResp(m *models.UserTransaction) *UserTransactionResp
func NewUserTransactionRespArry ¶
func NewUserTransactionRespArry(arr []*models.UserTransaction) []*UserTransactionResp
type WakeupRequestMetadata ¶
type WakeupRequestMetadata struct { TwitterId string `json:"twitter_id"` TwitterUsername string `json:"twitter_username"` AgentContractId string `json:"agent_contract_id"` ChainId string `json:"chain_id"` SystemReminder string `json:"system_reminder"` Params ParamWakeupRequest `json:"params"` RefID string `json:"ref_id"` ListKnowledgeBase []*KnowledgeBaseInfo `json:"list_knowledge_base"` }
type WalletActionTradeResp ¶
type WithdrawCrossChainReq ¶
type WithdrawCrossChainReq struct {
TxHash string `json:"tx_hash"`
}
//
Source Files
¶
- agent_assistant_serializers.go
- agent_library.go
- agent_serializers.go
- agent_store.go
- agent_token_serializers.go
- api_key_subscription.go
- external_wallet_serializers.go
- infer_req.go
- knowledge_serializers.go
- launchpad_serializers.go
- mission_store.go
- preview_serializers.go
- reqs.go
- resps.go
- token_holder_serializers.go
- user_serializers.go
- user_transaction.go
Click to show internal directories.
Click to hide internal directories.