mainnet
English
Русский
Tiếng Việt
繁體中文
简体中文
Українська
Home
Explore
Transaction: 8AHZ42N...JmeS
Signed by
sharddog.near
Receiver
social.near
Status
Succeeded
Transaction Fee
0.00094 Ⓝ
Deposit Value
0.00413 Ⓝ
Gas Used
9 Tgas
Attached Gas
100 Tgas
Created
July 10, 2023 at 2:50:43pm
Hash
8AHZ42NxFX127wmA18QGnKWQwPWiwz7KK4T3LSMUJmeS
Block Hash
BAfsDGpvnedQMqURrQPBWMPCtH1HUZK1eqvQ7Q73HGvs
Actions
Called method: 'set' in contract:
social.near
Arguments:
{ "data": { "sharddog.near": { "widget": { "JustFeed.MainPage.Content": { "": "const hashtag = props.hashtag;\nconst contractId = \"mint.sharddog.near\";\n\nif (!state || state.hashtag !== hashtag) {\n State.update({\n feedIndex: hashtag ? 2 : context.accountId ? 0 : 1,\n hashtag,\n });\n}\nconst options = [\n {\n title: \"My Feed\",\n disabled: !context.accountId,\n },\n {\n title: \"All Posts\",\n },\n];\n\nif (hashtag) {\n options.push({\n title: `#${hashtag}`,\n });\n}\n\nlet accounts = undefined;\n\nif (state.feedIndex === 0) {\n const graph = Social.keys(`${context.accountId}/graph/follow/*`, \"final\");\n if (graph !== null) {\n accounts = Object.keys(graph[context.accountId].graph.follow || {});\n accounts.push(context.accountId);\n } else {\n accounts = [];\n }\n}\n\nif (!context.accountId) {\n return (\n <>\n <div className=\"tab-content col-sm-10\">\n <h3>Woof! Need to hold a ShardDog to view feed</h3>\n </div>\n </>\n );\n}\nconst accountId = context.accountId;\n\nconst nftData = Near.view(contractId, \"nft_tokens_for_owner\", {\n account_id: accountId,\n limit: 1000,\n});\n\nlet holder = false;\n\nnftData.forEach((item) => {\n if (item.series_id === 141) {\n holder = true;\n return true;\n }\n});\n\nconst nftDataCount = Near.view(contractId, \"nft_supply_for_owner\", {\n account_id: accountId,\n limit: 1000,\n});\n\nlet canShare;\n//Nice work if you found the access link from here ;)\nif (nftDataCount > 2) {\n canShare = \"Share this ShardDog to invite others: https://shard.dog/social\";\n}\n\nconst Greeting = () => {\n const currentTime = new Date();\n const currentHour = currentTime.getHours();\n let greeting;\n\n if (currentHour < 12) {\n greeting = \"Good morning\";\n } else if (currentHour < 18) {\n greeting = \"Good afternoon\";\n } else {\n greeting = \"Good evening\";\n }\n\n return <span>{greeting}</span>;\n};\n\nif (holder) {\n return (\n <>\n {context.accountId && (\n <div className=\"mb-3\">\n <Widget src=\"sharddog.near/widget/Posts.Compose\" props={{}} />\n </div>\n )}\n <p>\n <Greeting />, you currently hold <b>{nftDataCount} </b> ShardDogs <br />\n {canShare}\n <br />\n This is a super early beta, feedback is welcome 🐶\n </p>\n {state.feedIndex === 2 ? (\n <Widget src=\"mob.near/widget/Hashtag.Feed\" props={{ hashtag }} />\n ) : (\n <Widget\n src=\"sharddog.near/widget/MainPage.Feed.Beta\"\n props={{ accounts }}\n />\n )}\n </>\n );\n} else {\n return (\n <>\n <div className=\"tab-content col-sm-10\">\n <h3>\n Woof! Sorry, you need to hold a Social ShardDog to view the feed\n <br />\n <a href=\"https://shard.dog/social\" target=\"_blank\">\n Claim a social ShardDog today\n </a>\n </h3>\n </div>\n </>\n );\n}\n", "metadata": { "platform": "Components.gg" } } } } } }
Transaction Execution Plan
Convert Transaction To Receipt
Gas Burned:
2 Tgas
Tokens Burned:
0.00024 Ⓝ
Receipt:
Receipt ID:
8he29aeSsC2o48YdzcKN8YMxnLRby8dfWZ35YpR7GSjJ
Executed in Block:
EPk5hmyne5HC38jwwq2GePzPgAfQf8qeadJL8WEDpgDw
Predecessor ID:
sharddog.near
Receiver ID:
social.near
Gas Burned:
6 Tgas
Tokens Burned:
0.0007 Ⓝ
Called method: 'set' in contract:
social.near
Arguments:
{ "data": { "sharddog.near": { "widget": { "JustFeed.MainPage.Content": { "": "const hashtag = props.hashtag;\nconst contractId = \"mint.sharddog.near\";\n\nif (!state || state.hashtag !== hashtag) {\n State.update({\n feedIndex: hashtag ? 2 : context.accountId ? 0 : 1,\n hashtag,\n });\n}\nconst options = [\n {\n title: \"My Feed\",\n disabled: !context.accountId,\n },\n {\n title: \"All Posts\",\n },\n];\n\nif (hashtag) {\n options.push({\n title: `#${hashtag}`,\n });\n}\n\nlet accounts = undefined;\n\nif (state.feedIndex === 0) {\n const graph = Social.keys(`${context.accountId}/graph/follow/*`, \"final\");\n if (graph !== null) {\n accounts = Object.keys(graph[context.accountId].graph.follow || {});\n accounts.push(context.accountId);\n } else {\n accounts = [];\n }\n}\n\nif (!context.accountId) {\n return (\n <>\n <div className=\"tab-content col-sm-10\">\n <h3>Woof! Need to hold a ShardDog to view feed</h3>\n </div>\n </>\n );\n}\nconst accountId = context.accountId;\n\nconst nftData = Near.view(contractId, \"nft_tokens_for_owner\", {\n account_id: accountId,\n limit: 1000,\n});\n\nlet holder = false;\n\nnftData.forEach((item) => {\n if (item.series_id === 141) {\n holder = true;\n return true;\n }\n});\n\nconst nftDataCount = Near.view(contractId, \"nft_supply_for_owner\", {\n account_id: accountId,\n limit: 1000,\n});\n\nlet canShare;\n//Nice work if you found the access link from here ;)\nif (nftDataCount > 2) {\n canShare = \"Share this ShardDog to invite others: https://shard.dog/social\";\n}\n\nconst Greeting = () => {\n const currentTime = new Date();\n const currentHour = currentTime.getHours();\n let greeting;\n\n if (currentHour < 12) {\n greeting = \"Good morning\";\n } else if (currentHour < 18) {\n greeting = \"Good afternoon\";\n } else {\n greeting = \"Good evening\";\n }\n\n return <span>{greeting}</span>;\n};\n\nif (holder) {\n return (\n <>\n {context.accountId && (\n <div className=\"mb-3\">\n <Widget src=\"sharddog.near/widget/Posts.Compose\" props={{}} />\n </div>\n )}\n <p>\n <Greeting />, you currently hold <b>{nftDataCount} </b> ShardDogs <br />\n {canShare}\n <br />\n This is a super early beta, feedback is welcome 🐶\n </p>\n {state.feedIndex === 2 ? (\n <Widget src=\"mob.near/widget/Hashtag.Feed\" props={{ hashtag }} />\n ) : (\n <Widget\n src=\"sharddog.near/widget/MainPage.Feed.Beta\"\n props={{ accounts }}\n />\n )}\n </>\n );\n} else {\n return (\n <>\n <div className=\"tab-content col-sm-10\">\n <h3>\n Woof! Sorry, you need to hold a Social ShardDog to view the feed\n <br />\n <a href=\"https://shard.dog/social\" target=\"_blank\">\n Claim a social ShardDog today\n </a>\n </h3>\n </div>\n </>\n );\n}\n", "metadata": { "platform": "Components.gg" } } } } } }
Empty result
No logs
Receipt:
Receipt ID:
7NFrVyqiJ63A5nB5XW3KBecenzt6FMJz9MLm8Xu96mkS
Executed in Block:
AUnb32J44Gd9DJZQ53X7uk2X266r4VnQCzpchmTLHPz4
Predecessor ID:
system
Receiver ID:
sharddog.near
Gas Burned:
223 Ggas
Tokens Burned:
0 Ⓝ
Transferred
0.01836 Ⓝ
to
sharddog.near
Empty result
No logs
© 2024 NEAR Inc. All Rights Reserved.
Terms of Service
|
Privacy Policy
Questions?
Join the Community
◍