models

package
v0.0.0-...-baa49d7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseTokenSymbolBVM BaseTokenSymbol = "BVM"
	BaseTokenSymbolBTC BaseTokenSymbol = "BTC"
	BaseTokenSymbolETH BaseTokenSymbol = "ETH"
	BaseTokenSymbolFB  BaseTokenSymbol = "FB"
	BaseTokenSymbolEAI BaseTokenSymbol = "EAI"
	BaseTokenSymbolSOL BaseTokenSymbol = "SOL"

	TokenSetupEnumAutoCreate     TokenSetupEnum = "auto_create"
	TokenSetupEnumAutoCreateRune TokenSetupEnum = "auto_create_rune"
	TokenSetupEnumNoToken        TokenSetupEnum = "no_token"
	TokenSetupEnumLinkExisting   TokenSetupEnum = "link_existing"

	ExternalAgentTypeFarcaster ExternalAgentType = "farcaster"
)
View Source
const (
	AssistantStatusPending  AssistantStatus = "pending"
	AssistantStatusMinting  AssistantStatus = "minting"
	AssistantStatusUpdating AssistantStatus = "updating"
	AssistantStatusReady    AssistantStatus = "ready"
	AssistantStatusFailed   AssistantStatus = "failed"

	CreateTokenModeTypeNoToken      CreateTokenModeType = "no_token"
	CreateTokenModeTypeAutoCreate   CreateTokenModeType = "auto_create"
	CreateTokenModeTypeLinkExisting CreateTokenModeType = "link_existing"
)
View Source
const (
	AgentTwitterPostTypePost     AgentTwitterPostType = "post"
	AgentTwitterPostTypeReview   AgentTwitterPostType = "review"
	AgentTwitterPostTypeUnReview AgentTwitterPostType = "unreview"

	AgentTwitterPostStatusNew              AgentTwitterPostStatus = "new"
	AgentTwitterPostWaitSubmitVideoInfer   AgentTwitterPostStatus = "wait_submit_video_infer"
	AgentTwitterPostStatusInvalid          AgentTwitterPostStatus = "invalid"
	AgentTwitterConversationInvalid        AgentTwitterPostStatus = "conversation_invalid"
	AgentTwitterPostStatusValid            AgentTwitterPostStatus = "valid"
	AgentTwitterPostStatusInferNew         AgentTwitterPostStatus = "infer_new"
	AgentTwitterPostStatusInferSubmitted   AgentTwitterPostStatus = "infer_submitted"
	AgentTwitterPostStatusInferError       AgentTwitterPostStatus = "infer_error"
	AgentTwitterPostStatusInferFailed      AgentTwitterPostStatus = "infer_failed"
	AgentTwitterPostStatusInferResolved    AgentTwitterPostStatus = "infer_resolved"
	AgentTwitterPostStatusReplied          AgentTwitterPostStatus = "replied"
	AgentTwitterPostStatusRepliedError     AgentTwitterPostStatus = "replied_error"
	AgentTwitterPostStatusRepliedCancelled AgentTwitterPostStatus = "replied_cancelled"
	AgentTwitterPostStatusReposted         AgentTwitterPostStatus = "reposted"
	AgentTwitterPostStatusRepostedError    AgentTwitterPostStatus = "reposted_error"
)
View Source
const (
	AgentEaiTopupTypeDeposit         AgentEaiTopupType = "deposit"
	AgentEaiTopupTypeFaucet          AgentEaiTopupType = "faucet"
	AgentEaiTopupTypeSpent           AgentEaiTopupType = "spent"
	AgentEaiTopupTypeRefund          AgentEaiTopupType = "refund"
	AgentEaiTopupTypeRefundTrainFail AgentEaiTopupType = "refund_train_fail"
	AgentEaiTopupTypeTransfer        AgentEaiTopupType = "transfer"

	AgentEaiTopupStatusNew        AgentEaiTopupStatus = "new"
	AgentEaiTopupStatusProcessing AgentEaiTopupStatus = "processing"
	AgentEaiTopupStatusDone       AgentEaiTopupStatus = "done"
	AgentEaiTopupStatusError      AgentEaiTopupStatus = "error"
	AgentEaiTopupStatusCancelled  AgentEaiTopupStatus = "cancelled"
)
View Source
const (
	AgentTipHistoryStatusDone AgentTipHistoryStatus = "done"

	AgentTipHistorySymbolBTC AgentTipHistorySymbol = "BTC"
	AgentTipHistorySymbolETH AgentTipHistorySymbol = "ETH"
	AgentTipHistorySymbolSOL AgentTipHistorySymbol = "SOL"
)
View Source
const (
	AgentSnapshotPostActionTypeTweet               AgentSnapshotPostActionType = "tweet"
	AgentSnapshotPostActionTypeRetweet             AgentSnapshotPostActionType = "retweet"
	AgentSnapshotPostActionTypeFollow              AgentSnapshotPostActionType = "follow"
	AgentSnapshotPostActionTypeReply               AgentSnapshotPostActionType = "reply"
	AgentSnapshotPostActionTypeReplyMulti          AgentSnapshotPostActionType = "reply_multi"
	AgentSnapshotPostActionTypeReplyMultiUnlimited AgentSnapshotPostActionType = "reply_multi_unlimited"
	AgentSnapshotPostActionTypeCreateToken         AgentSnapshotPostActionType = "create_token"
	AgentSnapshotPostActionTypeCreateAgent         AgentSnapshotPostActionType = "create_agent"
	AgentSnapshotPostActionTypeGenerateVideo       AgentSnapshotPostActionType = "generate_video"
	AgentSnapshotPostActionTypeQuoteTweet          AgentSnapshotPostActionType = "quote_tweet"
	AgentSnapshotPostActionTypeInscribeTweet       AgentSnapshotPostActionType = "inscribe_tweet"
	AgentSnapshotPostActionTypeTweetV2             AgentSnapshotPostActionType = "tweet_v2"
	AgentSnapshotPostActionTypeTweetMulti          AgentSnapshotPostActionType = "tweet_multi"
	AgentSnapshotPostActionTypeCreateLaunchpad     AgentSnapshotPostActionType = "create_launchpad"
	AgentSnapshotPostActionTypeUnknown             AgentSnapshotPostActionType = "unknown"

	AgentSnapshotPostActionTypeTradeHold     AgentSnapshotPostActionType = "hold"
	AgentSnapshotPostActionTypeTradeBuy      AgentSnapshotPostActionType = "buy"
	AgentSnapshotPostActionTypeTradeSell     AgentSnapshotPostActionType = "sell"
	AgentSnapshotPostActionTypeTradeAnalytic AgentSnapshotPostActionType = "analytic"
	AgentSnapshotPostActionTypeLaunchpadJoin AgentSnapshotPostActionType = "launchpad_join"

	AgentSnapshotPostActionStatusNew            AgentSnapshotPostActionStatus = "new"
	AgentSnapshotPostActionStatusDone           AgentSnapshotPostActionStatus = "done"
	AgentSnapshotPostActionStatusDone_          AgentSnapshotPostActionStatus = "done_"
	AgentSnapshotPostActionStatusDoneError      AgentSnapshotPostActionStatus = "done_error"
	AgentSnapshotPostActionStatusDoneDuplicated AgentSnapshotPostActionStatus = "done_duplicated"
	AgentSnapshotPostActionStatusDoneCancelled  AgentSnapshotPostActionStatus = "done_cancelled"
	AgentSnapshotPostActionStatusInvalid        AgentSnapshotPostActionStatus = "invalid"
	AgentSnapshotPostActionStatusTesting        AgentSnapshotPostActionStatus = "testing"
	AgentSnapshotPostActionStatusInscribing     AgentSnapshotPostActionStatus = "inscribing"
	AgentSnapshotPostActionStatusPaid           AgentSnapshotPostActionStatus = "paid"
)
View Source
const (
	AgentStoreInstallStatusNew  AgentStoreInstallStatus = "new"
	AgentStoreInstallStatusDone AgentStoreInstallStatus = "done"
	AgentStoreInstallTypeAgent  AgentStoreInstallType   = "agent"
	AgentStoreInstallTypeUser   AgentStoreInstallType   = "user"

	AgentStoreTypeStore AgentStoreType = "store"
	AgentStoreTypeInfra AgentStoreType = "infra"

	AgentStoreStatusNew       AgentStoreStatus = "new"
	AgentStoreStatusActived   AgentStoreStatus = "actived"
	AgentStoreStatusInActived AgentStoreStatus = "inactived"
)
View Source
const (
	DepositStatusPending DepositStatus = "pending"
	DepositStatusDone    DepositStatus = "done"

	PackageTypeFree  PackageType = "free"
	PackageTypeBasic PackageType = "basic"
	PackageTypePro   PackageType = "pro"
)
View Source
const (
	ExternalWalletOrderTypeBuy      ExternalWalletOrderType = "buy"
	ExternalWalletOrderTypeSell     ExternalWalletOrderType = "sell"
	ExternalWalletOrderTypeWithdraw ExternalWalletOrderType = "withdraw"

	ExternalWalletOrderStatusNew   ExternalWalletOrderStatus = "new"
	ExternalWalletOrderStatusDone  ExternalWalletOrderStatus = "done"
	ExternalWalletOrderStatusError ExternalWalletOrderStatus = "error"
)
View Source
const (
	MillisecondText = "millisecond"
	SecondText      = "second"
	MinuteText      = "minute"
	HourText        = "hour"
)
View Source
const (
	LaunchpadStatusNew          LaunchpadStatus = "new"
	LaunchpadStatusRunning      LaunchpadStatus = "running"
	LaunchpadStatusEnd          LaunchpadStatus = "end"
	LaunchpadStatusFailed       LaunchpadStatus = "failed"
	LaunchpadStatusDone         LaunchpadStatus = "done"
	LaunchpadStatusCancelled    LaunchpadStatus = "cancelled"
	LaunchpadStatusTokenError   LaunchpadStatus = "token_error"
	LaunchpadStatusTokenCreated LaunchpadStatus = "token_created"
	LaunchpadStatusSettleError  LaunchpadStatus = "settle_error"
	LaunchpadStatusSettled      LaunchpadStatus = "settled"
	LaunchpadStatusTge          LaunchpadStatus = "tge"
	LaunchpadStatusPoolError    LaunchpadStatus = "pool_error"

	LaunchpadTier1 LaunchpadTier = "Tier 1"
	LaunchpadTier2 LaunchpadTier = "Tier 2"
	LaunchpadTier3 LaunchpadTier = "Tier 3"
)
View Source
const (
	LaunchpadTransactionTypeDeposit LaunchpadTransactionType = "deposit"
	LaunchpadTransactionTypeRefund  LaunchpadTransactionType = "refund"

	LaunchpadTransactionStatusDone LaunchpadTransactionStatus = "done"
)
View Source
const (
	MemeStatusPending          MemeStatus = "pending"
	MemeStatusNew              MemeStatus = "new"
	MemeStatusCreated          MemeStatus = "created"
	MemeStatusAddPoolLevel0    MemeStatus = "add_pool_0"
	MemeStatusAddPoolLevel1    MemeStatus = "add_pool_1"
	MemeStatusReachedMC        MemeStatus = "reached_mc"
	MemeStatusRemovePoolLelve1 MemeStatus = "remove_pool_1"
	MemeStatusAddPoolLevel2    MemeStatus = "add_pool_2"
	MemeStatusAddPoolExternal  MemeStatus = "add_pool_external"

	MemeCatStatusProcessing MemeCatStatus = "processing"
	MemeCatStatusDone       MemeCatStatus = "done"

	ChartTypeHour1 ChartType = "1h"
	ChartTypeHour4 ChartType = "4h"
	ChartTypeDay   ChartType = "1d"
	ChartTypeMin30 ChartType = "30min"
	ChartTypeMin5  ChartType = "5min"

	TransferStatusPending TransferStatus = "pending"
	TransferStatusDone    TransferStatus = "done"

	NotiTypeNewMeme     NotiType = "new_meme"
	NotiTypePrice       NotiType = "price_pump"
	NotiTypeReachMC     NotiType = "reached_mc"
	NotiTypeTradeOnNaka NotiType = "trade_on_naka"
	NotiTypeNewFollower NotiType = "new_follower"
)
View Source
const (
	BotOrderTypeBuyAfterCreated BotOrderType = "buy_after_created"
	BotOrderTypeBuy             BotOrderType = "buy"
	BotOrderTypeSell            BotOrderType = "sell"

	BotOrderStatusNew        BotOrderStatus = "new"
	BotOrderStatusDepositing BotOrderStatus = "depositing"
	BotOrderStatusDone       BotOrderStatus = "done"
	BotOrderStatusPoolled    BotOrderStatus = "poolled"
	BotOrderStatusError      BotOrderStatus = "error"
)
View Source
const (
	ETH_ZERO_ADDRESS    = "0x0000000000000000000000000000000000000000"
	BURN_ADDRESS        = "0x000000000000000000000000000000000000dEaD"
	GENERTAL_NETWORK_ID = 0
	ETHEREUM_NETWORK_ID = 1

	DURATION_1D  = 24 * 3600
	DURATION_30D = 30 * 24 * 3600
	DURATION_90D = 90 * 24 * 3600

	LOCAL_CHAIN_ID            = uint64(1337)
	ETERNAL_AI_CHAIN_ID       = uint64(43338)
	BTC_CHAIN_ID              = uint64(0)
	ETHEREUM_CHAIN_ID         = uint64(1)
	FANS_CHAIN_ID             = uint64(45761)
	BASE_CHAIN_ID             = uint64(8453)
	SHARDAI_CHAIN_ID          = uint64(222671)
	SOLANA_CHAIN_ID           = uint64(1111)
	SOLANA_CHAIN_ID_OLD       = uint64(101)
	HERMES_CHAIN_ID           = uint64(45762)
	ARBITRUM_CHAIN_ID         = uint64(42161)
	ZKSYNC_CHAIN_ID           = uint64(324)
	POLYGON_CHAIN_ID          = uint64(137)
	BSC_CHAIN_ID              = uint64(56)
	SEPOLIA_CHAIN_ID          = uint64(11155111)
	DAGI_CHAIN_ID             = uint64(222672)
	APE_CHAIN_ID              = uint64(33139)
	AVALANCHE_C_CHAIN_ID      = uint64(43114)
	ABSTRACT_TESTNET_CHAIN_ID = uint64(11124)
	BITTENSOR_CHAIN_ID        = uint64(964)
	DUCK_CHAIN_ID             = uint64(5545)
	TRON_CHAIN_ID             = uint64(728126428)
	MODE_CHAIN_ID             = uint64(34443)
	ZETA_CHAIN_ID             = uint64(7000)
	STORY_CHAIN_ID            = uint64(1514)
	HYPE_CHAIN_ID             = uint64(999)
	MONAD_TESTNET_CHAIN_ID    = uint64(10143)
	MEGAETH_TESTNET_CHAIN_ID  = uint64(1338)
	BASE_SEPOLIA_CHAIN_ID     = uint64(84532)
	CELO_CHAIN_ID             = uint64(42220)
)
View Source
const (
	TwitterPostTypeText  TwitterPostType = "text"
	TwitterPostTypeImage TwitterPostType = "image"

	TwitterPostStatusNew            TwitterPostStatus = "new"
	TwitterPostStatusInvalid        TwitterPostStatus = "invalid"
	TwitterPostStatusValid          TwitterPostStatus = "valid"
	TwitterPostStatusInferNew       TwitterPostStatus = "infer_new"
	TwitterPostStatusInferSubmitted TwitterPostStatus = "infer_submitted"
	TwitterPostStatusInferFailed    TwitterPostStatus = "infer_failed"
	TwitterPostStatusInferResolved  TwitterPostStatus = "infer_resolved"
	TwitterPostStatusReplied        TwitterPostStatus = "replied"
)
View Source
const (
	UserTransactionTypeDeposit              UserTransactionType = "deposit"
	UserTransactionTypeAgentStoreFee        UserTransactionType = "agent_store_fee"
	UserTransactionTypeTriggerFee           UserTransactionType = "trigger_fee"
	UserTransactionTypeTriggerRefundFee     UserTransactionType = "trigger_refund_fee"
	UserTransactionTypeUserAgentInfraFee    UserTransactionType = "user_agent_infra_fee"
	UserTransactionTypeCreatorAgentInfraFee UserTransactionType = "creator_agent_infra_fee"
	UserTransactionTypeTokenFee             UserTransactionType = "token_fee"

	UserTransactionStatusDone      UserTransactionStatus = "done"
	UserTransactionStatusCancelled UserTransactionStatus = "cancelled"
)

Variables

View Source
var CHAIN_NAME_MAP = map[uint64]string{
	BASE_CHAIN_ID:             "BASE",
	SHARDAI_CHAIN_ID:          "BITCOIN",
	FANS_CHAIN_ID:             "FANS",
	ETHEREUM_CHAIN_ID:         "ETHEREUM",
	HERMES_CHAIN_ID:           "SYMBIOSIS",
	ARBITRUM_CHAIN_ID:         "ARBITRUM",
	SOLANA_CHAIN_ID:           "SOLANA",
	ZKSYNC_CHAIN_ID:           "ZKSYNC",
	POLYGON_CHAIN_ID:          "POLYGON",
	BSC_CHAIN_ID:              "BSC",
	SEPOLIA_CHAIN_ID:          "SEPOLIA",
	APE_CHAIN_ID:              "APECHAIN",
	AVALANCHE_C_CHAIN_ID:      "AVALANCHE C-CHAIN",
	ABSTRACT_TESTNET_CHAIN_ID: "ABSTRACT TESTNET",
	BITTENSOR_CHAIN_ID:        "BITTENSOR",
	DUCK_CHAIN_ID:             "DUCK CHAIN",
	TRON_CHAIN_ID:             "TRON",
	MODE_CHAIN_ID:             "MODE",
	LOCAL_CHAIN_ID:            "LOCAL",
	ZETA_CHAIN_ID:             "ZETA",
	STORY_CHAIN_ID:            "STORY",
	HYPE_CHAIN_ID:             "HYPER EVM",
	MONAD_TESTNET_CHAIN_ID:    "MONAD TESTNET",
	MEGAETH_TESTNET_CHAIN_ID:  "MEGAETH TESTNET",
	BASE_SEPOLIA_CHAIN_ID:     "BASE SEPOLIA",
	CELO_CHAIN_ID:             "CELO",
}
View Source
var (
	ETERNALAI_LIQUIDITY_SUPPORTED_NETWORKS = []map[string]any{
		{
			"network": "ETH",
			"name":    "Ethereum",
			"icon":    "https://eternalai.org/icons/coins/ic-eth.svg",
			"id":      ETHEREUM_CHAIN_ID,
			"explorer": []map[string]any{
				{
					"name":   "EtherScan",
					"url":    "https://etherscan.io/",
					"icon":   "https://eternalai.org/icons/coins/ic-ether-scan.png",
					"okLink": "https://www.okx.com/web3/explorer/eth/",
				},
			},
		},
		{
			"network": "BASE",
			"name":    "Base",
			"icon":    "https://eternalai.org/icons/blockchains/ic_base.svg",
			"id":      BASE_CHAIN_ID,
			"explorer": []map[string]any{
				{
					"name":   "BaseScan",
					"url":    "https://basescan.org/",
					"icon":   "https://eternalai.org/icons/coins/ic-base-scan.png",
					"okLink": "https://www.okx.com/web3/explorer/base/",
				},
			},
		},
		{
			"network": "ARBITRUM",
			"name":    "Arbitrum",
			"icon":    "https://eternalai.org/icons/blockchains/ic_arbitrum.svg",
			"id":      ARBITRUM_CHAIN_ID,
			"explorer": []map[string]any{
				{
					"name":   "ArbitrumScan",
					"url":    "https://arbiscan.io/",
					"icon":   "https://eternalai.org/icons/blockchains/ic_arbitrum.svg",
					"okLink": "https://www.okx.com/web3/explorer/arbitrum/",
				},
			},
		},
		{
			"network": "SOL",
			"name":    "Solana",
			"icon":    "https://eternalai.org/icons/blockchains/ic_solana.svg",
			"id":      SOLANA_CHAIN_ID,
			"explorer": []map[string]any{
				{
					"name":   "SolScan",
					"url":    "https://solscan.io/",
					"icon":   "https://eternalai.org/icons/coins/ic-sol-scan.svg",
					"okLink": "https://www.okx.com/web3/explorer/sol/",
				},
			},
		},
		{
			"network": "BSC",
			"name":    "BNB Smart Chain",
			"icon":    "https://eternalai.org/icons/coins/ic-bsc.png",
			"id":      BSC_CHAIN_ID,
			"explorer": []map[string]any{
				{
					"name":   "BscScan",
					"url":    "https://bscscan.com/",
					"icon":   "https://eternalai.org/icons/coins/ic-bsc-scan.svg",
					"okLink": "https://www.okx.com/web3/explorer/bsc/",
				},
			},
		},
		{
			"network": "APE",
			"name":    "ApeChain",
			"icon":    "https://eternalai.org/icons/coins/ic-ape.svg",
			"id":      APE_CHAIN_ID,
			"explorer": []map[string]any{
				{
					"name":   "ApeScan",
					"url":    "https://apescan.io/",
					"icon":   "https://eternalai.org/icons/coins/ic-ape.svg",
					"okLink": "https://www.okx.com/web3/explorer/apechain/",
				},
			},
		},
		{
			"network": "AVAX",
			"name":    "Avalanche C-Chain",
			"icon":    "https://eternalai.org/icons/blockchains/ic_avax.svg",
			"id":      AVALANCHE_C_CHAIN_ID,
			"explorer": []map[string]any{
				{
					"name":   "AVAXScan",
					"url":    "https://subnets.avax.network/c-chain",
					"icon":   "https://eternalai.org/icons/blockchains/ic_avax.svg",
					"okLink": "https://www.okx.com/web3/explorer/avax/",
				},
			},
		},
		{
			"network": "Celo",
			"name":    "Celo",
			"icon":    "https://eternalai.org/icons/blockchains/ic-celo.svg",
			"id":      CELO_CHAIN_ID,
			"explorer": []map[string]any{
				{
					"name":   "CeloScan",
					"url":    "https://celoscan.io/",
					"icon":   "https://eternalai.org/icons/blockchains/ic-celo.svg",
					"okLink": "",
				},
			},
		},
	}
)
View Source
var KeyConfigNameKnowledgeBaseTokenContractAddress = "knowledge_base_token_contract_address"
View Source
var KeyConfigNameKnowledgeBaseWorkerHubAddress = "knowledge_base_worker_hub_address"
View Source
var KeyConfigNameModelId = "knowledge_base_model_id"
View Source
var KeyConfigNameWalletDeploy = "wallet_deploy"
View Source
var MAP_CHAIN_ID_TO_LLM_MODEL = map[uint64]map[string]string{
	DAGI_CHAIN_ID: {
		"neuralmagic/Meta-Llama-3.1-405B-Instruct-quantized.w4a16": "200001",
	},
	BASE_CHAIN_ID: {
		"NousResearch/Hermes-3-Llama-3.1-70B-FP8":                  "700002",
		"neuralmagic/Meta-Llama-3.1-405B-Instruct-quantized.w4a16": "700001",
	},
	HERMES_CHAIN_ID: {
		"NousResearch/Hermes-3-Llama-3.1-70B-FP8": "500001",
		"unsloth/Llama-3.3-70B-Instruct-bnb-4bit": "500006",
		"PrimeIntellect/INTELLECT-1-Instruct":     "500007",
	},
	SHARDAI_CHAIN_ID: {
		"NousResearch/Hermes-3-Llama-3.1-70B-FP8": "600001",
	},
	ARBITRUM_CHAIN_ID: {
		"NousResearch/Hermes-3-Llama-3.1-70B-FP8": "110001",
	},
	ZKSYNC_CHAIN_ID: {
		"NousResearch/Hermes-3-Llama-3.1-70B-FP8": "120001",
	},
	POLYGON_CHAIN_ID: {
		"NousResearch/Hermes-3-Llama-3.1-70B-FP8": "130001",
	},
	SOLANA_CHAIN_ID: {
		"NousResearch/Hermes-3-Llama-3.1-70B-FP8": "990001",
	},
	APE_CHAIN_ID: {
		"NousResearch/Hermes-3-Llama-3.1-70B-FP8": "990001",
	},
	AVALANCHE_C_CHAIN_ID: {
		"NousResearch/Hermes-3-Llama-3.1-70B-FP8": "990001",
	},
	ABSTRACT_TESTNET_CHAIN_ID: {
		"NousResearch/Hermes-3-Llama-3.1-70B-FP8": "990001",
	},
}
View Source
var MAP_TOOLSET_NAME = map[string]string{
	"":                             "Default",
	"default":                      "Default",
	"reply_mentions":               "Reply",
	"reply_mentions_farcaster":     "Reply",
	"shadow_reply":                 "Reply",
	"reply_non_mentions_farcaster": "Engage",
	"follow":                       "Follow",
	"post":                         "Post",
	"post_farcaster":               "Post",
	"lucky_moneys":                 "Airdrop",
	"trade_analytics_twitter":      "Trading Analytics",
	"trade_analytics_mentions":     "Trading Analytics",
}

Functions

func AbsBigFloat

func AbsBigFloat(val *big.Float) *big.Float

func AddBigFloats

func AddBigFloats(val1 *big.Float, vals ...*big.Float) *big.Float

func AddBigInts

func AddBigInts(val1 *big.Int, vals ...*big.Int) *big.Int

func AddFloats

func AddFloats(val1 float64, vals ...float64) float64

func ConvertBigFloatToWei

func ConvertBigFloatToWei(amt *big.Float, decimals uint) *big.Int

func ConvertBigFloatToWeiFull

func ConvertBigFloatToWeiFull(amt *big.Float, decimals uint) *big.Int

func ConvertCryptoCurrencyAmount

func ConvertCryptoCurrencyAmount(amt float64) float64

func ConvertFiatAmount

func ConvertFiatAmount(amt float64) float64

func ConvertFloatToCollateralAmount

func ConvertFloatToCollateralAmount(amt float64) uint64

func ConvertFloatToReserveAmount

func ConvertFloatToReserveAmount(amt float64) uint64

func ConvertNumberFloat

func ConvertNumberFloat(amt float64, decimals uint) float64

func ConvertPriceAmount

func ConvertPriceAmount(amt float64) float64

func ConvertReserveAmountToFloat

func ConvertReserveAmountToFloat(reserveAmt uint64) float64

func ConvertSqrtPriceX96ToPrice

func ConvertSqrtPriceX96ToPrice(amt *big.Int, decimals uint) *big.Float

func ConvertSqrtPriceX96ToPriceEx

func ConvertSqrtPriceX96ToPriceEx(amt *big.Int, decimals uint, zeroForOne bool) *big.Float

func ConvertString2BigInt

func ConvertString2BigInt(s string) (*big.Int, error)

func ConvertStringNumber2BigInt

func ConvertStringNumber2BigInt(s string) *big.Int

func ConvertStringToBigFloat

func ConvertStringToBigFloat(amtString string) *big.Float

func ConvertStringToFloat

func ConvertStringToFloat(s string) (float64, error)

func ConvertWeiStringToBigFloat

func ConvertWeiStringToBigFloat(amtString string, decimals uint) *big.Float

func ConvertWeiToBigFloat

func ConvertWeiToBigFloat(amt *big.Int, decimals uint) *big.Float

func ConvertWeiToBigFloatNegative

func ConvertWeiToBigFloatNegative(amt *big.Int, decimals uint) *big.Float

func ConvertX96ToNumber

func ConvertX96ToNumber(amt *big.Int, decimals uint) *big.Float

func DivFloats

func DivFloats(val1 float64, vals ...float64) float64

func EqualBigFloats

func EqualBigFloats(val1 *big.Float, val2 *big.Float) bool

func EtherToWei

func EtherToWei(eth *big.Float) *big.Int

func EtherToWeiWithDecimals

func EtherToWeiWithDecimals(eth *big.Float, decimals int) *big.Int

func FormatBigFloatNumber

func FormatBigFloatNumber(amt *big.Float) string

func FormatEmailTime

func FormatEmailTime(t *time.Time) string

func FormatFloatNumber

func FormatFloatNumber(f string, amt float64) string

func FormatStringNumber

func FormatStringNumber(amt string) string

func GetAlphaDBName

func GetAlphaDBName() string

func GetChainID

func GetChainID(chainName string) uint64

func GetChainName

func GetChainName(chainID uint64) string

func GetDexUrl

func GetDexUrl(tokenNetworkID uint64, tokenAddress string) string

func GetImageUrl

func GetImageUrl(imageUrl string) string

func GetSqrtPriceX96ForLiquidityAndAmount0

func GetSqrtPriceX96ForLiquidityAndAmount0(sqrtPriceX96AMin *big.Int, sqrtPriceX96BMax *big.Int, liquidity *big.Int, amountMax *big.Int) *big.Int

func GetSqrtPriceX96ForLiquidityAndAmount1

func GetSqrtPriceX96ForLiquidityAndAmount1(sqrtPriceX96AMin *big.Int, sqrtPriceX96BMax *big.Int, liquidity *big.Int, amountMax *big.Int) *big.Int

func GetTradeUrl

func GetTradeUrl(tokenNetworkID uint64, tokenAddress, dexID string) string

func IsNativeToken

func IsNativeToken(tokenAddress string) bool

func MaxBigFloats

func MaxBigFloats(val1 *big.Float, vals ...*big.Float) *big.Float

func MaxBigInts

func MaxBigInts(val1 *big.Int, vals ...*big.Int) *big.Int

func MinBigInts

func MinBigInts(val1 *big.Int, vals ...*big.Int) *big.Int

func MulBigFloats

func MulBigFloats(val1 *big.Float, vals ...*big.Float) *big.Float

func MulBigInts

func MulBigInts(val1 *big.Int, vals ...*big.Int) *big.Int

func MulFloats

func MulFloats(val1 float64, vals ...float64) float64

func NegativeBigFloat

func NegativeBigFloat(val *big.Float) *big.Float

func Number2BigInt

func Number2BigInt(s string, decimals int) *big.Int

func ONE_ETHER

func ONE_ETHER() *big.Int

func ParseBool

func ParseBool(v string) bool

func ParseString2FloatAmountArr

func ParseString2FloatAmountArr(s, sep string) []float64

func PriceToTick

func PriceToTick(price float64, spacing int64) int64

func QuoBigFloats

func QuoBigFloats(val1 *big.Float, vals ...*big.Float) *big.Float

func QuoBigInts

func QuoBigInts(val1 *big.Int, vals ...*big.Int) *big.Int

func RandFloatInRage

func RandFloatInRage(min, max float64) float64

func RandSeed

func RandSeed() uint64

func RoundHalfUp

func RoundHalfUp(num *big.Float, decimals int) *big.Float

func SubBigFloats

func SubBigFloats(val1 *big.Float, vals ...*big.Float) *big.Float

func SubBigInts

func SubBigInts(val1 *big.Int, vals ...*big.Int) *big.Int

func SubFloats

func SubFloats(val1 float64, vals ...float64) float64

func ToBigInt

func ToBigInt(s string) big.Int

func ToEtherAmount

func ToEtherAmount(e *big.Int) big.Float

func ToEtherPriceFiatAmount

func ToEtherPriceFiatAmount(num big.Float, pr float64) float64

func ToEtherWeiAmount

func ToEtherWeiAmount(num big.Float) big.Int

func ValidateFiatAmount

func ValidateFiatAmount(amt float64) error

func ValidateNftCurrencyAmount

