Skip to content

Commit

Permalink
feat: update session key plugindef abi and config
Browse files Browse the repository at this point in the history
  • Loading branch information
denniswon committed Jan 25, 2024
1 parent a48aa03 commit 211cd20
Show file tree
Hide file tree
Showing 10 changed files with 1,227 additions and 969 deletions.
135 changes: 113 additions & 22 deletions packages/accounts/plugindefs/multi-owner/abi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,17 @@ export const MultiOwnerPluginAbi = [
{ name: "name", type: "string", internalType: "string" },
{ name: "version", type: "string", internalType: "string" },
{ name: "chainId", type: "uint256", internalType: "uint256" },
{ name: "verifyingContract", type: "address", internalType: "address" },
{
name: "verifyingContract",
type: "address",
internalType: "address",
},
{ name: "salt", type: "bytes32", internalType: "bytes32" },
{ name: "extensions", type: "uint256[]", internalType: "uint256[]" },
{
name: "extensions",
type: "uint256[]",
internalType: "uint256[]",
},
],
stateMutability: "view",
},
Expand Down Expand Up @@ -85,7 +93,11 @@ export const MultiOwnerPluginAbi = [
type: "tuple",
internalType: "struct PluginManifest",
components: [
{ name: "interfaceIds", type: "bytes4[]", internalType: "bytes4[]" },
{
name: "interfaceIds",
type: "bytes4[]",
internalType: "bytes4[]",
},
{
name: "dependencyInterfaceIds",
type: "bytes4[]",
Expand All @@ -106,7 +118,11 @@ export const MultiOwnerPluginAbi = [
type: "bool",
internalType: "bool",
},
{ name: "canSpendNativeToken", type: "bool", internalType: "bool" },
{
name: "canSpendNativeToken",
type: "bool",
internalType: "bool",
},
{
name: "permittedExternalCalls",
type: "tuple[]",
Expand All @@ -117,8 +133,16 @@ export const MultiOwnerPluginAbi = [
type: "address",
internalType: "address",
},
{ name: "permitAnySelector", type: "bool", internalType: "bool" },
{ name: "selectors", type: "bytes4[]", internalType: "bytes4[]" },
{
name: "permitAnySelector",
type: "bool",
internalType: "bool",
},
{
name: "selectors",
type: "bytes4[]",
internalType: "bytes4[]",
},
],
},
{
Expand All @@ -141,7 +165,11 @@ export const MultiOwnerPluginAbi = [
type: "uint8",
internalType: "enum ManifestAssociatedFunctionType",
},
{ name: "functionId", type: "uint8", internalType: "uint8" },
{
name: "functionId",
type: "uint8",
internalType: "uint8",
},
{
name: "dependencyIndex",
type: "uint256",
Expand Down Expand Up @@ -171,7 +199,11 @@ export const MultiOwnerPluginAbi = [
type: "uint8",
internalType: "enum ManifestAssociatedFunctionType",
},
{ name: "functionId", type: "uint8", internalType: "uint8" },
{
name: "functionId",
type: "uint8",
internalType: "uint8",
},
{
name: "dependencyIndex",
type: "uint256",
Expand Down Expand Up @@ -201,7 +233,11 @@ export const MultiOwnerPluginAbi = [
type: "uint8",
internalType: "enum ManifestAssociatedFunctionType",
},
{ name: "functionId", type: "uint8", internalType: "uint8" },
{
name: "functionId",
type: "uint8",
internalType: "uint8",
},
{
name: "dependencyIndex",
type: "uint256",
Expand Down Expand Up @@ -231,7 +267,11 @@ export const MultiOwnerPluginAbi = [
type: "uint8",
internalType: "enum ManifestAssociatedFunctionType",
},
{ name: "functionId", type: "uint8", internalType: "uint8" },
{
name: "functionId",
type: "uint8",
internalType: "uint8",
},
{
name: "dependencyIndex",
type: "uint256",
Expand Down Expand Up @@ -261,7 +301,11 @@ export const MultiOwnerPluginAbi = [
type: "uint8",
internalType: "enum ManifestAssociatedFunctionType",
},
{ name: "functionId", type: "uint8", internalType: "uint8" },
{
name: "functionId",
type: "uint8",
internalType: "uint8",
},
{
name: "dependencyIndex",
type: "uint256",
Expand All @@ -279,7 +323,11 @@ export const MultiOwnerPluginAbi = [
type: "uint8",
internalType: "enum ManifestAssociatedFunctionType",
},
{ name: "functionId", type: "uint8", internalType: "uint8" },
{
name: "functionId",
type: "uint8",
internalType: "uint8",
},
{
name: "dependencyIndex",
type: "uint256",
Expand Down Expand Up @@ -377,7 +425,11 @@ export const MultiOwnerPluginAbi = [
{ name: "nonce", type: "uint256", internalType: "uint256" },
{ name: "initCode", type: "bytes", internalType: "bytes" },
{ name: "callData", type: "bytes", internalType: "bytes" },
{ name: "callGasLimit", type: "uint256", internalType: "uint256" },
{
name: "callGasLimit",
type: "uint256",
internalType: "uint256",
},
{
name: "verificationGasLimit",
type: "uint256",
Expand All @@ -388,13 +440,21 @@ export const MultiOwnerPluginAbi = [
type: "uint256",
internalType: "uint256",
},
{ name: "maxFeePerGas", type: "uint256", internalType: "uint256" },
{
name: "maxFeePerGas",
type: "uint256",
internalType: "uint256",
},
{
name: "maxPriorityFeePerGas",
type: "uint256",
internalType: "uint256",
},
{ name: "paymasterAndData", type: "bytes", internalType: "bytes" },
{
name: "paymasterAndData",
type: "bytes",
internalType: "bytes",
},
{ name: "signature", type: "bytes", internalType: "bytes" },
],
},
Expand Down Expand Up @@ -426,8 +486,16 @@ export const MultiOwnerPluginAbi = [
type: "function",
name: "updateOwners",
inputs: [
{ name: "ownersToAdd", type: "address[]", internalType: "address[]" },
{ name: "ownersToRemove", type: "address[]", internalType: "address[]" },
{
name: "ownersToAdd",
type: "address[]",
internalType: "address[]",
},
{
name: "ownersToRemove",
type: "address[]",
internalType: "address[]",
},
],
outputs: [],
stateMutability: "nonpayable",
Expand All @@ -446,7 +514,11 @@ export const MultiOwnerPluginAbi = [
{ name: "nonce", type: "uint256", internalType: "uint256" },
{ name: "initCode", type: "bytes", internalType: "bytes" },
{ name: "callData", type: "bytes", internalType: "bytes" },
{ name: "callGasLimit", type: "uint256", internalType: "uint256" },
{
name: "callGasLimit",
type: "uint256",
internalType: "uint256",
},
{
name: "verificationGasLimit",
type: "uint256",
Expand All @@ -457,13 +529,21 @@ export const MultiOwnerPluginAbi = [
type: "uint256",
internalType: "uint256",
},
{ name: "maxFeePerGas", type: "uint256", internalType: "uint256" },
{
name: "maxFeePerGas",
type: "uint256",
internalType: "uint256",
},
{
name: "maxPriorityFeePerGas",
type: "uint256",
internalType: "uint256",
},
{ name: "paymasterAndData", type: "bytes", internalType: "bytes" },
{
name: "paymasterAndData",
type: "bytes",
internalType: "bytes",
},
{ name: "signature", type: "bytes", internalType: "bytes" },
],
},
Expand Down Expand Up @@ -506,8 +586,19 @@ export const MultiOwnerPluginAbi = [
inputs: [{ name: "owner", type: "address", internalType: "address" }],
},
{ type: "error", name: "NotAuthorized", inputs: [] },
{ type: "error", name: "NotContractCaller", inputs: [] },
{ type: "error", name: "NotImplemented", inputs: [] },
{
type: "error",
name: "NotContractCaller",
inputs: [{ name: "caller", type: "address", internalType: "address" }],
},
{
type: "error",
name: "NotImplemented",
inputs: [
{ name: "selector", type: "bytes4", internalType: "bytes4" },
{ name: "functionId", type: "uint8", internalType: "uint8" },
],
},
{ type: "error", name: "NotInitialized", inputs: [] },
{
type: "error",
Expand Down
Loading

0 comments on commit 211cd20

Please sign in to comment.