Skip to content

Releases: ithacaxyz/porto

[email protected]

07 Feb 00:10
5f299aa
Compare
Choose a tag to compare

Patch Changes

  • 89616dc Thanks @jxom! - Breaking:

    • Renamed experimental_authorizeKey to experimental_grantPermissions
    • Renamed experimental_keys to experimental_permissions
    • Renamed experimental_revokeKey to experimental_revokePermissions
    • Renamed keys capability to permissions
    • Renamed authorizeKey capability to grantPermissions

[email protected]

06 Feb 02:08
e45809f
Compare
Choose a tag to compare

Patch Changes

  • 515f8cc Thanks @jxom! - Added support for authorizing/revoking Admin Key.

[email protected]

05 Feb 01:24
83ed353
Compare
Choose a tag to compare

Patch Changes

  • 001e2cd Thanks @jxom! - Breaking: Updated Account contracts.

  • 401d2dc Thanks @jxom! - Breaking: Simplified experimental_authorizeKey parameters.

    • Made expiry and permissions required.
    • Removed role – all keys are now role="session".

[email protected]

28 Jan 04:56
7bcfe53
Compare
Choose a tag to compare

Patch Changes

  • dffa6cd Thanks @jxom! - Fixed session key extraction based on call permissions.

[email protected]

24 Jan 06:14
fbe0453
Compare
Choose a tag to compare

Patch Changes

[email protected]

23 Jan 06:32
8163a52
Compare
Choose a tag to compare

Patch Changes

  • #29 99bf5bf Thanks @jxom! - Added Spend Permissions via permissions.spend property on wallet_authorizeKey RPC and the authorizeKey capability.

    Example:

    const key = await porto.provider.request({
      method: "experimental_authorizeKey",
      params: [
        {
          permissions: {
            spend: [
              {
                limit: 100_000_000n, // 100 USDC
                period: "day",
                token: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", // USDC
              },
            ],
          },
        },
      ],
    });
  • #29 99bf5bf Thanks @jxom! - Breaking: Modified wallet_authorizeKey and authorizeKey capability APIs.

    • Moved key.expiry & key.role properties to root level:
    {
      address: '0x...',
    + expiry: 1716537600,
      key: {
    -   expiry: 1716537600,
        publicKey: '0x...',
        type: 'p256',
    -   role: 'admin',
      },
    + role: 'admin',
    }
    • Removed callScopes property in favor of permissions.calls:
    {
    - callScopes: [
    + permissions: {
    +   calls: [
          {
            signature: 'mint(address,uint256)',
            to: '0x...',
          },
        ],
    + }
    }
  • ca849b3 Thanks @jxom! - Added support for Dialog Wallets (cross-origin iframes/popup) in Porto via Implementation.dialog().

    • This feature is work-in-progress and currently has no UI.
    • In the future, Implementation.dialog() will be the default behavior in Porto to communicate with a Wallet.
    • Currently, the default implementation is Implementation.local() – where its behavior is to perform actions locally (ie. "blind sign").
    • In the future, it will be anticipated for App builders to use Implementation.dialog() (the default), and for Dialog Wallet builders to use Implemetation.local().
    • Documentation for these patterns will emerge as this feature matures.

    If you would like to check out what the experience looks like currently with no UI:

    import { Porto } from "porto";
    
    const porto = Porto.create({
      implementation: Implementation.dialog(),
    });

[email protected]

16 Jan 00:43
fc1a58a
Compare
Choose a tag to compare

Patch Changes

  • #19 a2f01d4 Thanks @jxom! - Breaking: Renamed APIs:

    • JSON-RPC Methods:
      • experimental_grantSessionexperimental_authorizeKey
      • experimental_importAccountexperimental_createAccount
      • experimental_prepareImportAccountexperimental_prepareCreateAccount
      • experimental_sessionsexperimental_keys
    • Capabilities:
      • grantSessionauthorizeKey
      • sessionskeys
  • #19 a2f01d4 Thanks @jxom! - Breaking: Migrated to new Account contracts.

[email protected]

09 Jan 22:37
e17b6ad
Compare
Choose a tag to compare

Patch Changes

  • 394cc44 Thanks @jxom! - Modified porto/wagmi entrypoint to export Actions, Hooks, and Query modules.

[email protected]

06 Dec 19:10
ea6d11c
Compare
Choose a tag to compare

Patch Changes

  • f699e82 Thanks @tmm! - Bumped Viem peer dependency version.

[email protected]

03 Dec 06:02
d01a978
Compare
Choose a tag to compare

Patch Changes

  • #3 f501aa4 Thanks @jxom! - Added experimental_prepareImportAccount & experimental_importAccount JSON-RPC methods to import external accounts (EOAs).