├── .editorconfig ├── .eslintrc.js ├── .gitattributes ├── .github ├── CODEOWNERS └── workflows │ ├── build-lint-test.yml │ └── security-code-scanner.yml ├── .gitignore ├── .nvmrc ├── .prettierrc.js ├── .yarnrc ├── .yarnrc.yml ├── CHANGELOG.md ├── LICENSE ├── README.md ├── contracts ├── ERC1155Example.sol ├── ERC20.sol ├── MultisigWallet.sol ├── Piggybank.sol └── TestDappCollectibles.sol ├── deploy.sh ├── package.json ├── src ├── alert-red.svg ├── components │ ├── connections │ │ ├── connections.js │ │ ├── index.js │ │ ├── networks-helpers.js │ │ ├── networks.js │ │ └── permissions.js │ ├── encryption │ │ └── encrypt-decrypt.js │ ├── forms │ │ └── send-form.js │ ├── interactions │ │ ├── chain-interactions.js │ │ ├── empty.js │ │ ├── index.js │ │ └── json-rpc-result.js │ ├── ppom │ │ ├── batching.js │ │ ├── bypasses.js │ │ ├── eip5792.js │ │ ├── index.js │ │ ├── sharedConstants.js │ │ └── transactions.js │ ├── resolutions │ │ └── ens-resolution.js │ ├── signatures │ │ ├── eth-sign.js │ │ ├── index.js │ │ ├── malformed-signatures.js │ │ ├── malformed-transactions.js │ │ ├── permit-sign.js │ │ ├── personal-sign.js │ │ ├── signTypedData-variants.js │ │ ├── signTypedData.js │ │ ├── signTypedDataV3-sign.js │ │ ├── signTypedDataV4-sign.js │ │ └── siwe.js │ └── transactions │ │ ├── batchUsdcSwap.js │ │ ├── eip5792 │ │ ├── getCallsStatus.js │ │ ├── getCapabilities.js │ │ ├── index.js │ │ └── sendCalls.js │ │ ├── eip747.js │ │ ├── erc1155.js │ │ ├── erc20.js │ │ ├── erc721.js │ │ ├── index.js │ │ ├── send.js │ │ ├── swapComparison.js │ │ └── swapUtils.js ├── connections.js ├── constants.json ├── index.css ├── index.html ├── index.js ├── metamask-fox.svg ├── onchain-sample-contracts.js ├── request.html ├── request.js ├── sample-addresses.js ├── sample-networks.js ├── sdk-connect.svg ├── shared │ └── constants.js ├── signatures │ └── utils.js ├── utils.js ├── wallet-connect.svg └── warning.svg ├── webpack.config.js └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/.github/CODEOWNERS -------------------------------------------------------------------------------- /.github/workflows/build-lint-test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/.github/workflows/build-lint-test.yml -------------------------------------------------------------------------------- /.github/workflows/security-code-scanner.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/.github/workflows/security-code-scanner.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/.gitignore -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | v18 2 | -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/.prettierrc.js -------------------------------------------------------------------------------- /.yarnrc: -------------------------------------------------------------------------------- 1 | ignore-scripts true 2 | -------------------------------------------------------------------------------- /.yarnrc.yml: -------------------------------------------------------------------------------- 1 | enableScripts: false 2 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/README.md -------------------------------------------------------------------------------- /contracts/ERC1155Example.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/contracts/ERC1155Example.sol -------------------------------------------------------------------------------- /contracts/ERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/contracts/ERC20.sol -------------------------------------------------------------------------------- /contracts/MultisigWallet.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/contracts/MultisigWallet.sol -------------------------------------------------------------------------------- /contracts/Piggybank.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/contracts/Piggybank.sol -------------------------------------------------------------------------------- /contracts/TestDappCollectibles.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/contracts/TestDappCollectibles.sol -------------------------------------------------------------------------------- /deploy.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/deploy.sh -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/package.json -------------------------------------------------------------------------------- /src/alert-red.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/alert-red.svg -------------------------------------------------------------------------------- /src/components/connections/connections.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/connections/connections.js -------------------------------------------------------------------------------- /src/components/connections/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/connections/index.js -------------------------------------------------------------------------------- /src/components/connections/networks-helpers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/connections/networks-helpers.js -------------------------------------------------------------------------------- /src/components/connections/networks.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/connections/networks.js -------------------------------------------------------------------------------- /src/components/connections/permissions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/connections/permissions.js -------------------------------------------------------------------------------- /src/components/encryption/encrypt-decrypt.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/encryption/encrypt-decrypt.js -------------------------------------------------------------------------------- /src/components/forms/send-form.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/forms/send-form.js -------------------------------------------------------------------------------- /src/components/interactions/chain-interactions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/interactions/chain-interactions.js -------------------------------------------------------------------------------- /src/components/interactions/empty.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/interactions/empty.js -------------------------------------------------------------------------------- /src/components/interactions/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/interactions/index.js -------------------------------------------------------------------------------- /src/components/interactions/json-rpc-result.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/interactions/json-rpc-result.js -------------------------------------------------------------------------------- /src/components/ppom/batching.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/ppom/batching.js -------------------------------------------------------------------------------- /src/components/ppom/bypasses.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/ppom/bypasses.js -------------------------------------------------------------------------------- /src/components/ppom/eip5792.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/ppom/eip5792.js -------------------------------------------------------------------------------- /src/components/ppom/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/ppom/index.js -------------------------------------------------------------------------------- /src/components/ppom/sharedConstants.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/ppom/sharedConstants.js -------------------------------------------------------------------------------- /src/components/ppom/transactions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/ppom/transactions.js -------------------------------------------------------------------------------- /src/components/resolutions/ens-resolution.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/resolutions/ens-resolution.js -------------------------------------------------------------------------------- /src/components/signatures/eth-sign.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/signatures/eth-sign.js -------------------------------------------------------------------------------- /src/components/signatures/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/signatures/index.js -------------------------------------------------------------------------------- /src/components/signatures/malformed-signatures.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/signatures/malformed-signatures.js -------------------------------------------------------------------------------- /src/components/signatures/malformed-transactions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/signatures/malformed-transactions.js -------------------------------------------------------------------------------- /src/components/signatures/permit-sign.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/signatures/permit-sign.js -------------------------------------------------------------------------------- /src/components/signatures/personal-sign.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/signatures/personal-sign.js -------------------------------------------------------------------------------- /src/components/signatures/signTypedData-variants.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/signatures/signTypedData-variants.js -------------------------------------------------------------------------------- /src/components/signatures/signTypedData.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/signatures/signTypedData.js -------------------------------------------------------------------------------- /src/components/signatures/signTypedDataV3-sign.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/signatures/signTypedDataV3-sign.js -------------------------------------------------------------------------------- /src/components/signatures/signTypedDataV4-sign.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/signatures/signTypedDataV4-sign.js -------------------------------------------------------------------------------- /src/components/signatures/siwe.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/signatures/siwe.js -------------------------------------------------------------------------------- /src/components/transactions/batchUsdcSwap.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/transactions/batchUsdcSwap.js -------------------------------------------------------------------------------- /src/components/transactions/eip5792/getCallsStatus.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/transactions/eip5792/getCallsStatus.js -------------------------------------------------------------------------------- /src/components/transactions/eip5792/getCapabilities.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/transactions/eip5792/getCapabilities.js -------------------------------------------------------------------------------- /src/components/transactions/eip5792/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/transactions/eip5792/index.js -------------------------------------------------------------------------------- /src/components/transactions/eip5792/sendCalls.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/transactions/eip5792/sendCalls.js -------------------------------------------------------------------------------- /src/components/transactions/eip747.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/transactions/eip747.js -------------------------------------------------------------------------------- /src/components/transactions/erc1155.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/transactions/erc1155.js -------------------------------------------------------------------------------- /src/components/transactions/erc20.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/transactions/erc20.js -------------------------------------------------------------------------------- /src/components/transactions/erc721.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/transactions/erc721.js -------------------------------------------------------------------------------- /src/components/transactions/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/transactions/index.js -------------------------------------------------------------------------------- /src/components/transactions/send.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/transactions/send.js -------------------------------------------------------------------------------- /src/components/transactions/swapComparison.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/transactions/swapComparison.js -------------------------------------------------------------------------------- /src/components/transactions/swapUtils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/components/transactions/swapUtils.js -------------------------------------------------------------------------------- /src/connections.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/connections.js -------------------------------------------------------------------------------- /src/constants.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/constants.json -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/index.css -------------------------------------------------------------------------------- /src/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/index.html -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/index.js -------------------------------------------------------------------------------- /src/metamask-fox.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/metamask-fox.svg -------------------------------------------------------------------------------- /src/onchain-sample-contracts.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/onchain-sample-contracts.js -------------------------------------------------------------------------------- /src/request.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/request.html -------------------------------------------------------------------------------- /src/request.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/request.js -------------------------------------------------------------------------------- /src/sample-addresses.js: -------------------------------------------------------------------------------- 1 | export const maliciousAddress = '0x5FbDB2315678afecb367f032d93F642f64180aa3'; 2 | -------------------------------------------------------------------------------- /src/sample-networks.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/sample-networks.js -------------------------------------------------------------------------------- /src/sdk-connect.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/sdk-connect.svg -------------------------------------------------------------------------------- /src/shared/constants.js: -------------------------------------------------------------------------------- 1 | // 21000 in hexadecimal 2 | export const MIN_GAS_LIMIT = '0x5208'; 3 | -------------------------------------------------------------------------------- /src/signatures/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/signatures/utils.js -------------------------------------------------------------------------------- /src/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/utils.js -------------------------------------------------------------------------------- /src/wallet-connect.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/wallet-connect.svg -------------------------------------------------------------------------------- /src/warning.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/src/warning.svg -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/webpack.config.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaMask/test-dapp/HEAD/yarn.lock --------------------------------------------------------------------------------