func ValidateNftCurrencyAmount(amt float64, decimals uint) error

Types

type AbilityLuckyMoney

type AbilityLuckyMoney struct {
	gorm.Model
	NetworkID                 uint64
	AgentInfoID               uint `gorm:"index"`
	AgentInfo                 *AgentInfo
	AgentSnapshotMissionID    uint `gorm:"index"`
	AgentSnapshotMission      *AgentSnapshotMission
	AgentSnapshotPostID       uint `gorm:"index"`
	AgentSnapshotPost         *AgentSnapshotPost
	AgentSnapshotPostActionID uint `gorm:"index"`
	AgentSnapshotPostAction   *AgentSnapshotPostAction
	RewardAmount              numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	TokenBalance              numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	Status                    LuckyMoneyStatus
	Error                     string
	TweetID                   string     `gorm:"unique_index"`
	TweetAt                   *time.Time `gorm:"index"`
	TwitterID                 string
	TwitterUsername           string
	TwitterName               string
	Content                   string `gorm:"type:longtext"`
	UserAddress               string
	RefTweetID                string
	TxHash                    string
}

type AgenInfoInstallStatus

type AgenInfoInstallStatus string
const (
	AgenInfoInstallStatusNew  AgenInfoInstallStatus = "new"
	AgenInfoInstallStatusDone AgenInfoInstallStatus = "done"
)

type AgentChainFee

type AgentChainFee struct {
	gorm.Model
	NetworkID      uint64           `gorm:"unique_index"`
	InferFee       numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	MintFee        numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	TokenFee       numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	AgentDeployFee numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
}

type AgentEaiTopup

type AgentEaiTopup struct {
	gorm.Model
	NetworkID      uint64
	AgentInfoID    uint `gorm:"index"`
	AgentInfo      *AgentInfo
	EventId        string            `gorm:"unique_index"`
	Type           AgentEaiTopupType `gorm:"default:'deposit'"`
	DepositAddress string
	ToAddress      string
	DepositTxHash  string
	TopupTxHash    string
	Amount         numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	Status         AgentEaiTopupStatus
	InscribeTxHash string
	Error          string `gorm:"type:longtext"`
	Toolset        string
}

type AgentEaiTopupStatus

type AgentEaiTopupStatus string

type AgentEaiTopupType

type AgentEaiTopupType string

type AgentExternalInfo

type AgentExternalInfo struct {
	gorm.Model
	NetworkID        uint64            `gorm:"unique_index:agent_external_main_idx"`
	Type             ExternalAgentType `gorm:"unique_index:agent_external_main_idx"`
	AgentInfoID      uint              `gorm:"unique_index:agent_external_main_idx"`
	AgentInfo        *AgentInfo
	ExternalID       string
	ExternalUsername string
	ExternalName     string
}

type AgentInfo

type AgentInfo struct {
	gorm.Model
	Version              string `gorm:"default:'1'"`
	NetworkID            uint64
	NetworkName          string
	OauthClientId        string
	OauthClientSecret    string
	AgentID              string             `gorm:"unique_index"`
	AgentType            AgentInfoAgentType `gorm:"default:0"`
	TwitterInfoID        uint               `gorm:"index"`
	TwitterInfo          *TwitterInfo
	TwitterID            string `gorm:"index"`
	TwitterUsername      string `gorm:"index"`
	TwitterVerified      bool   `gorm:"default:0"`
	AgentName            string
	SystemPrompt         string `gorm:"type:longtext"`
	UserPrompt           string `gorm:"type:longtext"`
	Creator              string
	AgentContractID      string
	AgentContractAddress string
	AgentLogicAddress    string
	AgentNftMinted       bool `gorm:"default:0"`
	ScanEnabled          bool `gorm:"default:1"`
	ScanLatestTime       *time.Time
	ScanLatestId         string `gorm:"type:longtext"`
	ScanError            string
	TokenMode            string
	TokenName            string
	TokenSymbol          string
	TokenAddress         string
	TokenStatus          string
	TokenSupply          numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	TokenImageUrl        string
	TokenSignature       string
	TokenInfoID          uint
	TokenInfo            *AgentTokenInfo
	TokenImageInferID    string
	TokenPositionHash    string
	TokenDesc            string `gorm:"type:longtext"`
	TokenNetworkID       uint64
	Priority             int
	ETHAddress           string `gorm:"index"`
	TronAddress          string `gorm:"index"`
	SOLAddress           string `gorm:"index"`
	SummaryLatestTime    *time.Time
	EaiBalance           numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	EaiWalletBalance     numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	IsAdvance            bool             `gorm:"default:0"`
	InferLatestTime      *time.Time
	ReplyLatestTime      *time.Time
	ReplyEnabled         bool `gorm:"default:0"`
	TipEthAddress        string
	TipBtcAddress        string
	TipSolAddress        string
	IsFaucet             bool `gorm:"default:0"`
	AgentSnapshotMission []*AgentSnapshotMission
	MintFee              numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	ActionDelayed        int              `gorm:"default:900"`
	TmpTwitterID         string           `gorm:"index"`
	TmpTwitterInfo       *TwitterUser     `gorm:"foreignKey:twitter_id;AssociationForeignKey:tmp_twitter_id"`
	RefTweetID           uint
	Meme                 *Meme
	ActiveLatestTime     *time.Time
	Thumbnail            string
	FarcasterID          string `gorm:"index"`
	FarcasterUsername    string `gorm:"index"`
	MintHash             string
	InferFee             numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	SystemReminder       string           `gorm:"type:longtext"`
	Status               AssistantStatus
	Uri                  string
	AgentBaseModel       string
	MetaData             string `gorm:"type:longtext"`
	Minter               string
	VerifiedNftOwner     bool
	NftAddress           string
	NftTokenID           string
	NftTokenImage        string
	NftOwnerAddress      string
	NftSignature         string
	NftSignMessage       string
	NftDelegateAddress   string
	NftPublicKey         string
	Bio                  string `gorm:"type:longtext"`
	Lore                 string `gorm:"type:longtext"`
	Knowledge            string `gorm:"type:longtext"`
	MessageExamples      string `gorm:"type:longtext"`
	PostExamples         string `gorm:"type:longtext"`
	Topics               string `gorm:"type:longtext"`
	Style                string `gorm:"type:longtext"`
	Adjectives           string `gorm:"type:longtext"`
	SocialInfo           string `gorm:"type:longtext"`
	InferenceCalls       int64
	ExternalChartUrl     string
	MissionTopics        string `gorm:"type:longtext"`
	GraphData            string `gorm:"type:longtext"`
	ConfigData           string `gorm:"type:longtext"`
	DeployedRefID        string

	TwinTwitterUsernames    string           `gorm:"index"` // multiple twitter usernames, split by ,
	TwinStatus              TwinStatus       `gorm:"index"`
	KnowledgeBaseID         string           `gorm:"index"`
	TwinCallProcessRequest  string           `gorm:"type:longtext"`
	TwinCallProcessResponse string           `gorm:"type:longtext"`
	TwinFee                 numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	TwinStartTrainingAt     *time.Time
	TwinEndTrainingAt       *time.Time
	TwinTrainingProgress    float64 `json:"twin_training_progress"`
	TwinTrainingMessage     string  `gorm:"type:longtext"`

	SourceUrl      string `gorm:"type:text"` //ipfs_ || ethfs_
	AuthenUrl      string `gorm:"type:text"`
	DependAgents   string `gorm:"type:longtext"`
	RequiredWallet bool
	IsOnchain      bool

	MinFeeToUse numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	Worker      string

	EstimateTwinDoneTimestamp *time.Time `json:"estimate_twin_done_timestamp"`
	TotalMintTwinFee          float64
	TwitterName               string           `gorm:"-"`
	MemePercent               float64          `gorm:"-"`
	MemeMarketCap             numeric.BigFloat `gorm:"-"`
	Counts                    int64            `gorm:"-"`
	AgentKBId                 uint             `json:"agent_kb_id"`
	KnowledgeBase             *KnowledgeBase   `json:"knowledge_base" gorm:"foreignKey:AgentKBId;references:AgentInfoId"`
}

func (*AgentInfo) GetAgentContractID

func (m *AgentInfo) GetAgentContractID() int64

func (*AgentInfo) GetCharacterArrayString

func (m *AgentInfo) GetCharacterArrayString(charactor string) []string

func (*AgentInfo) GetHeadSystemPrompt

func (m *AgentInfo) GetHeadSystemPrompt() string

func (*AgentInfo) GetMessageExamples

func (m *AgentInfo) GetMessageExamples() [][]struct {
	User    string `json:"user"`
	Content struct {
		Text string `json:"text"`
	} `json:"content"`
}

func (*AgentInfo) GetSocialInfo

func (m *AgentInfo) GetSocialInfo() []*SocialInfo

func (*AgentInfo) GetStyle

func (m *AgentInfo) GetStyle() map[string][]string

func (*AgentInfo) GetSystemPrompt

func (m *AgentInfo) GetSystemPrompt() string

type AgentInfoAgentType

type AgentInfoAgentType uint
const (
	AgentInfoAgentTypeNormal        AgentInfoAgentType = 0
	AgentInfoAgentTypeReasoning     AgentInfoAgentType = 1
	AgentInfoAgentTypeKnowledgeBase AgentInfoAgentType = 2
	AgentInfoAgentTypeEliza         AgentInfoAgentType = 3
	AgentInfoAgentTypeZerepy        AgentInfoAgentType = 4
	AgentInfoAgentTypeModel         AgentInfoAgentType = 5
	AgentInfoAgentTypeJs            AgentInfoAgentType = 6
	AgentInfoAgentTypePython        AgentInfoAgentType = 7
	AgentInfoAgentTypeInfa          AgentInfoAgentType = 8
)

type AgentInfoInstall

type AgentInfoInstall struct {
	gorm.Model
	Code           string `gorm:"unique_index"`
	UserID         uint   `gorm:"unique_index:agent_info_main_idx"`
	AgentInfoID    uint   `gorm:"unique_index:agent_info_main_idx"`
	User           *User
	CallbackParams string `gorm:"type:longtext"` //{"user_id" : "123", "authen_token" : "xxx",...}
	Status         AgenInfoInstallStatus
}

type AgentInfoKnowledgeBase

type AgentInfoKnowledgeBase struct {
	gorm.Model
	AgentInfoId     uint `json:"agent_info_id" gorm:"index"`
	KnowledgeBaseId uint `json:"knowledge_base_id" gorm:"index"`

	AgentInfo     *AgentInfo     `json:"agent_info"`
	KnowledgeBase *KnowledgeBase `json:"knowledge_base"`
}

type AgentInfoResponse

type AgentInfoResponse struct {
	ID              uint               `json:"id"`
	CreatedAt       time.Time          `json:"created_at"`
	UpdatedAt       time.Time          `json:"updated_at"`
	NetworkID       uint64             `json:"network_id"`
	NetworkName     string             `json:"network_name"`
	AgentID         string             `json:"agent_id"`
	AgentType       AgentInfoAgentType `json:"agent_type"`
	TwitterInfoID   uint               `json:"twitter_info_id"`
	TwitterID       string             `json:"twitter_id"`
	TwitterUsername string             `json:"twitter_username"`
	TwitterVerified bool               `json:"twitter_verified"`
	AgentName       string             `json:"agent_name"`
	SystemPrompt    string             `json:"system_prompt"`
	UserPrompt      string             `json:"user_prompt"`
	Creator         string             `json:"creator"`

	AgentContractID       string                      `json:"agent_contract_id"`
	AgentContractAddress  string                      `json:"agent_contract_address"`
	AgentSnapshotMissions []*AgentSnapshotMissionResp `json:"agent_snapshot_missions"`
}

type AgentInfoWithSnapshotPostActionsResponse

type AgentInfoWithSnapshotPostActionsResponse struct {
	ID              uint               `json:"id"`
	CreatedAt       time.Time          `json:"created_at"`
	UpdatedAt       time.Time          `json:"updated_at"`
	NetworkID       uint64             `json:"network_id"`
	NetworkName     string             `json:"network_name"`
	AgentID         string             `json:"agent_id"`
	AgentType       AgentInfoAgentType `json:"agent_type"`
	TwitterInfoID   uint               `json:"twitter_info_id"`
	TwitterID       string             `json:"twitter_id"`
	TwitterUsername string             `json:"twitter_username"`
	TwitterVerified bool               `json:"twitter_verified"`
	AgentName       string             `json:"agent_name"`
	SystemPrompt    string             `json:"system_prompt"`
	UserPrompt      string             `json:"user_prompt"`
	Creator         string             `json:"creator"`

	AgentContractID         string                         `json:"agent_contract_id"`
	AgentContractAddress    string                         `json:"agent_contract_address"`
	AgentSnapshotPostAction []*AgentSnapshotPostActionResp `json:"agent_snapshot_post_action"`
}

type AgentLibrary

type AgentLibrary struct {
	gorm.Model
	NetworkID uint64 `gorm:"unique_index:agent_library_main_idx"`
	Name      string `gorm:"unique_index:agent_library_main_idx"`
	SourceURL string
	AgentType AgentInfoAgentType
}

type AgentMetadataRequest

type AgentMetadataRequest struct {
	TokenInfo struct {
		Name    string `json:"name"`
		Symbol  string `json:"symbol"`
		Address string `json:"address"`
		Chain   string `json:"chain"`
	} `json:"token_info"`
	KbAgents []AgentWakeupKnowledgeBase `json:"kb_agents"`
}

type AgentSnapshotMission

type AgentSnapshotMission struct {
	gorm.Model
	NetworkID           uint64
	AgentInfoID         uint `gorm:"index"`
	AgentInfo           *AgentInfo
	UserPrompt          string `gorm:"type:longtext"`
	IntervalSec         int    `gorm:"default:0"`
	LookupInterval      int    `gorm:"default:0"`
	Enabled             bool   `gorm:"default:0"`
	ReplyEnabled        bool   `gorm:"default:0"`
	IsTesting           bool   `gorm:"default:0"`
	ToolSet             ToolsetType
	AgentType           AgentInfoAgentType `gorm:"default:0"`
	InferAt             *time.Time
	SkipThough          bool   `gorm:"default:0"`
	ToolList            string `gorm:"type:longtext"`
	UserTwitterIds      string `gorm:"type:longtext"`
	TeleChatID          string
	Tokens              string `gorm:"type:longtext"`
	ReactMaxSteps       int    `gorm:"default:0"`
	NotDelay            bool   `gorm:"default:0"`
	AgentBaseModel      string
	Topics              string           `gorm:"type:longtext"`
	IsTwitterSearch     bool             `gorm:"default:0"`
	IsBingSearch        bool             `gorm:"default:0"`
	RewardAmount        numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	RewardUser          int
	MinTokenHolding     numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	LaunchpadMemberID   uint
	AgentStoreID        uint
	AgentStore          *AgentStore
	AgentStoreMissionID uint
	AgentStoreMission   *AgentStoreMission
}

type AgentSnapshotMissionConfigs

type AgentSnapshotMissionConfigs struct {
	gorm.Model
	NetworkID   uint64
	ToolSet     ToolsetType
	ToolSetName string
	Platform    PlatformType
	IsTesting   bool `gorm:"default:0"`
}

type AgentSnapshotMissionResp

type AgentSnapshotMissionResp struct {
	ID           uint               `json:"id"`
	CreatedAt    time.Time          `json:"created_at"`
	UpdatedAt    time.Time          `json:"updated_at"`
	NetworkID    uint64             `json:"network_id"`
	AgentInfoID  uint               `json:"agent_info_id"`
	AgentInfo    *AgentInfo         `json:"agent_info"`
	UserPrompt   string             `json:"user_prompt"`
	IntervalSec  int                `json:"interval_sec"`
	Enabled      bool               `json:"enabled"`
	ReplyEnabled bool               `json:"reply_enabled"`
	IsTesting    bool               `json:"is_testing"`
	ToolSet      ToolsetType        `json:"tool_set"`
	AgentType    AgentInfoAgentType `json:"agent_type"`
	InferAt      *time.Time         `json:"infer_at"`
	SkipThough   bool               `json:"skip_though"`
}

