Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: argentlabs/starknetkit
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: develop
Choose a base ref
...
head repository: argentlabs/starknetkit
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: beta
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.

Commits on Oct 10, 2024

  1. feat: add new UI elements

    Cussone committed Oct 10, 2024
    Copy the full SHA
    1b4066b View commit details
  2. Copy the full SHA
    6560d74 View commit details
  3. Merge branch 'refs/heads/feat/argent-one-button-connector' into feat/…

    …argent-one-button-connector-ui
    Cussone committed Oct 10, 2024
    Copy the full SHA
    8f7dcea View commit details

Commits on Oct 23, 2024

  1. Copy the full SHA
    bf9294e View commit details
  2. Copy the full SHA
    2d26120 View commit details
  3. Merge pull request #138 from argentlabs/feat/argent-one-button-connec…

    …tor-ui
    
    Feat: Argent one button connector UI
    Cussone authored Oct 23, 2024
    Copy the full SHA
    8ed021a View commit details

Commits on Oct 29, 2024

  1. Copy the full SHA
    14267a7 View commit details
  2. Copy the full SHA
    44ce0a5 View commit details
  3. Copy the full SHA
    110bbdf View commit details
  4. Copy the full SHA
    1202fa3 View commit details
  5. Copy the full SHA
    f743342 View commit details
  6. Copy the full SHA
    c777e5d View commit details
  7. Copy the full SHA
    8612c92 View commit details
  8. fix: color

    Cussone committed Oct 29, 2024
    Copy the full SHA
    9039438 View commit details
  9. Copy the full SHA
    c57a8d8 View commit details
  10. Copy the full SHA
    fba46c4 View commit details
  11. Copy the full SHA
    6ff294e View commit details
  12. Copy the full SHA
    7097abc View commit details
  13. Copy the full SHA
    cc797b7 View commit details
  14. Copy the full SHA
    bb2c00a View commit details
  15. Copy the full SHA
    3c43169 View commit details

Commits on Oct 30, 2024

  1. Copy the full SHA
    d571de8 View commit details
  2. chore: improve method naming

    Cussone committed Oct 30, 2024
    Copy the full SHA
    e5eecf4 View commit details
  3. fix: adapt type external

    Cussone committed Oct 30, 2024
    Copy the full SHA
    61ef1f0 View commit details
  4. Copy the full SHA
    ea4008b View commit details
  5. Copy the full SHA
    53d303e View commit details
  6. feat: create modal helpers

    Cussone committed Oct 30, 2024
    Copy the full SHA
    015dff2 View commit details
  7. Copy the full SHA
    c743c6d View commit details
  8. chore: add todos

    Cussone committed Oct 30, 2024
    Copy the full SHA
    b3ecb62 View commit details
  9. Copy the full SHA
    35dfa0c View commit details
  10. chore: set Argent as default

    Cussone committed Oct 30, 2024
    Copy the full SHA
    6903da0 View commit details
  11. Copy the full SHA
    6a166b3 View commit details
  12. chore: add new types

    Cussone committed Oct 30, 2024
    Copy the full SHA
    c2fd50a View commit details
  13. chore: add new exports

    Cussone committed Oct 30, 2024
    Copy the full SHA
    50945e5 View commit details
  14. Copy the full SHA
    e187d3e View commit details
  15. Copy the full SHA
    9166775 View commit details
  16. Copy the full SHA
    71b7e6b View commit details
  17. Copy the full SHA
    3fd36a7 View commit details
  18. Copy the full SHA
    966a9e7 View commit details
  19. chore: remove redundant code

    Cussone committed Oct 30, 2024
    Copy the full SHA
    64af087 View commit details
  20. fix: ts error

    Cussone committed Oct 30, 2024
    Copy the full SHA
    a76c303 View commit details
  21. Copy the full SHA
    902c3af View commit details
  22. Copy the full SHA
    0e81651 View commit details
  23. Copy the full SHA
    def3210 View commit details
  24. chore: remove redundant code

    Cussone committed Oct 30, 2024
    Copy the full SHA
    56083f4 View commit details

Commits on Oct 31, 2024

  1. Copy the full SHA
    113a1a3 View commit details
  2. chore: fix ts error

    Cussone committed Oct 31, 2024
    Copy the full SHA
    c23616c View commit details
  3. Copy the full SHA
    7a44258 View commit details
  4. chore: fix ts error

    Cussone committed Oct 31, 2024
    Copy the full SHA
    b9acfbc View commit details
  5. chore: improve check

    Cussone committed Oct 31, 2024
    Copy the full SHA
    6425b27 View commit details
