{
  "description": "specHash = keccak256(abi.encode(spec)) over the full SwarmSpec struct. `encoding` is the ABI encoding of the single struct argument (ethers v6 AbiCoder); re-derived in Solidity by test/SAIVectors.t.sol.",
  "type": "tuple(tuple(bytes32 roleId,uint32 min,uint32 max,address eligibility,bool selfJoin)[] roles,tuple(bytes32 name,bytes32 payoff,bytes32 topology,bytes32 coordination,uint8 boundary,uint8 admission,uint64 inputWindow,bytes32 descriptorHash)[] phases,tuple(uint8 kind,address target,bytes32 roleId)[] authorities,uint8 activation,uint8 contributions,uint32 minMembers,uint32 maxMembers,uint64 recruitmentWindow,uint64 maxDuration,uint64 inactivityTimeout,uint64 ineligibleGrace,uint64 settlementWindow,uint64 amendmentExitWindow,bytes32 descriptorHash)",
  "vectors": [
    {
      "name": "minimal single-phase gated swarm",
      "spec": {
        "roles": [
          {
            "roleId": "0x4fc13b418c06e66bee8d79228bef6e44cc720286e48578225bdc8c8c0b62c27d",
            "min": 1,
            "max": 1,
            "eligibility": "0x0000000000000000000000000000000000000000",
            "selfJoin": false
          },
          {
            "roleId": "0x0e3a19745aa9b7079f93a3673c0bba2e976f355a1a9469cbe536fcb9df620fc1",
            "min": 1,
            "max": 0,
            "eligibility": "0x0000000000000000000000000000000000000000",
            "selfJoin": false
          }
        ],
        "phases": [
          {
            "name": "0x657865637574696f6e0000000000000000000000000000000000000000000000",
            "payoff": "0xefad6aa8c92c03410cd7fa4f87ebc00ba64c967137c7b00fb8d0615535809dc9",
            "topology": "0x1c75a4f5855a46b5822d3307010ad19ab1f3d33adbb9d9804c4f42f5731be03a",
            "coordination": "0x3c8fcb23f6e961408b5b5de1fbeaaecf62e20b64949267a3f39105ff0d23482a",
            "boundary": 1,
            "admission": 0,
            "inputWindow": 0,
            "descriptorHash": "0x0000000000000000000000000000000000000000000000000000000000000000"
          }
        ],
        "authorities": [
          {
            "kind": 1,
            "target": "0x1111111111111111111111111111111111111111",
            "roleId": "0x0000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "kind": 1,
            "target": "0x1111111111111111111111111111111111111111",
            "roleId": "0x0000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "kind": 1,
            "target": "0x1111111111111111111111111111111111111111",
            "roleId": "0x0000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "kind": 1,
            "target": "0x1111111111111111111111111111111111111111",
            "roleId": "0x0000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "kind": 1,
            "target": "0x1111111111111111111111111111111111111111",
            "roleId": "0x0000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "kind": 1,
            "target": "0x1111111111111111111111111111111111111111",
            "roleId": "0x0000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "kind": 1,
            "target": "0x1111111111111111111111111111111111111111",
            "roleId": "0x0000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "kind": 1,
            "target": "0x1111111111111111111111111111111111111111",
            "roleId": "0x0000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "kind": 1,
            "target": "0x1111111111111111111111111111111111111111",
            "roleId": "0x0000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "kind": 1,
            "target": "0x1111111111111111111111111111111111111111",
            "roleId": "0x0000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "kind": 1,
            "target": "0x1111111111111111111111111111111111111111",
            "roleId": "0x0000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "kind": 1,
            "target": "0x1111111111111111111111111111111111111111",
            "roleId": "0x0000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "kind": 1,
            "target": "0x1111111111111111111111111111111111111111",
            "roleId": "0x0000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "kind": 1,
            "target": "0x1111111111111111111111111111111111111111",
            "roleId": "0x0000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "kind": 1,
            "target": "0x1111111111111111111111111111111111111111",
            "roleId": "0x0000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "kind": 2,
            "target": "0x0000000000000000000000000000000000000000",
            "roleId": "0x4fc13b418c06e66bee8d79228bef6e44cc720286e48578225bdc8c8c0b62c27d"
          }
        ],
        "activation": 0,
        "contributions": 1,
        "minMembers": 2,
        "maxMembers": 0,
        "recruitmentWindow": 604800,
        "maxDuration": 2592000,
        "inactivityTimeout": 0,
        "ineligibleGrace": 86400,
        "settlementWindow": 86400,
        "amendmentExitWindow": 172800,
        "descriptorHash": "0x0000000000000000000000000000000000000000000000000000000000000000"
      },
      "encoding": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000044000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000093a800000000000000000000000000000000000000000000000000000000000278d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000151800000000000000000000000000000000000000000000000000000000000015180000000000000000000000000000000000000000000000000000000000002a300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024fc13b418c06e66bee8d79228bef6e44cc720286e48578225bdc8c8c0b62c27d00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e3a19745aa9b7079f93a3673c0bba2e976f355a1a9469cbe536fcb9df620fc100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001657865637574696f6e0000000000000000000000000000000000000000000000efad6aa8c92c03410cd7fa4f87ebc00ba64c967137c7b00fb8d0615535809dc91c75a4f5855a46b5822d3307010ad19ab1f3d33adbb9d9804c4f42f5731be03a3c8fcb23f6e961408b5b5de1fbeaaecf62e20b64949267a3f39105ff0d23482a00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000100000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000004fc13b418c06e66bee8d79228bef6e44cc720286e48578225bdc8c8c0b62c27d",
      "specHash": "0xa1c28b01a6bacb316051c18b0d8aec19d2fa58366a7d94a888ba6692e7ddbe13"
    },
    {
      "name": "two-phase tender",
      "spec": {
        "roles": [
          {
            "roleId": "0x4fc13b418c06e66bee8d79228bef6e44cc720286e48578225bdc8c8c0b62c27d",
            "min": 1,
            "max": 1,
            "eligibility": "0x0000000000000000000000000000000000000000",
            "selfJoin": true
          },
          {
            "roleId": "0x5e56c6e5653691ad60be29b0daa2b1da03e2626066088adb40cb89caf733d8d0",
            "min": 2,
            "max": 2,
            "eligibility": "0x0000000000000000000000000000000000000000",
            "selfJoin": true
          },
          {
            "roleId": "0x547a47511e635e41ca797b5efef145fb3281fb1c297d6dd25d6d4804b50336d9",
            "min": 0,
            "max": 0,
            "eligibility": "0x0000000000000000000000000000000000000000",
            "selfJoin": true
          },
          {
            "roleId": "0x0e3a19745aa9b7079f93a3673c0bba2e976f355a1a9469cbe536fcb9df620fc1",
            "min": 0,
            "max": 2,
            "eligibility": "0x1111111111111111111111111111111111111111",
            "selfJoin": false
          }
        ],
        "phases": [
          {
            "name": "0x62696464696e6700000000000000000000000000000000000000000000000000",
            "payoff": "0x3a52f35ab3a79cc29d315ba9bde514b321231421fd597e0684238eb1c1de28aa",
            "topology": "0x00501c6ca1471e06a50bee459cb96addc4576c0e9ac37201f7d1448a625b2219",
            "coordination": "0x9eaa14d564b2568cad372b172381613f296df46536a5b71a49781125fc96bc8c",
            "boundary": 0,
            "admission": 0,
            "inputWindow": 172800,
            "descriptorHash": "0xb442c997aa2f3d4e206dd74579881cf9138e98b7d01810643b22f76c2e8cd47c"
          },
          {
            "name": "0x657865637574696f6e0000000000000000000000000000000000000000000000",
            "payoff": "0xefad6aa8c92c03410cd7fa4f87ebc00ba64c967137c7b00fb8d0615535809dc9",
            "topology": "0x1c75a4f5855a46b5822d3307010ad19ab1f3d33adbb9d9804c4f42f5731be03a",
            "coordination": "0x3c8fcb23f6e961408b5b5de1fbeaaecf62e20b64949267a3f39105ff0d23482a",
            "boundary": 2,
            "admission": 2,
            "inputWindow": 0,
            "descriptorHash": "0x42c70f868d5d625fd663d13fd69f1d081d4e533fc195b8fcc7083ef43869d652"
          }
        ],
        "authorities": [
          {
            "kind": 1,
            "target": "0x1111111111111111111111111111111111111111",
            "roleId": "0x0000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "kind": 1,
            "target": "0x1111111111111111111111111111111111111111",
            "roleId": "0x0000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "kind": 1,
            "target": "0x1111111111111111111111111111111111111111",
            "roleId": "0x0000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "kind": 1,
            "target": "0x1111111111111111111111111111111111111111",
            "roleId": "0x0000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "kind": 1,
            "target": "0x2222222222222222222222222222222222222222",
            "roleId": "0x0000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "kind": 1,
            "target": "0x1111111111111111111111111111111111111111",
            "roleId": "0x0000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "kind": 1,
            "target": "0x1111111111111111111111111111111111111111",
            "roleId": "0x0000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "kind": 1,
            "target": "0x1111111111111111111111111111111111111111",
            "roleId": "0x0000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "kind": 1,
            "target": "0x1111111111111111111111111111111111111111",
            "roleId": "0x0000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "kind": 1,
            "target": "0x1111111111111111111111111111111111111111",
            "roleId": "0x0000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "kind": 1,
            "target": "0x1111111111111111111111111111111111111111",
            "roleId": "0x0000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "kind": 1,
            "target": "0x1111111111111111111111111111111111111111",
            "roleId": "0x0000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "kind": 1,
            "target": "0x1111111111111111111111111111111111111111",
            "roleId": "0x0000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "kind": 1,
            "target": "0x1111111111111111111111111111111111111111",
            "roleId": "0x0000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "kind": 1,
            "target": "0x1111111111111111111111111111111111111111",
            "roleId": "0x0000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "kind": 2,
            "target": "0x0000000000000000000000000000000000000000",
            "roleId": "0x4fc13b418c06e66bee8d79228bef6e44cc720286e48578225bdc8c8c0b62c27d"
          }
        ],
        "activation": 0,
        "contributions": 2,
        "minMembers": 3,
        "maxMembers": 0,
        "recruitmentWindow": 604800,
        "maxDuration": 7776000,
        "inactivityTimeout": 1209600,
        "ineligibleGrace": 86400,
        "settlementWindow": 86400,
        "amendmentExitWindow": 172800,
        "descriptorHash": "0x00986e475ba431f6b784d4b894e14fedb92aa33826fe0df41d0a552c12d684f4"
      },
      "encoding": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000460000000000000000000000000000000000000000000000000000000000000068000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000093a80000000000000000000000000000000000000000000000000000000000076a700000000000000000000000000000000000000000000000000000000000012750000000000000000000000000000000000000000000000000000000000000151800000000000000000000000000000000000000000000000000000000000015180000000000000000000000000000000000000000000000000000000000002a30000986e475ba431f6b784d4b894e14fedb92aa33826fe0df41d0a552c12d684f400000000000000000000000000000000000000000000000000000000000000044fc13b418c06e66bee8d79228bef6e44cc720286e48578225bdc8c8c0b62c27d00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000015e56c6e5653691ad60be29b0daa2b1da03e2626066088adb40cb89caf733d8d00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001547a47511e635e41ca797b5efef145fb3281fb1c297d6dd25d6d4804b50336d900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010e3a19745aa9b7079f93a3673c0bba2e976f355a1a9469cbe536fcb9df620fc10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000262696464696e67000000000000000000000000000000000000000000000000003a52f35ab3a79cc29d315ba9bde514b321231421fd597e0684238eb1c1de28aa00501c6ca1471e06a50bee459cb96addc4576c0e9ac37201f7d1448a625b22199eaa14d564b2568cad372b172381613f296df46536a5b71a49781125fc96bc8c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a300b442c997aa2f3d4e206dd74579881cf9138e98b7d01810643b22f76c2e8cd47c657865637574696f6e0000000000000000000000000000000000000000000000efad6aa8c92c03410cd7fa4f87ebc00ba64c967137c7b00fb8d0615535809dc91c75a4f5855a46b5822d3307010ad19ab1f3d33adbb9d9804c4f42f5731be03a3c8fcb23f6e961408b5b5de1fbeaaecf62e20b64949267a3f39105ff0d23482a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000042c70f868d5d625fd663d13fd69f1d081d4e533fc195b8fcc7083ef43869d6520000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000100000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000022222222222222222222222222222222222222220000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000004fc13b418c06e66bee8d79228bef6e44cc720286e48578225bdc8c8c0b62c27d",
      "specHash": "0x177117cf0a3017a16296e21f09d7a31db9c10b9e44831a697ba2851519974f18"
    }
  ]
}