type AgentSnapshotPost

type AgentSnapshotPost struct {
	gorm.Model
	NetworkID               uint64
	UserID                  uint `gorm:"index"`
	User                    *User
	AgentInfoID             uint `gorm:"index"`
	AgentInfo               *AgentInfo
	AgentSnapshotMissionID  uint `gorm:"index"`
	AgentSnapshotMission    *AgentSnapshotMission
	InferData               string `gorm:"type:longtext"`
	InferSnapshotHash       string
	InferTxHash             string `gorm:"index"`
	InferAt                 *time.Time
	InferNum                uint                    `gorm:"default:0"`
	InferOutputData         string                  `gorm:"type:longtext"`
	InferOutputAt           *time.Time              `gorm:"index"`
	Status                  AgentSnapshotPostStatus `gorm:"index"`
	InscribeTxHash          string
	BitcoinTxHash           string
	Fee                     numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	Error                   string
	UserPrompt              string `gorm:"type:longtext"`
	HeadSystemPrompt        string `gorm:"type:longtext"`
	SystemPrompt            string `gorm:"type:longtext"`
	SystemReminder          string `gorm:"type:longtext"`
	Task                    string
	Toolset                 string
	ToolList                string `gorm:"type:longtext"`
	AgentMetaData           string `gorm:"type:longtext"`
	ResponseId              string
	AgentBaseModel          string
	ReactMaxSteps           int `gorm:"default:0"`
	AgentSnapshotPostAction []*AgentSnapshotPostAction
	OrgTweetID              string
	Token                   string
	AgentStoreMissionID     uint
	AgentStoreID            uint
	AgentStore              *AgentStore
	IsRated                 bool
	AgentStoreMissionFee    numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
}

type AgentSnapshotPostAction

type AgentSnapshotPostAction struct {
	gorm.Model
	NetworkID              uint64
	AgentInfoID            uint `gorm:"index"`
	AgentInfo              *AgentInfo
	AgentSnapshotMissionID uint `gorm:"index"`
	AgentSnapshotMission   *AgentSnapshotMission
	AgentSnapshotPostID    uint `gorm:"index"`
	AgentSnapshotPost      *AgentSnapshotPost
	AgentTwitterId         string
	Type                   AgentSnapshotPostActionType `gorm:"index"`
	TargetUsername         string
	TargetTwitterId        string                        `gorm:"index"`
	ConversationId         string                        `gorm:"index"`
	Tweetid                string                        `gorm:"index"`
	Content                string                        `gorm:"type:longtext"`
	Description            string                        `gorm:"type:longtext"`
	Status                 AgentSnapshotPostActionStatus `gorm:"index"`
	RefId                  string                        `gorm:"type:longtext"`
	RefIds                 string                        `gorm:"type:longtext"`
	Error                  string
	FollowerCount          uint       `gorm:"default:0"`
	IsApproved             bool       `gorm:"default:0"`
	ScheduleAt             *time.Time `gorm:"index"`
	ExecutedAt             *time.Time
	Fee                    numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	IsMigrated             bool             `gorm:"default:0"`
	TokenName              string
	TokenSymbol            string
	TokenAddress           string
	TokenHash              string
	TokenInferID           string
	TokenImageUrl          string
	ReqRefID               string
	ToolSet                ToolsetType
	InscribeId             string
	InscribeTxHash         string
	BitcoinTxHash          string
	Price                  numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	RewardAmount           numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	RewardUser             int
}

type AgentSnapshotPostActionResp

type AgentSnapshotPostActionResp struct {
	ID                   uint                          `json:"id"`
	ExecutedAt           *time.Time                    `json:"executed_at"`
	ToolSet              string                        `json:"tool_set"`
	Type                 string                        `json:"type"`
	Tweetid              string                        `json:"tweetid"`
	TargetUsername       string                        `json:"target_username"`
	PostTweetid          string                        `json:"post_tweetid"`
	Content              string                        `json:"content"`
	UserPrompt           string                        `json:"user_prompt"`
	InferInputData       string                        `json:"infer_input_data"`
	InferOutputData      string                        `json:"infer_output_data"`
	Description          string                        `json:"description"`
	TargetTwitterId      string                        `json:"target_twitter_id"`
	TokenInferID         string                        `json:"token_infer_id"`
	TokenImageUrl        string                        `json:"token_image_url"`
	AgentSnapshotMission *AgentSnapshotMissionResp     `json:"agent_snapshot_mission"`
	Status               AgentSnapshotPostActionStatus `json:"status"`
}

type AgentSnapshotPostActionStatus

type AgentSnapshotPostActionStatus string

type AgentSnapshotPostActionType

type AgentSnapshotPostActionType string

type AgentSnapshotPostStatus

type AgentSnapshotPostStatus string
const (
	AgentSnapshotPostStatusNew              AgentSnapshotPostStatus = "new"
	AgentSnapshotPostStatusInvalid          AgentSnapshotPostStatus = "invalid"
	AgentSnapshotPostStatusValid            AgentSnapshotPostStatus = "valid"
	AgentSnapshotPostStatusInferNew         AgentSnapshotPostStatus = "infer_new"
	AgentSnapshotPostStatusInferSubmitted   AgentSnapshotPostStatus = "infer_submitted"
	AgentSnapshotPostStatusInferError       AgentSnapshotPostStatus = "infer_error"
	AgentSnapshotPostStatusInferFailed      AgentSnapshotPostStatus = "infer_failed"
	AgentSnapshotPostStatusInferExpired     AgentSnapshotPostStatus = "infer_expired"
	AgentSnapshotPostStatusInferResolved    AgentSnapshotPostStatus = "infer_resolved"
	AgentSnapshotPostStatusInferRefund      AgentSnapshotPostStatus = "infer_refund"
	AgentSnapshotPostStatusReplied          AgentSnapshotPostStatus = "replied"
	AgentSnapshotPostStatusRepliedError     AgentSnapshotPostStatus = "replied_error"
	AgentSnapshotPostStatusRepliedCancelled AgentSnapshotPostStatus = "replied_cancelled"
	AgentSnapshotPostStatusReposted         AgentSnapshotPostStatus = "reposted"
	AgentSnapshotPostStatusRepostedError    AgentSnapshotPostStatus = "reposted_error"
)

type AgentStore

type AgentStore struct {
	gorm.Model
	NetworkID          uint64 `gorm:"default:0"`
	ContractAddress    string
	TokenId            uint64 `gorm:"default:0"`
	StoreId            string `gorm:"unique_index"`
	Type               AgentStoreType
	Name               string
	Description        string `gorm:"type:text"`
	OwnerAddress       string
	OwnerID            uint
	Owner              *User
	AuthenUrl          string `gorm:"type:longtext"`
	Docs               string `gorm:"type:longtext"`
	ApiUrl             string `gorm:"type:longtext"`
	Icon               string `gorm:"type:text"`
	Status             AgentStoreStatus
	Price              numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	AgentStoreMissions []*AgentStoreMission
	NumInstall         uint             `gorm:"default:0"`
	NumUsage           uint             `gorm:"default:0"`
	Volume             numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	MemeID             uint
	Meme               *Meme
	TokkenAddress      string
}

type AgentStoreInstall

type AgentStoreInstall struct {
	gorm.Model
	Type           AgentStoreInstallType
	Code           string `gorm:"unique_index"`
	UserID         uint   `gorm:"unique_index:agent_store_main_idx"`
	User           *User
	AgentStoreID   uint `gorm:"unique_index:agent_store_main_idx"`
	AgentInfoID    uint `gorm:"unique_index:agent_store_main_idx"`
	AgentStore     *AgentStore
	CallbackParams string `gorm:"type:longtext"` //{"user_id" : "123", "authen_token" : "xxx",...}
	Status         AgentStoreInstallStatus
}

type AgentStoreInstallStatus

type AgentStoreInstallStatus string

type AgentStoreInstallType

type AgentStoreInstallType string

type AgentStoreLog

type AgentStoreLog struct {
	gorm.Model
	AgentStoreInstallID uint
	UserID              uint
	AgentStoreID        uint
	Price               numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	UrlPath             string           `gorm:"type:text"`
	Status              int
}

type AgentStoreMission

type AgentStoreMission struct {
	gorm.Model
	AgentStoreID uint `gorm:"index"`
	Name         string
	Description  string           `gorm:"type:text"`
	UserPrompt   string           `gorm:"type:longtext"`
	Price        numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	OwnerAddress string
	ToolList     string  `gorm:"type:longtext"`
	Rating       float64 `gorm:"type:decimal(5,2);default:0"`
	NumRating    uint    `gorm:"default:0"`
	NumUsed      uint    `gorm:"default:0"`
	Status       AgentStoreStatus
	Icon         string           `gorm:"type:text"`
	Volume       numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
}

type AgentStoreMissionStatus

type AgentStoreMissionStatus string

type AgentStoreStatus

type AgentStoreStatus string

type AgentStoreTry

type AgentStoreTry struct {
	gorm.Model
	UserID       uint `gorm:"unique_index:agent_store__try_history_main_idx"`
	AgentStoreID uint `gorm:"unique_index:agent_store__try_history_main_idx"`
}

type AgentStoreTryDetail

type AgentStoreTryDetail struct {
	gorm.Model
	AgentStoreTryID     uint `gorm:"index"`
	FromUser            bool
	Content             string `gorm:"type:text"`
	AgentSnapshotPostID uint
	AgentSnapshotPost   *AgentSnapshotPost
}

type AgentStoreType

type AgentStoreType string

type AgentStudio

type AgentStudio struct {
	ID          uint                   `json:"id"`
	Idx         string                 `json:"idx"`
	CategoryIdx string                 `json:"categoryIdx"`
	Title       string                 `json:"title"`
	Data        map[string]interface{} `json:"data"`
	Children    []*AgentStudioChildren `json:"children"`
}

type AgentStudioChildren

type AgentStudioChildren struct {
	ID          uint                   `json:"id"`
	Idx         string                 `json:"idx"`
	CategoryIdx string                 `json:"categoryIdx"`
	Title       string                 `json:"title"`
	Data        map[string]interface{} `json:"data"`
}

type AgentStudioGraphData

type AgentStudioGraphData struct {
	Data []*AgentStudio `json:"data"`
}

type AgentStudioTwitterInfo

type AgentStudioTwitterInfo struct {
	ID       uint   `json:"id"`
	Username string `json:"username"`
}

type AgentSummaryPostStatus

type AgentSummaryPostStatus string
const (
	AgentSummaryPostStatusNew            AgentSummaryPostStatus = "new"
	AgentSummaryPostStatusInvalid        AgentSummaryPostStatus = "invalid"
	AgentSummaryPostStatusValid          AgentSummaryPostStatus = "valid"
	AgentSummaryPostStatusInferNew       AgentSummaryPostStatus = "infer_new"
	AgentSummaryPostStatusInferSubmitted AgentSummaryPostStatus = "infer_submitted"
	AgentSummaryPostStatusInferError     AgentSummaryPostStatus = "infer_error"
	AgentSummaryPostStatusInferFailed    AgentSummaryPostStatus = "infer_failed"
	AgentSummaryPostStatusInferResolved  AgentSummaryPostStatus = "infer_resolved"
	AgentSummaryPostStatusPosted         AgentSummaryPostStatus = "posted"
	AgentSummaryPostStatusPostedError    AgentSummaryPostStatus = "posted_error"
)

type AgentTeleMsg

type AgentTeleMsg struct {
	gorm.Model
	MessageID              string `gorm:"unique_index"`
	MessageDate            *time.Time
	Content                string `gorm:"type:longtext"`
	ChatID                 string
	ChatUsername           string
	AgentInfoID            uint `gorm:"index"`
	AgentInfo              *AgentInfo
	AgentSnapshotMissionID uint `gorm:"index"`
	AgentSnapshotMission   *AgentSnapshotMission
	Status                 TeleMsgStatus
}

type AgentTipHistoryStatus

type AgentTipHistoryStatus string

type AgentTipHistorySymbol

type AgentTipHistorySymbol string

type AgentTokenInfo

type AgentTokenInfo struct {
	gorm.Model
	NetworkID       uint64
	NetworkName     string
	AgentInfoID     uint `gorm:"unique_index"`
	AgentInfo       *AgentInfo
	PriceUsd        numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	Price           numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	BaseTokenSymbol string
	BaseTokenPrice  numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	PoolAddress     string           `gorm:"index"`
	PriceLast24h    numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	VolumeLast24h   numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	TotalVolume     numeric.BigFloat `gorm:"index;type:decimal(36,18);default:0"`
	TipAmount       numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	WalletBalance   numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	DexUrl          string
	TotalSupply     int64
	UsdMarketCap    float64
	RaydiumPool     string
	PriceChange     float64
	DexId           string
	//
	Percent   float64          `gorm:"-"`
	MarketCap numeric.BigFloat `gorm:"-"`
}

type AgentTradeHistory

type AgentTradeHistory struct {
	gorm.Model
	NetworkID         uint64
	TxHash            string `gorm:"index"`
	ContractAddress   string `gorm:"index"`
	EventId           string `gorm:"unique_index:pump_trade_histories_main_idx"`
	TxAt              time.Time
	RecipientAddress  string `gorm:"index"`
	RecipientUserID   uint   `gorm:"index"`
	RecipientUser     *User
	Amount0           numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	Amount1           numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	SqrtPriceX96      string
	Liquidity         numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	Tick              int64
	Price             numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	AgentTokenAddress string           `gorm:"index"`
	AgentInfoID       uint             `gorm:"index"`
	AgentInfo         *AgentInfo
	TokenInAddress    string
	AmountIn          numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	TokenOutAddress   string           `gorm:"index"`
	AmountOut         numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	BaseTokenSymbol   string           `gorm:"default:'BTC'"`
	BaseTokenPrice    numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	BaseAmount        numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	TokenAmount       numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	IsBuy             bool
}

type AgentTradeToken

type AgentTradeToken struct {
	gorm.Model
	NetworkID    uint64
	NetworkName  string
	TokenSymbol  string
	TokenName    string
	TokenAddress string
	CmcId        string
	Enabled      bool `gorm:"default:1"`
}

type AgentTwitterPost

type AgentTwitterPost struct {
	gorm.Model
	NetworkID             uint64
	AgentInfoID           uint `gorm:"index"`
	AgentInfo             *AgentInfo
	TwitterID             string
	TwitterUser           *TwitterUser `gorm:"foreignKey:twitter_id;AssociationForeignKey:twitter_id"`
	TwitterUsername       string
	TwitterName           string
	TwitterPostID         string           `gorm:"unique_index"`
	TwitterConversationId string           `gorm:"index"`
	TwitterParentPostID   string           `gorm:"index"`
	TwitterParentPost     *UserTwitterPost `gorm:"foreignKey:twitter_parent_post_id;AssociationForeignKey:twitter_post_id"`
	Type                  AgentTwitterPostType
	PostType              AgentSnapshotPostActionType
	PostAt                *time.Time `gorm:"index"`
	Content               string     `gorm:"type:longtext"`
	ExtractContent        string     `gorm:"type:longtext"`
	InferData             string     `gorm:"type:longtext"`
	ReplyContent          string     `gorm:"type:longtext"`
	ReplyPostId           string     `gorm:"index"`
	ReplyPostIds          string     `gorm:"type:text"`
	RePostId              string
	ImageUrl              string
	InferTxHash           string
	InferId               string
	SubmitSolutionTxHash  string
	InferAt               *time.Time
	InferNum              uint                   `gorm:"default:0"`
	Status                AgentTwitterPostStatus `gorm:"index"`
	Prompt                string                 `gorm:"type:longtext"`
	Error                 string                 `gorm:"type:longtext"`
	FollowerCount         uint                   `gorm:"default:0"`
	ReplyPostAt           *time.Time
	ReplyPostReply        int
	ReplyPostView         int
	ReplyPostFavorite     int
	ReplyPostBookmark     int
	ReplyPostQuote        int
	ReplyPostRetweet      int
	RePostAt              *time.Time
	InscribeTxHash        string
	BitcoinTxHash         string
	ReplyScheduleAt       *time.Time
	Fee                   numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	IsMigrated            bool             `gorm:"default:0"`
	TokenName             string
	TokenSymbol           string
	TokenAddress          string
	TokenImageUrl         string
	TokenDesc             string `gorm:"type:longtext"`
	TokenImageInferID     string
	TokenSignature        string
	IsCreateAgent         bool `gorm:"default:0"`
	AgentChain            string
	OwnerUsername         string
	OwnerTwitterID        string
}