Showing with 11,937 additions and 5,432 deletions.
  1. +13 −3 .eslintrc.json
  2. +1 −1 .github/workflows/release.yml
  3. +1 −0 .prettierrc
  4. +44 −9 package.json
  5. +9,883 −4,795 pnpm-lock.yaml
  6. +2 −2 postcss.config.cjs
  7. 0 src/connectors/{ → argent}/argentMobile/constants.ts
  8. +27 −16 src/connectors/{ → argent}/argentMobile/index.ts
  9. 0 src/connectors/{ → argent}/argentMobile/modal/adapter.ts
  10. +199 −0 src/connectors/argent/argentMobile/modal/argentModal.ts
  11. 0 src/connectors/{ → argent}/argentMobile/modal/index.ts
  12. +17 −7 src/connectors/{ → argent}/argentMobile/modal/login.ts
  13. 0 src/connectors/{ → argent}/argentMobile/modal/starknet/account.ts
  14. +6 −2 src/connectors/{ → argent}/argentMobile/modal/starknet/adapter.ts
  15. 0 src/connectors/{ → argent}/argentMobile/modal/starknet/signer.ts
  16. 0 src/connectors/{ → argent}/argentMobile/modal/starknet/starknet.model.ts
  17. +12 −0 src/connectors/argent/helpers/getInjectedArgentX.ts
  18. +15 −0 src/connectors/argent/helpers/inAppBrowser.ts
  19. 0 src/connectors/{argentMobile → argent}/helpers/index.ts
  20. +62 −0 src/connectors/argent/index.ts
  21. +0 −18 src/connectors/argentMobile/helpers/inAppBrowser.ts
  22. +0 −172 src/connectors/argentMobile/modal/argentModal.ts
  23. +3 −4 src/connectors/braavosMobile/index.ts
  24. +9 −0 src/connectors/connector.ts
  25. +0 −1 src/connectors/index.ts
  26. +7 −0 src/connectors/injected/argentX.ts
  27. +7 −0 src/connectors/injected/braavos.ts
  28. +17 −0 src/connectors/injected/fordefi.ts
  29. +47 −21 src/connectors/injected/index.ts
  30. +17 −0 src/connectors/injected/keplr.ts
  31. +17 −0 src/connectors/injected/metamask.ts
  32. +16 −14 src/connectors/webwallet/constants.ts
  33. +38 −0 src/helpers/connector.ts
  34. +24 −45 src/helpers/defaultConnectors.ts
  35. 0 src/{connectors/argentMobile/modal → helpers}/getDevice.ts
  36. +107 −31 src/helpers/mapModalWallets.ts
  37. +28 −0 src/helpers/modal.ts
  38. +19 −0 src/helpers/navigator.ts
  39. +74 −49 src/main.ts
  40. +0 −108 src/modal/ConnectorButton.svelte
  41. +26 −0 src/modal/Modal.d.ts
  42. +116 −111 src/modal/Modal.svelte
  43. +21 −0 src/modal/components/DynamicIcon.svelte
  44. +41 −0 src/modal/components/FallbackMobile.svelte
  45. +51 −0 src/modal/components/Header.svelte
  46. +5 −0 src/modal/components/HorizontalLine.svelte
  47. +35 −0 src/modal/components/InstallWallet.svelte
  48. +27 −0 src/modal/components/buttons/Button.svelte
  49. +28 −0 src/modal/components/buttons/IconButton.svelte
  50. +28 −0 src/modal/components/buttons/LargeButton.svelte
  51. +22 −0 src/modal/components/buttons/Link.svelte
  52. +37 −0 src/modal/components/buttons/WalletButton.svelte
  53. +3 −0 src/modal/components/icons/CaretIcon.svelte
  54. +3 −0 src/modal/components/icons/CloseIcon.svelte
  55. +3 −0 src/modal/components/icons/ReloadIcon.svelte
  56. +4 −0 src/modal/components/icons/SuccessCheckIcon.svelte
  57. +3 −0 src/modal/components/icons/WarningIcon.svelte
  58. +4 −0 src/modal/components/icons/brands/AppleIcon.svelte
  59. +22 −0 src/modal/components/icons/brands/BraveIcon.svelte
  60. +16 −0 src/modal/components/icons/brands/ChromeIcon.svelte
  61. +45 −0 src/modal/components/icons/brands/EdgeIcon.svelte
  62. +110 −0 src/modal/components/icons/brands/FirefoxIcon.svelte
  63. +33 −0 src/modal/components/icons/brands/PlayStore.svelte
  64. +22 −0 src/modal/layouts/Connecting.svelte
  65. +85 −0 src/modal/layouts/DownloadWallet/DownloadWallet.svelte
  66. +36 −0 src/modal/layouts/DownloadWallet/DownloadWalletItem.svelte
  67. +27 −0 src/modal/layouts/DownloadWallet/graphics/ArgentMobileGraphic.svelte
  68. +45 −0 src/modal/layouts/DownloadWallet/graphics/ArgentXGraphic.svelte
  69. +43 −0 src/modal/layouts/DownloadWallet/graphics/GeneralizedGraphic.svelte
  70. +44 −0 src/modal/layouts/FailedLogin.svelte
  71. +18 −0 src/modal/layouts/FailedRequest.svelte
  72. +12 −0 src/modal/layouts/Success.svelte
  73. +16 −0 src/modal/layouts/WalletList.svelte
  74. +34 −0 src/modal/layouts/argent/ArgentMobileApproval.svelte
  75. +71 −0 src/modal/layouts/argent/ArgentMobileQR.svelte
  76. +3 −0 src/tailwind.css
  77. +6 −4 src/theme.css
  78. +30 −4 src/types/modal.ts
  79. +0 −14 tailwind.config.cjs
  80. +27 −0 tailwind.config.js
  81. +23 −1 vite.config.ts
