Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(worker/near.social): support near.social transactions #575

Merged
merged 5 commits into from
Oct 15, 2024

Conversation

pseudoyu
Copy link
Member

@pseudoyu pseudoyu commented Oct 15, 2024

Summary

Support near.social transactions

Checklist

Does this PR introduce a breaking change?

  • Yes
  • No

Project

Near.Social

Networks

  • Near

Transactions

  1. Post

https://nearblocks.io/txns/4SvjarLF5SQ2oDW7qswFY7J8bDGymcX3B4ASZwWriPC1

{
          "id": "4SvjarLF5SQ2oDW7qswFY7J8bDGymcX3B4ASZwWriPC1",
          "network": "near",
          "index": 0,
          "from": "progr.near",
          "to": "social.near",
          "tag": "social",
          "type": "post",
          "platform": "NearSocial",
          "fee": {
            "amount": "514622149802000000000",
            "decimal": 24
          },
          "calldata": {
            "parsed_function": "set"
          },
          "total_actions": 0,
          "actions": [
            {
              "tag": "social",
              "type": "post",
              "platform": "NearSocial",
              "from": "progr.near",
              "to": "progr.near",
              "metadata": {
                "handle": "progr.near",
                "body": "The user experience is really still awful, lagging, must sign to vote, pay to post,... But it's a very good Proof of Concept! \nThe concept of custom widget is pretty cool but really not intuitive. As for a dev it's not natural to figure out how it works. But it's a good idea 🤔\n#Bitcoin #Future\n\nThis post cost me 0.02 Near 👉 Feel free to donate at my username which is my address (Yes, this feature is pretty cool ;)",
                "tags": [
                  "bitcoin",
                  "future"
                ],
                "timestamp": 1728946260
              }
            }
          ],
          "success": true,
          "timestamp": 1728946260
        }
  1. Comment

https://nearblocks.io/txns/BEbDBVrCw89nN6JSBBAu8MhBdfwvTiJMYao945cB4Qcg

{
          "id": "BEbDBVrCw89nN6JSBBAu8MhBdfwvTiJMYao945cB4Qcg",
          "network": "near",
          "index": 0,
          "from": "yarotska.near",
          "to": "social.near",
          "tag": "social",
          "type": "comment",
          "platform": "NearSocial",
          "fee": {
            "amount": "46775226153500000000",
            "decimal": 24
          },
          "calldata": {
            "parsed_function": "set"
          },
          "total_actions": 0,
          "actions": [
            {
              "tag": "social",
              "type": "comment",
              "platform": "NearSocial",
              "from": "yarotska.near",
              "to": "events-committee.near",
              "metadata": {
                "handle": "yarotska.near",
                "body": "Hi @pivortex.near – congratulations! This message confirms your funding request approval by the Events Committee. We're excited to sponsor your work! This approval follows our review process involving various Work Groups and Events Committee members. Please note that the funding distribution is contingent on successfully passing our KYC/B and paperwork process.\n\n**IMPORTANT NOTE**\nTo ensure timely distribution of funds, please complete the funding request next steps and respond to any requests within 30 days of receiving this message. Failure to do so may result in canceling your approval and withholding the payment.\n\n\nHere’s what to expect:\n\n**Funding Steps**\n\n1. **KYC/KYB Verification:** An Events Committee member will move your proposal to the Payment Processing Stage and verify that you have completed verification to ensure compliance. If you are not verified, your Events Committee member will contact you on Telegram with instructions on how to proceed. To receive funding, you must get verified through Fractal, a trusted third-party identification verification solution. Your verification badge is valid for 365 days and needs renewal upon expiration OR if your personal information changes, such as your name, address, or ID expiration.\n2. **Information Collection:** Once verified, an Events Committee member will contact you via Telegram and request that you complete the Funding Request Form using Airtable.\n3. **Processing:** Our legal team will verify your application details to ensure compliance. They will then send you an email requesting your signature for the underlying agreement via Ironclad.\n4. **Invoicing \u0026 Payment:** Once we receive your signed agreement, our finance team will email you instructions to submit the final invoice using Request Finance. Once we receive your invoice, our finance team will send a test transaction confirmation email. Once you confirm the test transaction, we will distribute the funds and post a payment link on your proposal.\n\n**Funding Conversion Notice**\n\nOnce you receive your funding, we urge you to exercise caution if attempting to convert your funds. Some third-party tools may impose significant swapping fees.\n\n**Visibility**\n\nWe track the funding process on each proposal using the timeline and comments. However, you are welcome to reach out to the Events Committee member with any questions. \n\n**Timeline**\n\nTypically, funds are disbursed within 10 business days, but the timeline can vary depending on the project's complexity and paperwork. Your Events Committee member will keep you updated.\n",
                "publication_id": "events-committee.near/post/main-130316320",
                "timestamp": 1728921368,
                "target": {
                  "handle": "events-committee.near",
                  "publication_id": "events-committee.near/post/main-130316320"
                }
              }
            }
          ],
          "success": true,
          "timestamp": 1728921368
        }
  1. Repost

https://nearblocks.io/txns/GKbNWy68JxQpHz6e5aM9HjMhEonD8UAYvcXuPM6HMtzg

{
          "id": "GKbNWy68JxQpHz6e5aM9HjMhEonD8UAYvcXuPM6HMtzg",
          "network": "near",
          "index": 0,
          "from": "mbbevilacqua_caffepoesia.near",
          "to": "social.near",
          "tag": "social",
          "type": "share",
          "platform": "NearSocial",
          "fee": {
            "amount": "33280734808500000000",
            "decimal": 24
          },
          "calldata": {
            "parsed_function": "set"
          },
          "total_actions": 0,
          "actions": [
            {
              "tag": "social",
              "type": "share",
              "platform": "NearSocial",
              "from": "mbbevilacqua_caffepoesia.near",
              "to": "caffepoesia.near",
              "metadata": {
                "handle": "mbbevilacqua_caffepoesia.near",
                "timestamp": 1728726130,
                "target": {
                  "handle": "caffepoesia.near",
                  "publication_id": "caffepoesia.near/post/main-130154923"
                }
              }
            }
          ],
          "success": true,
          "timestamp": 1728726130
        }

@pseudoyu pseudoyu requested a review from brucexc October 15, 2024 03:02
@pseudoyu pseudoyu requested a review from polebug as a code owner October 15, 2024 03:02
@pseudoyu pseudoyu self-assigned this Oct 15, 2024
Copy link
Member

@kallydev kallydev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pseudoyu pseudoyu merged commit d6ef163 into worker-dev Oct 15, 2024
5 checks passed
@pseudoyu pseudoyu deleted the feat/near-social-worker branch October 15, 2024 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants