mainnet
English
Русский
Tiếng Việt
繁體中文
简体中文
Українська
Home
Explore
Transaction: 7DvAsab...cWpj
Signed by
thalburner.near
Receiver
social.near
Status
Succeeded
Transaction Fee
0.00098 Ⓝ
Deposit Value
0 Ⓝ
Gas Used
10 Tgas
Attached Gas
100 Tgas
Created
March 04, 2023 at 11:24:03pm
Hash
7DvAsabStqeJuP7RkfWHzbJCHSbNyazorWHAxTi2cWpj
Block Hash
5AVT8DnGhRFAHtAiAXrjbVBZBk3WWwmN5B858gFpTnJc
Actions
Called method: 'set' in contract:
social.near
Arguments:
{ "data": { "thalburner.near": { "widget": { "testWidget": { "": "function widget(widgetName, widgetProps, key) {\n widgetProps = {\n ...widgetProps,\n nearDevGovGigsContractAccountId: \"devgovgigs.near\",\n nearDevGovGigsWidgetsAccountId: \"devgovgigs.near\",\n referral: props.referral,\n };\n return (\n <Widget\n src={`devgovgigs.near/widget/gigs-board.${widgetName}`}\n props={widgetProps}\n key={key}\n />\n );\n}\n\nfunction fuzzySearch(items, keyword) {\n // Convert the keyword to lowercase and split into individual words\n\n const keywords = keyword.toLowerCase().split(\" \");\n\n // Filter the items by searching for each keyword in the name or description fields\n const filteredItems = items.filter((item) => {\n console.log(\"item\", item);\n // const name = item.snapshot.name.toLowerCase();\n // const description = item.snapshot.description.toLowerCase();\n\n // // Check if any of the keywords match the name or description\n // return keywords.some((keyword) => {\n // return name.includes(keyword) || description.includes(keyword);\n // });\n });\n\n return filteredItems;\n}\n\nconst posts = Near.view(\"devgovgigs.near\", \"get_posts\");\n\nif (posts === null) {\n return \"\";\n}\n\n// const test_filter = fuzzySearch(posts, \"Lorem ipsum dolor sit amet\");\n\n// console.log(test_filter);\n\nState.init({\n searchTerm: \"Testing!\",\n});\n\nconst postId = 4;\n\nreturn (\n <div>\n {state.searchTerm}\n {widget(\n `components.posts.Post`,\n {\n id: postId,\n expandable: true,\n defaultExpanded: false,\n },\n postId\n )}\n <input\n onChange={(e) => {\n State.update({ searchTerm: e.target.value });\n }}\n />\n </div>\n);\n" } } } } }
Transaction Execution Plan
Convert Transaction To Receipt
Gas Burned:
2 Tgas
Tokens Burned:
0.00024 Ⓝ
Receipt:
Receipt ID:
CQdrkiL4bukz91yPcCb9ex1bJcKEPMA8MkZRep4a9Ykj
Executed in Block:
Br7BoQEFWKMS7ar9px39XPz3fqbhCQuQLoxVJLB2dYNP
Predecessor ID:
thalburner.near
Receiver ID:
social.near
Gas Burned:
7 Tgas
Tokens Burned:
0.00074 Ⓝ
Called method: 'set' in contract:
social.near
Arguments:
{ "data": { "thalburner.near": { "widget": { "testWidget": { "": "function widget(widgetName, widgetProps, key) {\n widgetProps = {\n ...widgetProps,\n nearDevGovGigsContractAccountId: \"devgovgigs.near\",\n nearDevGovGigsWidgetsAccountId: \"devgovgigs.near\",\n referral: props.referral,\n };\n return (\n <Widget\n src={`devgovgigs.near/widget/gigs-board.${widgetName}`}\n props={widgetProps}\n key={key}\n />\n );\n}\n\nfunction fuzzySearch(items, keyword) {\n // Convert the keyword to lowercase and split into individual words\n\n const keywords = keyword.toLowerCase().split(\" \");\n\n // Filter the items by searching for each keyword in the name or description fields\n const filteredItems = items.filter((item) => {\n console.log(\"item\", item);\n // const name = item.snapshot.name.toLowerCase();\n // const description = item.snapshot.description.toLowerCase();\n\n // // Check if any of the keywords match the name or description\n // return keywords.some((keyword) => {\n // return name.includes(keyword) || description.includes(keyword);\n // });\n });\n\n return filteredItems;\n}\n\nconst posts = Near.view(\"devgovgigs.near\", \"get_posts\");\n\nif (posts === null) {\n return \"\";\n}\n\n// const test_filter = fuzzySearch(posts, \"Lorem ipsum dolor sit amet\");\n\n// console.log(test_filter);\n\nState.init({\n searchTerm: \"Testing!\",\n});\n\nconst postId = 4;\n\nreturn (\n <div>\n {state.searchTerm}\n {widget(\n `components.posts.Post`,\n {\n id: postId,\n expandable: true,\n defaultExpanded: false,\n },\n postId\n )}\n <input\n onChange={(e) => {\n State.update({ searchTerm: e.target.value });\n }}\n />\n </div>\n);\n" } } } } }
Empty result
No logs
Receipt:
Receipt ID:
Fs6Dg2ZPpH7T2NcJzo2fx4U6ZJRyDrP5fThFGysgcNDq
Executed in Block:
4VUtAKzJuqab9DxzUwxpJgYFrXbMi1pykKBwBZVBm3qC
Predecessor ID:
system
Receiver ID:
thalburner.near
Gas Burned:
223 Ggas
Tokens Burned:
0 Ⓝ
Transferred
0.01832 Ⓝ
to
thalburner.near
Empty result
No logs
© 2024 NEAR Inc. All Rights Reserved.
Terms of Service
|
Privacy Policy
Questions?
Join the Community
◍