16 changes: 13 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -4,13 +4,23 @@
"es2021": true,
"node": true
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"overrides": [
{
"files": ["*.svelte"],
"parser": "svelte-eslint-parser",
"parserOptions": {
"parser": "@typescript-eslint/parser"
}
}
],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:svelte/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
"sourceType": "module",
"extraFileExtensions": [".svelte"]
},
"plugins": ["@typescript-eslint"],
"plugins": ["@typescript-eslint", "prettier"],
"rules": {
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-explicit-any": "off",
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ on:
branches:
- develop
- main
- beta-braavos-mobile
- beta
- hotfix\/v[0-9]+.[0-9]+.[0-9]+

jobs:
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"useTabs": false,
"tabWidth": 2,
"trailingComma": "all",
"singleQuote": false,
"semi": false,
53 changes: 44 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "starknetkit",
"version": "2.7.0",
"version": "2.8.0-beta.2",
"repository": "github:argentlabs/starknetkit",
"private": false,
"browser": {
@@ -27,6 +27,11 @@
"import": "./dist/starknetkit.js",
"require": "./dist/starknetkit.cjs"
},
"./injected": {
"types": "./dist/injectedConnector.d.ts",
"import": "./dist/injectedConnector.js",
"require": "./dist/injectedConnector.cjs"
},
"./webwallet": {
"types": "./dist/webwalletConnector.d.ts",
"import": "./dist/webwalletConnector.js",
@@ -37,16 +42,41 @@
"import": "./dist/argentMobile.js",
"require": "./dist/argentMobile.cjs"
},
"./argent": {
"types": "./dist/argent.d.ts",
"import": "./dist/argent.js",
"require": "./dist/argent.cjs"
},
"./argentX": {
"types": "./dist/argentX.d.ts",
"import": "./dist/argentX.js",
"require": "./dist/argentX.cjs"
},
"./braavos": {
"types": "./dist/braavos.d.ts",
"import": "./dist/braavos.js",
"require": "./dist/braavos.cjs"
},
"./metamask": {
"types": "./dist/metamask.d.ts",
"import": "./dist/metamask.js",
"require": "./dist/metamask.cjs"
},
"./keplr": {
"types": "./dist/keplr.d.ts",
"import": "./dist/keplr.js",
"require": "./dist/keplr.cjs"
},
"./fordefi": {
"types": "./dist/fordefi.d.ts",
"import": "./dist/fordefi.js",
"require": "./dist/fordefi.cjs"
},
"./braavosMobile": {
"types": "./dist/braavosMobile.d.ts",
"import": "./dist/braavosMobile.js",
"require": "./dist/braavosMobile.cjs"
},
"./injected": {
"types": "./dist/injectedConnector.d.ts",
"import": "./dist/injectedConnector.js",
"require": "./dist/injectedConnector.cjs"
},
"./window": {
"types": "./dist/window.d.ts",
"import": "./dist/window.js",
@@ -56,15 +86,16 @@
"main": "./dist/starknetkit.cjs",
"module": "./dist/starknetkit.js",
"types": "./dist/starknetkit.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "vite build",
"check": "svelte-check --tsconfig ./tsconfig.json",
"dev": "vite build --watch"
},
"files": [
"dist"
],
"dependencies": {
"@argent/x-ui": "^1.70.1",
"@starknet-io/get-starknet": "^4.0.6",
"@starknet-io/get-starknet-core": "^4.0.6",
"@starknet-io/types-js": "^0.7.7",
@@ -88,6 +119,7 @@
"@types/async-retry": "^1.4.5",
"@types/lodash-es": "^4.17.8",
"@types/node": "^20.5.7",
"@typescript-eslint/parser": "^8.8.1",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@walletconnect/ethereum-provider": "^2.11.0",
"@walletconnect/jsonrpc-provider": "^1.0.13",
@@ -97,6 +129,8 @@
"autoprefixer": "^10.4.7",
"eslint": "^8.48.0",
"eslint-config-next": "^13.4.19",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-svelte": "^2.44.1",
"husky": "^9.0.0",
"lint-staged": "^15.0.0",
"postcss": "^8.4.21",
@@ -106,6 +140,7 @@
"semantic-release": "^24.0.0",
"svelte": "^4.0.0",
"svelte-check": "^3.5.1",
"svelte-eslint-parser": "^0.41.1",
"svelte-preprocess": "^6.0.0",
"tailwindcss": "^3.1.6",
"tslib": "^2.4.0",
Loading