func (*AgentTwitterPost) GetAgentOnwerName

func (m *AgentTwitterPost) GetAgentOnwerName() string

func (*AgentTwitterPost) GetOwnerTwitterID

func (m *AgentTwitterPost) GetOwnerTwitterID() string

func (AgentTwitterPost) IsValidSubmitVideoInfer

func (m AgentTwitterPost) IsValidSubmitVideoInfer() bool

type AgentTwitterPostStatus

type AgentTwitterPostStatus string

type AgentTwitterPostType

type AgentTwitterPostType string

type AgentUriData

type AgentUriData struct {
	Name string `json:"name"`
}

type AgentUtilityInstall

type AgentUtilityInstall struct {
	gorm.Model
	Address     string `gorm:"unique_index:agent_utility_install_main_idx"`
	AgentInfoID uint   `gorm:"unique_index:agent_utility_install_main_idx"`
}

type AgentWakeupKnowledgeBase

type AgentWakeupKnowledgeBase struct {
	KbId    string `json:"kb_id"`
	ChainId string `json:"chain_id"`
}

type AgentWallet

type AgentWallet struct {
	gorm.Model
	NetworkID   uint64 `gorm:"unique_index:agent_wallets_main_idx"`
	AgentInfoID uint   `gorm:"unique_index:agent_wallets_main_idx"`
	AgentInfo   *AgentInfo
	Address     string
	CdpWalletID string
}

type AgentWalletAction

type AgentWalletAction struct {
	gorm.Model
	NetworkID              uint64
	AgentInfoID            uint `gorm:"index"`
	AgentWalletID          uint `gorm:"index"`
	ActionType             string
	ActionInput            string `gorm:"type:longtext"`
	ActionOutput           string `gorm:"type:longtext"`
	Status                 AgentWalletActionStatus
	RefID                  string
	Toolset                string
	AgentSnapshotMissionID uint `gorm:"index"`
	AgentSnapshotMission   *AgentSnapshotMission
	AgentSnapshotPostID    uint `gorm:"index"`
	AgentSnapshotPost      *AgentSnapshotPost
	Side                   string
	Mint                   string
	AmountIn               numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	AmountOut              numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	TxHash                 string
}

type AgentWalletActionStatus

type AgentWalletActionStatus string
const (
	AgentWalletActionStatusNew   AgentWalletActionStatus = "new"
	AgentWalletActionStatusDone  AgentWalletActionStatus = "done"
	AgentWalletActionStatusError AgentWalletActionStatus = "error"
)

type AgentWalletTrade

type AgentWalletTrade struct {
	gorm.Model
	EventId                string `gorm:"unique_index"`
	NetworkID              uint64
	AgentInfoID            uint `gorm:"index"`
	AgentWalletID          uint `gorm:"index"`
	TradedAt               *time.Time
	TokenIn                string
	TokenOut               string
	AmountIn               numeric.BigInt
	AmountOut              numeric.BigInt
	TxHash                 string
	RefID                  string
	AgentSnapshotMissionID uint `gorm:"index"`
	AgentSnapshotMission   *AgentSnapshotMission
	AgentSnapshotPostID    uint `gorm:"index"`
	AgentSnapshotPost      *AgentSnapshotPost
}

type AgentWalletTradeSum

type AgentWalletTradeSum struct {
	Mint       string
	BuyAmount  numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	SellAmount numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
}

type ApiSubscriptionHistory

type ApiSubscriptionHistory struct {
	gorm.Model
	NetworkID      uint64
	UserAddress    string
	ApiKey         string
	PackageID      uint
	Package        ApiSubscriptionPackage
	DepositAddress string `gorm:"index"`
	DepositStatus  DepositStatus
	TxHash         string
	EventId        string `gorm:"unique_index"`
	NumToken       uint64
	StartedAt      *time.Time
	ExpiresAt      *time.Time
}

type ApiSubscriptionKey

type ApiSubscriptionKey struct {
	gorm.Model
	NetworkID      uint64 `gorm:"unique_index:api_sub_key_main_uidx"`
	UserAddress    string `gorm:"unique_index:api_sub_key_main_uidx"`
	TwitterID      string `gorm:"unique_index:api_sub_key_main_uidx"`
	TwitterInfoID  uint
	TwitterInfo    *TwitterInfo
	ApiKey         string `gorm:"unique_index"`
	PackageID      uint
	Package        ApiSubscriptionPackage
	QuotaRemaining uint64
	StartedAt      *time.Time
	ExpiresAt      *time.Time
	DepositAddress string `gorm:"index"`
}

type ApiSubscriptionPackage

type ApiSubscriptionPackage struct {
	gorm.Model
	Name        string
	Description string           `gorm:"type:text"`
	Price       numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	NetworkID   uint64
	NumToken    uint64
	Type        PackageType
	DurationDay uint
}

type ApiSubscriptionUsageLog

type ApiSubscriptionUsageLog struct {
	gorm.Model
	ApiKey   string
	Endpoint string
	NumToken uint64
}

type AppConfig

type AppConfig struct {
	gorm.Model
	NetworkID uint64 `gorm:"unique_index:app_configs_main_uidx"`
	Name      string `gorm:"unique_index:app_configs_main_uidx"`
	Value     string
	Public    bool `gorm:"default:0"`
	TxHash    string
}

type AssistantStatus

type AssistantStatus string

type AuthCode

type AuthCode struct {
	gorm.Model
	PublicCode string `gorm:"index"`
	SecretCode string `gorm:"index"`
	ETHAddress string `gorm:"index"`
	Expired    time.Time
}

type BTCL1InscribeTx

type BTCL1InscribeTx struct {
	gorm.Model
	TxHash         string
	InscribeTxHash string
	Error          string `gorm:"type:longtext"`
}

type BaseTokenSymbol

type BaseTokenSymbol string

type BatchInferHistory

type BatchInferHistory struct {
	gorm.Model
	UserID                          string                  `json:"user_id"`
	UserAddress                     string                  `json:"user_address"`
	Toolset                         ToolsetType             `json:"toolset"`
	AgentContractAddress            string                  `json:"agent_contract_address"`
	ContractAgentID                 string                  `json:"contract_agent_id"`
	ChainID                         uint64                  `json:"chain_id"`
	AssistantID                     string                  `json:"assistant_id"`
	PromptInput                     string                  `json:"prompt_input"`
	SystemPrompt                    string                  `json:"system_prompt"`
	PromptInputHash                 string                  `json:"prompt_input_hash"`
	AgentType                       string                  `json:"agent_type"`
	TwitterSnapshot                 string                  `json:"twitter_snapshot"`
	UserInfoSnapshot                string                  `json:"user_info_snapshot"`
	OutputMaxCharacter              uint                    `json:"output_max_character"`
	PromptOutput                    string                  `json:"prompt_output"`
	PromptOutputHash                string                  `json:"prompt_output_hash"`
	SubmitPromptOutputAt            time.Time               `json:"submit_prompt_output_at"`
	Status                          BatchInferHistoryStatus `json:"status"`
	Log                             string                  `json:"log"`
	InferID                         string                  `json:"infer_id"`
	ModelID                         string                  `json:"model_id"`
	InscribeTxHash                  string                  `json:"inscribe_tx_hash"`
	SubmitSolutionInscribeTxHash    string                  `json:"submit_solution_tx_hash"`
	BtcInscribeTxHash               string                  `json:"btc_inscribe_tx_hash"`
	BtcSubmitSolutionInscribeTxHash string                  `json:"btc_submit_solution_inscribe_tx_hash"`
	InferWalletAddress              string                  `json:"infer_wallet_address"`
	SubmitInferAt                   time.Time               `json:"submit_infer_at"`
	AssignmentAddresses             string                  `json:"assignment_addresses" gorm:"type:json"` //[]string
	SubmitSolutionAddress           string                  `json:"submit_solution_address"`
	CommitTxHash                    string                  `json:"commit_tx_hash" gorm:"type:json"`              //[]string
	RevealTxHash                    string                  `json:"reveal_tx_hash" gorm:"type:json"`              //[]string
	BtcCommitInscribeTxHash         string                  `json:"btc_commit_inscribe_tx_hash" gorm:"type:json"` //[]string
	BtcRevealInscribeTxHash         string                  `json:"btc_reveal_inscribe_tx_hash" gorm:"type:json"` //[]string
}

type BatchInferHistoryStatus

type BatchInferHistoryStatus string
const (
	BatchInferHistoryStatusPending       BatchInferHistoryStatus = "pending"
	BatchInferHistoryStatusAgentInferred BatchInferHistoryStatus = "agent-inferred"
	BatchInferHistoryStatusQueueHandled  BatchInferHistoryStatus = "queue-handled"
	BatchInferHistoryStatusCompleted     BatchInferHistoryStatus = "completed"
	BatchInferHistoryStatusFailed        BatchInferHistoryStatus = "failed"
)

type BlockScanInfo

type BlockScanInfo struct {
	gorm.Model
	Type            string
	NetworkID       uint64
	Duration        uint   `gorm:"default:0"`
	LastBlockNumber int64  `gorm:"default:1"`
	NumBlocks       int64  `gorm:"default:50"`
	LastBlockError  string `gorm:"type:longtext"`
	Enabled         bool   `gorm:"default:1"`
	ContractAddrs   string `gorm:"type:longtext"`
}

type Bot

type Bot struct {
	gorm.Model
	NetworkID uint64
	Address   string
}

type BotOrder

type BotOrder struct {
	gorm.Model
	NetworkID   uint64
	Address     string
	Type        BotOrderType
	ScheduledAt *time.Time
	MemeID      uint
	TokenIn     string
	TokenOut    string
	AmountIn    numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	AmountOut   numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	Price       numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	ParentPrice numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	UniFee      uint             `gorm:"default:0"`
	DepositHash string
	TxHash      string
	PoolledHash string
	Status      BotOrderStatus
	ParentID    uint
	Error       string
}

type BotOrderStatus

type BotOrderStatus string

type BotOrderType

type BotOrderType string

type CallWakeupRequest

type CallWakeupRequest struct {
	Toolkit       []interface{}         `json:"toolkit"`
	Prompt        string                `json:"prompt"`
	Task          string                `json:"task"`
	Toolset       string                `json:"toolset"`
	MetaData      WakeupRequestMetadata `json:"meta_data"`
	SystemPrompt  string                `json:"system_prompt"`
	Model         string                `json:"model"`
	AgentMetaData AgentMetadataRequest  `json:"agent_meta_data"`
	ToolList      string                `json:"tool_list"`
}

type Cat20TransferTransaction

type Cat20TransferTransaction struct {
	gorm.Model
	TokenId         string
	ReceiverAddress string
	SendAmount      numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	SenderAddress   string           `gorm:"index"`
	TxHash          string           `gorm:"index"`
	TxAt            *time.Time
	Error           string
}

type ChainConfig

type ChainConfig struct {
	gorm.Model
	ChainID              string             `json:"chain_id" gorm:"column:chain_id"`
	RPC                  string             `json:"rpc" gorm:"column:rpc"`
	Name                 string             `json:"name" gorm:"column:name"`
	Explorer             string             `json:"explorer" gorm:"column:explorer"`
	EAIErc20             string             `json:"eai_erc20" gorm:"column:eai_erc20"`
	NFTAddress           string             `json:"nft_address" gorm:"column:nft_address"` // or collect address
	PaymasterAddress     string             `json:"paymaster_address" gorm:"column:paymaster_address"`
	PaymasterFeeZero     bool               `json:"paymaster_fee_zero" gorm:"column:paymaster_fee_zero"`
	PaymasterToken       string             `json:"paymaster_token" gorm:"column:paymaster_token"`
	WorkerhubAddress     string             `json:"workerhub_address" gorm:"column:workerhub_address"`
	StakinghubAddress    string             `json:"stakinghub_address" gorm:"column:stakinghub_address"`
	ZkSync               bool               `json:"zk_sync" gorm:"column:zk_sync"`
	EAINative            bool               `json:"eai_native" gorm:"column:eai_native"`
	Thumbnail            string             `json:"thumbnail" gorm:"column:thumbnail"`
	DaoToken             string             `json:"dao_token" gorm:"column:dao_token"`
	ModelIds             string             `json:"model_ids" gorm:"column:model_ids;type:json"` //[]string
	ModelDetails         []*TrainingRequest `json:"model_details" gorm:"-"`
	AgentContractAddress string             `json:"agent_contract_address" gorm:"column:agent_contract_address"`
	NeedInscribeTx       bool               `json:"need_inscribe_tx" gorm:"column:need_inscribe_tx"`
	WebStatUri           string             `json:"web_stat_uri" gorm:"column:web_stat_uri"` // e.g., https://webstat.shard-ai.l2aas.com
	BlockNumberDelay     uint64             `json:"block_number_delay" gorm:"column:block_number_delay"`
	ListRPC              string             `json:"-" gorm:"column:list_rpc;type:json"` //[]string
	GasLimit             uint64             `json:"gas_limit" gorm:"column:gas_limit"`
	SupportModelNames    string             `json:"support_model_names" gorm:"column:support_model_names;type:json"` //map[string]string  Serialize as JSON
	SupportStoreRaw      bool               `json:"support_store_raw" gorm:"column:support_store_raw"`
	IsWorkerHubV4        bool               `json:"is_workerhub_v4" gorm:"column:is_workerhub_v4"`
}

type ChartData

type ChartData struct {
	PairID      string           `json:"pair_id"`
	AvgPrice    numeric.BigFloat `json:"avg_price"`
	MinPrice    numeric.BigFloat `json:"min_price"`
	MaxPrice    numeric.BigFloat `json:"max_price"`
	BaseVolume  numeric.BigFloat `json:"base_volume"`
	TokenVolume numeric.BigFloat `json:"token_volume"`
	OpenPrice   numeric.BigFloat `json:"open_price"`
	ClosePrice  numeric.BigFloat `json:"close_price"`
	ChartTime   *time.Time       `json:"chart_time"`
}

type ChartType

type ChartType string

type ChatCompletionStreamResponse

type ChatCompletionStreamResponse struct {
	openai.ChatCompletionStreamResponse `json:",inline"`
	Message                             string                `json:"message"`
	Code                                int                   `json:"code"`
	OnchainData                         CompletionOnChainData `json:"onchain_data"`
}

type CompletionOnChainData

type CompletionOnChainData struct {
	InferID             string   `json:"infer_id"`
	AssignmentAddresses []string `json:"pbft_committee"`
	SubmitAddress       string   `json:"proposer"`
	InferTx             string   `json:"infer_tx"`
	SubmitTx            string   `json:"propose_tx"`
	SeizeMinerTx        string   `json:"-"`
	InputCid            string   `json:"input_cid"`
	OutputCid           string   `json:"output_cid"`
}

type ContractInferenceStatus

type ContractInferenceStatus int
const (
	ContractInferenceStatusNil         ContractInferenceStatus = 0
	ContractInferenceStatusSolving     ContractInferenceStatus = 1
	ContractInferenceStatusCommit      ContractInferenceStatus = 2
	ContractInferenceStatusReveal      ContractInferenceStatus = 3
	ContractInferenceStatusProcessed   ContractInferenceStatus = 4
	ContractInferenceStatusKilled      ContractInferenceStatus = 5
	ContractInferenceStatusTransferred ContractInferenceStatus = 6
)

