diff --git a/.github/ISSUE_TEMPLATE/BOUNTY.yml b/.github/ISSUE_TEMPLATE/BOUNTY.yml new file mode 100644 index 00000000..b3f9a807 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/BOUNTY.yml @@ -0,0 +1,131 @@ +name: "Simple Bounty" +description: "Use this template to create a HEROES Simple Bounty via Github bot" +title: "Bounty: " +labels: ["bounty"] +assignees: heroes-bot-test +body: + - type: markdown + attributes: + value: | + Hi! Let's set up your bounty! Please don't change the template - @heroes-bot-test won't be able to help you. + + - type: dropdown + id: type + attributes: + label: What talent are you looking for? + options: + - Marketing + - Development + - Design + - Other + - Content + - Research + - Audit + + - type: textarea + id: description + attributes: + label: What you need to be done? + + - type: dropdown + id: tags + attributes: + label: Tags + description: Add tags that match the topic of the work + multiple: true + options: + - API + - Blockchain + - Community + - CSS + - DAO + - dApp + - DeFi + - Design + - Documentation + - HTML + - Javascript + - NFT + - React + - Rust + - Smart contract + - Typescript + - UI/UX + - web3 + - Translation + - Illustration + - Branding + - Copywriting + - Blogging + - Editing + - Video Creation + - Social Media + - Graphic Design + - Transcription + - Product Design + - Artificial Intelligence + - Quality Assurance + - Risk Assessment + - Security Audit + - Bug Bounty + - Code Review + - Blockchain Security + - Smart Contract Testing + - Penetration Testing + - Vulnerability Assessment + - BOS + - News + - Hackathon + - NEARCON2023 + - NEARWEEK + + - type: input + id: deadline + attributes: + label: Deadline + description: "Set a deadline for your bounty. Please enter the date in format: DD.MM.YYYY" + placeholder: "19.05.2027" + + - type: dropdown + id: currencyType + attributes: + label: Currency + description: What is the currency you want to pay? + options: + - USDC.e + - USDT.e + - DAI + - wNEAR + - USDt + - XP + - marmaj + - NEKO + - JUMP + - USDC + - NEARVIDIA + default: 0 + validations: + required: true + + - type: input + id: currencyAmount + attributes: + label: Amount + description: How much it will be cost? + + - type: markdown + attributes: + value: "## Advanced settings" + + - type: checkboxes + id: kyc + attributes: + label: KYC + description: "Use HEROES' KYC Verification, only applicants who passed HEROES' KYC can apply and work on this bounty!" + options: + - label: Use KYC Verification + + - type: markdown + attributes: + value: | + ### This cannot be changed once the bounty is live! diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml new file mode 100644 index 00000000..dcd86e1c --- /dev/null +++ b/.github/workflows/cla.yml @@ -0,0 +1,43 @@ +name: "CLA Assistant" +on: + issue_comment: + types: [created] + pull_request_target: + types: [opened,closed,synchronize] + +# explicitly configure permissions, in case your GITHUB_TOKEN workflow permissions are set to read-only in repository settings +permissions: + actions: write + contents: write + pull-requests: write + statuses: write + +jobs: + CLAAssistant: + runs-on: ubuntu-latest + steps: + - name: "CLA Assistant" + if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target' + uses: contributor-assistant/github-action@v2.3.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # the below token should have repo scope and must be manually added by you in the repository's secret + # This token is required only if you have configured to store the signatures in a remote repository/organization + PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + with: + path-to-signatures: 'signatures/version1/cla.json' + path-to-document: 'https://github.com/cla-assistant/github-action/blob/master/SAPCLA.md' # e.g. a CLA or a DCO document + # branch should not be protected + branch: 'main' + allowlist: user1,bot* + + # the followings are the optional inputs - If the optional inputs are not given, then default values will be taken + #remote-organization-name: enter the remote organization name where the signatures should be stored (Default is storing the signatures in the same repository) + #remote-repository-name: enter the remote repository name where the signatures should be stored (Default is storing the signatures in the same repository) + #create-file-commit-message: 'For example: Creating file for storing CLA Signatures' + #signed-commit-message: 'For example: $contributorName has signed the CLA in $owner/$repo#$pullRequestNo' + #custom-notsigned-prcomment: 'pull request comment with Introductory message to ask new contributors to sign' + #custom-pr-sign-comment: 'The signature to be committed in order to sign the CLA' + #custom-allsigned-prcomment: 'pull request comment when all contributors has signed, defaults to **CLA Assistant Lite bot** All Contributors have signed the CLA.' + #lock-pullrequest-aftermerge: false - if you don't want this bot to automatically lock the pull request after merging (default - true) + #use-dco-flag: true - If you are using DCO instead of CLA diff --git a/LICENSE b/LICENSE index fdddb29a..d88d1126 100644 --- a/LICENSE +++ b/LICENSE @@ -1,24 +1,21 @@ -This is free and unencumbered software released into the public domain. +MIT License -Anyone is free to copy, modify, publish, use, compile, sell, or -distribute this software, either in source code form or as a compiled -binary, for any purpose, commercial or non-commercial, and by any -means. +Copyright (c) 2024 Potluck Labs, Inc -In jurisdictions that recognize copyright laws, the author or authors -of this software dedicate any and all copyright interest in the -software to the public domain. We make this dedication for the benefit -of the public at large and to the detriment of our heirs and -successors. We intend this dedication to be an overt act of -relinquishment in perpetuity of all present and future rights to this -software under copyright law. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR -OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. -For more information, please refer to +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/package.json b/package.json index 48518f34..b2e3b195 100644 --- a/package.json +++ b/package.json @@ -7,13 +7,13 @@ "@monaco-editor/react": "^4.4.6", "@near-wallet-selector/bitget-wallet": "^8.9.2", "@near-wallet-selector/coin98-wallet": "^8.9.2", - "@near-wallet-selector/core": "^8.5.0", - "@near-wallet-selector/here-wallet": "^8.5.0", + "@near-wallet-selector/core": "^8.9.7", + "@near-wallet-selector/here-wallet": "^8.9.7", "@near-wallet-selector/ledger": "^8.9.2", "@near-wallet-selector/math-wallet": "^8.9.2", "@near-wallet-selector/meteor-wallet": "^8.5.0", "@near-wallet-selector/mintbase-wallet": "^8.9.2", - "@near-wallet-selector/modal-ui": "^8.5.0", + "@near-wallet-selector/modal-ui": "^8.9.7", "@near-wallet-selector/my-near-wallet": "^8.5.0", "@near-wallet-selector/near-mobile-wallet": "^8.9.2", "@near-wallet-selector/near-snap": "^8.9.2", diff --git a/src/App.js b/src/App.js index b2b65cb4..913e2057 100644 --- a/src/App.js +++ b/src/App.js @@ -47,7 +47,7 @@ import { isValidAttribute } from "dompurify"; export const refreshAllowanceObj = {}; const documentationHref = "https://docs.potlock.io/"; -function App(props) { +function App() { const [connected, setConnected] = useState(false); const [signedIn, setSignedIn] = useState(false); const [signedAccountId, setSignedAccountId] = useState(null); @@ -64,53 +64,59 @@ function App(props) { const accountId = account.accountId; useEffect(() => { - initNear && - initNear({ - networkId: NetworkId, - selector: setupWalletSelector({ - network: NetworkId, - modules: [ - setupMyNearWallet(), - setupSender(), - setupHereWallet(), - setupMeteorWallet(), - setupNeth({ - gas: "300000000000000", - bundle: false, - }), - setupNightly(), - setupMintbaseWallet(), - setupNearMobileWallet(), - setupBitgetWallet(), - setupNearFi(), - setupMathWallet(), - setupWelldoneWallet(), - // setupNearSnap(), - setupLedger(), - setupCoin98Wallet(), - setupRamperWallet(), - ], - }), - customElements: { - Link: (props) => { - if (!props.to && props.href) { - props.to = props.href; - delete props.href; - } - if (props.to) { - props.to = - typeof props.to === "string" && - isValidAttribute("a", "href", props.to) - ? props.to - : "about:blank"; - } - return ; - }, - }, - config: { - defaultFinality: undefined, + const config = { + networkId: NetworkId, + selector: setupWalletSelector({ + network: NetworkId, + modules: [ + setupMyNearWallet(), + setupSender(), + setupHereWallet(), + setupMeteorWallet(), + setupNeth({ + gas: "300000000000000", + bundle: false, + }), + setupNightly(), + setupMintbaseWallet(), + setupNearMobileWallet(), + setupBitgetWallet(), + setupNearFi(), + setupMathWallet(), + setupWelldoneWallet(), + // setupNearSnap(), + setupLedger(), + setupCoin98Wallet(), + setupRamperWallet(), + ], + }), + customElements: { + Link: (props) => { + let passProps = { ...props }; + + if (!passProps.to && passProps.href) { + passProps.to = passProps.href; + delete passProps.href; + } + + if (passProps.to) { + passProps.to = + typeof passProps.to === "string" && + isValidAttribute("a", "href", passProps.to) + ? passProps.to + : "about:blank"; + } + + return ; }, - }); + }, + config: { + defaultFinality: undefined, + nodeUrl: "https://near.lava.build", + }, + }; + + initNear && initNear(config); }, [initNear]); useEffect(() => { diff --git a/yarn.lock b/yarn.lock index c75cf48b..909c6fa0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2442,7 +2442,7 @@ "@near-wallet-selector/wallet-utils" "8.9.2" is-mobile "4.0.0" -"@near-wallet-selector/core@8.5.0", "@near-wallet-selector/core@^8.5.0": +"@near-wallet-selector/core@8.5.0": version "8.5.0" resolved "https://registry.yarnpkg.com/@near-wallet-selector/core/-/core-8.5.0.tgz#291b9103c244d0ea1fb95401e81337e0eddb9e94" integrity sha512-uCwu1/K1Ybx7JRaf+3RgkAee/JTcfbw9pUBYV5JpGnSBW2WvAS0srAMSzEpMFdd0e/H8eoHSNxA9T5MrCXpQeA== @@ -2462,6 +2462,16 @@ js-sha256 "0.9.0" rxjs "7.8.1" +"@near-wallet-selector/core@^8.9.7": + version "8.9.7" + resolved "https://registry.yarnpkg.com/@near-wallet-selector/core/-/core-8.9.7.tgz#d55cb97b8d4932f1bd786805c3365205cd084b61" + integrity sha512-WFAtNrA/w7gnobKmHGEqV4r/RtDM1QTf33TF0Kaf/1nK5jBNNyoYldyAPnbP08t1S+IbbVJ9NcWW3P7hdXe4Lg== + dependencies: + borsh "0.7.0" + events "3.3.0" + js-sha256 "0.9.0" + rxjs "7.8.1" + "@near-wallet-selector/here-wallet@^8.5.0": version "8.5.0" resolved "https://registry.yarnpkg.com/@near-wallet-selector/here-wallet/-/here-wallet-8.5.0.tgz#3174339201c021c8de336b3b3dada15490ae4347"