type CreateTokenModeType

type CreateTokenModeType string

type DepositStatus

type DepositStatus string

type Erc1155Holder

type Erc1155Holder struct {
	gorm.Model
	NetworkID       uint64 `gorm:"unique_index:nft_holders_main_idx"`
	ContractAddress string `gorm:"unique_index:nft_holders_main_idx"`
	TokenID         uint   `gorm:"unique_index:nft_holders_main_idx"`
	Address         string `gorm:"unique_index:nft_holders_main_idx"`
	Balance         string `gorm:"default:0"`
}

type Erc20Holder

type Erc20Holder struct {
	gorm.Model
	NetworkID           uint64           `gorm:"unique_index:token_holder_main_uidx"`
	ContractAddress     string           `gorm:"unique_index:token_holder_main_uidx"`
	Address             string           `gorm:"unique_index:token_holder_main_uidx"`
	Balance             string           `gorm:"default:0"`
	UserName            string           `gorm:"-"`
	ImageURL            string           `gorm:"-"`
	MemeName            string           `gorm:"-"`
	MemeTicker          string           `gorm:"-"`
	MemeImage           string           `gorm:"-"`
	MemePrice           numeric.BigFloat `gorm:"-"`
	MemePriceUsd        numeric.BigFloat `gorm:"-"`
	MemeBaseTokenSymbol string           `gorm:"-"`
}

type Erc721Holder

type Erc721Holder struct {
	gorm.Model
	NetworkID       uint64 `gorm:"unique_index:nft_holders_main_idx"`
	ContractAddress string `gorm:"unique_index:nft_holders_main_idx"`
	TokenID         uint   `gorm:"unique_index:nft_holders_main_idx"`
	OwnerAddress    string `gorm:"index"`
}

type ExternalAgentType

type ExternalAgentType string

type ExternalWallet

type ExternalWallet struct {
	gorm.Model
	APIKey  string `gorm:"unique_index"`
	Type    ExternalWalletType
	Address string `gorm:"unique_index"`
}

type ExternalWalletOrder

type ExternalWalletOrder struct {
	gorm.Model
	ExternalWalletID uint
	ExternalWallet   *ExternalWallet
	Type             ExternalWalletOrderType
	TokenAddress     string
	TokenName        string
	TokenSymbol      string
	Destination      string
	AmountIn         numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	AmountOut        numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	TxHash           string
	Status           ExternalWalletOrderStatus
	Error            string `gorm:"type:longtext"`
}

type ExternalWalletOrderStatus

type ExternalWalletOrderStatus string

type ExternalWalletOrderType

type ExternalWalletOrderType string

type ExternalWalletToken

type ExternalWalletToken struct {
	gorm.Model
	Symbol        string
	Name          string
	TokenAddress  string
	Price         float64 `gorm:"default:0"`
	Enabled       bool    `gorm:"default:0"`
	Decimals      int     `gorm:"default:0"`
	CoingeckoSlug string
}

type ExternalWalletType

type ExternalWalletType string
const (
	ExternalWalletTypeSOL ExternalWalletType = "SOL"
)

type HGModelCheckResult

type HGModelCheckResult struct {
	EstimatedSize   float64 `json:"estimated_size"` // GB
	MinRequirements struct {
		VRAM string `json:"VRAM"`
		RAM  string `json:"RAM"`
	} `json:"min_requirements"`
}

type InfraTwitterApp

type InfraTwitterApp struct {
	gorm.Model
	Address       string
	TwitterInfoID uint
	TwitterInfo   *TwitterInfo
	EaiBalance    numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	TotalRequest  uint64
	RemainRequest uint64
}

type InfraTwitterTopupTx

type InfraTwitterTopupTx struct {
	gorm.Model
	NetworkID      uint64
	EventId        string            `gorm:"unique_index"`
	Type           AgentEaiTopupType `gorm:"default:'deposit'"`
	DepositAddress string
	ToAddress      string
	TxHash         string
	Amount         numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	Status         AgentEaiTopupStatus
}

type InsertRagResponse

type InsertRagResponse struct {
	Result string  `json:"result"`
	Error  *string `json:"error"`
	Status string  `json:"status"`
}

type JobConfig

type JobConfig struct {
	gorm.Model
	JobName      string     `json:"job_name"`
	Enable       bool       `json:"enable"`
	Interval     int64      `json:"interval"`
	LastRun      *time.Time `json:"last_run"`
	IntervalUnit string     `json:"interval_unit"`
}

type KnowledgeBase

type KnowledgeBase struct {
	gorm.Model
	Status                 KnowledgeBaseStatus  `json:"status"`
	UserAddress            string               `json:"user_address"`
	DepositAddress         string               `json:"deposit_address"`
	DepositPrivKey         string               `json:"-"`
	DepositTxHash          string               `json:"deposit_tx_hash"`
	Name                   string               `json:"name"`
	Description            string               `json:"description"`
	AgentInfoId            uint                 `json:"agent_info_id"`
	AgentInfo              *AgentInfo           `json:"agent_info" gorm:"foreignkey:AgentInfoId;references:ID"`
	NetworkID              uint64               `json:"network_id"`
	KBTokenContractAddress string               `json:"kb_token_contract_address"`
	KBTokenID              string               `json:"kb_token_id" gorm:"index"`
	KBTokenMintTx          string               `json:"kb_token_mint_tx" gorm:"index"`
	KnowledgeBaseFiles     []*KnowledgeBaseFile `json:"knowledge_base_files"`
	Fee                    float64              `json:"fee"`         // total fee user need pay (all time)
	ChargeMore             float64              `json:"charge_more"` // fee user need pay current (last update or create)
	SolanaDepositAddress   string               `json:"solana_deposit_address"`
	SolanaDepositPrivKey   string               `json:"-"`
	FilecoinHash           string               `json:"filecoin_hash"`
	DepositChainId         uint64               `json:"deposit_chain_id"`
	LastErrorMessage       string               `json:"last_error_message"`
	CurrentGroupFileId     int64                `json:"current_group_file_id"`
	KbId                   string               `json:"kb_id"`
	ThumbnailUrl           string               `json:"thumbnail_url"`
	UsageFee               float64              `json:"usage_fee"`
	RagInsertFileRequest   string               `json:"rag_insert_file_request"`
	DomainUrl              string               `json:"domain_url"`
}

func (*KnowledgeBase) CalcChargeMore

func (m *KnowledgeBase) CalcChargeMore() float64

func (*KnowledgeBase) FileUrls

func (m *KnowledgeBase) FileUrls() []string

type KnowledgeBaseFile

type KnowledgeBaseFile struct {
	gorm.Model
	KnowledgeBaseId     uint                    `json:"knowledge_base_id"`
	FileUrl             string                  `json:"file_url"`
	FileName            string                  `json:"name"`
	FileSize            uint                    `json:"size"`
	GroupFileId         int64                   `json:"group_file_id"`
	Status              KnowledgeBaseFileStatus `json:"status"`
	FilecoinHash        string                  `json:"filecoin_hash"`
	FilecoinHashRawData string                  `json:"filecoin_hash_raw_data"`
	TransferHash        string                  `json:"transfer_hash"`
	LastErrorMessage    string                  `json:"last_error_message"`
	FromUrl             string                  `json:"from_url"`
}

type KnowledgeBaseFileStatus

type KnowledgeBaseFileStatus int64
const (
	KnowledgeBaseFileStatusPending KnowledgeBaseFileStatus = iota + 1
	KnowledgeBaseFileStatusDone
	KnowledgeBaseFileStatusFail
)

type KnowledgeBaseStatus

type KnowledgeBaseStatus int64
const (
	KnowledgeBaseStatusWaitingPayment KnowledgeBaseStatus = iota + 1
	KnowledgeBaseStatusPaymentReceipt
	KnowledgeBaseStatusProcessing
	KnowledgeBaseStatusDone
	KnowledgeBaseStatusMinted
	KnowledgeBaseStatusProcessingFailed
	KnowledgeBaseStatusProcessUpdate
	KnowledgeBaseStatusProcessCrawlData
	KnowledgeBaseStatusCrawlDataDone
)

type Launchpad

type Launchpad struct {
	gorm.Model
	NetworkID              uint64
	TwitterPostID          uint   `gorm:"unique_index"`
	TweetId                string `gorm:"unique_index"`
	Name                   string
	Description            string `gorm:"type:text"`
	TwitterId              string
	TwitterUsername        string
	TwitterName            string
	Address                string
	LastScanID             string
	Status                 LaunchpadStatus `gorm:"index"`
	AgentSnapshotMissionID uint
	AgentSnapshotMission   *AgentSnapshotMission
	StartAt                *time.Time
	EndAt                  *time.Time `gorm:"index"`
	FinishedAt             *time.Time
	FundBalance            numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	TotalBalance           numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	SettleFundTxHash       string
	CancelFundTxHash       string
	AddLiquidityTxHash     string
	TokenAddress           string `gorm:"index"`
	TokenName              string
	TokenSymbol            string
	TokenImageUrl          string
	TotalSupply            numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	DeployTokenTxHash      string
	TgeBalance             numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	MaxFundBalance         numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	RefundBalance          numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	StartTweetId           string
	EndTweetId             string
}

type LaunchpadMember

type LaunchpadMember struct {
	gorm.Model
	NetworkID            uint64
	UserAddress          string `gorm:"unique_index:lp_member_main_idx"`
	TwitterID            string `gorm:"unique_index:lp_member_main_idx"`
	LaunchpadID          uint   `gorm:"unique_index:lp_member_main_idx"`
	Launchpad            *Launchpad
	TweetID              string
	TweetContent         string `gorm:"type:longtext"`
	Tier                 LaunchpadTier
	ReplyContent         string `gorm:"type:longtext"`
	ReplyPostAt          *time.Time
	ReplyPostID          string
	Error                string           `gorm:"type:longtext"`
	FundBalance          numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	MaxFundBalance       numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	TotalBalance         numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	RefundBalance        numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	RefundFeeBalance     numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	TokenBalance         numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	TokenTransferTxHash  string
	RefundTransferTxHash string
	Status               LaunchpadMemberStatus `gorm:"default:'new'"`
}

type LaunchpadMemberStatus

type LaunchpadMemberStatus string
const (
	LaunchpadMemberStatusNew         LaunchpadMemberStatus = "new"
	LaunchpadMemberStatusTgeDone     LaunchpadMemberStatus = "tge_done"
	LaunchpadMemberStatusTgeError    LaunchpadMemberStatus = "tge_error"
	LaunchpadMemberStatusDone        LaunchpadMemberStatus = "done"
	LaunchpadMemberStatusRefundError LaunchpadMemberStatus = "refund_error"
)

type LaunchpadStatus

type LaunchpadStatus string

type LaunchpadTier

type LaunchpadTier string

type LaunchpadTransaction

type LaunchpadTransaction struct {
	gorm.Model
	NetworkID   uint64
	EventId     string `gorm:"unique_index"`
	TxHash      string
	Type        LaunchpadTransactionType
	LaunchpadID uint
	UserAddress string
	Amount      numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	Fee         numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	Status      LaunchpadTransactionStatus
}

type LaunchpadTransactionStatus

type LaunchpadTransactionStatus string

type LaunchpadTransactionType

type LaunchpadTransactionType string

type ListKnowledgeBaseRequest

type ListKnowledgeBaseRequest struct {
	UserAddress string  `json:"user_address" form:"-"`
	AgentIds    []uint  `json:"agent_ids" form:"agent_ids"`
	Statuses    []int64 `json:"statuses" form:"statuses"`
}

type LuckyMoneyStatus

type LuckyMoneyStatus string
const (
	LuckyMoneyStatusNew        LuckyMoneyStatus = "new"
	LuckyMoneyStatusProcessing LuckyMoneyStatus = "processing"
	LuckyMoneyStatusInvalid    LuckyMoneyStatus = "invalid"
	LuckyMoneyStatusDone       LuckyMoneyStatus = "done"
)

type Meme

type Meme struct {
	gorm.Model
	NetworkID         uint64
	OwnerAddress      string `gorm:"index"`
	OwnerID           uint   `gorm:"index"`
	Owner             *User
	AgentInfoID       uint `gorm:"unique_index"`
	AgentInfo         *AgentInfo
	TokenAddress      string           `gorm:"index"`
	TokenId           string           `gorm:"index"`
	TotalSuply        numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	Decimals          uint64
	Name              string
	Ticker            string
	Description       string `gorm:"type:longtext collate utf8mb4_unicode_ci"`
	Err               string `gorm:"type:text collate utf8mb4_unicode_ci"`
	Image             string
	Twitter           string
	Telegram          string
	Website           string
	Status            MemeStatus `gorm:"index"`
	Pool              string     `gorm:"index"`
	UniswapPool       string     `gorm:"index"`
	Token0Address     string
	Token1Address     string
	Reserve0          numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	Reserve1          numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	Supply            numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	Price             numeric.BigFloat `gorm:"index;type:decimal(36,18);default:0"`
	PriceUsd          numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	PriceLast24h      numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	VolumeLast24h     numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	TotalVolume       numeric.BigFloat `gorm:"index;type:decimal(36,18);default:0"`
	TimeIndex         uint64
	BaseTokenIndex    int
	ZeroForOne        bool
	BaseTokenSymbol   string           `gorm:"default:'ETH'"`
	ReplyCount        uint64           `gorm:"index;default:0"`
	LastReply         *time.Time       `gorm:"index"`
	PositionID        int64            `gorm:"default:0"`
	UniswapPositionID int64            `gorm:"default:0"`
	Liquidity         numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	PositionLiquidity numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	TickLower         int64
	TickUpper         int64
	Tick              int64
	AddPool1TxHash    string
	RemovePool1TxHash string
	AddPool2TxHash    string
	AddPool2At        *time.Time `gorm:"index"`
	BurnPool2TxHash   string
	BurnPool2At       *time.Time `gorm:"index"`
	PoolFee           uint
	Weight            int `gorm:"index;default:0"`
	Shared            int
	ReqSyncAt         *time.Time
	SyncAt            *time.Time
	Fee               numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	ExternalTradeUrl  string
	NumRetries        int `gorm:"default:0"`

	//
	Percent                float64 `gorm:"-"`
	StoreImageOnChain      bool
	MarketCap              numeric.BigFloat  `gorm:"-"`
	TotalBalance           numeric.BigFloat  `gorm:"-"`
	Holders                int               `gorm:"-"`
	LatestAgentTwitterPost *AgentTwitterPost `gorm:"-"`
}

type MemeCatStatus

type MemeCatStatus string

type MemeFollowers

type MemeFollowers struct {
	gorm.Model
	UserID       uint `gorm:"unique_index:meme_followers_main_idx"`
	User         *User
	FollowUserID uint `gorm:"unique_index:meme_followers_main_idx"`
	FollowUser   *User
}

type MemeNotification

type MemeNotification struct {
	gorm.Model
	EventId    string `gorm:"unique_index:meme_notification_main_idx"`
	UserID     uint   `gorm:"index;default:0"`
	User       *User
	MemeID     uint `gorm:"index;default:0"`
	Meme       *Meme
	FollowerID uint `gorm:"index;default:0"`
	Follower   *User
	NotiType   NotiType
	Value      string `gorm:"type:longtext"`
	Seen       bool   `gorm:"index;default:0"`
}

type MemeNotificationSeen

type MemeNotificationSeen struct {
	gorm.Model
	NotificationID uint `gorm:"unique_index:meme_notification_seen_main_idx"`
	UserID         uint `gorm:"unique_index:meme_notification_seen_main_idx"`
	Seen           bool `gorm:"index;default:0"`
}

type MemeSeen

type MemeSeen struct {
	gorm.Model
	UserID      uint       `gorm:"unique_index:meme_seen_main_idx"`
	UserAddress string     `gorm:"index"`
	MemeID      uint       `gorm:"unique_index:meme_seen_main_idx"`
	MemeAddress string     `gorm:"index"`
	SeenTime    *time.Time `gorm:"index"`
}

type MemeStatus

type MemeStatus string

type MemeThreadLike

type MemeThreadLike struct {
	gorm.Model
	UserID   uint `gorm:"unique_index:meme_thread_like_main_idx"`
	ThreadID uint `gorm:"unique_index:meme_thread_like_main_idx"`
}

type MemeThreads

type MemeThreads struct {
	gorm.Model
	UserID         uint `gorm:"index"`
	User           *User
	MemeID         uint `gorm:"index"`
	Meme           *Meme
	Text           string `gorm:"type:longtext collate utf8mb4_unicode_ci"`
	ImageUrl       string
	Likes          int64
	ParentThreadID uint `gorm:"index"`
	Hidden         bool `gorm:"default:0"`

	Liked bool `gorm:"-"`
}

type MemeTokenHolder

type MemeTokenHolder struct {
	gorm.Model
	ContractAddress string           `gorm:"unique_index:token_holder_main_uidx"`
	Address         string           `gorm:"unique_index:token_holder_main_uidx"`
	Balance         numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`

	UserName            string           `gorm:"-"`
	ImageURL            string           `gorm:"-"`
	MemeName            string           `gorm:"-"`
	MemeTicker          string           `gorm:"-"`
	MemeImage           string           `gorm:"-"`
	MemePrice           numeric.BigFloat `gorm:"-"`
	MemePriceUsd        numeric.BigFloat `gorm:"-"`
	MemeBaseTokenSymbol string           `gorm:"-"`
}

type MemeTradeHistory

type MemeTradeHistory struct {
	gorm.Model
	NetworkID        uint64
	TxHash           string `gorm:"index"`
	ContractAddress  string `gorm:"index"`
	EventId          string `gorm:"unique_index:pump_trade_histories_main_idx"`
	TxAt             time.Time
	RecipientAddress string `gorm:"index"`
	RecipientUserID  uint   `gorm:"index"`
	RecipientUser    *User
	Amount0          numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	Amount1          numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	SqrtPriceX96     string
	Liquidity        numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	Tick             int64
	Price            numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	MemeTokenAddress string           `gorm:"index"`
	TokenId          string           `gorm:"index"`
	MemeID           uint             `gorm:"index"`
	Meme             *Meme
	TokenInAddress   string
	TokenIn          *Meme            `gorm:"foreignKey:contract_address_check;AssociationForeignKey:token_in_address"`
	AmountIn         numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	TokenOutAddress  string           `gorm:"index"`
	TokenOut         *Meme            `gorm:"foreignKey:contract_address_check;AssociationForeignKey:token_out_address"`
	AmountOut        numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	BaseTokenSymbol  string           `gorm:"default:'BTC'"`
	BaseTokenPrice   numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	BaseAmount       numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	TokenAmount      numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	IsBuy            bool
}

type MemeWhiteListAddress

type MemeWhiteListAddress struct {
	gorm.Model
	Address string `gorm:"index"`
}

type MissionStore

type MissionStore struct {
	gorm.Model
	Name         string
	Description  string `gorm:"type:text"`
	UserPrompt   string `gorm:"type:longtext"`
	Price        uint
	OwnerAddress string
	ToolList     string  `gorm:"type:longtext"`
	Rating       float64 `gorm:"type:decimal(5,2);default:0"`
	NumRating    uint
	NumUsed      uint
	Icon         string `gorm:"type:text"`
	OutputType   OutputType
	Params       string `gorm:"type:longtext"` //[{"name" : "token", "type" : "text", "description" : "this token is used to authenticate in xxx server side"}]

}

type MissionStoreHistory

type MissionStoreHistory struct {
	gorm.Model
	UserAddress    string
	MissionStoreID uint
	MissionStore   *MissionStore
	TxHash         string
	EventId        string `gorm:"unique_index"`
	StartedAt      *time.Time
	ExpiresAt      *time.Time
	IsRated        bool
}

type MissionStoreRating

type MissionStoreRating struct {
	gorm.Model
	UserAddress         string
	MissionStoreID      uint `gorm:"unique_index:mission_store_rating_main_uidx"`
	MissionStore        *MissionStore
	AgentSnapshotPostID uint `gorm:"unique_index:mission_store_rating_main_uidx"`
	AgentSnapshotPost   AgentSnapshotPost
	Rating              float64 `gorm:"type:decimal(5,2);default:0"`
	Comment             string  `gorm:"type:longtext"`
}

type ModelMarket

type ModelMarket struct {
	gorm.Model
	ModelID       string `json:"model_id" gorm:"column:model_id"`
	ModelAddress  string `json:"model_address" gorm:"column:model_address"`
	IsListing     bool   `json:"is_listing" gorm:"column:is_listing"`
	UserAddress   string `json:"user_address" gorm:"column:user_address"`
	Price         string `json:"price" gorm:"column:price"`
	Matched       bool   `json:"matched" gorm:"column:matched"`
	Cancelled     bool   `json:"cancelled" gorm:"column:cancelled"`
	OfferID       string `json:"offer_id" gorm:"column:offer_id"`
	Deadline      int64  `json:"deadline" gorm:"column:deadline"`
	AcceptAsset   string `json:"accept_asset" gorm:"column:accept_asset"`
	IsInvalid     bool   `json:"is_invalid" gorm:"column:is_invalid"`
	AtBlock       uint64 `json:"at_block" gorm:"column:at_block"`
	BuyerAddress  string `json:"buyer_address" gorm:"column:buyer_address"`
	SellerAddress string `json:"seller_address" gorm:"column:seller_address"`
}

type ModelPredictHistory

type ModelPredictHistory struct {
	gorm.Model
	RequestID               string                          `json:"requestId" gorm:"column:request_id"`
	ModelID                 string                          `json:"modelId" gorm:"column:model_id"`
	InferTxHash             string                          `json:"infer_tx_hash" gorm:"column:infer_tx_hash"`
	IsAgentInfer            bool                            `json:"is_agent_infer" gorm:"column:is_agent_infer"`
	Requester               string                          `json:"requester" gorm:"column:requester"`
	ClassName               string                          `json:"className" gorm:"column:class_name"`
	Status                  ModelPredictHistoryStatus       `json:"status" gorm:"column:status"` // 0: pending, 1: completed
	CdnURL                  string                          `json:"cdnURL" gorm:"column:cdn_url"`
	Result                  string                          `json:"result" gorm:"column:result"`
	Category                string                          `json:"category" gorm:"column:category"`
	Hashtag                 string                          `json:"hashtag" gorm:"column:hashtag"` // unique generate hashtag to share on Twitter
	LikeCount               int64                           `json:"likeCount" gorm:"column:like_count"`
	ViewCount               int64                           `json:"viewCount" gorm:"column:view_count"`
	ClaimedView             int64                           `json:"claimedView" gorm:"column:claimed_view"`
	ClaimedLike             int64                           `json:"claimedLike" gorm:"column:claimed_like"`
	SharedBy                string                          `json:"sharedBy" gorm:"type:json"` //    []string
	ClaimedPredictReward    bool                            `json:"claimedPredictReward" gorm:"column:claimed_predict_reward"`
	Metadata                string                          `json:"metadata" gorm:"column:metadata"`
	Description             string                          `json:"description" gorm:"column:description"`
	VerifyStatus            ModelPredictHistoryVerifyStatus `json:"verifyStatus" gorm:"column:verify_status"`
	Fee                     string                          `json:"fee" gorm:"column:fee"`
	ProcessedBys            string                          `json:"processedBys" gorm:"type:json"` //   []string
	WinnerMiner             string                          `json:"winnerMiner" gorm:"column:winner_miner"`
	WinnerFee               string                          `json:"winnerFee" gorm:"column:winner_fee"`
	WinnerTx                string                          `json:"winnerTx" gorm:"column:winner_tx"`
	ModelData               *TrainingRequest                `json:"model_data" gorm:"-"`
	RefundTx                string                          `json:"refundTx" gorm:"column:refund_tx"`
	ResolveInference        bool                            `json:"resolve_inference" gorm:"column:resolve_inference"`
	ContractInferenceStatus ContractInferenceStatus         `json:"contract_inference_status" gorm:"column:contract_inference_status"`
	SubmitTimeout           uint64                          `json:"submit_timeout" gorm:"column:submit_timeout"`
	CommitTimeout           uint64                          `json:"commit_timeout" gorm:"column:commit_timeout"`
	RevealTimeout           uint64                          `json:"reveal_timeout" gorm:"column:reveal_timeout"`
	InferenceMiner          string                          `json:"inference_miner" gorm:"column:inference_miner"`
	DaoTxTransferToUser     string                          `json:"dao_tx_transfer_to_user" gorm:"column:dao_tx_transfer_to_user"`
	DaoTxTransferToReferer  string                          `json:"dao_tx_transfer_to_referer" gorm:"column:dao_tx_transfer_to_referer"`
}

type ModelPredictHistoryStatus

type ModelPredictHistoryStatus int
const (
	ModelPredictHistoryStatusSolving   ModelPredictHistoryStatus = 0
	ModelPredictHistoryStatusProcessed ModelPredictHistoryStatus = 1
	// zk
	ModelPredictHistoryStatusCommit ModelPredictHistoryStatus = 2
	ModelPredictHistoryStatusReveal ModelPredictHistoryStatus = 3
)

type ModelPredictHistoryVerifyStatus

type ModelPredictHistoryVerifyStatus string
const (
	ModelPredictHistoryVerifyStatusPending ModelPredictHistoryVerifyStatus = "pending"
	ModelPredictHistoryVerifyStatusPassed  ModelPredictHistoryVerifyStatus = "passed"
	ModelPredictHistoryVerifyStatusFailed  ModelPredictHistoryVerifyStatus = "failed"
)

type NotiType

type NotiType string

type OutputType

type OutputType string
const (
	OutputTypeTwitter OutputType = "twitter"
	OutputTypeOthers  OutputType = "others"
)

type PackageType

type PackageType string

type ParamWakeupRequest

type ParamWakeupRequest struct {
	QuoteUsername string `json:"quote_username"`
	ReactMaxSteps int    `json:"react_max_steps"`
}

type PlatformType

type PlatformType string
const (
	PlatformTypeTwitter   PlatformType = "twitter"
	PlatformTypeFarcaster PlatformType = "farcaster"
)

type RagHookResponse

type RagHookResponse struct {
	Result *RagResult `json:"result"`
	Error  *string    `json:"error"`
	Status string     `json:"status"`
}

type RagResult

type RagResult struct {
	Ref        string `json:"ref"`
	Kb         string `json:"kb"`
	Identifier string `json:"identifier"`
	Message    string `json:"message"`
}

type SampleTwitterApp

type SampleTwitterApp struct {
	gorm.Model
	InstallCode   string
	ApiKey        string
	TwitterInfoID uint
	TwitterInfo   *TwitterInfo
}

type SocialInfo

type SocialInfo struct {
	AccountName string  `json:"account_name"`
	Fee         float64 `json:"fee"`
}

type StoreDefiApp

type StoreDefiApp struct {
	gorm.Model
	InstallCode string `gorm:"unique_index"`
	ApiKey      string `gorm:"unique_index"`
	SolAddress  string `gorm:"unique_index"`
}

type TeleMsgStatus

type TeleMsgStatus string
const (
	TeleMsgStatusNew TeleMsgStatus = "new"
)

type TokenHolder

type TokenHolder struct {
	gorm.Model
	NetworkID       uint64 `gorm:"unique_index:token_holder_main_uidx"`
	ContractAddress string `gorm:"unique_index:token_holder_main_uidx"`
	Address         string `gorm:"unique_index:token_holder_main_uidx"`
	Balance         string `gorm:"default:0"`
	LastBlockNumber uint

	UserName            string           `gorm:"-"`
	ImageURL            string           `gorm:"-"`
	MemeName            string           `gorm:"-"`
	MemeTicker          string           `gorm:"-"`
	MemeImage           string           `gorm:"-"`
	MemePrice           numeric.BigFloat `gorm:"-"`
	MemePriceUsd        numeric.BigFloat `gorm:"-"`
	MemeBaseTokenSymbol string           `gorm:"-"`
}

type TokenPrice

type TokenPrice struct {
	gorm.Model
	NetworkID    uint64
	Symbol       string
	Price        numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	Last24hPrice numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
}

type TokenSetupEnum

type TokenSetupEnum string

type TokenTransfer

type TokenTransfer struct {
	gorm.Model
	NetworkID       uint64
	EventId         string     `gorm:"unique_index"`
	ContractAddress string     `gorm:"index"`
	TransactionAt   *time.Time `gorm:"index"`
	TxHash          string
	From            string           `gorm:"index"`
	To              string           `gorm:"index"`
	Value           numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`

	Name            string `gorm:"-"`
	Ticker          string `gorm:"-"`
	Image           string `gorm:"-"`
	TwitterID       string `gorm:"-"`
	TwitterName     string `gorm:"-"`
	TwitterUsername string `gorm:"-"`
	TwitterAvatar   string `gorm:"-"`
	UserTwitterID   string `gorm:"-"`
	UserName        string `gorm:"-"`
	ImageURL        string `gorm:"-"`
}

type ToolsetType

type ToolsetType string
const (
	ToolsetTypeDefault          ToolsetType = "default"
	ToolsetTypeReplyMentions    ToolsetType = "reply_mentions"
	ToolsetTypeReplyNonMentions ToolsetType = "reply_non_mentions"
	ToolsetTypeShadowReply      ToolsetType = "shadow_reply"
	ToolsetTypeFollow           ToolsetType = "follow"
	ToolsetTypePost             ToolsetType = "post"
	ToolsetTypePostSearchV2     ToolsetType = "post_search_v2"
	ToolsetTypePostSearchV3     ToolsetType = "post_search_v3"

	ToolsetTypeIssueToken              ToolsetType = "issue_token"
	ToolsetTypeInscribeTweet           ToolsetType = "inscribe_tweet"
	ToolsetTypeInscribeTweetNews       ToolsetType = "tweet_news"
	ToolsetTypeTrading                 ToolsetType = "trading"
	ToolsetTypeTradeNews               ToolsetType = "trade_news"
	ToolsetTypeTradeAnalytics          ToolsetType = "trade_analytics"
	ToolsetTypeTradeAnalyticsOnTwitter ToolsetType = "trade_analytics_twitter"
	ToolsetTypeTradeAnalyticsMentions  ToolsetType = "trade_analytics_mentions"
	ToolsetTypeLuckyMoneys             ToolsetType = "lucky_moneys"
	ToolsetTypeLaunchpadJoin           ToolsetType = "launchpad_join"
	ToolsetTypeMissionStore            ToolsetType = "mission_store"

	ToolsetTypeReplyMentionsFarcaster    ToolsetType = "reply_mentions_farcaster"
	ToolsetTypeReplyNonMentionsFarcaster ToolsetType = "reply_non_mentions_farcaster"
	ToolsetTypePostFarcaster             ToolsetType = "post_farcaster"

	ToolsetTypeTavily ToolsetType = "tavily"
)

type TrainingRequest

type TrainingRequest struct {
	gorm.Model
	ModelID                    string                `json:"model_id" gorm:"column:model_id"`
	Params                     string                `json:"params" gorm:"column:params"`
	Status                     TrainingRequestStatus `json:"status" gorm:"column:status"`
	ModelCheckingLog           string                `json:"model_checking_log" gorm:"column:model_checking_log"`
	Result                     string                `json:"result" gorm:"column:result"`
	Creator                    string                `json:"creator" gorm:"column:creator"`
	IsOnchain                  bool                  `json:"is_onchain" gorm:"column:is_onchain"`
	Description                string                `json:"description" gorm:"column:description"`
	OutputUUID                 string                `json:"output_uuid" gorm:"column:output_uuid"`
	OutputLink                 string                `json:"output_link" gorm:"column:output_link"`
	Progress                   int                   `json:"progress" gorm:"column:progress"`
	ExecutedAt                 int64                 `json:"executed_at" gorm:"column:executed_at"`
	CompletedAt                int64                 `json:"completed_at" gorm:"column:completed_at"`
	Error                      string                `json:"error" gorm:"column:error"`
	Logs                       string                `json:"logs" gorm:"column:logs"`
	ErrLogs                    string                `json:"err_logs" gorm:"column:err_logs"`
	Datasets                   string                `json:"datasets" gorm:"type:json"` // []string
	PredictNumber              int                   `json:"predict_number" gorm:"column:predict_number"`
	LastPredict                *ModelPredictHistory  `json:"last_predict" gorm:"-"`
	Category                   string                `json:"category" gorm:"column:category"`
	CurrentListing             *ModelMarket          `json:"current_listing" gorm:"-"`
	Owner                      string                `json:"owner" gorm:"column:owner"`
	LastUpdatedBlock           uint64                `json:"last_updated_block" gorm:"column:last_updated_block"`
	Thumbnail                  string                `json:"thumbnail" gorm:"column:thumbnail"`
	ClaimedDeployReward        bool                  `json:"claimed_deploy_reward" gorm:"column:claimed_deploy_reward"`
	TrainingType               string                `json:"training_type" gorm:"column:training_type"`
	TrainingRequestERC20InfoID uint
	TrainingRequestERC20Info   *TrainingRequestERC20Info
	Type                       TrainingRequestType         `json:"type" gorm:"column:type"`
	ExportStatus               TrainingRequestExportStatus `json:"export_status" gorm:"column:export_status"`
	ExportResult               string                      `json:"export_result" gorm:"column:export_result"`
	ExportLog                  string                      `json:"export_log" gorm:"column:export_log"`
	ModelMetadata              string                      `json:"model_metadata" gorm:"column:model_metadata"`
	ModelAddressUserDefine     string                      `json:"model_address_user_define" gorm:"column:model_address_user_define"`
	FileSize                   int64                       `json:"file_size" gorm:"column:file_size"`
	ChargeFee                  string                      `json:"charge_fee" gorm:"column:charge_fee"`
	ChargeFeeNumber            float64                     `json:"charge_fee_number" gorm:"column:charge_fee_number"`
	ChargeFeeTokenSymbol       string                      `json:"charge_fee_token_symbol" gorm:"column:charge_fee_token_symbol"`
	ChargeReceiveAddress       string                      `json:"charge_receive_address" gorm:"column:charge_receive_address"`
	ChargePaidTxHash           string                      `json:"charge_paid_tx_hash" gorm:"column:charge_paid_tx_hash"`
	SortOrder                  int                         `json:"sort_order" gorm:"column:sort_order"`
	HuggingFaceId              string                      `json:"hugging_face_id" gorm:"column:hugging_face_id"`
	DataTypeExporter           string                      `json:"data_type_exporter" gorm:"column:data_type_exporter"`
	CheckResult                string                      `json:"check_result" gorm:"type:json"` //json HGModelCheckResult
	ZkSync                     bool                        `json:"zk_sync" gorm:"column:zk_sync"`
	ZkSyncNetworkID            uint
	ZkSyncNetwork              *ZkSyncNetwork
	ModelStorageUrl            string `json:"model_storage_url" gorm:"column:model_storage_url"`
	Slug                       string `json:"slug" gorm:"column:slug"`
}

type TrainingRequestERC20Info

type TrainingRequestERC20Info struct {
	gorm.Model
	ERC20Address         string    `json:"erc20_address" gorm:"column:erc20_address"`
	ERC20IssueTime       time.Time `json:"erc20_issue_time" gorm:"column:erc20_issue_time"`
	ERC20Description     string    `json:"erc20_description" gorm:"column:erc20_description"`
	ERC20Name            string    `json:"erc20_name" gorm:"column:erc20_name"`
	ERC20Symbol          string    `json:"erc20_symbol" gorm:"column:erc20_symbol"`
	ERC20Supply          string    `json:"erc20_supply" gorm:"column:erc20_supply"`
	TokenPrice           string    `json:"token_price" gorm:"column:token_price"`
	TokenPriceNumber     float64   `json:"token_price_number" gorm:"column:token_price_number"`
	TokenMarketCap       string    `json:"token_market_cap" gorm:"column:token_market_cap"`
	TokenMarketCapNumber float64   `json:"token_market_cap_number" gorm:"column:token_market_cap_number"`
	CirculatingSupply    string    `json:"circulating_supply" gorm:"column:circulating_supply"`
	CirculatingSupplyNum float64   `json:"circulating_supply_num" gorm:"column:circulating_supply_num"`
	CurrentDonate        string    `json:"current_donate" gorm:"column:current_donate"`
	TotalInvestment      string    `json:"total_investment" gorm:"-"`
	TotalBackers         int       `json:"total_backers" gorm:"-"`
	IsERC20Deployed      bool      `json:"is_erc20_deployed" gorm:"column:is_erc20_deployed"`
	ERC20Owner           string    `json:"erc20_owner" gorm:"column:erc20_owner"`
}

type TrainingRequestExportStatus

type TrainingRequestExportStatus string
const (
	TrainingRequestExportStatusWaiting   TrainingRequestExportStatus = "waiting"
	TrainingRequestExportStatusRunning   TrainingRequestExportStatus = "running"
	TrainingRequestExportStatusCompleted TrainingRequestExportStatus = "completed"
	TrainingRequestExportStatusFailed    TrainingRequestExportStatus = "failed"
)

type TrainingRequestStatus

type TrainingRequestStatus string
const (
	TrainingRequestStatusWaiting          TrainingRequestStatus = "waiting"
	TrainingRequestStatusRunning          TrainingRequestStatus = "running"
	TrainingRequestStatusCompleted        TrainingRequestStatus = "completed"
	TrainingRequestStatusFailed           TrainingRequestStatus = "failed"
	TrainingRequestStatusWaitMint         TrainingRequestStatus = "wait-mint"
	TrainingRequestStatusChecking         TrainingRequestStatus = "checking"
	TrainingRequestStatusDeploying        TrainingRequestStatus = "deploying"
	TrainingRequestStatusDeployed         TrainingRequestStatus = "deployed"
	TrainingRequestStatusWaitingToPayment TrainingRequestStatus = "wait-payment"
	TrainingRequestStatusPaymentSuccess   TrainingRequestStatus = "payment-success"
)

type TrainingRequestType

type TrainingRequestType int
const (
	TrainingRequestTypeUserDefine TrainingRequestType = iota + 1
	TrainingRequestTypeHuggingFace
)

type TransferStatus

type TransferStatus string

type TweetParseInfo

type TweetParseInfo struct {
	TokenName     string
	TokenDesc     string
	TokenSymbol   string
	TokenImageUrl string
	ChainName     string
	Owner         string
	Personality   string
	Type          string
	IsCreateToken bool
	IsIntellect   bool
	IsCreateAgent bool
	Description   string

	IsGenerateVideo      bool
	GenerateVideoContent string
}

type TwinStatus

type TwinStatus string
const (
	TwinStatusPending     TwinStatus = "pending"
	TwinStatusRunning     TwinStatus = "running"
	TwinStatusDoneSuccess TwinStatus = "done_success"
	TwinStatusDoneError   TwinStatus = "done_error"
)

type TwitterFollowing

type TwitterFollowing struct {
	gorm.Model
	OwnerTwitterID  string `gorm:"index"`
	TwitterID       string `gorm:"index"`
	TwitterUsername string `gorm:"type:text collate utf8mb4_unicode_ci"`
	Name            string `gorm:"type:text collate utf8mb4_unicode_ci"`
	ProfileUrl      string `gorm:"type:text collate utf8mb4_unicode_ci"`
	FollowersCount  uint
	FollowingsCount uint
	IsBlueVerified  bool
	JoinedAt        *time.Time
}

type TwitterInfo

type TwitterInfo struct {
	gorm.Model
	TwitterID         string `gorm:"unique_index"`
	TwitterAvatar     string
	TwitterUsername   string
	TwitterName       string
	TokenType         string
	ExpiresIn         int
	AccessToken       string `gorm:"type:text"`
	Scope             string
	RefreshToken      string `gorm:"type:text"`
	ExpiredAt         *time.Time
	OauthClientId     string
	OauthClientSecret string
	Description       string `gorm:"type:longtext"`
	RefreshError      string `gorm:"type:text"`
}

type TwitterPost

type TwitterPost struct {
	gorm.Model
	TwitterID       string
	TwitterPostID   string `gorm:"unique_index"`
	Type            TwitterPostType
	PostAt          *time.Time
	Content         string `gorm:"type:longtext"`
	InferData       string `gorm:"type:longtext"`
	ReplyContent    string `gorm:"type:longtext"`
	ImageUrl        string
	InferId         uint `gorm:"default:0"`
	InferTxHash     string
	InferAt         *time.Time
	InferNum        uint `gorm:"default:0"`
	ResolveTxHash   string
	Status          TwitterPostStatus `gorm:"index"`
	IsGenerateImage bool              `gorm:"default:0"`
	Prompt          string            `gorm:"type:longtext"`
}

type TwitterPostStatus

type TwitterPostStatus string

type TwitterPostType

type TwitterPostType string

type TwitterScan

type TwitterScan struct {
	gorm.Model
	Username  string `gorm:"type:varchar(256);"`
	TwitterID string `gorm:"type:varchar(256);"`
	Enabled   bool   `gorm:"default:true"`
	IsMention bool   `gorm:"default:false"`
	Scanned   bool   `gorm:"default:false"`
	CreatedAt time.Time
	UpdatedAt time.Time
}

type TwitterTweet

type TwitterTweet struct {
	gorm.Model
	TweetID          string `gorm:"unique_index"`
	TwitterID        string
	LikeCount        int
	RetweetCount     int
	ReplyCount       int
	QuoteCount       int
	ImpressionCount  int
	FullText         string `gorm:"type:longtext"`
	PostedAt         time.Time
	InReplyToUserID  string
	InReplyToTweetID string
	IsReply          bool
	OriginalText     string `gorm:"type:longtext"`

	// Retweet-related fields
	IsRetweet     bool
	RepostTweetID string
	RepostText    string `gorm:"type:longtext"`

	// Quote-related fields
	IsQuote      bool
	QuoteTweetID string
	QuoteText    string `gorm:"type:longtext"`
}

type TwitterTweetLiked

type TwitterTweetLiked struct {
	gorm.Model
	LikedUserID      string `gorm:"unique_index:liked_main_unique_index;index"`
	TweetID          string `gorm:"unique_index:liked_main_unique_index;index"`
	TwitterID        string
	LikeCount        int
	RetweetCount     int
	ReplyCount       int
	QuoteCount       int
	ImpressionCount  int
	FullText         string `gorm:"type:longtext"`
	PostedAt         time.Time
	InReplyToUserID  string
	InReplyToTweetID string
	IsReply          bool
	OriginalText     string `gorm:"type:longtext"`

	// Retweet-related fields
	IsRetweet     bool
	RepostTweetID string
	RepostText    string `gorm:"type:longtext"`

	// Quote-related fields
	IsQuote      bool
	QuoteTweetID string
	QuoteText    string `gorm:"type:longtext"`
}

type TwitterUser

type TwitterUser struct {
	gorm.Model
	TwitterID       string `gorm:"index"`
	TwitterUsername string `gorm:"type:text collate utf8mb4_unicode_ci"`
	Name            string `gorm:"type:text collate utf8mb4_unicode_ci"`
	ProfileUrl      string `gorm:"type:text collate utf8mb4_unicode_ci"`
	FollowersCount  uint
	FollowingsCount uint
	IsBlueVerified  bool
	JoinedAt        time.Time
}

type User

type User struct {
	gorm.Model
	NetworkID       uint64           `gorm:"unique_index:user_main_uidx"`
	Address         string           `gorm:"unique_index:user_main_uidx"`
	Username        string           `gorm:"unique_index"`
	SubscriptionNum uint             `gorm:"default:0"`
	Price30d        numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	Price30dUpdated uint64           `gorm:"default:0"`
	Price90d        numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	Price90dUpdated uint64           `gorm:"default:0"`
	Description     string           `gorm:"type:text"`
	Social          string           `gorm:"type:text"`
	ImageURL        string           `gorm:"type:text"`
	TwitterID       string           `gorm:"index"`
	TwitterAvatar   string
	TwitterUsername string
	TwitterName     string
	EthAddress      string           `gorm:"index"`
	TronAddress     string           `gorm:"index"`
	SolAddress      string           `gorm:"index"`
	EaiBalance      numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`

	Mentions  int64
	Likes     int64
	Followers int16
	Following int16

	Subscribed   bool             `gorm:"-"`
	TotalLike    uint             `gorm:"-"`
	TotalPost    uint             `gorm:"-"`
	TotalMessage uint             `gorm:"-"`
	TipPayment   numeric.BigFloat `gorm:"-"`
	TipReceive   numeric.BigFloat `gorm:"-"`
}

type UserAgentInferDataItem

type UserAgentInferDataItem struct {
	Role    string `json:"role"`
	Content string `json:"content"`
}

type UserTransaction

type UserTransaction struct {
	gorm.Model
	NetworkID   uint64
	UserID      uint `gorm:"index"`
	User        *User
	EventId     string `gorm:"unique_index"`
	Type        UserTransactionType
	FromAddress string
	ToAddress   string
	TxHash      string
	Amount      numeric.BigFloat `gorm:"type:decimal(36,18);default:0"`
	Status      UserTransactionStatus
	Error       string `gorm:"type:longtext"`
}

type UserTransactionStatus

type UserTransactionStatus string

type UserTransactionType

type UserTransactionType string

type UserTwitterPost

type UserTwitterPost struct {
	gorm.Model
	TwitterID       string
	TwitterUsername string
	TwitterName     string
	TwitterPostID   string `gorm:"unique_index"`
	PostAt          *time.Time
	Content         string `gorm:"type:longtext"`
}

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"`
	KnowledgeBaseId string             `json:"knowledge_base_id"`
}

type ZkSyncNetwork

type ZkSyncNetwork struct {
	gorm.Model
	RPC                  string `json:"rpc" gorm:"column:rpc"`
	ChainId              string `json:"chain_id" gorm:"column:chain_id"`
	WorkerHubAddress     string `json:"worker_hub_address" gorm:"column:worker_hub_address"`
	PaymasterToken       string `json:"paymaster_token" gorm:"column:paymaster_token"`
	PaymasterAddress     string `json:"paymaster_address" gorm:"column:paymaster_address"`
	NFTAddress           string `json:"nft_address" gorm:"column:nft_address"` // or collectionAddress
	PaymasterFeeZero     bool   `json:"paymaster_fee_zero" gorm:"column:paymaster_fee_zero"`
	DaoToken             string `json:"dao_token" gorm:"column:dao_token"`
	EAIERC20             string `json:"eaierc_20" gorm:"column:eaierc_20"`
	Name                 string `json:"name" gorm:"column:name"`
	Explorer             string `json:"explorer" gorm:"column:explorer"`
	AgentContractAddress string `json:"agent_contract_address" gorm:"column:agent_contract_address"`
	NeedInscribeTx       bool   `json:"need_inscribe_tx" gorm:"column:need_inscribe_tx"`
	StakingHubAddress    string `json:"staking_hub_address" gorm:"column:staking_hub_address"`
	BlockNumberDelay     uint64 `json:"block_number_delay" gorm:"column:block_number_delay"`
	ListRPC              string `json:"list_rpc" gorm:"type:json;column:list_rpc"` // []string
	GasLimit             uint64 `json:"gas_limit" gorm:"column:gas_limit"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL