{"matchId":"47039623","creationMatch":null,"runtimeMatch":"match","verifiedAt":"2026-09-02T14:17:30Z","creationBytecode":{"onchainBytecode":null,"recompiledBytecode":"0x610100604052348015610010575f80fd5b506040516121d33803806121d383398101604081905261002f91610186565b30613fff1660cc1461005457604051632a96f9e160e21b815260040160405180910390fd5b6001600160a01b0380841660805282811660a081905260c081905290821660e05261008190825f19610089565b5050506101d0565b6100958383835f61010d565b610108576100a683835f600161010d565b6100d357604051635274afe760e01b81526001600160a01b03841660048201526024015b60405180910390fd5b6100e0838383600161010d565b61010857604051635274afe760e01b81526001600160a01b03841660048201526024016100ca565b505050565b60405163095ea7b360e01b5f8181526001600160a01b038616600452602485905291602083604481808b5af1925060015f51148316610163578383151615610157573d5f823e3d81fd5b5f873b113d1516831692505b60405250949350505050565b6001600160a01b0381168114610183575f80fd5b50565b5f805f60608486031215610198575f80fd5b83516101a38161016f565b60208501519093506101b48161016f565b60408501519092506101c58161016f565b809150509250925092565b60805160a05160c05160e051611f1a6102b95f395f818161046901528181610b280152818161112c015261134601525f818161026c015281816107d50152818161087e01528181610fe50152818161107a0152818161129601526113d801525f81816102ab0152818161098d01528181610ddc01528181610ee7015261120f01525f81816104ce015281816105d001528181610753015281816107a2015281816108b30152818161096301528181610a6c01528181610bd601528181610ebd01528181610fb9015281816110af015281816111e5015281816112cb01526113a50152611f1a5ff3fe608060405234801561000f575f80fd5b50600436106101fd575f3560e01c80639beedd1e11610114578063c415b95c116100a9578063dc98354e11610079578063dc98354e146104f0578063de6fb465146104fe578063e1b4af691461043c578063e861417814610513578063f253945314610532575f80fd5b8063c415b95c14610464578063cf0ac78f1461048b578063dc1ab379146104aa578063dc4c90d3146104c9575f80fd5b8063b6a8b0fa116100e4578063b6a8b0fa1461043c578063b75789401461044a578063b9daf51714610453578063be3782281461045c575f80fd5b80639beedd1e146103ea5780639f063efc1461033a578063a78842ee146103f3578063b47b2fb114610406575f80fd5b80635f81a57c11610195578063726877e511610165578063726877e51461037b57806377cd93741461039a5780638549d9be146103a357806391dd7346146103ab57806393cc0b2b146103cb575f80fd5b80635f81a57c1461031357806364f8caec1461031b5780636c2bbe7e1461033a5780636fe7e6eb1461036d575f80fd5b806326465937116101d057806326465937146102675780634eec9e09146102a6578063575e24b4146102cd5780635c9302c91461030b575f80fd5b80630f1d6f76146102015780631d38cbfe1461023357806321d0ee701461023b578063259982e51461023b575b5f80fd5b61022061020f366004611809565b600a6020525f908152604090205481565b6040519081526020015b60405180910390f35b610220610551565b61024e6102493660046118a2565b6105a8565b6040516001600160e01b0319909116815260200161022a565b61028e7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161022a565b61028e7f000000000000000000000000000000000000000000000000000000000000000081565b6102e06102db366004611929565b6105c2565b604080516001600160e01b03199094168452602084019290925262ffffff169082015260600161022a565b610220610718565b6102205f5481565b610220610329366004611983565b60056020525f908152604090205481565b61034d6103483660046119a5565b61072b565b604080516001600160e01b0319909316835260208301919091520161022a565b61024e610249366004611a46565b610220610389366004611983565b60096020525f908152604090205481565b61022060035481565b61028e60cc81565b6103be6103b9366004611a9d565b610746565b60405161022a9190611adc565b6102206103d9366004611983565b60066020525f908152604090205481565b61022060045481565b610220610401366004611983565b610925565b610419610414366004611b11565b610bc9565b604080516001600160e01b03199093168352600f9190910b60208301520161022a565b61024e610249366004611b92565b61022060025481565b61022060015481565b610220606481565b61028e7f000000000000000000000000000000000000000000000000000000000000000081565b610220610499366004611983565b60076020525f908152604090205481565b6102206104b8366004611983565b60086020525f908152604090205481565b61028e7f000000000000000000000000000000000000000000000000000000000000000081565b61024e610249366004611bec565b610506610d78565b60405161022a9190611c33565b610220610521366004611809565b600b6020525f908152604090205481565b610220610540366004611809565b600c6020525f908152604090205481565b600e545f90815b818110156105a35761058f600e828154811061057657610576611c7e565b5f918252602090912001546001600160a01b0316610925565b6105999084611ca6565b9250600101610558565b505090565b5f604051630a85dc2960e01b815260040160405180910390fd5b5f8080336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461060e5760405163570c108560e11b815260040160405180910390fd5b5f8061061989610dd8565b9150915061062681610e82565b5f82151561063760208b018b611cb9565b151514905080158061064d57505f896020013512155b1561067a575050600f80546001600160881b0319169055506315d7892d60e21b92505f915081905061070d565b5f61068860208b0135611cd8565b90505f612710610699606484611cf2565b6106a39190611d09565b600f80546001600160801b038316610100026001600160881b031990911617600117905590505f8190036106ec57506315d7892d60e21b96505f955085945061070d9350505050565b6106f684826111ce565b6315d7892d60e21b975060801b95505f9450505050505b955095509592505050565b5f6107266201518042611d09565b905090565b5f80604051630a85dc2960e01b815260040160405180910390fd5b6060336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146107915760405163570c108560e11b815260040160405180910390fd5b5f61079e83850185611809565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f5298aca306108097f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166001600160a01b031690565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604481018490526064015f604051808303815f87803b158015610853575f80fd5b505af1158015610865573d5f803e3d5ffd5b5050604051630b0d9c0960e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152306024830152604482018590527f0000000000000000000000000000000000000000000000000000000000000000169250630b0d9c0991506064015f604051808303815f87803b1580156108f6575f80fd5b505af1158015610908573d5f803e3d5ffd5b5050505060405180602001604052805f8152509150505b92915050565b6001600160a01b0381165f9081526009602052604081205480820361094c57505f92915050565b6040516370a0823160e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301525f917f0000000000000000000000000000000000000000000000000000000000000000909116906370a0823190602401602060405180830381865afa1580156109d4573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109f89190611d28565b9050808210610a075780610a09565b815b9250825f03610a1b57505f9392505050565b610a258383611d3f565b6001600160a01b0385165f9081526009602052604081209190915560048054859290610a52908490611d3f565b909155505060408051602081018590526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916348c8949191016040516020818303038152906040526040518263ffffffff1660e01b8152600401610abf9190611adc565b5f604051808303815f875af1158015610ada573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610b019190810190611d97565b5060405163029b83f560e21b81526001600160a01b038581166004830152602482018590527f00000000000000000000000000000000000000000000000000000000000000001690630a6e0fd4906044015f604051808303815f87803b158015610b69575f80fd5b505af1158015610b7b573d5f803e3d5ffd5b50505050836001600160a01b03167f8ca3aa85524ed683fbb1f239a5aa076ba47c5e8a4d86e32f8ca1ec2cdd56a95384604051610bba91815260200190565b60405180910390a25050919050565b5f80336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c145760405163570c108560e11b815260040160405180910390fd5b5f80610c1f89610dd8565b90925090505f821515610c3560208b018b611cb9565b15151490505f83610c4f57610c4a89600f0b90565b610c59565b610c598960801d90565b600f5490915060ff1615610ccd57600f80546001600160881b0319811690915561010090046001600160801b03165f610c9183611e2b565b6001600160801b03169050610cb4858e610cab8585611ca6565b85600186611576565b5063b47b2fb160e01b96505f9550610d6d945050505050565b8115610d42575f610cdd82611e2b565b6001600160801b031690505f612710610cf7606484611cf2565b610d019190611d09565b90508015610d1357610d1385826111ce565b610d2b858e610d228486611ca6565b84600187611576565b63b47b2fb160e01b97509550610d6d945050505050565b6001600160801b038116610d5a848d835f8082611576565b5063b47b2fb160e01b95505f9450505050505b965096945050505050565b6060600e805480602002602001604051908101604052809291908181526020018280548015610dce57602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610db0575b5050505050905090565b5f807f000000000000000000000000000000000000000000000000000000000000000081610e096020860186611983565b90505f610e1c6040870160208801611983565b9050826001600160a01b0316826001600160a01b031603610e44576001969095509350505050565b826001600160a01b0316816001600160a01b031603610e6957505f9590945092505050565b604051630650525d60e21b815260040160405180910390fd5b6001600160a01b0381165f9081526009602052604081205490819003610ea6575050565b6040516370a0823160e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301525f917f0000000000000000000000000000000000000000000000000000000000000000909116906370a0823190602401602060405180830381865afa158015610f2e573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f529190611d28565b90505f818310610f625781610f64565b825b9050805f03610f735750505050565b610f7d8184611d3f565b6001600160a01b0385165f9081526009602052604081209190915560048054839290610faa908490611d3f565b90915550506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169063f5298aca9030907f0000000000000000000000000000000000000000000000000000000000000000166040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604481018490526064015f604051808303815f87803b15801561104f575f80fd5b505af1158015611061573d5f803e3d5ffd5b5050604051630b0d9c0960e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152306024830152604482018590527f0000000000000000000000000000000000000000000000000000000000000000169250630b0d9c0991506064015f604051808303815f87803b1580156110f2575f80fd5b505af1158015611104573d5f803e3d5ffd5b505060405163029b83f560e21b81526001600160a01b038781166004830152602482018590527f0000000000000000000000000000000000000000000000000000000000000000169250630a6e0fd491506044015f604051808303815f87803b15801561116f575f80fd5b505af1158015611181573d5f803e3d5ffd5b50505050836001600160a01b03167f8ca3aa85524ed683fbb1f239a5aa076ba47c5e8a4d86e32f8ca1ec2cdd56a953826040516111c091815260200190565b60405180910390a250505050565b6040516370a0823160e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116600483015282917f0000000000000000000000000000000000000000000000000000000000000000909116906370a0823190602401602060405180830381865afa158015611256573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061127a9190611d28565b106113a357604051630b0d9c0960e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152306024830152604482018390527f00000000000000000000000000000000000000000000000000000000000000001690630b0d9c09906064015f604051808303815f87803b15801561130c575f80fd5b505af115801561131e573d5f803e3d5ffd5b505060405163029b83f560e21b81526001600160a01b038581166004830152602482018590527f0000000000000000000000000000000000000000000000000000000000000000169250630a6e0fd491506044015f604051808303815f87803b158015611389575f80fd5b505af115801561139b573d5f803e3d5ffd5b505050505050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663156e29f63061140c7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166001600160a01b031690565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604481018490526064015f604051808303815f87803b158015611456575f80fd5b505af1158015611468573d5f803e3d5ffd5b505050506001600160a01b0382165f908152600d602052604090205460ff166114f0576001600160a01b0382165f818152600d60205260408120805460ff19166001908117909155600e805491820181559091527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0180546001600160a01b03191690911790555b6001600160a01b0382165f9081526009602052604081208054839290611517908490611ca6565b925050819055508060045f82825461152f9190611ca6565b90915550506040518181526001600160a01b038316907fc1be2bc8eb877f1acaf69dd16cddb1a5ec91ca5dbf16c408720e4f71435b879f9060200160405180910390a25050565b5f61157f610718565b6001600160a01b0388165f908152600560205260409020549091501580156115b45760035f81546115af90611e58565b909155505b80806115d757506001600160a01b0388165f908152600860205260409020548214155b15611616575f828152600c6020526040812080549091906115f790611e58565b909155506001600160a01b0388165f9081526008602052604090208290555b6001600160a01b0388165f908152600560205260408120805488929061163d908490611ca6565b92505081905550855f808282546116549190611ca6565b90915550505f828152600a602052604081208054889290611676908490611ca6565b909155505083156116cb576001600160a01b0388165f90815260066020526040812080548592906116a8908490611ca6565b925050819055508260015f8282546116c09190611ca6565b909155506117349050565b6001600160a01b0388165f90815260066020526040812054908185116116f157846116f3565b815b90506116ff8183611d3f565b6001600160a01b038b165f908152600660205260408120919091556001805483929061172c908490611d3f565b909155505050505b84156117ff576001600160a01b0388165f9081526007602052604081208054879290611761908490611ca6565b925050819055508460025f8282546117799190611ca6565b90915550505f828152600b60205260408120805487929061179b908490611ca6565b909155506117ba90506117b336899003890189611e70565b60a0902090565b60408051888152602081018890526001600160a01b038b16917f1d04ee529105e3590e5b5ab05b857a0def93ec3de4b27276e998b8340bd1d193910160405180910390a35b5050505050505050565b5f60208284031215611819575f80fd5b5035919050565b6001600160a01b0381168114611834575f80fd5b50565b5f60a08284031215611847575f80fd5b50919050565b5f60808284031215611847575f80fd5b5f8083601f84011261186d575f80fd5b50813567ffffffffffffffff811115611884575f80fd5b60208301915083602082850101111561189b575f80fd5b9250929050565b5f805f805f61016086880312156118b7575f80fd5b85356118c281611820565b94506118d18760208801611837565b93506118e08760c0880161184d565b925061014086013567ffffffffffffffff8111156118fc575f80fd5b6119088882890161185d565b969995985093965092949392505050565b5f60608284031215611847575f80fd5b5f805f805f610140868803121561193e575f80fd5b853561194981611820565b94506119588760208801611837565b93506119678760c08801611919565b925061012086013567ffffffffffffffff8111156118fc575f80fd5b5f60208284031215611993575f80fd5b813561199e81611820565b9392505050565b5f805f805f805f6101a0888a0312156119bc575f80fd5b87356119c781611820565b96506119d68960208a01611837565b95506119e58960c08a0161184d565b94506101408801359350610160880135925061018088013567ffffffffffffffff811115611a11575f80fd5b611a1d8a828b0161185d565b989b979a50959850939692959293505050565b8035600281900b8114611a41575f80fd5b919050565b5f805f806101008587031215611a5a575f80fd5b8435611a6581611820565b9350611a748660208701611837565b925060c0850135611a8481611820565b9150611a9260e08601611a30565b905092959194509250565b5f8060208385031215611aae575f80fd5b823567ffffffffffffffff811115611ac4575f80fd5b611ad08582860161185d565b90969095509350505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f805f805f806101608789031215611b27575f80fd5b8635611b3281611820565b9550611b418860208901611837565b9450611b508860c08901611919565b9350610120870135925061014087013567ffffffffffffffff811115611b74575f80fd5b611b8089828a0161185d565b979a9699509497509295939492505050565b5f805f805f806101208789031215611ba8575f80fd5b8635611bb381611820565b9550611bc28860208901611837565b945060c0870135935060e0870135925061010087013567ffffffffffffffff811115611b74575f80fd5b5f805f60e08486031215611bfe575f80fd5b8335611c0981611820565b9250611c188560208601611837565b915060c0840135611c2881611820565b809150509250925092565b602080825282518282018190525f918401906040840190835b81811015611c735783516001600160a01b0316835260209384019390920191600101611c4c565b509095945050505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561091f5761091f611c92565b5f60208284031215611cc9575f80fd5b8135801515811461199e575f80fd5b5f600160ff1b8201611cec57611cec611c92565b505f0390565b808202811582820484141761091f5761091f611c92565b5f82611d2357634e487b7160e01b5f52601260045260245ffd5b500490565b5f60208284031215611d38575f80fd5b5051919050565b8181038181111561091f5761091f611c92565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611d8f57611d8f611d52565b604052919050565b5f60208284031215611da7575f80fd5b815167ffffffffffffffff811115611dbd575f80fd5b8201601f81018413611dcd575f80fd5b805167ffffffffffffffff811115611de757611de7611d52565b611dfa601f8201601f1916602001611d66565b818152856020838501011115611e0e575f80fd5b8160208401602083015e5f91810160200191909152949350505050565b5f81600f0b6f7fffffffffffffffffffffffffffffff198103611e5057611e50611c92565b5f0392915050565b5f60018201611e6957611e69611c92565b5060010190565b5f60a0828403128015611e81575f80fd5b5060405160a0810167ffffffffffffffff81118282101715611ea557611ea5611d52565b6040528235611eb381611820565b81526020830135611ec381611820565b6020820152604083013562ffffff81168114611edd575f80fd5b6040820152611eee60608401611a30565b60608201526080830135611f0181611820565b6080820152939250505056fea164736f6c634300081a000a","sourceMap":"4635:16084:27:-:0;;;7707:799;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;8014:4;1325:13:17;7998:44:27;1505:135;7998:62;7994:95;;8069:20;;-1:-1:-1;;;8069:20:27;;;;;;;;;;;7994:95;-1:-1:-1;;;;;8100:26:27;;;;;8136:32;;;;;;;8178:55;;;;8243:28;;;;;8428:71;;8258:13;-1:-1:-1;;8428:28:27;:71::i;:::-;7707:799;;;4635:16084;;5169:367:6;5261:42;5274:5;5281:7;5290:5;5297;5261:12;:42::i;:::-;5256:274;;5324:37;5337:5;5344:7;5353:1;5356:4;5324:12;:37::i;:::-;5319:91;;5370:40;;-1:-1:-1;;;5370:40:6;;-1:-1:-1;;;;;951:32:29;;5370:40:6;;;933:51:29;906:18;;5370:40:6;;;;;;;;5319:91;5429:41;5442:5;5449:7;5458:5;5465:4;5429:12;:41::i;:::-;5424:95;;5479:40;;-1:-1:-1;;;5479:40:6;;-1:-1:-1;;;;;951:32:29;;5479:40:6;;;933:51:29;906:18;;5479:40:6;787:203:29;5424:95:6;5169:367;;;:::o;12706:1252::-;12936:4;12930:11;-1:-1:-1;;;12804:12:6;12954:22;;;-1:-1:-1;;;;;13002:29:6;;12996:4;12989:43;13052:4;13045:19;;;12804:12;13128:4;12804:12;13116:4;12804:12;;13100:5;13093;13088:45;13077:56;;13345:1;13338:4;13332:11;13329:18;13320:7;13316:32;13306:606;;13477:6;13467:7;13460:15;13456:28;13453:165;;;13533:16;13527:4;13522:3;13507:43;13583:16;13578:3;13571:29;13453:165;13894:1;13886:5;13874:18;13871:25;13852:16;13845:24;13841:56;13832:7;13828:70;13817:81;;13306:606;13932:4;13925:17;-1:-1:-1;12706:1252:6;;-1:-1:-1;;;;12706:1252:6:o;14:145:29:-;-1:-1:-1;;;;;103:31:29;;93:42;;83:70;;149:1;146;139:12;83:70;14:145;:::o;164:618::-;309:6;317;325;378:2;366:9;357:7;353:23;349:32;346:52;;;394:1;391;384:12;346:52;426:9;420:16;445:45;484:5;445:45;:::i;:::-;559:2;544:18;;538:25;509:5;;-1:-1:-1;572:47:29;538:25;572:47;:::i;:::-;690:2;675:18;;669:25;638:7;;-1:-1:-1;703:47:29;669:25;703:47;:::i;:::-;769:7;759:17;;;164:618;;;;;:::o;787:203::-;4635:16084:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","linkReferences":{},"cborAuxdata":{"1":{"value":"0xa164736f6c634300081a000a","offset":8647}},"transformations":null,"transformationValues":null},"runtimeBytecode":{"onchainBytecode":"0x608060405234801561000f575f80fd5b50600436106101fd575f3560e01c80639beedd1e11610114578063c415b95c116100a9578063dc98354e11610079578063dc98354e146104f0578063de6fb465146104fe578063e1b4af691461043c578063e861417814610513578063f253945314610532575f80fd5b8063c415b95c14610464578063cf0ac78f1461048b578063dc1ab379146104aa578063dc4c90d3146104c9575f80fd5b8063b6a8b0fa116100e4578063b6a8b0fa1461043c578063b75789401461044a578063b9daf51714610453578063be3782281461045c575f80fd5b80639beedd1e146103ea5780639f063efc1461033a578063a78842ee146103f3578063b47b2fb114610406575f80fd5b80635f81a57c11610195578063726877e511610165578063726877e51461037b57806377cd93741461039a5780638549d9be146103a357806391dd7346146103ab57806393cc0b2b146103cb575f80fd5b80635f81a57c1461031357806364f8caec1461031b5780636c2bbe7e1461033a5780636fe7e6eb1461036d575f80fd5b806326465937116101d057806326465937146102675780634eec9e09146102a6578063575e24b4146102cd5780635c9302c91461030b575f80fd5b80630f1d6f76146102015780631d38cbfe1461023357806321d0ee701461023b578063259982e51461023b575b5f80fd5b61022061020f366004611809565b600a6020525f908152604090205481565b6040519081526020015b60405180910390f35b610220610551565b61024e6102493660046118a2565b6105a8565b6040516001600160e01b0319909116815260200161022a565b61028e7f0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd981565b6040516001600160a01b03909116815260200161022a565b61028e7f0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd981565b6102e06102db366004611929565b6105c2565b604080516001600160e01b03199094168452602084019290925262ffffff169082015260600161022a565b610220610718565b6102205f5481565b610220610329366004611983565b60056020525f908152604090205481565b61034d6103483660046119a5565b61072b565b604080516001600160e01b0319909316835260208301919091520161022a565b61024e610249366004611a46565b610220610389366004611983565b60096020525f908152604090205481565b61022060035481565b61028e60cc81565b6103be6103b9366004611a9d565b610746565b60405161022a9190611adc565b6102206103d9366004611983565b60066020525f908152604090205481565b61022060045481565b610220610401366004611983565b610925565b610419610414366004611b11565b610bc9565b604080516001600160e01b03199093168352600f9190910b60208301520161022a565b61024e610249366004611b92565b61022060025481565b61022060015481565b610220606481565b61028e7f00000000000000000000000036767386fc48bc3aa9b35a378177a1254d9eeddf81565b610220610499366004611983565b60076020525f908152604090205481565b6102206104b8366004611983565b60086020525f908152604090205481565b61028e7f0000000000000000000000008366a39cc670b4001a1121b8f6a443a643e4095181565b61024e610249366004611bec565b610506610d78565b60405161022a9190611c33565b610220610521366004611809565b600b6020525f908152604090205481565b610220610540366004611809565b600c6020525f908152604090205481565b600e545f90815b818110156105a35761058f600e828154811061057657610576611c7e565b5f918252602090912001546001600160a01b0316610925565b6105999084611ca6565b9250600101610558565b505090565b5f604051630a85dc2960e01b815260040160405180910390fd5b5f8080336001600160a01b037f0000000000000000000000008366a39cc670b4001a1121b8f6a443a643e40951161461060e5760405163570c108560e11b815260040160405180910390fd5b5f8061061989610dd8565b9150915061062681610e82565b5f82151561063760208b018b611cb9565b151514905080158061064d57505f896020013512155b1561067a575050600f80546001600160881b0319169055506315d7892d60e21b92505f915081905061070d565b5f61068860208b0135611cd8565b90505f612710610699606484611cf2565b6106a39190611d09565b600f80546001600160801b038316610100026001600160881b031990911617600117905590505f8190036106ec57506315d7892d60e21b96505f955085945061070d9350505050565b6106f684826111ce565b6315d7892d60e21b975060801b95505f9450505050505b955095509592505050565b5f6107266201518042611d09565b905090565b5f80604051630a85dc2960e01b815260040160405180910390fd5b6060336001600160a01b037f0000000000000000000000008366a39cc670b4001a1121b8f6a443a643e4095116146107915760405163570c108560e11b815260040160405180910390fd5b5f61079e83850185611809565b90507f0000000000000000000000008366a39cc670b4001a1121b8f6a443a643e409516001600160a01b031663f5298aca306108097f0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd96001600160a01b03166001600160a01b031690565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604481018490526064015f604051808303815f87803b158015610853575f80fd5b505af1158015610865573d5f803e3d5ffd5b5050604051630b0d9c0960e01b81526001600160a01b037f0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd981166004830152306024830152604482018590527f0000000000000000000000008366a39cc670b4001a1121b8f6a443a643e40951169250630b0d9c0991506064015f604051808303815f87803b1580156108f6575f80fd5b505af1158015610908573d5f803e3d5ffd5b5050505060405180602001604052805f8152509150505b92915050565b6001600160a01b0381165f9081526009602052604081205480820361094c57505f92915050565b6040516370a0823160e01b81526001600160a01b037f0000000000000000000000008366a39cc670b4001a1121b8f6a443a643e40951811660048301525f917f0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd9909116906370a0823190602401602060405180830381865afa1580156109d4573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109f89190611d28565b9050808210610a075780610a09565b815b9250825f03610a1b57505f9392505050565b610a258383611d3f565b6001600160a01b0385165f9081526009602052604081209190915560048054859290610a52908490611d3f565b909155505060408051602081018590526001600160a01b037f0000000000000000000000008366a39cc670b4001a1121b8f6a443a643e4095116916348c8949191016040516020818303038152906040526040518263ffffffff1660e01b8152600401610abf9190611adc565b5f604051808303815f875af1158015610ada573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610b019190810190611d97565b5060405163029b83f560e21b81526001600160a01b038581166004830152602482018590527f00000000000000000000000036767386fc48bc3aa9b35a378177a1254d9eeddf1690630a6e0fd4906044015f604051808303815f87803b158015610b69575f80fd5b505af1158015610b7b573d5f803e3d5ffd5b50505050836001600160a01b03167f8ca3aa85524ed683fbb1f239a5aa076ba47c5e8a4d86e32f8ca1ec2cdd56a95384604051610bba91815260200190565b60405180910390a25050919050565b5f80336001600160a01b037f0000000000000000000000008366a39cc670b4001a1121b8f6a443a643e409511614610c145760405163570c108560e11b815260040160405180910390fd5b5f80610c1f89610dd8565b90925090505f821515610c3560208b018b611cb9565b15151490505f83610c4f57610c4a89600f0b90565b610c59565b610c598960801d90565b600f5490915060ff1615610ccd57600f80546001600160881b0319811690915561010090046001600160801b03165f610c9183611e2b565b6001600160801b03169050610cb4858e610cab8585611ca6565b85600186611576565b5063b47b2fb160e01b96505f9550610d6d945050505050565b8115610d42575f610cdd82611e2b565b6001600160801b031690505f612710610cf7606484611cf2565b610d019190611d09565b90508015610d1357610d1385826111ce565b610d2b858e610d228486611ca6565b84600187611576565b63b47b2fb160e01b97509550610d6d945050505050565b6001600160801b038116610d5a848d835f8082611576565b5063b47b2fb160e01b95505f9450505050505b965096945050505050565b6060600e805480602002602001604051908101604052809291908181526020018280548015610dce57602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610db0575b5050505050905090565b5f807f0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd981610e096020860186611983565b90505f610e1c6040870160208801611983565b9050826001600160a01b0316826001600160a01b031603610e44576001969095509350505050565b826001600160a01b0316816001600160a01b031603610e6957505f9590945092505050565b604051630650525d60e21b815260040160405180910390fd5b6001600160a01b0381165f9081526009602052604081205490819003610ea6575050565b6040516370a0823160e01b81526001600160a01b037f0000000000000000000000008366a39cc670b4001a1121b8f6a443a643e40951811660048301525f917f0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd9909116906370a0823190602401602060405180830381865afa158015610f2e573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f529190611d28565b90505f818310610f625781610f64565b825b9050805f03610f735750505050565b610f7d8184611d3f565b6001600160a01b0385165f9081526009602052604081209190915560048054839290610faa908490611d3f565b90915550506001600160a01b037f0000000000000000000000008366a39cc670b4001a1121b8f6a443a643e4095181169063f5298aca9030907f0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd9166040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604481018490526064015f604051808303815f87803b15801561104f575f80fd5b505af1158015611061573d5f803e3d5ffd5b5050604051630b0d9c0960e01b81526001600160a01b037f0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd981166004830152306024830152604482018590527f0000000000000000000000008366a39cc670b4001a1121b8f6a443a643e40951169250630b0d9c0991506064015f604051808303815f87803b1580156110f2575f80fd5b505af1158015611104573d5f803e3d5ffd5b505060405163029b83f560e21b81526001600160a01b038781166004830152602482018590527f00000000000000000000000036767386fc48bc3aa9b35a378177a1254d9eeddf169250630a6e0fd491506044015f604051808303815f87803b15801561116f575f80fd5b505af1158015611181573d5f803e3d5ffd5b50505050836001600160a01b03167f8ca3aa85524ed683fbb1f239a5aa076ba47c5e8a4d86e32f8ca1ec2cdd56a953826040516111c091815260200190565b60405180910390a250505050565b6040516370a0823160e01b81526001600160a01b037f0000000000000000000000008366a39cc670b4001a1121b8f6a443a643e409518116600483015282917f0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd9909116906370a0823190602401602060405180830381865afa158015611256573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061127a9190611d28565b106113a357604051630b0d9c0960e01b81526001600160a01b037f0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd981166004830152306024830152604482018390527f0000000000000000000000008366a39cc670b4001a1121b8f6a443a643e409511690630b0d9c09906064015f604051808303815f87803b15801561130c575f80fd5b505af115801561131e573d5f803e3d5ffd5b505060405163029b83f560e21b81526001600160a01b038581166004830152602482018590527f00000000000000000000000036767386fc48bc3aa9b35a378177a1254d9eeddf169250630a6e0fd491506044015f604051808303815f87803b158015611389575f80fd5b505af115801561139b573d5f803e3d5ffd5b505050505050565b7f0000000000000000000000008366a39cc670b4001a1121b8f6a443a643e409516001600160a01b031663156e29f63061140c7f0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd96001600160a01b03166001600160a01b031690565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604481018490526064015f604051808303815f87803b158015611456575f80fd5b505af1158015611468573d5f803e3d5ffd5b505050506001600160a01b0382165f908152600d602052604090205460ff166114f0576001600160a01b0382165f818152600d60205260408120805460ff19166001908117909155600e805491820181559091527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0180546001600160a01b03191690911790555b6001600160a01b0382165f9081526009602052604081208054839290611517908490611ca6565b925050819055508060045f82825461152f9190611ca6565b90915550506040518181526001600160a01b038316907fc1be2bc8eb877f1acaf69dd16cddb1a5ec91ca5dbf16c408720e4f71435b879f9060200160405180910390a25050565b5f61157f610718565b6001600160a01b0388165f908152600560205260409020549091501580156115b45760035f81546115af90611e58565b909155505b80806115d757506001600160a01b0388165f908152600860205260409020548214155b15611616575f828152600c6020526040812080549091906115f790611e58565b909155506001600160a01b0388165f9081526008602052604090208290555b6001600160a01b0388165f908152600560205260408120805488929061163d908490611ca6565b92505081905550855f808282546116549190611ca6565b90915550505f828152600a602052604081208054889290611676908490611ca6565b909155505083156116cb576001600160a01b0388165f90815260066020526040812080548592906116a8908490611ca6565b925050819055508260015f8282546116c09190611ca6565b909155506117349050565b6001600160a01b0388165f90815260066020526040812054908185116116f157846116f3565b815b90506116ff8183611d3f565b6001600160a01b038b165f908152600660205260408120919091556001805483929061172c908490611d3f565b909155505050505b84156117ff576001600160a01b0388165f9081526007602052604081208054879290611761908490611ca6565b925050819055508460025f8282546117799190611ca6565b90915550505f828152600b60205260408120805487929061179b908490611ca6565b909155506117ba90506117b336899003890189611e70565b60a0902090565b60408051888152602081018890526001600160a01b038b16917f1d04ee529105e3590e5b5ab05b857a0def93ec3de4b27276e998b8340bd1d193910160405180910390a35b5050505050505050565b5f60208284031215611819575f80fd5b5035919050565b6001600160a01b0381168114611834575f80fd5b50565b5f60a08284031215611847575f80fd5b50919050565b5f60808284031215611847575f80fd5b5f8083601f84011261186d575f80fd5b50813567ffffffffffffffff811115611884575f80fd5b60208301915083602082850101111561189b575f80fd5b9250929050565b5f805f805f61016086880312156118b7575f80fd5b85356118c281611820565b94506118d18760208801611837565b93506118e08760c0880161184d565b925061014086013567ffffffffffffffff8111156118fc575f80fd5b6119088882890161185d565b969995985093965092949392505050565b5f60608284031215611847575f80fd5b5f805f805f610140868803121561193e575f80fd5b853561194981611820565b94506119588760208801611837565b93506119678760c08801611919565b925061012086013567ffffffffffffffff8111156118fc575f80fd5b5f60208284031215611993575f80fd5b813561199e81611820565b9392505050565b5f805f805f805f6101a0888a0312156119bc575f80fd5b87356119c781611820565b96506119d68960208a01611837565b95506119e58960c08a0161184d565b94506101408801359350610160880135925061018088013567ffffffffffffffff811115611a11575f80fd5b611a1d8a828b0161185d565b989b979a50959850939692959293505050565b8035600281900b8114611a41575f80fd5b919050565b5f805f806101008587031215611a5a575f80fd5b8435611a6581611820565b9350611a748660208701611837565b925060c0850135611a8481611820565b9150611a9260e08601611a30565b905092959194509250565b5f8060208385031215611aae575f80fd5b823567ffffffffffffffff811115611ac4575f80fd5b611ad08582860161185d565b90969095509350505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f805f805f806101608789031215611b27575f80fd5b8635611b3281611820565b9550611b418860208901611837565b9450611b508860c08901611919565b9350610120870135925061014087013567ffffffffffffffff811115611b74575f80fd5b611b8089828a0161185d565b979a9699509497509295939492505050565b5f805f805f806101208789031215611ba8575f80fd5b8635611bb381611820565b9550611bc28860208901611837565b945060c0870135935060e0870135925061010087013567ffffffffffffffff811115611b74575f80fd5b5f805f60e08486031215611bfe575f80fd5b8335611c0981611820565b9250611c188560208601611837565b915060c0840135611c2881611820565b809150509250925092565b602080825282518282018190525f918401906040840190835b81811015611c735783516001600160a01b0316835260209384019390920191600101611c4c565b509095945050505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561091f5761091f611c92565b5f60208284031215611cc9575f80fd5b8135801515811461199e575f80fd5b5f600160ff1b8201611cec57611cec611c92565b505f0390565b808202811582820484141761091f5761091f611c92565b5f82611d2357634e487b7160e01b5f52601260045260245ffd5b500490565b5f60208284031215611d38575f80fd5b5051919050565b8181038181111561091f5761091f611c92565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611d8f57611d8f611d52565b604052919050565b5f60208284031215611da7575f80fd5b815167ffffffffffffffff811115611dbd575f80fd5b8201601f81018413611dcd575f80fd5b805167ffffffffffffffff811115611de757611de7611d52565b611dfa601f8201601f1916602001611d66565b818152856020838501011115611e0e575f80fd5b8160208401602083015e5f91810160200191909152949350505050565b5f81600f0b6f7fffffffffffffffffffffffffffffff198103611e5057611e50611c92565b5f0392915050565b5f60018201611e6957611e69611c92565b5060010190565b5f60a0828403128015611e81575f80fd5b5060405160a0810167ffffffffffffffff81118282101715611ea557611ea5611d52565b6040528235611eb381611820565b81526020830135611ec381611820565b6020820152604083013562ffffff81168114611edd575f80fd5b6040820152611eee60608401611a30565b60608201526080830135611f0181611820565b6080820152939250505056fea164736f6c634300081a000a","recompiledBytecode":"0x608060405234801561000f575f80fd5b50600436106101fd575f3560e01c80639beedd1e11610114578063c415b95c116100a9578063dc98354e11610079578063dc98354e146104f0578063de6fb465146104fe578063e1b4af691461043c578063e861417814610513578063f253945314610532575f80fd5b8063c415b95c14610464578063cf0ac78f1461048b578063dc1ab379146104aa578063dc4c90d3146104c9575f80fd5b8063b6a8b0fa116100e4578063b6a8b0fa1461043c578063b75789401461044a578063b9daf51714610453578063be3782281461045c575f80fd5b80639beedd1e146103ea5780639f063efc1461033a578063a78842ee146103f3578063b47b2fb114610406575f80fd5b80635f81a57c11610195578063726877e511610165578063726877e51461037b57806377cd93741461039a5780638549d9be146103a357806391dd7346146103ab57806393cc0b2b146103cb575f80fd5b80635f81a57c1461031357806364f8caec1461031b5780636c2bbe7e1461033a5780636fe7e6eb1461036d575f80fd5b806326465937116101d057806326465937146102675780634eec9e09146102a6578063575e24b4146102cd5780635c9302c91461030b575f80fd5b80630f1d6f76146102015780631d38cbfe1461023357806321d0ee701461023b578063259982e51461023b575b5f80fd5b61022061020f366004611809565b600a6020525f908152604090205481565b6040519081526020015b60405180910390f35b610220610551565b61024e6102493660046118a2565b6105a8565b6040516001600160e01b0319909116815260200161022a565b61028e7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161022a565b61028e7f000000000000000000000000000000000000000000000000000000000000000081565b6102e06102db366004611929565b6105c2565b604080516001600160e01b03199094168452602084019290925262ffffff169082015260600161022a565b610220610718565b6102205f5481565b610220610329366004611983565b60056020525f908152604090205481565b61034d6103483660046119a5565b61072b565b604080516001600160e01b0319909316835260208301919091520161022a565b61024e610249366004611a46565b610220610389366004611983565b60096020525f908152604090205481565b61022060035481565b61028e60cc81565b6103be6103b9366004611a9d565b610746565b60405161022a9190611adc565b6102206103d9366004611983565b60066020525f908152604090205481565b61022060045481565b610220610401366004611983565b610925565b610419610414366004611b11565b610bc9565b604080516001600160e01b03199093168352600f9190910b60208301520161022a565b61024e610249366004611b92565b61022060025481565b61022060015481565b610220606481565b61028e7f000000000000000000000000000000000000000000000000000000000000000081565b610220610499366004611983565b60076020525f908152604090205481565b6102206104b8366004611983565b60086020525f908152604090205481565b61028e7f000000000000000000000000000000000000000000000000000000000000000081565b61024e610249366004611bec565b610506610d78565b60405161022a9190611c33565b610220610521366004611809565b600b6020525f908152604090205481565b610220610540366004611809565b600c6020525f908152604090205481565b600e545f90815b818110156105a35761058f600e828154811061057657610576611c7e565b5f918252602090912001546001600160a01b0316610925565b6105999084611ca6565b9250600101610558565b505090565b5f604051630a85dc2960e01b815260040160405180910390fd5b5f8080336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461060e5760405163570c108560e11b815260040160405180910390fd5b5f8061061989610dd8565b9150915061062681610e82565b5f82151561063760208b018b611cb9565b151514905080158061064d57505f896020013512155b1561067a575050600f80546001600160881b0319169055506315d7892d60e21b92505f915081905061070d565b5f61068860208b0135611cd8565b90505f612710610699606484611cf2565b6106a39190611d09565b600f80546001600160801b038316610100026001600160881b031990911617600117905590505f8190036106ec57506315d7892d60e21b96505f955085945061070d9350505050565b6106f684826111ce565b6315d7892d60e21b975060801b95505f9450505050505b955095509592505050565b5f6107266201518042611d09565b905090565b5f80604051630a85dc2960e01b815260040160405180910390fd5b6060336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146107915760405163570c108560e11b815260040160405180910390fd5b5f61079e83850185611809565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f5298aca306108097f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166001600160a01b031690565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604481018490526064015f604051808303815f87803b158015610853575f80fd5b505af1158015610865573d5f803e3d5ffd5b5050604051630b0d9c0960e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152306024830152604482018590527f0000000000000000000000000000000000000000000000000000000000000000169250630b0d9c0991506064015f604051808303815f87803b1580156108f6575f80fd5b505af1158015610908573d5f803e3d5ffd5b5050505060405180602001604052805f8152509150505b92915050565b6001600160a01b0381165f9081526009602052604081205480820361094c57505f92915050565b6040516370a0823160e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301525f917f0000000000000000000000000000000000000000000000000000000000000000909116906370a0823190602401602060405180830381865afa1580156109d4573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109f89190611d28565b9050808210610a075780610a09565b815b9250825f03610a1b57505f9392505050565b610a258383611d3f565b6001600160a01b0385165f9081526009602052604081209190915560048054859290610a52908490611d3f565b909155505060408051602081018590526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916348c8949191016040516020818303038152906040526040518263ffffffff1660e01b8152600401610abf9190611adc565b5f604051808303815f875af1158015610ada573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610b019190810190611d97565b5060405163029b83f560e21b81526001600160a01b038581166004830152602482018590527f00000000000000000000000000000000000000000000000000000000000000001690630a6e0fd4906044015f604051808303815f87803b158015610b69575f80fd5b505af1158015610b7b573d5f803e3d5ffd5b50505050836001600160a01b03167f8ca3aa85524ed683fbb1f239a5aa076ba47c5e8a4d86e32f8ca1ec2cdd56a95384604051610bba91815260200190565b60405180910390a25050919050565b5f80336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c145760405163570c108560e11b815260040160405180910390fd5b5f80610c1f89610dd8565b90925090505f821515610c3560208b018b611cb9565b15151490505f83610c4f57610c4a89600f0b90565b610c59565b610c598960801d90565b600f5490915060ff1615610ccd57600f80546001600160881b0319811690915561010090046001600160801b03165f610c9183611e2b565b6001600160801b03169050610cb4858e610cab8585611ca6565b85600186611576565b5063b47b2fb160e01b96505f9550610d6d945050505050565b8115610d42575f610cdd82611e2b565b6001600160801b031690505f612710610cf7606484611cf2565b610d019190611d09565b90508015610d1357610d1385826111ce565b610d2b858e610d228486611ca6565b84600187611576565b63b47b2fb160e01b97509550610d6d945050505050565b6001600160801b038116610d5a848d835f8082611576565b5063b47b2fb160e01b95505f9450505050505b965096945050505050565b6060600e805480602002602001604051908101604052809291908181526020018280548015610dce57602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610db0575b5050505050905090565b5f807f000000000000000000000000000000000000000000000000000000000000000081610e096020860186611983565b90505f610e1c6040870160208801611983565b9050826001600160a01b0316826001600160a01b031603610e44576001969095509350505050565b826001600160a01b0316816001600160a01b031603610e6957505f9590945092505050565b604051630650525d60e21b815260040160405180910390fd5b6001600160a01b0381165f9081526009602052604081205490819003610ea6575050565b6040516370a0823160e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301525f917f0000000000000000000000000000000000000000000000000000000000000000909116906370a0823190602401602060405180830381865afa158015610f2e573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f529190611d28565b90505f818310610f625781610f64565b825b9050805f03610f735750505050565b610f7d8184611d3f565b6001600160a01b0385165f9081526009602052604081209190915560048054839290610faa908490611d3f565b90915550506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169063f5298aca9030907f0000000000000000000000000000000000000000000000000000000000000000166040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604481018490526064015f604051808303815f87803b15801561104f575f80fd5b505af1158015611061573d5f803e3d5ffd5b5050604051630b0d9c0960e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152306024830152604482018590527f0000000000000000000000000000000000000000000000000000000000000000169250630b0d9c0991506064015f604051808303815f87803b1580156110f2575f80fd5b505af1158015611104573d5f803e3d5ffd5b505060405163029b83f560e21b81526001600160a01b038781166004830152602482018590527f0000000000000000000000000000000000000000000000000000000000000000169250630a6e0fd491506044015f604051808303815f87803b15801561116f575f80fd5b505af1158015611181573d5f803e3d5ffd5b50505050836001600160a01b03167f8ca3aa85524ed683fbb1f239a5aa076ba47c5e8a4d86e32f8ca1ec2cdd56a953826040516111c091815260200190565b60405180910390a250505050565b6040516370a0823160e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116600483015282917f0000000000000000000000000000000000000000000000000000000000000000909116906370a0823190602401602060405180830381865afa158015611256573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061127a9190611d28565b106113a357604051630b0d9c0960e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152306024830152604482018390527f00000000000000000000000000000000000000000000000000000000000000001690630b0d9c09906064015f604051808303815f87803b15801561130c575f80fd5b505af115801561131e573d5f803e3d5ffd5b505060405163029b83f560e21b81526001600160a01b038581166004830152602482018590527f0000000000000000000000000000000000000000000000000000000000000000169250630a6e0fd491506044015f604051808303815f87803b158015611389575f80fd5b505af115801561139b573d5f803e3d5ffd5b505050505050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663156e29f63061140c7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166001600160a01b031690565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604481018490526064015f604051808303815f87803b158015611456575f80fd5b505af1158015611468573d5f803e3d5ffd5b505050506001600160a01b0382165f908152600d602052604090205460ff166114f0576001600160a01b0382165f818152600d60205260408120805460ff19166001908117909155600e805491820181559091527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0180546001600160a01b03191690911790555b6001600160a01b0382165f9081526009602052604081208054839290611517908490611ca6565b925050819055508060045f82825461152f9190611ca6565b90915550506040518181526001600160a01b038316907fc1be2bc8eb877f1acaf69dd16cddb1a5ec91ca5dbf16c408720e4f71435b879f9060200160405180910390a25050565b5f61157f610718565b6001600160a01b0388165f908152600560205260409020549091501580156115b45760035f81546115af90611e58565b909155505b80806115d757506001600160a01b0388165f908152600860205260409020548214155b15611616575f828152600c6020526040812080549091906115f790611e58565b909155506001600160a01b0388165f9081526008602052604090208290555b6001600160a01b0388165f908152600560205260408120805488929061163d908490611ca6565b92505081905550855f808282546116549190611ca6565b90915550505f828152600a602052604081208054889290611676908490611ca6565b909155505083156116cb576001600160a01b0388165f90815260066020526040812080548592906116a8908490611ca6565b925050819055508260015f8282546116c09190611ca6565b909155506117349050565b6001600160a01b0388165f90815260066020526040812054908185116116f157846116f3565b815b90506116ff8183611d3f565b6001600160a01b038b165f908152600660205260408120919091556001805483929061172c908490611d3f565b909155505050505b84156117ff576001600160a01b0388165f9081526007602052604081208054879290611761908490611ca6565b925050819055508460025f8282546117799190611ca6565b90915550505f828152600b60205260408120805487929061179b908490611ca6565b909155506117ba90506117b336899003890189611e70565b60a0902090565b60408051888152602081018890526001600160a01b038b16917f1d04ee529105e3590e5b5ab05b857a0def93ec3de4b27276e998b8340bd1d193910160405180910390a35b5050505050505050565b5f60208284031215611819575f80fd5b5035919050565b6001600160a01b0381168114611834575f80fd5b50565b5f60a08284031215611847575f80fd5b50919050565b5f60808284031215611847575f80fd5b5f8083601f84011261186d575f80fd5b50813567ffffffffffffffff811115611884575f80fd5b60208301915083602082850101111561189b575f80fd5b9250929050565b5f805f805f61016086880312156118b7575f80fd5b85356118c281611820565b94506118d18760208801611837565b93506118e08760c0880161184d565b925061014086013567ffffffffffffffff8111156118fc575f80fd5b6119088882890161185d565b969995985093965092949392505050565b5f60608284031215611847575f80fd5b5f805f805f610140868803121561193e575f80fd5b853561194981611820565b94506119588760208801611837565b93506119678760c08801611919565b925061012086013567ffffffffffffffff8111156118fc575f80fd5b5f60208284031215611993575f80fd5b813561199e81611820565b9392505050565b5f805f805f805f6101a0888a0312156119bc575f80fd5b87356119c781611820565b96506119d68960208a01611837565b95506119e58960c08a0161184d565b94506101408801359350610160880135925061018088013567ffffffffffffffff811115611a11575f80fd5b611a1d8a828b0161185d565b989b979a50959850939692959293505050565b8035600281900b8114611a41575f80fd5b919050565b5f805f806101008587031215611a5a575f80fd5b8435611a6581611820565b9350611a748660208701611837565b925060c0850135611a8481611820565b9150611a9260e08601611a30565b905092959194509250565b5f8060208385031215611aae575f80fd5b823567ffffffffffffffff811115611ac4575f80fd5b611ad08582860161185d565b90969095509350505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f805f805f806101608789031215611b27575f80fd5b8635611b3281611820565b9550611b418860208901611837565b9450611b508860c08901611919565b9350610120870135925061014087013567ffffffffffffffff811115611b74575f80fd5b611b8089828a0161185d565b979a9699509497509295939492505050565b5f805f805f806101208789031215611ba8575f80fd5b8635611bb381611820565b9550611bc28860208901611837565b945060c0870135935060e0870135925061010087013567ffffffffffffffff811115611b74575f80fd5b5f805f60e08486031215611bfe575f80fd5b8335611c0981611820565b9250611c188560208601611837565b915060c0840135611c2881611820565b809150509250925092565b602080825282518282018190525f918401906040840190835b81811015611c735783516001600160a01b0316835260209384019390920191600101611c4c565b509095945050505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561091f5761091f611c92565b5f60208284031215611cc9575f80fd5b8135801515811461199e575f80fd5b5f600160ff1b8201611cec57611cec611c92565b505f0390565b808202811582820484141761091f5761091f611c92565b5f82611d2357634e487b7160e01b5f52601260045260245ffd5b500490565b5f60208284031215611d38575f80fd5b5051919050565b8181038181111561091f5761091f611c92565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611d8f57611d8f611d52565b604052919050565b5f60208284031215611da7575f80fd5b815167ffffffffffffffff811115611dbd575f80fd5b8201601f81018413611dcd575f80fd5b805167ffffffffffffffff811115611de757611de7611d52565b611dfa601f8201601f1916602001611d66565b818152856020838501011115611e0e575f80fd5b8160208401602083015e5f91810160200191909152949350505050565b5f81600f0b6f7fffffffffffffffffffffffffffffff198103611e5057611e50611c92565b5f0392915050565b5f60018201611e6957611e69611c92565b5060010190565b5f60a0828403128015611e81575f80fd5b5060405160a0810167ffffffffffffffff81118282101715611ea557611ea5611d52565b6040528235611eb381611820565b81526020830135611ec381611820565b6020820152604083013562ffffff81168114611edd575f80fd5b6040820152611eee60608401611a30565b60608201526080830135611f0181611820565b6080820152939250505056fea164736f6c634300081a000a","sourceMap":"4635:16084:27:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6407:50;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;391:25:29;;;379:2;364:18;6407:50:27;;;;;;;;13644:216;;;:::i;19783:226::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;;2245:33:29;;;2227:52;;2215:2;2200:18;19783:226:27;2083:202:29;5232:39:27;;;;;;;;-1:-1:-1;;;;;2483:32:29;;;2465:51;;2453:2;2438:18;5232:39:27;2290:232:29;5188:38:27;;;;;8895:1720;;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;;3973:33:29;;;3955:52;;4038:2;4023:18;;4016:34;;;;4098:8;4086:21;4066:18;;;4059:49;3943:2;3928:18;8895:1720:27;3722:392:29;8581:100:27;;;:::i;5507:26::-;;;;;;6110:49;;;;;;:::i;:::-;;;;;;;;;;;;;;20015:285;;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;;5733:33:29;;;5715:52;;5798:2;5783:18;;5776:34;;;;5688:18;20015:285:27;5511:305:29;19108:152:27;;;;;;:::i;6345:55::-;;;;;;:::i;:::-;;;;;;;;;;;;;;5934:30;;;;;;5066:68;;1505:135;5066:68;;14036:365;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;6165:54::-;;;;;;:::i;:::-;;;;;;;;;;;;;;6070:33;;;;;;13014:549;;;;;;:::i;:::-;;:::i;10648:1930::-;;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;;8773:33:29;;;8755:52;;8854:2;8843:22;;;;8838:2;8823:18;;8816:50;8728:18;10648:1930:27;8585:287:29;20306:203:27;;;;;;:::i;5826:31::-;;;;;;5720;;;;;;4874:46;;4917:3;4874:46;;5277:43;;;;;6225:54;;;;;;:::i;:::-;;;;;;;;;;;;;;6285;;;;;;:::i;:::-;;;;;;;;;;;;;;5141:41;;;;;18956:146;;;;;;:::i;14407:108::-;;;:::i;:::-;;;;;;;:::i;6463:48::-;;;;;;:::i;:::-;;;;;;;;;;;;;;6594:55;;;;;;:::i;:::-;;;;;;;;;;;;;;13644:216;13724:16;:23;13687:13;;;13757:97;13781:1;13777;:5;13757:97;;;13812:31;13823:16;13840:1;13823:19;;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;;;;13823:19:27;13812:10;:31::i;:::-;13803:40;;;;:::i;:::-;;-1:-1:-1;13784:3:27;;13757:97;;;;13702:158;13644:216;:::o;19783:226::-;19953:6;19982:20;;-1:-1:-1;;;19982:20:27;;;;;;;;;;;8895:1720;9065:6;;;7624:10;-1:-1:-1;;;;;7646:11:27;7624:34;;7620:63;;7667:16;;-1:-1:-1;;;7667:16:27;;;;;;;;;;;7620:63;9113:21:::1;9136:13:::0;9153:17:::1;9166:3;9153:12;:17::i;:::-;9112:58;;;;9347:23;9364:5;9347:16;:23::i;:::-;9381:10;9394:37:::0;::::1;;:17;;::::0;::::1;:6:::0;:17:::1;:::i;:::-;:37;;;9381:50;;9629:5;9628:6;:37;;;;9664:1;9638:6;:22;;;:27;;9628:37;9624:217;;;-1:-1:-1::0;;9681:21:27::1;:29:::0;;-1:-1:-1;;;;;;9724:19:27;;;-1:-1:-1;;;;9765:26:27;-1:-1:-1;9705:5:27::1;::::0;-1:-1:-1;9705:5:27;;-1:-1:-1;9757:73:27::1;;9624:217;9851:16;9878:23;9879:22;::::0;::::1;;9878:23;:::i;:::-;9851:51:::0;-1:-1:-1;9912:11:27::1;4969:6;9927:27;4917:3;9851:51:::0;9927:27:::1;:::i;:::-;9926:47;;;;:::i;:::-;9984:21;:28:::0;;-1:-1:-1;;;;;10022:30:27;::::1;9984:28;10022:30;-1:-1:-1::0;;;;;;10022:30:27;;;;10008:4:::1;10022:30:::0;;;9912:61;-1:-1:-1;9984:21:27::1;10067:8:::0;;;10063:112:::1;;-1:-1:-1::0;;;;10099:26:27;-1:-1:-1;830:1:22::1;::::0;-1:-1:-1;830:1:22;;-1:-1:-1;10091:73:27::1;::::0;-1:-1:-1;;;;10091:73:27::1;10063:112;10393:23;10405:5;10412:3;10393:11;:23::i;:::-;-1:-1:-1::0;;;10448:26:27;-1:-1:-1;548:3:22;510:24;;-1:-1:-1;10544:1:27::1;::::0;-1:-1:-1;;;;;7693:1:27::1;8895:1720:::0;;;;;;;;;:::o;8581:100::-;8624:7;8650:24;8668:6;8650:15;:24;:::i;:::-;8643:31;;8581:100;:::o;20015:285::-;20234:6;20242:12;20273:20;;-1:-1:-1;;;20273:20:27;;;;;;;;;;;14036:365;14099:12;14127:10;-1:-1:-1;;;;;14149:11:27;14127:34;;14123:63;;14170:16;;-1:-1:-1;;;14170:16:27;;;;;;;;;;;14123:63;14196:14;14213:27;;;;14224:4;14213:27;:::i;:::-;14196:44;;14250:11;-1:-1:-1;;;;;14250:16:27;;14275:4;14282:20;:13;-1:-1:-1;;;;;14282:18:27;-1:-1:-1;;;;;5144:41:23;;5069:123;14282:20:27;14250:61;;-1:-1:-1;;;;;;14250:61:27;;;;;;;-1:-1:-1;;;;;12846:32:29;;;14250:61:27;;;12828:51:29;12895:18;;;12888:34;12938:18;;;12931:34;;;12801:18;;14250:61:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;14321:54:27;;-1:-1:-1;;;14321:54:27;;-1:-1:-1;;;;;14338:13:27;13225:32:29;;14321:54:27;;;13207:51:29;14361:4:27;13274:18:29;;;13267:60;13343:18;;;13336:34;;;14321:11:27;:16;;-1:-1:-1;14321:16:27;;-1:-1:-1;13180:18:29;;14321:54:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14385:9;;;;;;;;;;;;;;;14036:365;;;;;:::o;13014:549::-;-1:-1:-1;;;;;13107:21:27;;13065:15;13107:21;;;:14;:21;;;;;;13142:9;;;13138:23;;-1:-1:-1;13160:1:27;;13014:549;-1:-1:-1;;13014:549:27:o;13138:23::-;13192:46;;-1:-1:-1;;;13192:46:27;;-1:-1:-1;;;;;13225:11:27;2483:32:29;;13192:46:27;;;2465:51:29;-1:-1:-1;;13192:14:27;:24;;;;;;2438:18:29;;13192:46:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;13172:66;;13265:9;13258:4;:16;:35;;13284:9;13258:35;;;13277:4;13258:35;13248:45;;13307:7;13318:1;13307:12;13303:26;;-1:-1:-1;13328:1:27;;13014:549;-1:-1:-1;;;13014:549:27:o;13303:26::-;13364:14;13371:7;13364:4;:14;:::i;:::-;-1:-1:-1;;;;;13340:21:27;;;;;;:14;:21;;;;;:38;;;;13388:18;:29;;13410:7;;13340:21;13388:29;;13410:7;;13388:29;:::i;:::-;;;;-1:-1:-1;;13447:19:27;;;;;;391:25:29;;;-1:-1:-1;;;;;13428:11:27;:18;;;;364::29;13447:19:27;;;;;;;;;;;;13428:39;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;13428:39:27;;;;;;;;;;;;:::i;:::-;-1:-1:-1;13477:38:27;;-1:-1:-1;;;13477:38:27;;-1:-1:-1;;;;;15275:32:29;;;13477:38:27;;;15257:51:29;15324:18;;;15317:34;;;13477:12:27;:22;;;;15230:18:29;;13477:38:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13541:5;-1:-1:-1;;;;;13530:26:27;;13548:7;13530:26;;;;391:25:29;;379:2;364:18;;245:177;13530:26:27;;;;;;;;13082:481;;13014:549;;;:::o;10648:1930::-;10837:6;;7624:10;-1:-1:-1;;;;;7646:11:27;7624:34;;7620:63;;7667:16;;-1:-1:-1;;;7667:16:27;;;;;;;;;;;7620:63;10868:21:::1;10891:13:::0;10908:17:::1;10921:3;10908:12;:17::i;:::-;10867:58:::0;;-1:-1:-1;10867:58:27;-1:-1:-1;10935:10:27::1;10948:37:::0;::::1;;:17;;::::0;::::1;:6:::0;:17:::1;:::i;:::-;:37;;;10935:50;;11182:17;11202:16;:52;;11239:15;:5;2303:2:21::0;2292:28;;2147:189;11239:15:27::1;11202:52;;;11221:15;:5;2107:3:21::0;2103:22;;1958:183;11221:15:27::1;11269:21;::::0;11182:72;;-1:-1:-1;11269:21:27::1;;11265:437;;;11402:15;::::0;;-1:-1:-1;;;;;;11474:19:27;;;;;11402:15:::1;::::0;::::1;-1:-1:-1::0;;;;;11402:15:27::1;-1:-1:-1::0;11548:11:27::1;11549:10:::0;11548:11:::1;:::i;:::-;-1:-1:-1::0;;;;;11532:29:27::1;::::0;-1:-1:-1;11575:65:27::1;11582:5:::0;11589:3;11594:19:::1;11610:3:::0;11532:29;11594:19:::1;:::i;:::-;11615:3;11620:4;11626:13;11575:6;:65::i;:::-;-1:-1:-1::0;;;;11662:25:27;-1:-1:-1;11689:1:27::1;::::0;-1:-1:-1;11654:37:27::1;::::0;-1:-1:-1;;;;;11654:37:27::1;11265:437;11716:5;11712:632;;;11919:21;11959:11;11960:10:::0;11959:11:::1;:::i;:::-;-1:-1:-1::0;;;;;11943:29:27::1;::::0;-1:-1:-1;11986:11:27::1;4969:6;12001:32;4917:3;11943:29:::0;12001:32:::1;:::i;:::-;12000:52;;;;:::i;:::-;11986:66:::0;-1:-1:-1;12071:8:27;;12067:37:::1;;12081:23;12093:5;12100:3;12081:11;:23::i;:::-;12118:65;12125:5:::0;12132:3;12137:19:::1;12153:3:::0;12137:13;:19:::1;:::i;:::-;12158:3;12163:4;12169:13;12118:6;:65::i;:::-;-1:-1:-1::0;;;12285:25:27;-1:-1:-1;12327:3:27;-1:-1:-1;12277:56:27::1;::::0;-1:-1:-1;;;;;12277:56:27::1;11712:632;-1:-1:-1::0;;;;;12438:28:27;::::1;12476:48;12483:5:::0;12490:3;12438:28;12419:16:::1;::::0;12438:28;12476:6:::1;:48::i;:::-;-1:-1:-1::0;;;;12542:25:27;-1:-1:-1;12569:1:27::1;::::0;-1:-1:-1;;;;;7693:1:27::1;10648:1930:::0;;;;;;;;;:::o;14407:108::-;14457:16;14492;14485:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;14485:23:27;;;;;;;;;;;;;;;;;;;;;;;14407:108;:::o;16597:401::-;16663:21;;16735:14;16663:21;16789:13;;;;:3;:13;:::i;:::-;16760:43;-1:-1:-1;16813:10:27;16842:13;;;;;;;;:::i;:::-;16813:43;;16877:5;-1:-1:-1;;;;;16871:11:27;:2;-1:-1:-1;;;;;16871:11:27;;16867:34;;16892:4;;16898:2;;-1:-1:-1;16597:401:27;-1:-1:-1;;;;16597:401:27:o;16867:34::-;16921:5;-1:-1:-1;;;;;16915:11:27;:2;-1:-1:-1;;;;;16915:11:27;;16911:35;;-1:-1:-1;16936:5:27;;16943:2;;-1:-1:-1;16597:401:27;-1:-1:-1;;;16597:401:27:o;16911:35::-;16963:28;;-1:-1:-1;;;16963:28:27;;;;;;;;;;;15800:614;-1:-1:-1;;;;;15874:21:27;;15859:12;15874:21;;;:14;:21;;;;;;;15909:9;;;15905:22;;15920:7;15800:614;:::o;15905:22::-;15957:46;;-1:-1:-1;;;15957:46:27;;-1:-1:-1;;;;;15990:11:27;2483:32:29;;15957:46:27;;;2465:51:29;-1:-1:-1;;15957:14:27;:24;;;;;;2438:18:29;;15957:46:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;15937:66;;16013:14;16037:9;16030:4;:16;:35;;16056:9;16030:35;;;16049:4;16030:35;16013:52;;16079:6;16089:1;16079:11;16075:24;;16092:7;;;15800:614;:::o;16075:24::-;16133:13;16140:6;16133:4;:13;:::i;:::-;-1:-1:-1;;;;;16109:21:27;;;;;;:14;:21;;;;;:37;;;;16156:18;:28;;16178:6;;16109:21;16156:28;;16178:6;;16156:28;:::i;:::-;;;;-1:-1:-1;;;;;;;16195:11:27;:16;;;;;16220:4;;16227:13;:18;16195:61;;-1:-1:-1;;;;;;16195:61:27;;;;;;;-1:-1:-1;;;;;12846:32:29;;;16195:61:27;;;12828:51:29;12895:18;;;12888:34;12938:18;;;12931:34;;;12801:18;;16195:61:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;16266:54:27;;-1:-1:-1;;;16266:54:27;;-1:-1:-1;;;;;16283:13:27;13225:32:29;;16266:54:27;;;13207:51:29;16306:4:27;13274:18:29;;;13267:60;13343:18;;;13336:34;;;16266:11:27;:16;;-1:-1:-1;16266:16:27;;-1:-1:-1;13180:18:29;;16266:54:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;16330:37:27;;-1:-1:-1;;;16330:37:27;;-1:-1:-1;;;;;15275:32:29;;;16330:37:27;;;15257:51:29;15324:18;;;15317:34;;;16330:12:27;:22;;-1:-1:-1;16330:22:27;;-1:-1:-1;15230:18:29;;16330:37:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16393:5;-1:-1:-1;;;;;16382:25:27;;16400:6;16382:25;;;;391::29;;379:2;364:18;;245:177;16382:25:27;;;;;;;;15849:565;;;15800:614;:::o;14870:770::-;14941:46;;-1:-1:-1;;;14941:46:27;;-1:-1:-1;;;;;14974:11:27;2483:32:29;;14941:46:27;;;2465:51:29;14991:3:27;;14941:14;:24;;;;;;2438:18:29;;14941:46:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:53;14937:697;;15010:51;;-1:-1:-1;;;15010:51:27;;-1:-1:-1;;;;;15027:13:27;13225:32:29;;15010:51:27;;;13207::29;15050:4:27;13274:18:29;;;13267:60;13343:18;;;13336:34;;;15010:11:27;:16;;;;13180:18:29;;15010:51:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;15075:34:27;;-1:-1:-1;;;15075:34:27;;-1:-1:-1;;;;;15275:32:29;;;15075:34:27;;;15257:51:29;15324:18;;;15317:34;;;15075:12:27;:22;;-1:-1:-1;15075:22:27;;-1:-1:-1;15230:18:29;;15075:34:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14870:770;;:::o;14937:697::-;15301:11;-1:-1:-1;;;;;15301:16:27;;15326:4;15333:20;:13;-1:-1:-1;;;;;15333:18:27;-1:-1:-1;;;;;5144:41:23;;5069:123;15333:20:27;15301:58;;-1:-1:-1;;;;;;15301:58:27;;;;;;;-1:-1:-1;;;;;12846:32:29;;;15301:58:27;;;12828:51:29;12895:18;;;12888:34;12938:18;;;12931:34;;;12801:18;;15301:58:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;15378:14:27;;;;;;:7;:14;;;;;;;;15373:121;;-1:-1:-1;;;;;15412:14:27;;;;;;:7;:14;;;;;:21;;-1:-1:-1;;15412:21:27;15429:4;15412:21;;;;;;15451:16;:28;;;;;;;;;;;;;;-1:-1:-1;;;;;;15451:28:27;;;;;;15373:121;-1:-1:-1;;;;;15507:21:27;;;;;;:14;:21;;;;;:28;;15532:3;;15507:21;:28;;15532:3;;15507:28;:::i;:::-;;;;;;;;15571:3;15549:18;;:25;;;;;;;:::i;:::-;;;;-1:-1:-1;;15593:30:27;;391:25:29;;;-1:-1:-1;;;;;15593:30:27;;;;;379:2:29;364:18;15593:30:27;;;;;;;14870:770;;:::o;17299:1331::-;17444:11;17458:12;:10;:12::i;:::-;-1:-1:-1;;;;;17667:15:27;;17650:14;17667:15;;;:8;:15;;;;;;17444:26;;-1:-1:-1;17667:20:27;17697:32;;;;17714:15;;17712:17;;;;;:::i;:::-;;;;-1:-1:-1;17697:32:27;17743:9;:40;;;-1:-1:-1;;;;;;17756:20:27;;;;;;:13;:20;;;;;;:27;;;17743:40;17739:134;;;17801:21;;;;:16;:21;;;;;17799:23;;17801:21;;;17799:23;;;:::i;:::-;;;;-1:-1:-1;;;;;;17836:20:27;;;;;;:13;:20;;;;;:26;;;17739:134;-1:-1:-1;;;;;17883:15:27;;;;;;:8;:15;;;;;:25;;17902:6;;17883:15;:25;;17902:6;;17883:25;:::i;:::-;;;;;;;;17933:6;17918:11;;:21;;;;;;;:::i;:::-;;;;-1:-1:-1;;17949:16:27;;;;:11;:16;;;;;:26;;17969:6;;17949:16;:26;;17969:6;;17949:26;:::i;:::-;;;;-1:-1:-1;;17986:421:27;;;;-1:-1:-1;;;;;18013:20:27;;;;;;:13;:20;;;;;:33;;18037:9;;18013:20;:33;;18037:9;;18013:33;:::i;:::-;;;;;;;;18080:9;18060:16;;:29;;;;;;;:::i;:::-;;;;-1:-1:-1;17986:421:27;;-1:-1:-1;17986:421:27;;-1:-1:-1;;;;;18220:20:27;;18203:14;18220:20;;;:13;:20;;;;;;;18269:18;;;:39;;18299:9;18269:39;;;18290:6;18269:39;18254:54;-1:-1:-1;18345:13:27;18254:54;18345:6;:13;:::i;:::-;-1:-1:-1;;;;;18322:20:27;;;;;;:13;:20;;;;;:36;;;;18372:16;:24;;18392:4;;18322:20;18372:24;;18392:4;;18372:24;:::i;:::-;;;;-1:-1:-1;;;;17986:421:27;18421:8;;18417:207;;-1:-1:-1;;;;;18445:20:27;;;;;;:13;:20;;;;;:27;;18469:3;;18445:20;:27;;18469:3;;18445:27;:::i;:::-;;;;;;;;18506:3;18486:16;;:23;;;;;;;:::i;:::-;;;;-1:-1:-1;;18523:14:27;;;;:9;:14;;;;;:21;;18541:3;;18523:14;:21;;18541:3;;18523:21;:::i;:::-;;;;-1:-1:-1;18589:10:27;;-1:-1:-1;18589:8:27;;;;;;;:3;:8;:::i;:::-;515:4:24;496:24;;;271:265;18589:10:27;18563:50;;;17263:25:29;;;17319:2;17304:18;;17297:34;;;-1:-1:-1;;;;;18563:50:27;;;;;17236:18:29;18563:50:27;;;;;;;18417:207;17434:1196;;17299:1331;;;;;;:::o;14:226:29:-;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;-1:-1:-1;187:23:29;;14:226;-1:-1:-1;14:226:29:o;427:131::-;-1:-1:-1;;;;;502:31:29;;492:42;;482:70;;548:1;545;538:12;482:70;427:131;:::o;563:156::-;623:5;668:3;659:6;654:3;650:16;646:26;643:46;;;685:1;682;675:12;643:46;-1:-1:-1;707:6:29;563:156;-1:-1:-1;563:156:29:o;724:170::-;798:5;843:3;834:6;829:3;825:16;821:26;818:46;;;860:1;857;850:12;899:347;950:8;960:6;1014:3;1007:4;999:6;995:17;991:27;981:55;;1032:1;1029;1022:12;981:55;-1:-1:-1;1055:20:29;;1098:18;1087:30;;1084:50;;;1130:1;1127;1120:12;1084:50;1167:4;1159:6;1155:17;1143:29;;1219:3;1212:4;1203:6;1195;1191:19;1187:30;1184:39;1181:59;;;1236:1;1233;1226:12;1181:59;899:347;;;;;:::o;1251:827::-;1416:6;1424;1432;1440;1448;1501:3;1489:9;1480:7;1476:23;1472:33;1469:53;;;1518:1;1515;1508:12;1469:53;1557:9;1544:23;1576:31;1601:5;1576:31;:::i;:::-;1626:5;-1:-1:-1;1650:63:29;1705:7;1700:2;1685:18;;1650:63;:::i;:::-;1640:73;;1732:78;1802:7;1796:3;1785:9;1781:19;1732:78;:::i;:::-;1722:88;;1861:3;1850:9;1846:19;1833:33;1889:18;1881:6;1878:30;1875:50;;;1921:1;1918;1911:12;1875:50;1960:58;2010:7;2001:6;1990:9;1986:22;1960:58;:::i;:::-;1251:827;;;;-1:-1:-1;1251:827:29;;-1:-1:-1;2037:8:29;;1934:84;1251:827;-1:-1:-1;;;1251:827:29:o;2749:158::-;2812:5;2857:2;2848:6;2843:3;2839:16;2835:25;2832:45;;;2873:1;2870;2863:12;2912:805;3066:6;3074;3082;3090;3098;3151:3;3139:9;3130:7;3126:23;3122:33;3119:53;;;3168:1;3165;3158:12;3119:53;3207:9;3194:23;3226:31;3251:5;3226:31;:::i;:::-;3276:5;-1:-1:-1;3300:63:29;3355:7;3350:2;3335:18;;3300:63;:::i;:::-;3290:73;;3382:67;3441:7;3435:3;3424:9;3420:19;3382:67;:::i;:::-;3372:77;;3500:3;3489:9;3485:19;3472:33;3528:18;3520:6;3517:30;3514:50;;;3560:1;3557;3550:12;4119:247;4178:6;4231:2;4219:9;4210:7;4206:23;4202:32;4199:52;;;4247:1;4244;4237:12;4199:52;4286:9;4273:23;4305:31;4330:5;4305:31;:::i;:::-;4355:5;4119:247;-1:-1:-1;;;4119:247:29:o;4371:1135::-;4620:6;4628;4636;4644;4652;4660;4668;4721:3;4709:9;4700:7;4696:23;4692:33;4689:53;;;4738:1;4735;4728:12;4689:53;4777:9;4764:23;4796:31;4821:5;4796:31;:::i;:::-;4846:5;-1:-1:-1;4870:63:29;4925:7;4920:2;4905:18;;4870:63;:::i;:::-;4860:73;;4952:78;5022:7;5016:3;5005:9;5001:19;4952:78;:::i;:::-;4942:88;-1:-1:-1;5103:3:29;5088:19;;5075:33;;-1:-1:-1;5207:3:29;5192:19;;5179:33;;-1:-1:-1;5289:3:29;5274:19;;5261:33;5317:18;5306:30;;5303:50;;;5349:1;5346;5339:12;5303:50;5388:58;5438:7;5429:6;5418:9;5414:22;5388:58;:::i;:::-;4371:1135;;;;-1:-1:-1;4371:1135:29;;-1:-1:-1;4371:1135:29;;;;5362:84;;-1:-1:-1;;;4371:1135:29:o;5821:160::-;5887:20;;5947:1;5936:20;;;5926:31;;5916:59;;5971:1;5968;5961:12;5916:59;5821:160;;;:::o;5986:587::-;6097:6;6105;6113;6121;6174:3;6162:9;6153:7;6149:23;6145:33;6142:53;;;6191:1;6188;6181:12;6142:53;6230:9;6217:23;6249:31;6274:5;6249:31;:::i;:::-;6299:5;-1:-1:-1;6323:63:29;6378:7;6373:2;6358:18;;6323:63;:::i;:::-;6313:73;;6438:3;6427:9;6423:19;6410:33;6452;6477:7;6452:33;:::i;:::-;6504:7;-1:-1:-1;6530:37:29;6562:3;6547:19;;6530:37;:::i;:::-;6520:47;;5986:587;;;;;;;:::o;6786:409::-;6856:6;6864;6917:2;6905:9;6896:7;6892:23;6888:32;6885:52;;;6933:1;6930;6923:12;6885:52;6973:9;6960:23;7006:18;6998:6;6995:30;6992:50;;;7038:1;7035;7028:12;6992:50;7077:58;7127:7;7118:6;7107:9;7103:22;7077:58;:::i;:::-;7154:8;;7051:84;;-1:-1:-1;6786:409:29;-1:-1:-1;;;;6786:409:29:o;7200:416::-;7347:2;7336:9;7329:21;7310:4;7379:6;7373:13;7422:6;7417:2;7406:9;7402:18;7395:34;7481:6;7476:2;7468:6;7464:15;7459:2;7448:9;7444:18;7438:50;7537:1;7532:2;7523:6;7512:9;7508:22;7504:31;7497:42;7607:2;7600;7596:7;7591:2;7583:6;7579:15;7575:29;7564:9;7560:45;7556:54;7548:62;;;7200:416;;;;:::o;7621:959::-;7817:6;7825;7833;7841;7849;7857;7910:3;7898:9;7889:7;7885:23;7881:33;7878:53;;;7927:1;7924;7917:12;7878:53;7966:9;7953:23;7985:31;8010:5;7985:31;:::i;:::-;8035:5;-1:-1:-1;8059:63:29;8114:7;8109:2;8094:18;;8059:63;:::i;:::-;8049:73;;8141:67;8200:7;8194:3;8183:9;8179:19;8141:67;:::i;:::-;8131:77;-1:-1:-1;8281:3:29;8266:19;;8253:33;;-1:-1:-1;8363:3:29;8348:19;;8335:33;8391:18;8380:30;;8377:50;;;8423:1;8420;8413:12;8377:50;8462:58;8512:7;8503:6;8492:9;8488:22;8462:58;:::i;:::-;7621:959;;;;-1:-1:-1;7621:959:29;;-1:-1:-1;7621:959:29;;8539:8;;7621:959;-1:-1:-1;;;7621:959:29:o;8877:914::-;9010:6;9018;9026;9034;9042;9050;9103:3;9091:9;9082:7;9078:23;9074:33;9071:53;;;9120:1;9117;9110:12;9071:53;9159:9;9146:23;9178:31;9203:5;9178:31;:::i;:::-;9228:5;-1:-1:-1;9252:63:29;9307:7;9302:2;9287:18;;9252:63;:::i;:::-;9242:73;-1:-1:-1;9388:3:29;9373:19;;9360:33;;-1:-1:-1;9492:3:29;9477:19;;9464:33;;-1:-1:-1;9574:3:29;9559:19;;9546:33;9602:18;9591:30;;9588:50;;;9634:1;9631;9624:12;10255:516;10359:6;10367;10375;10428:3;10416:9;10407:7;10403:23;10399:33;10396:53;;;10445:1;10442;10435:12;10396:53;10484:9;10471:23;10503:31;10528:5;10503:31;:::i;:::-;10553:5;-1:-1:-1;10577:63:29;10632:7;10627:2;10612:18;;10577:63;:::i;:::-;10567:73;;10692:3;10681:9;10677:19;10664:33;10706;10731:7;10706:33;:::i;:::-;10758:7;10748:17;;;10255:516;;;;;:::o;10776:637::-;10966:2;10978:21;;;11048:13;;10951:18;;;11070:22;;;10918:4;;11149:15;;;11123:2;11108:18;;;10918:4;11192:195;11206:6;11203:1;11200:13;11192:195;;;11271:13;;-1:-1:-1;;;;;11267:39:29;11255:52;;11336:2;11362:15;;;;11327:12;;;;11303:1;11221:9;11192:195;;;-1:-1:-1;11404:3:29;;10776:637;-1:-1:-1;;;;;10776:637:29:o;11418:127::-;11479:10;11474:3;11470:20;11467:1;11460:31;11510:4;11507:1;11500:15;11534:4;11531:1;11524:15;11550:127;11611:10;11606:3;11602:20;11599:1;11592:31;11642:4;11639:1;11632:15;11666:4;11663:1;11656:15;11682:125;11747:9;;;11768:10;;;11765:36;;;11781:18;;:::i;11812:273::-;11868:6;11921:2;11909:9;11900:7;11896:23;11892:32;11889:52;;;11937:1;11934;11927:12;11889:52;11976:9;11963:23;12029:5;12022:13;12015:21;12008:5;12005:32;11995:60;;12051:1;12048;12041:12;12090:136;12125:3;-1:-1:-1;;;12146:22:29;;12143:48;;12171:18;;:::i;:::-;-1:-1:-1;12211:1:29;12207:13;;12090:136::o;12231:168::-;12304:9;;;12335;;12352:15;;;12346:22;;12332:37;12322:71;;12373:18;;:::i;12404:217::-;12444:1;12470;12460:132;;12514:10;12509:3;12505:20;12502:1;12495:31;12549:4;12546:1;12539:15;12577:4;12574:1;12567:15;12460:132;-1:-1:-1;12606:9:29;;12404:217::o;13589:184::-;13659:6;13712:2;13700:9;13691:7;13687:23;13683:32;13680:52;;;13728:1;13725;13718:12;13680:52;-1:-1:-1;13751:16:29;;13589:184;-1:-1:-1;13589:184:29:o;13778:128::-;13845:9;;;13866:11;;;13863:37;;;13880:18;;:::i;13911:127::-;13972:10;13967:3;13963:20;13960:1;13953:31;14003:4;14000:1;13993:15;14027:4;14024:1;14017:15;14043:275;14114:2;14108:9;14179:2;14160:13;;-1:-1:-1;;14156:27:29;14144:40;;14214:18;14199:34;;14235:22;;;14196:62;14193:88;;;14261:18;;:::i;:::-;14297:2;14290:22;14043:275;;-1:-1:-1;14043:275:29:o;14323:755::-;14402:6;14455:2;14443:9;14434:7;14430:23;14426:32;14423:52;;;14471:1;14468;14461:12;14423:52;14504:9;14498:16;14537:18;14529:6;14526:30;14523:50;;;14569:1;14566;14559:12;14523:50;14592:22;;14645:4;14637:13;;14633:27;-1:-1:-1;14623:55:29;;14674:1;14671;14664:12;14623:55;14707:2;14701:9;14733:18;14725:6;14722:30;14719:56;;;14755:18;;:::i;:::-;14797:57;14844:2;14821:17;;-1:-1:-1;;14817:31:29;14850:2;14813:40;14797:57;:::i;:::-;14877:6;14870:5;14863:21;14925:7;14920:2;14911:6;14907:2;14903:15;14899:24;14896:37;14893:57;;;14946:1;14943;14936:12;14893:57;14994:6;14989:2;14985;14981:11;14976:2;14969:5;14965:14;14959:42;15046:1;15021:18;;;15041:2;15017:27;15010:38;;;;15025:5;14323:755;-1:-1:-1;;;;14323:755:29:o;15362:213::-;15397:3;15445:5;15441:2;15430:21;15479:34;15475:39;15466:7;15463:52;15460:78;;15518:18;;:::i;:::-;15558:1;15554:15;;15362:213;-1:-1:-1;;15362:213:29:o;15861:135::-;15900:3;15921:17;;;15918:43;;15941:18;;:::i;:::-;-1:-1:-1;15988:1:29;15977:13;;15861:135::o;16001:1083::-;16085:6;16145:3;16133:9;16124:7;16120:23;16116:33;16161:2;16158:22;;;16176:1;16173;16166:12;16158:22;-1:-1:-1;16245:2:29;16239:9;16287:3;16275:16;;16321:18;16306:34;;16342:22;;;16303:62;16300:88;;;16368:18;;:::i;:::-;16404:2;16397:22;16441:23;;16473:31;16441:23;16473:31;:::i;:::-;16513:21;;16586:2;16571:18;;16558:32;16599:33;16558:32;16599:33;:::i;:::-;16660:2;16648:15;;16641:32;16725:2;16710:18;;16697:32;16773:8;16760:22;;16748:35;;16738:63;;16797:1;16794;16787:12;16738:63;16829:2;16817:15;;16810:32;16875:36;16907:2;16892:18;;16875:36;:::i;:::-;16870:2;16862:6;16858:15;16851:61;16964:3;16953:9;16949:19;16936:33;16978;17003:7;16978:33;:::i;:::-;17039:3;17027:16;;17020:33;17031:6;16001:1083;-1:-1:-1;;;16001:1083:29:o","linkReferences":{},"cborAuxdata":{"1":{"value":"0xa164736f6c634300081a000a","offset":7950}},"immutableReferences":{"3807":[{"start":1230,"length":32},{"start":1488,"length":32},{"start":1875,"length":32},{"start":1954,"length":32},{"start":2227,"length":32},{"start":2403,"length":32},{"start":2668,"length":32},{"start":3030,"length":32},{"start":3773,"length":32},{"start":4025,"length":32},{"start":4271,"length":32},{"start":4581,"length":32},{"start":4811,"length":32},{"start":5029,"length":32}],"3810":[{"start":683,"length":32},{"start":2445,"length":32},{"start":3548,"length":32},{"start":3815,"length":32},{"start":4623,"length":32}],"3813":[{"start":620,"length":32},{"start":2005,"length":32},{"start":2174,"length":32},{"start":4069,"length":32},{"start":4218,"length":32},{"start":4758,"length":32},{"start":5080,"length":32}],"3816":[{"start":1129,"length":32},{"start":2856,"length":32},{"start":4396,"length":32},{"start":4934,"length":32}]},"transformations":[{"id":"3813","type":"replace","offset":620,"reason":"immutable"},{"id":"3810","type":"replace","offset":683,"reason":"immutable"},{"id":"3816","type":"replace","offset":1129,"reason":"immutable"},{"id":"3807","type":"replace","offset":1230,"reason":"immutable"},{"id":"3807","type":"replace","offset":1488,"reason":"immutable"},{"id":"3807","type":"replace","offset":1875,"reason":"immutable"},{"id":"3807","type":"replace","offset":1954,"reason":"immutable"},{"id":"3813","type":"replace","offset":2005,"reason":"immutable"},{"id":"3813","type":"replace","offset":2174,"reason":"immutable"},{"id":"3807","type":"replace","offset":2227,"reason":"immutable"},{"id":"3807","type":"replace","offset":2403,"reason":"immutable"},{"id":"3810","type":"replace","offset":2445,"reason":"immutable"},{"id":"3807","type":"replace","offset":2668,"reason":"immutable"},{"id":"3816","type":"replace","offset":2856,"reason":"immutable"},{"id":"3807","type":"replace","offset":3030,"reason":"immutable"},{"id":"3810","type":"replace","offset":3548,"reason":"immutable"},{"id":"3807","type":"replace","offset":3773,"reason":"immutable"},{"id":"3810","type":"replace","offset":3815,"reason":"immutable"},{"id":"3807","type":"replace","offset":4025,"reason":"immutable"},{"id":"3813","type":"replace","offset":4069,"reason":"immutable"},{"id":"3813","type":"replace","offset":4218,"reason":"immutable"},{"id":"3807","type":"replace","offset":4271,"reason":"immutable"},{"id":"3816","type":"replace","offset":4396,"reason":"immutable"},{"id":"3807","type":"replace","offset":4581,"reason":"immutable"},{"id":"3810","type":"replace","offset":4623,"reason":"immutable"},{"id":"3813","type":"replace","offset":4758,"reason":"immutable"},{"id":"3807","type":"replace","offset":4811,"reason":"immutable"},{"id":"3816","type":"replace","offset":4934,"reason":"immutable"},{"id":"3807","type":"replace","offset":5029,"reason":"immutable"},{"id":"3813","type":"replace","offset":5080,"reason":"immutable"}],"transformationValues":{"immutables":{"3807":"0x0000000000000000000000008366a39cc670b4001a1121b8f6a443a643e40951","3810":"0x0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd9","3813":"0x0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd9","3816":"0x00000000000000000000000036767386fc48bc3aa9b35a378177a1254d9eeddf"}}},"deployment":{"transactionHash":null,"blockNumber":null,"transactionIndex":null,"deployer":null},"sources":{"src/LaunchpadHook.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\nimport {IHooks} from \"@uniswap/v4-core/src/interfaces/IHooks.sol\";\nimport {IPoolManager} from \"@uniswap/v4-core/src/interfaces/IPoolManager.sol\";\nimport {IUnlockCallback} from \"@uniswap/v4-core/src/interfaces/callback/IUnlockCallback.sol\";\nimport {Hooks} from \"@uniswap/v4-core/src/libraries/Hooks.sol\";\nimport {PoolKey} from \"@uniswap/v4-core/src/types/PoolKey.sol\";\nimport {PoolId, PoolIdLibrary} from \"@uniswap/v4-core/src/types/PoolId.sol\";\nimport {Currency, CurrencyLibrary} from \"@uniswap/v4-core/src/types/Currency.sol\";\nimport {BalanceDelta} from \"@uniswap/v4-core/src/types/BalanceDelta.sol\";\nimport {\n    BeforeSwapDelta,\n    toBeforeSwapDelta,\n    BeforeSwapDeltaLibrary\n} from \"@uniswap/v4-core/src/types/BeforeSwapDelta.sol\";\nimport {SwapParams, ModifyLiquidityParams} from \"@uniswap/v4-core/src/types/PoolOperation.sol\";\nimport {IERC20} from \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport {SafeERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IFeeCollector} from \"./interfaces/IFeeCollector.sol\";\n\n/// @notice The hook permissions LaunchpadHook declares, and therefore the exact value the\n///         low 14 bits of its address must equal.\n/// @dev Lives in a library so the deployment script can mine against the same constant the\n///      hook checks itself against, rather than a copy that could drift.\nlibrary LaunchpadHookFlags {\n    uint160 internal constant REQUIRED = uint160(\n        Hooks.BEFORE_SWAP_FLAG | Hooks.BEFORE_SWAP_RETURNS_DELTA_FLAG | Hooks.AFTER_SWAP_FLAG\n            | Hooks.AFTER_SWAP_RETURNS_DELTA_FLAG\n    );\n}\n\n/// @title LaunchpadHook\n/// @notice The Uniswap v4 hook attached to every launchpad pool. It is the protocol's\n///         cash register and its meter.\n///\n/// @dev WHY THIS CONTRACT EXISTS (it was not in the six-contract brief):\n///\n///      The brief asks for two things that cannot both be true without a hook. It asks that\n///      the LP NFT of every launch pool be burned to 0xdead so liquidity is locked forever,\n///      and it asks that the FeeCollector collect trading fees from those pools. In Uniswap\n///      v4 swap fees accrue to the *position*. Burn the position's NFT and the fees it earns\n///      become permanently unclaimable — by anyone, including the protocol. The company\n///      would report zero revenue.\n///\n///      A hook resolves it. Liquidity stays provably locked (the NFT really is at 0xdead and\n///      nobody can decrease the position), and the protocol still earns, because the hook\n///      skims its fee off the swap itself before the pool ever sees it.\n///\n///      FEE DENOMINATION. Fees are charged only on BUYS, and always in TokenizedStock. That\n///      is a deliberate product choice as much as an engineering one: it matches the thesis\n///      (\"every buy creates demand for the stock\"), it keeps 100% of protocol revenue\n///      denominated in the asset the treasury actually wants to report, and it means the\n///      FeeCollector never has to liquidate a long tail of memecoins to work out what a\n///      quarter earned. Sells are untaxed, which also keeps the blink window's \"selling is\n///      unrestricted at all times\" promise honest.\n///\n///      Landing the fee in TokenizedStock in both buy shapes takes both callbacks, because\n///      v4 only lets a hook adjust the *specified* currency in `beforeSwap` and the\n///      *unspecified* one in `afterSwap`:\n///        - exact-input buy  (spend N stock):   stock is the specified currency   -> beforeSwap\n///        - exact-output buy (receive N token): stock is the unspecified currency -> afterSwap\n///\n///      TAKE-OR-CLAIM. `poolManager.take` moves real ERC-20 out of the singleton, so it only\n///      works if the singleton is *already* holding enough stock at that instant. Mid-swap it\n///      may not be: a launch pool opens with zero stock, and the buyer has not settled their\n///      input yet. So the hook takes real tokens when the balance covers it and otherwise\n///      mints itself an ERC-6909 claim, which always succeeds. Claims are realised\n///      automatically on that pool's next trade, or by anyone calling `settleFees`. A thin\n///      moment in the singleton can therefore never revert a user's swap, and no fee is ever\n///      lost — only briefly deferred.\n///\n///      All volume / TVL accounting happens in `afterSwap`, where the realised `BalanceDelta`\n///      is known, so the numbers reflect what actually swapped rather than what was requested.\n///\n///      No owner, no admin, no parameters to change. The fee rate is a constant.\ncontract LaunchpadHook is IHooks, IUnlockCallback {\n    using SafeERC20 for IERC20;\n    using PoolIdLibrary for PoolKey;\n    using CurrencyLibrary for Currency;\n\n    /// @notice Protocol fee charged on the stock side of every buy. 1%.\n    uint256 public constant PROTOCOL_FEE_BPS = 100;\n    uint256 private constant BPS_DENOMINATOR = 10_000;\n\n    /// @dev beforeSwap | beforeSwapReturnDelta | afterSwap | afterSwapReturnDelta.\n    uint160 public constant REQUIRED_FLAGS = LaunchpadHookFlags.REQUIRED;\n\n    IPoolManager public immutable poolManager;\n    IERC20 public immutable tokenizedStock;\n    Currency public immutable stockCurrency;\n    IFeeCollector public immutable feeCollector;\n\n    // --- protocol-wide meters (written only from inside a real PoolManager.swap) ---\n\n    /// @notice Cumulative traded volume across every launch pool, in TokenizedStock terms.\n    uint256 public totalVolume;\n    /// @notice Net TokenizedStock sitting in launch pools. Launch pools start empty of stock\n    ///         (liquidity is single-sided), so this is exactly stock-denominated TVL.\n    uint256 public totalStockLocked;\n    /// @notice Cumulative protocol fees charged, in TokenizedStock.\n    uint256 public totalFeesCharged;\n    /// @notice Number of distinct launch pools that have ever traded.\n    uint256 public poolsEverTraded;\n    /// @notice Fees charged but still held as ERC-6909 claims, not yet pushed to the FeeCollector.\n    uint256 public totalUnsettledFees;\n\n    mapping(address token => uint256) public volumeOf;\n    mapping(address token => uint256) public stockLockedOf;\n    mapping(address token => uint256) public feesChargedOf;\n    mapping(address token => uint256) public lastActiveDay;\n    mapping(address token => uint256) public unsettledFeeOf;\n\n    mapping(uint256 day => uint256) public volumeOnDay;\n    mapping(uint256 day => uint256) public feesOnDay;\n    /// @notice How many distinct launch pools traded on a given day-bucket.\n    mapping(uint256 day => uint256) public activePoolsOnDay;\n\n    mapping(address token => bool) private _queued;\n    address[] private _unsettledTokens;\n\n    /// @dev Handoff from `beforeSwap` to `afterSwap` within a single swap. Written and\n    ///      cleared inside the same `PoolManager.swap` call, never observable across\n    ///      transactions.\n    bool private _feeTakenInBeforeSwap;\n    uint128 private _feeTakenAmount;\n\n    error NotPoolManager();\n    error InvalidHookAddress();\n    error HookNotImplemented();\n    error PoolMustPairTokenizedStock();\n\n    event ProtocolFeeCharged(address indexed token, PoolId indexed poolId, uint256 stockVolume, uint256 feeAmount);\n    /// @notice The singleton could not cover the fee in ERC-20, so it was taken as a claim.\n    event FeeDeferredAsClaim(address indexed token, uint256 amount);\n    /// @notice A deferred claim was converted back into ERC-20 and forwarded on.\n    event FeeSettled(address indexed token, uint256 amount);\n\n    modifier onlyPoolManager() {\n        if (msg.sender != address(poolManager)) revert NotPoolManager();\n        _;\n    }\n\n    constructor(IPoolManager poolManager_, IERC20 tokenizedStock_, IFeeCollector feeCollector_) {\n        // v4 reads a hook's permissions straight out of its address, so this contract only\n        // works at a mined CREATE2 address. Fail at construction rather than at first swap.\n        if (uint160(address(this)) & Hooks.ALL_HOOK_MASK != REQUIRED_FLAGS) revert InvalidHookAddress();\n\n        poolManager = poolManager_;\n        tokenizedStock = tokenizedStock_;\n        stockCurrency = Currency.wrap(address(tokenizedStock_));\n        feeCollector = feeCollector_;\n\n        // The hook pushes fees onward with `IFeeCollector.recordFee`, which pulls. One\n        // approval at construction, never touched again.\n        tokenizedStock_.forceApprove(address(feeCollector_), type(uint256).max);\n    }\n\n    /// @notice The current day bucket, matching the FeeCollector's.\n    function currentDay() public view returns (uint256) {\n        return block.timestamp / 1 days;\n    }\n\n    // -------------------------------------------------------------------------\n    // Swap hooks\n    // -------------------------------------------------------------------------\n\n    /// @inheritdoc IHooks\n    function beforeSwap(address, PoolKey calldata key, SwapParams calldata params, bytes calldata)\n        external\n        override\n        onlyPoolManager\n        returns (bytes4, BeforeSwapDelta, uint24)\n    {\n        (bool stockIsCurrency0, address token) = _resolvePair(key);\n\n        // Every trade is a chance to clear this pool's deferred fees, and by now the pool\n        // is holding reserves it was not holding when they were deferred.\n        _realizeDeferred(token);\n\n        bool isBuy = params.zeroForOne == stockIsCurrency0;\n\n        // Only the exact-input buy is charged here; every other shape falls through to\n        // afterSwap. Reset the handoff either way so a prior swap cannot leak into this one.\n        if (!isBuy || params.amountSpecified >= 0) {\n            _feeTakenInBeforeSwap = false;\n            _feeTakenAmount = 0;\n            return (IHooks.beforeSwap.selector, BeforeSwapDeltaLibrary.ZERO_DELTA, 0);\n        }\n\n        uint256 amountIn = uint256(-params.amountSpecified);\n        uint256 fee = (amountIn * PROTOCOL_FEE_BPS) / BPS_DENOMINATOR;\n\n        _feeTakenInBeforeSwap = true;\n        _feeTakenAmount = uint128(fee);\n\n        if (fee == 0) {\n            return (IHooks.beforeSwap.selector, BeforeSwapDeltaLibrary.ZERO_DELTA, 0);\n        }\n\n        // Pull the fee out of the pool now; the positive specified-delta returned below is\n        // what pays that debt back, so the swapper funds it and only `amountIn - fee`\n        // reaches the pool.\n        _collectFee(token, fee);\n\n        return (\n            IHooks.beforeSwap.selector,\n            toBeforeSwapDelta(int128(uint128(fee)), 0),\n            0 // no lp fee override; launch pools use a static fee\n        );\n    }\n\n    /// @inheritdoc IHooks\n    function afterSwap(address, PoolKey calldata key, SwapParams calldata params, BalanceDelta delta, bytes calldata)\n        external\n        override\n        onlyPoolManager\n        returns (bytes4, int128)\n    {\n        (bool stockIsCurrency0, address token) = _resolvePair(key);\n        bool isBuy = params.zeroForOne == stockIsCurrency0;\n\n        // `delta` is the raw pool-side delta, so it already excludes anything beforeSwap\n        // skimmed. Positive = the pool owes the swapper, negative = the swapper owes the pool.\n        int128 stockDelta = stockIsCurrency0 ? delta.amount0() : delta.amount1();\n\n        if (_feeTakenInBeforeSwap) {\n            // Exact-input buy, already charged. Meter it off the realised delta.\n            uint256 fee = _feeTakenAmount;\n            _feeTakenInBeforeSwap = false;\n            _feeTakenAmount = 0;\n\n            uint256 stockIntoPool = uint256(uint128(-stockDelta));\n            _meter(token, key, stockIntoPool + fee, fee, true, stockIntoPool);\n            return (IHooks.afterSwap.selector, 0);\n        }\n\n        if (isBuy) {\n            // Exact-output buy: stock is the unspecified currency, so this is where the fee\n            // can be added. `stockDelta` is negative — the stock the swapper paid in.\n            uint256 stockIntoPool = uint256(uint128(-stockDelta));\n            uint256 fee = (stockIntoPool * PROTOCOL_FEE_BPS) / BPS_DENOMINATOR;\n\n            if (fee != 0) _collectFee(token, fee);\n            _meter(token, key, stockIntoPool + fee, fee, true, stockIntoPool);\n\n            // Positive: the hook is owed this, so the swapper pays it on top.\n            return (IHooks.afterSwap.selector, int128(uint128(fee)));\n        }\n\n        // Sell. Untaxed, always allowed. Stock leaves the pool.\n        uint256 stockOut = uint256(uint128(stockDelta));\n        _meter(token, key, stockOut, 0, false, stockOut);\n        return (IHooks.afterSwap.selector, 0);\n    }\n\n    // -------------------------------------------------------------------------\n    // Deferred-fee settlement\n    // -------------------------------------------------------------------------\n\n    /// @notice Convert one token's deferred fee claims back into TokenizedStock and forward\n    ///         them to the FeeCollector. Permissionless; normally unnecessary, because trades\n    ///         clear the backlog on their own.\n    function settleFees(address token) public returns (uint256 settled) {\n        uint256 owed = unsettledFeeOf[token];\n        if (owed == 0) return 0;\n\n        uint256 available = tokenizedStock.balanceOf(address(poolManager));\n        settled = owed < available ? owed : available;\n        if (settled == 0) return 0;\n\n        unsettledFeeOf[token] = owed - settled;\n        totalUnsettledFees -= settled;\n\n        poolManager.unlock(abi.encode(settled));\n        feeCollector.recordFee(token, settled);\n        emit FeeSettled(token, settled);\n    }\n\n    /// @notice `settleFees` for every token that has ever deferred a fee.\n    function settleAllFees() external returns (uint256 total) {\n        uint256 n = _unsettledTokens.length;\n        for (uint256 i = 0; i < n; ++i) {\n            total += settleFees(_unsettledTokens[i]);\n        }\n    }\n\n    /// @inheritdoc IUnlockCallback\n    /// @dev Only ever used by `settleFees`: burn the claim for a credit, then take the\n    ///      matching ERC-20. Net delta zero.\n    function unlockCallback(bytes calldata data) external returns (bytes memory) {\n        if (msg.sender != address(poolManager)) revert NotPoolManager();\n        uint256 amount = abi.decode(data, (uint256));\n        poolManager.burn(address(this), stockCurrency.toId(), amount);\n        poolManager.take(stockCurrency, address(this), amount);\n        return \"\";\n    }\n\n    function unsettledTokens() external view returns (address[] memory) {\n        return _unsettledTokens;\n    }\n\n    // -------------------------------------------------------------------------\n    // Internals\n    // -------------------------------------------------------------------------\n\n    /// @dev Moves a charged fee out of the pool. Assumes the PoolManager is unlocked and\n    ///      that the caller returns a matching hook delta to cover the debit.\n    function _collectFee(address token, uint256 fee) private {\n        if (tokenizedStock.balanceOf(address(poolManager)) >= fee) {\n            poolManager.take(stockCurrency, address(this), fee);\n            feeCollector.recordFee(token, fee);\n        } else {\n            // Not enough ERC-20 in the singleton this instant. Take a claim instead — it\n            // always succeeds — and realise it on the next trade.\n            poolManager.mint(address(this), stockCurrency.toId(), fee);\n            if (!_queued[token]) {\n                _queued[token] = true;\n                _unsettledTokens.push(token);\n            }\n            unsettledFeeOf[token] += fee;\n            totalUnsettledFees += fee;\n            emit FeeDeferredAsClaim(token, fee);\n        }\n    }\n\n    /// @dev Same as `settleFees` but for use inside an existing unlock (i.e. from a hook\n    ///      callback), where opening another one would revert.\n    function _realizeDeferred(address token) private {\n        uint256 owed = unsettledFeeOf[token];\n        if (owed == 0) return;\n\n        uint256 available = tokenizedStock.balanceOf(address(poolManager));\n        uint256 amount = owed < available ? owed : available;\n        if (amount == 0) return;\n\n        unsettledFeeOf[token] = owed - amount;\n        totalUnsettledFees -= amount;\n\n        poolManager.burn(address(this), stockCurrency.toId(), amount);\n        poolManager.take(stockCurrency, address(this), amount);\n        feeCollector.recordFee(token, amount);\n        emit FeeSettled(token, amount);\n    }\n\n    /// @dev Works out which side of the pool is the tokenized stock, and rejects any pool\n    ///      that is not paired against it. Every launchpad pool is, by construction.\n    function _resolvePair(PoolKey calldata key) private view returns (bool stockIsCurrency0, address token) {\n        address stock = address(tokenizedStock);\n        address c0 = Currency.unwrap(key.currency0);\n        address c1 = Currency.unwrap(key.currency1);\n\n        if (c0 == stock) return (true, c1);\n        if (c1 == stock) return (false, c0);\n        revert PoolMustPairTokenizedStock();\n    }\n\n    /// @param volume     Gross stock that changed hands, fee included.\n    /// @param fee        Protocol fee charged, in stock.\n    /// @param inbound    True if stock entered the pool (a buy), false if it left (a sell).\n    /// @param lockDelta  Absolute change in the pool's stock reserves.\n    function _meter(address token, PoolKey calldata key, uint256 volume, uint256 fee, bool inbound, uint256 lockDelta)\n        private\n    {\n        uint256 day = currentDay();\n\n        // `lastActiveDay` defaults to 0, which is a real day bucket, so first-ever has to be\n        // distinguished explicitly rather than inferred from the default.\n        bool firstEver = volumeOf[token] == 0;\n        if (firstEver) ++poolsEverTraded;\n        if (firstEver || lastActiveDay[token] != day) {\n            ++activePoolsOnDay[day];\n            lastActiveDay[token] = day;\n        }\n\n        volumeOf[token] += volume;\n        totalVolume += volume;\n        volumeOnDay[day] += volume;\n\n        if (inbound) {\n            stockLockedOf[token] += lockDelta;\n            totalStockLocked += lockDelta;\n        } else {\n            // Defensive: rounding inside the pool must never make this underflow.\n            uint256 locked = stockLockedOf[token];\n            uint256 drop = lockDelta > locked ? locked : lockDelta;\n            stockLockedOf[token] = locked - drop;\n            totalStockLocked -= drop;\n        }\n\n        if (fee != 0) {\n            feesChargedOf[token] += fee;\n            totalFeesCharged += fee;\n            feesOnDay[day] += fee;\n            emit ProtocolFeeCharged(token, key.toId(), volume, fee);\n        }\n    }\n\n    // -------------------------------------------------------------------------\n    // Unused IHooks callbacks. The mined address does not carry these flags, so the\n    // PoolManager never calls them; they revert to make that explicit.\n    // -------------------------------------------------------------------------\n\n    function beforeInitialize(address, PoolKey calldata, uint160) external pure override returns (bytes4) {\n        revert HookNotImplemented();\n    }\n\n    function afterInitialize(address, PoolKey calldata, uint160, int24) external pure override returns (bytes4) {\n        revert HookNotImplemented();\n    }\n\n    function beforeAddLiquidity(address, PoolKey calldata, ModifyLiquidityParams calldata, bytes calldata)\n        external\n        pure\n        override\n        returns (bytes4)\n    {\n        revert HookNotImplemented();\n    }\n\n    function afterAddLiquidity(\n        address,\n        PoolKey calldata,\n        ModifyLiquidityParams calldata,\n        BalanceDelta,\n        BalanceDelta,\n        bytes calldata\n    ) external pure override returns (bytes4, BalanceDelta) {\n        revert HookNotImplemented();\n    }\n\n    function beforeRemoveLiquidity(address, PoolKey calldata, ModifyLiquidityParams calldata, bytes calldata)\n        external\n        pure\n        override\n        returns (bytes4)\n    {\n        revert HookNotImplemented();\n    }\n\n    function afterRemoveLiquidity(\n        address,\n        PoolKey calldata,\n        ModifyLiquidityParams calldata,\n        BalanceDelta,\n        BalanceDelta,\n        bytes calldata\n    ) external pure override returns (bytes4, BalanceDelta) {\n        revert HookNotImplemented();\n    }\n\n    function beforeDonate(address, PoolKey calldata, uint256, uint256, bytes calldata)\n        external\n        pure\n        override\n        returns (bytes4)\n    {\n        revert HookNotImplemented();\n    }\n\n    function afterDonate(address, PoolKey calldata, uint256, uint256, bytes calldata)\n        external\n        pure\n        override\n        returns (bytes4)\n    {\n        revert HookNotImplemented();\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/IHooks.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {PoolKey} from \"../types/PoolKey.sol\";\nimport {BalanceDelta} from \"../types/BalanceDelta.sol\";\nimport {ModifyLiquidityParams, SwapParams} from \"../types/PoolOperation.sol\";\nimport {BeforeSwapDelta} from \"../types/BeforeSwapDelta.sol\";\n\n/// @notice V4 decides whether to invoke specific hooks by inspecting the least significant bits\n/// of the address that the hooks contract is deployed to.\n/// For example, a hooks contract deployed to address: 0x0000000000000000000000000000000000002400\n/// has the lowest bits '10 0100 0000 0000' which would cause the 'before initialize' and 'after add liquidity' hooks to be used.\n/// See the Hooks library for the full spec.\n/// @dev Should only be callable by the v4 PoolManager.\ninterface IHooks {\n    /// @notice The hook called before the state of a pool is initialized\n    /// @param sender The initial msg.sender for the initialize call\n    /// @param key The key for the pool being initialized\n    /// @param sqrtPriceX96 The sqrt(price) of the pool as a Q64.96\n    /// @return bytes4 The function selector for the hook\n    function beforeInitialize(address sender, PoolKey calldata key, uint160 sqrtPriceX96) external returns (bytes4);\n\n    /// @notice The hook called after the state of a pool is initialized\n    /// @param sender The initial msg.sender for the initialize call\n    /// @param key The key for the pool being initialized\n    /// @param sqrtPriceX96 The sqrt(price) of the pool as a Q64.96\n    /// @param tick The current tick after the state of a pool is initialized\n    /// @return bytes4 The function selector for the hook\n    function afterInitialize(address sender, PoolKey calldata key, uint160 sqrtPriceX96, int24 tick)\n        external\n        returns (bytes4);\n\n    /// @notice The hook called before liquidity is added\n    /// @param sender The initial msg.sender for the add liquidity call\n    /// @param key The key for the pool\n    /// @param params The parameters for adding liquidity\n    /// @param hookData Arbitrary data handed into the PoolManager by the liquidity provider to be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    function beforeAddLiquidity(\n        address sender,\n        PoolKey calldata key,\n        ModifyLiquidityParams calldata params,\n        bytes calldata hookData\n    ) external returns (bytes4);\n\n    /// @notice The hook called after liquidity is added\n    /// @param sender The initial msg.sender for the add liquidity call\n    /// @param key The key for the pool\n    /// @param params The parameters for adding liquidity\n    /// @param delta The caller's balance delta after adding liquidity; the sum of principal delta, fees accrued, and hook delta\n    /// @param feesAccrued The fees accrued since the last time fees were collected from this position\n    /// @param hookData Arbitrary data handed into the PoolManager by the liquidity provider to be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    /// @return BalanceDelta The hook's delta in token0 and token1. Positive: the hook is owed/took currency, negative: the hook owes/sent currency\n    function afterAddLiquidity(\n        address sender,\n        PoolKey calldata key,\n        ModifyLiquidityParams calldata params,\n        BalanceDelta delta,\n        BalanceDelta feesAccrued,\n        bytes calldata hookData\n    ) external returns (bytes4, BalanceDelta);\n\n    /// @notice The hook called before liquidity is removed\n    /// @param sender The initial msg.sender for the remove liquidity call\n    /// @param key The key for the pool\n    /// @param params The parameters for removing liquidity\n    /// @param hookData Arbitrary data handed into the PoolManager by the liquidity provider to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    function beforeRemoveLiquidity(\n        address sender,\n        PoolKey calldata key,\n        ModifyLiquidityParams calldata params,\n        bytes calldata hookData\n    ) external returns (bytes4);\n\n    /// @notice The hook called after liquidity is removed\n    /// @param sender The initial msg.sender for the remove liquidity call\n    /// @param key The key for the pool\n    /// @param params The parameters for removing liquidity\n    /// @param delta The caller's balance delta after removing liquidity; the sum of principal delta, fees accrued, and hook delta\n    /// @param feesAccrued The fees accrued since the last time fees were collected from this position\n    /// @param hookData Arbitrary data handed into the PoolManager by the liquidity provider to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    /// @return BalanceDelta The hook's delta in token0 and token1. Positive: the hook is owed/took currency, negative: the hook owes/sent currency\n    function afterRemoveLiquidity(\n        address sender,\n        PoolKey calldata key,\n        ModifyLiquidityParams calldata params,\n        BalanceDelta delta,\n        BalanceDelta feesAccrued,\n        bytes calldata hookData\n    ) external returns (bytes4, BalanceDelta);\n\n    /// @notice The hook called before a swap\n    /// @param sender The initial msg.sender for the swap call\n    /// @param key The key for the pool\n    /// @param params The parameters for the swap\n    /// @param hookData Arbitrary data handed into the PoolManager by the swapper to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    /// @return BeforeSwapDelta The hook's delta in specified and unspecified currencies. Positive: the hook is owed/took currency, negative: the hook owes/sent currency\n    /// @return uint24 Optionally override the lp fee, only used if three conditions are met: 1. the Pool has a dynamic fee, 2. the value's 2nd highest bit is set (23rd bit, 0x400000), and 3. the value is less than or equal to the maximum fee (1 million)\n    function beforeSwap(address sender, PoolKey calldata key, SwapParams calldata params, bytes calldata hookData)\n        external\n        returns (bytes4, BeforeSwapDelta, uint24);\n\n    /// @notice The hook called after a swap\n    /// @param sender The initial msg.sender for the swap call\n    /// @param key The key for the pool\n    /// @param params The parameters for the swap\n    /// @param delta The amount owed to the caller (positive) or owed to the pool (negative)\n    /// @param hookData Arbitrary data handed into the PoolManager by the swapper to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    /// @return int128 The hook's delta in unspecified currency. Positive: the hook is owed/took currency, negative: the hook owes/sent currency\n    function afterSwap(\n        address sender,\n        PoolKey calldata key,\n        SwapParams calldata params,\n        BalanceDelta delta,\n        bytes calldata hookData\n    ) external returns (bytes4, int128);\n\n    /// @notice The hook called before donate\n    /// @param sender The initial msg.sender for the donate call\n    /// @param key The key for the pool\n    /// @param amount0 The amount of token0 being donated\n    /// @param amount1 The amount of token1 being donated\n    /// @param hookData Arbitrary data handed into the PoolManager by the donor to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    function beforeDonate(\n        address sender,\n        PoolKey calldata key,\n        uint256 amount0,\n        uint256 amount1,\n        bytes calldata hookData\n    ) external returns (bytes4);\n\n    /// @notice The hook called after donate\n    /// @param sender The initial msg.sender for the donate call\n    /// @param key The key for the pool\n    /// @param amount0 The amount of token0 being donated\n    /// @param amount1 The amount of token1 being donated\n    /// @param hookData Arbitrary data handed into the PoolManager by the donor to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    function afterDonate(\n        address sender,\n        PoolKey calldata key,\n        uint256 amount0,\n        uint256 amount1,\n        bytes calldata hookData\n    ) external returns (bytes4);\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/IPoolManager.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.24;\n\nimport {Currency} from \"../types/Currency.sol\";\nimport {PoolKey} from \"../types/PoolKey.sol\";\nimport {IHooks} from \"./IHooks.sol\";\nimport {IERC6909Claims} from \"./external/IERC6909Claims.sol\";\nimport {IProtocolFees} from \"./IProtocolFees.sol\";\nimport {BalanceDelta} from \"../types/BalanceDelta.sol\";\nimport {PoolId} from \"../types/PoolId.sol\";\nimport {IExtsload} from \"./IExtsload.sol\";\nimport {IExttload} from \"./IExttload.sol\";\nimport {ModifyLiquidityParams, SwapParams} from \"../types/PoolOperation.sol\";\n\n/// @notice Interface for the PoolManager\ninterface IPoolManager is IProtocolFees, IERC6909Claims, IExtsload, IExttload {\n    /// @notice Thrown when a currency is not netted out after the contract is unlocked\n    error CurrencyNotSettled();\n\n    /// @notice Thrown when trying to interact with a non-initialized pool\n    error PoolNotInitialized();\n\n    /// @notice Thrown when unlock is called, but the contract is already unlocked\n    error AlreadyUnlocked();\n\n    /// @notice Thrown when a function is called that requires the contract to be unlocked, but it is not\n    error ManagerLocked();\n\n    /// @notice Pools are limited to type(int16).max tickSpacing in #initialize, to prevent overflow\n    error TickSpacingTooLarge(int24 tickSpacing);\n\n    /// @notice Pools must have a positive non-zero tickSpacing passed to #initialize\n    error TickSpacingTooSmall(int24 tickSpacing);\n\n    /// @notice PoolKey must have currencies where address(currency0) < address(currency1)\n    error CurrenciesOutOfOrderOrEqual(address currency0, address currency1);\n\n    /// @notice Thrown when a call to updateDynamicLPFee is made by an address that is not the hook,\n    /// or on a pool that does not have a dynamic swap fee.\n    error UnauthorizedDynamicLPFeeUpdate();\n\n    /// @notice Thrown when trying to swap amount of 0\n    error SwapAmountCannotBeZero();\n\n    ///@notice Thrown when native currency is passed to a non native settlement\n    error NonzeroNativeValue();\n\n    /// @notice Thrown when `clear` is called with an amount that is not exactly equal to the open currency delta.\n    error MustClearExactPositiveDelta();\n\n    /// @notice Emitted when a new pool is initialized\n    /// @param id The abi encoded hash of the pool key struct for the new pool\n    /// @param currency0 The first currency of the pool by address sort order\n    /// @param currency1 The second currency of the pool by address sort order\n    /// @param fee The fee collected upon every swap in the pool, denominated in hundredths of a bip\n    /// @param tickSpacing The minimum number of ticks between initialized ticks\n    /// @param hooks The hooks contract address for the pool, or address(0) if none\n    /// @param sqrtPriceX96 The price of the pool on initialization\n    /// @param tick The initial tick of the pool corresponding to the initialized price\n    event Initialize(\n        PoolId indexed id,\n        Currency indexed currency0,\n        Currency indexed currency1,\n        uint24 fee,\n        int24 tickSpacing,\n        IHooks hooks,\n        uint160 sqrtPriceX96,\n        int24 tick\n    );\n\n    /// @notice Emitted when a liquidity position is modified\n    /// @param id The abi encoded hash of the pool key struct for the pool that was modified\n    /// @param sender The address that modified the pool\n    /// @param tickLower The lower tick of the position\n    /// @param tickUpper The upper tick of the position\n    /// @param liquidityDelta The amount of liquidity that was added or removed\n    /// @param salt The extra data to make positions unique\n    event ModifyLiquidity(\n        PoolId indexed id, address indexed sender, int24 tickLower, int24 tickUpper, int256 liquidityDelta, bytes32 salt\n    );\n\n    /// @notice Emitted for swaps between currency0 and currency1\n    /// @param id The abi encoded hash of the pool key struct for the pool that was modified\n    /// @param sender The address that initiated the swap call, and that received the callback\n    /// @param amount0 The delta of the currency0 balance of the pool\n    /// @param amount1 The delta of the currency1 balance of the pool\n    /// @param sqrtPriceX96 The sqrt(price) of the pool after the swap, as a Q64.96\n    /// @param liquidity The liquidity of the pool after the swap\n    /// @param tick The log base 1.0001 of the price of the pool after the swap\n    /// @param fee The swap fee in hundredths of a bip\n    event Swap(\n        PoolId indexed id,\n        address indexed sender,\n        int128 amount0,\n        int128 amount1,\n        uint160 sqrtPriceX96,\n        uint128 liquidity,\n        int24 tick,\n        uint24 fee\n    );\n\n    /// @notice Emitted for donations\n    /// @param id The abi encoded hash of the pool key struct for the pool that was donated to\n    /// @param sender The address that initiated the donate call\n    /// @param amount0 The amount donated in currency0\n    /// @param amount1 The amount donated in currency1\n    event Donate(PoolId indexed id, address indexed sender, uint256 amount0, uint256 amount1);\n\n    /// @notice All interactions on the contract that account deltas require unlocking. A caller that calls `unlock` must implement\n    /// `IUnlockCallback(msg.sender).unlockCallback(data)`, where they interact with the remaining functions on this contract.\n    /// @dev The only functions callable without an unlocking are `initialize` and `updateDynamicLPFee`\n    /// @param data Any data to pass to the callback, via `IUnlockCallback(msg.sender).unlockCallback(data)`\n    /// @return The data returned by the call to `IUnlockCallback(msg.sender).unlockCallback(data)`\n    function unlock(bytes calldata data) external returns (bytes memory);\n\n    /// @notice Initialize the state for a given pool ID\n    /// @dev A swap fee totaling MAX_SWAP_FEE (100%) makes exact output swaps impossible since the input is entirely consumed by the fee\n    /// @param key The pool key for the pool to initialize\n    /// @param sqrtPriceX96 The initial square root price\n    /// @return tick The initial tick of the pool\n    function initialize(PoolKey memory key, uint160 sqrtPriceX96) external returns (int24 tick);\n\n    /// @notice Modify the liquidity for the given pool\n    /// @dev Poke by calling with a zero liquidityDelta\n    /// @param key The pool to modify liquidity in\n    /// @param params The parameters for modifying the liquidity\n    /// @param hookData The data to pass through to the add/removeLiquidity hooks\n    /// @return callerDelta The balance delta of the caller of modifyLiquidity. This is the total of both principal, fee deltas, and hook deltas if applicable\n    /// @return feesAccrued The balance delta of the fees generated in the liquidity range. Returned for informational purposes\n    /// @dev Note that feesAccrued can be artificially inflated by a malicious actor and integrators should be careful using the value\n    /// For pools with a single liquidity position, actors can donate to themselves to inflate feeGrowthGlobal (and consequently feesAccrued)\n    /// atomically donating and collecting fees in the same unlockCallback may make the inflated value more extreme\n    function modifyLiquidity(PoolKey memory key, ModifyLiquidityParams memory params, bytes calldata hookData)\n        external\n        returns (BalanceDelta callerDelta, BalanceDelta feesAccrued);\n\n    /// @notice Swap against the given pool\n    /// @param key The pool to swap in\n    /// @param params The parameters for swapping\n    /// @param hookData The data to pass through to the swap hooks\n    /// @return swapDelta The balance delta of the address swapping\n    /// @dev Swapping on low liquidity pools may cause unexpected swap amounts when liquidity available is less than amountSpecified.\n    /// Additionally note that if interacting with hooks that have the BEFORE_SWAP_RETURNS_DELTA_FLAG or AFTER_SWAP_RETURNS_DELTA_FLAG\n    /// the hook may alter the swap input/output. Integrators should perform checks on the returned swapDelta.\n    function swap(PoolKey memory key, SwapParams memory params, bytes calldata hookData)\n        external\n        returns (BalanceDelta swapDelta);\n\n    /// @notice Donate the given currency amounts to the in-range liquidity providers of a pool\n    /// @dev Calls to donate can be frontrun adding just-in-time liquidity, with the aim of receiving a portion donated funds.\n    /// Donors should keep this in mind when designing donation mechanisms.\n    /// @dev This function donates to in-range LPs at slot0.tick. In certain edge-cases of the swap algorithm, the `sqrtPrice` of\n    /// a pool can be at the lower boundary of tick `n`, but the `slot0.tick` of the pool is already `n - 1`. In this case a call to\n    /// `donate` would donate to tick `n - 1` (slot0.tick) not tick `n` (getTickAtSqrtPrice(slot0.sqrtPriceX96)).\n    /// Read the comments in `Pool.swap()` for more information about this.\n    /// @param key The key of the pool to donate to\n    /// @param amount0 The amount of currency0 to donate\n    /// @param amount1 The amount of currency1 to donate\n    /// @param hookData The data to pass through to the donate hooks\n    /// @return BalanceDelta The delta of the caller after the donate\n    function donate(PoolKey memory key, uint256 amount0, uint256 amount1, bytes calldata hookData)\n        external\n        returns (BalanceDelta);\n\n    /// @notice Writes the current ERC20 balance of the specified currency to transient storage\n    /// This is used to checkpoint balances for the manager and derive deltas for the caller.\n    /// @dev This MUST be called before any ERC20 tokens are sent into the contract, but can be skipped\n    /// for native tokens because the amount to settle is determined by the sent value.\n    /// However, if an ERC20 token has been synced and not settled, and the caller instead wants to settle\n    /// native funds, this function can be called with the native currency to then be able to settle the native currency\n    function sync(Currency currency) external;\n\n    /// @notice Called by the user to net out some value owed to the user\n    /// @dev Will revert if the requested amount is not available, consider using `mint` instead\n    /// @dev Can also be used as a mechanism for free flash loans\n    /// @param currency The currency to withdraw from the pool manager\n    /// @param to The address to withdraw to\n    /// @param amount The amount of currency to withdraw\n    function take(Currency currency, address to, uint256 amount) external;\n\n    /// @notice Called by the user to pay what is owed\n    /// @return paid The amount of currency settled\n    function settle() external payable returns (uint256 paid);\n\n    /// @notice Called by the user to pay on behalf of another address\n    /// @param recipient The address to credit for the payment\n    /// @return paid The amount of currency settled\n    function settleFor(address recipient) external payable returns (uint256 paid);\n\n    /// @notice WARNING - Any currency that is cleared, will be non-retrievable, and locked in the contract permanently.\n    /// A call to clear will zero out a positive balance WITHOUT a corresponding transfer.\n    /// @dev This could be used to clear a balance that is considered dust.\n    /// Additionally, the amount must be the exact positive balance. This is to enforce that the caller is aware of the amount being cleared.\n    function clear(Currency currency, uint256 amount) external;\n\n    /// @notice Called by the user to move value into ERC6909 balance\n    /// @param to The address to mint the tokens to\n    /// @param id The currency address to mint to ERC6909s, as a uint256\n    /// @param amount The amount of currency to mint\n    /// @dev The id is converted to a uint160 to correspond to a currency address\n    /// If the upper 12 bytes are not 0, they will be 0-ed out\n    function mint(address to, uint256 id, uint256 amount) external;\n\n    /// @notice Called by the user to move value from ERC6909 balance\n    /// @param from The address to burn the tokens from\n    /// @param id The currency address to burn from ERC6909s, as a uint256\n    /// @param amount The amount of currency to burn\n    /// @dev The id is converted to a uint160 to correspond to a currency address\n    /// If the upper 12 bytes are not 0, they will be 0-ed out\n    function burn(address from, uint256 id, uint256 amount) external;\n\n    /// @notice Updates the pools lp fees for the a pool that has enabled dynamic lp fees.\n    /// @dev A swap fee totaling MAX_SWAP_FEE (100%) makes exact output swaps impossible since the input is entirely consumed by the fee\n    /// @param key The key of the pool to update dynamic LP fees for\n    /// @param newDynamicLPFee The new dynamic pool LP fee\n    function updateDynamicLPFee(PoolKey memory key, uint24 newDynamicLPFee) external;\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/callback/IUnlockCallback.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @notice Interface for the callback executed when an address unlocks the pool manager\ninterface IUnlockCallback {\n    /// @notice Called by the pool manager on `msg.sender` when the manager is unlocked\n    /// @param data The data that was passed to the call to unlock\n    /// @return Any data that you want to be returned from the unlock call\n    function unlockCallback(bytes calldata data) external returns (bytes memory);\n}\n"},"lib/v4-periphery/lib/v4-core/src/libraries/Hooks.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {PoolKey} from \"../types/PoolKey.sol\";\nimport {IHooks} from \"../interfaces/IHooks.sol\";\nimport {SafeCast} from \"./SafeCast.sol\";\nimport {LPFeeLibrary} from \"./LPFeeLibrary.sol\";\nimport {BalanceDelta, toBalanceDelta, BalanceDeltaLibrary} from \"../types/BalanceDelta.sol\";\nimport {BeforeSwapDelta, BeforeSwapDeltaLibrary} from \"../types/BeforeSwapDelta.sol\";\nimport {IPoolManager} from \"../interfaces/IPoolManager.sol\";\nimport {ModifyLiquidityParams, SwapParams} from \"../types/PoolOperation.sol\";\nimport {ParseBytes} from \"./ParseBytes.sol\";\nimport {CustomRevert} from \"./CustomRevert.sol\";\n\n/// @notice V4 decides whether to invoke specific hooks by inspecting the least significant bits\n/// of the address that the hooks contract is deployed to.\n/// For example, a hooks contract deployed to address: 0x0000000000000000000000000000000000002400\n/// has the lowest bits '10 0100 0000 0000' which would cause the 'before initialize' and 'after add liquidity' hooks to be used.\nlibrary Hooks {\n    using LPFeeLibrary for uint24;\n    using Hooks for IHooks;\n    using SafeCast for int256;\n    using BeforeSwapDeltaLibrary for BeforeSwapDelta;\n    using ParseBytes for bytes;\n    using CustomRevert for bytes4;\n\n    uint160 internal constant ALL_HOOK_MASK = uint160((1 << 14) - 1);\n\n    uint160 internal constant BEFORE_INITIALIZE_FLAG = 1 << 13;\n    uint160 internal constant AFTER_INITIALIZE_FLAG = 1 << 12;\n\n    uint160 internal constant BEFORE_ADD_LIQUIDITY_FLAG = 1 << 11;\n    uint160 internal constant AFTER_ADD_LIQUIDITY_FLAG = 1 << 10;\n\n    uint160 internal constant BEFORE_REMOVE_LIQUIDITY_FLAG = 1 << 9;\n    uint160 internal constant AFTER_REMOVE_LIQUIDITY_FLAG = 1 << 8;\n\n    uint160 internal constant BEFORE_SWAP_FLAG = 1 << 7;\n    uint160 internal constant AFTER_SWAP_FLAG = 1 << 6;\n\n    uint160 internal constant BEFORE_DONATE_FLAG = 1 << 5;\n    uint160 internal constant AFTER_DONATE_FLAG = 1 << 4;\n\n    uint160 internal constant BEFORE_SWAP_RETURNS_DELTA_FLAG = 1 << 3;\n    uint160 internal constant AFTER_SWAP_RETURNS_DELTA_FLAG = 1 << 2;\n    uint160 internal constant AFTER_ADD_LIQUIDITY_RETURNS_DELTA_FLAG = 1 << 1;\n    uint160 internal constant AFTER_REMOVE_LIQUIDITY_RETURNS_DELTA_FLAG = 1 << 0;\n\n    struct Permissions {\n        bool beforeInitialize;\n        bool afterInitialize;\n        bool beforeAddLiquidity;\n        bool afterAddLiquidity;\n        bool beforeRemoveLiquidity;\n        bool afterRemoveLiquidity;\n        bool beforeSwap;\n        bool afterSwap;\n        bool beforeDonate;\n        bool afterDonate;\n        bool beforeSwapReturnDelta;\n        bool afterSwapReturnDelta;\n        bool afterAddLiquidityReturnDelta;\n        bool afterRemoveLiquidityReturnDelta;\n    }\n\n    /// @notice Thrown if the address will not lead to the specified hook calls being called\n    /// @param hooks The address of the hooks contract\n    error HookAddressNotValid(address hooks);\n\n    /// @notice Hook did not return its selector\n    error InvalidHookResponse();\n\n    /// @notice Additional context for ERC-7751 wrapped error when a hook call fails\n    error HookCallFailed();\n\n    /// @notice The hook's delta changed the swap from exactIn to exactOut or vice versa\n    error HookDeltaExceedsSwapAmount();\n\n    /// @notice Utility function intended to be used in hook constructors to ensure\n    /// the deployed hooks address causes the intended hooks to be called\n    /// @param permissions The hooks that are intended to be called\n    /// @dev permissions param is memory as the function will be called from constructors\n    function validateHookPermissions(IHooks self, Permissions memory permissions) internal pure {\n        if (\n            permissions.beforeInitialize != self.hasPermission(BEFORE_INITIALIZE_FLAG)\n                || permissions.afterInitialize != self.hasPermission(AFTER_INITIALIZE_FLAG)\n                || permissions.beforeAddLiquidity != self.hasPermission(BEFORE_ADD_LIQUIDITY_FLAG)\n                || permissions.afterAddLiquidity != self.hasPermission(AFTER_ADD_LIQUIDITY_FLAG)\n                || permissions.beforeRemoveLiquidity != self.hasPermission(BEFORE_REMOVE_LIQUIDITY_FLAG)\n                || permissions.afterRemoveLiquidity != self.hasPermission(AFTER_REMOVE_LIQUIDITY_FLAG)\n                || permissions.beforeSwap != self.hasPermission(BEFORE_SWAP_FLAG)\n                || permissions.afterSwap != self.hasPermission(AFTER_SWAP_FLAG)\n                || permissions.beforeDonate != self.hasPermission(BEFORE_DONATE_FLAG)\n                || permissions.afterDonate != self.hasPermission(AFTER_DONATE_FLAG)\n                || permissions.beforeSwapReturnDelta != self.hasPermission(BEFORE_SWAP_RETURNS_DELTA_FLAG)\n                || permissions.afterSwapReturnDelta != self.hasPermission(AFTER_SWAP_RETURNS_DELTA_FLAG)\n                || permissions.afterAddLiquidityReturnDelta != self.hasPermission(AFTER_ADD_LIQUIDITY_RETURNS_DELTA_FLAG)\n                || permissions.afterRemoveLiquidityReturnDelta\n                    != self.hasPermission(AFTER_REMOVE_LIQUIDITY_RETURNS_DELTA_FLAG)\n        ) {\n            HookAddressNotValid.selector.revertWith(address(self));\n        }\n    }\n\n    /// @notice Ensures that the hook address includes at least one hook flag or dynamic fees, or is the 0 address\n    /// @param self The hook to verify\n    /// @param fee The fee of the pool the hook is used with\n    /// @return bool True if the hook address is valid\n    function isValidHookAddress(IHooks self, uint24 fee) internal pure returns (bool) {\n        // The hook can only have a flag to return a hook delta on an action if it also has the corresponding action flag\n        if (!self.hasPermission(BEFORE_SWAP_FLAG) && self.hasPermission(BEFORE_SWAP_RETURNS_DELTA_FLAG)) return false;\n        if (!self.hasPermission(AFTER_SWAP_FLAG) && self.hasPermission(AFTER_SWAP_RETURNS_DELTA_FLAG)) return false;\n        if (!self.hasPermission(AFTER_ADD_LIQUIDITY_FLAG) && self.hasPermission(AFTER_ADD_LIQUIDITY_RETURNS_DELTA_FLAG))\n        {\n            return false;\n        }\n        if (\n            !self.hasPermission(AFTER_REMOVE_LIQUIDITY_FLAG)\n                && self.hasPermission(AFTER_REMOVE_LIQUIDITY_RETURNS_DELTA_FLAG)\n        ) return false;\n\n        // If there is no hook contract set, then fee cannot be dynamic\n        // If a hook contract is set, it must have at least 1 flag set, or have a dynamic fee\n        return address(self) == address(0)\n            ? !fee.isDynamicFee()\n            : (uint160(address(self)) & ALL_HOOK_MASK > 0 || fee.isDynamicFee());\n    }\n\n    /// @notice performs a hook call using the given calldata on the given hook that doesn't return a delta\n    /// @return result The complete data returned by the hook\n    function callHook(IHooks self, bytes memory data) internal returns (bytes memory result) {\n        bool success;\n        assembly (\"memory-safe\") {\n            success := call(gas(), self, 0, add(data, 0x20), mload(data), 0, 0)\n        }\n        // Revert with FailedHookCall, containing any error message to bubble up\n        if (!success) CustomRevert.bubbleUpAndRevertWith(address(self), bytes4(data), HookCallFailed.selector);\n\n        // The call was successful, fetch the returned data\n        assembly (\"memory-safe\") {\n            // allocate result byte array from the free memory pointer\n            result := mload(0x40)\n            // store new free memory pointer at the end of the array padded to 32 bytes\n            mstore(0x40, add(result, and(add(returndatasize(), 0x3f), not(0x1f))))\n            // store length in memory\n            mstore(result, returndatasize())\n            // copy return data to result\n            returndatacopy(add(result, 0x20), 0, returndatasize())\n        }\n\n        // Length must be at least 32 to contain the selector. Check expected selector and returned selector match.\n        if (result.length < 32 || result.parseSelector() != data.parseSelector()) {\n            InvalidHookResponse.selector.revertWith();\n        }\n    }\n\n    /// @notice performs a hook call using the given calldata on the given hook\n    /// @return int256 The delta returned by the hook\n    function callHookWithReturnDelta(IHooks self, bytes memory data, bool parseReturn) internal returns (int256) {\n        bytes memory result = callHook(self, data);\n\n        // If this hook wasn't meant to return something, default to 0 delta\n        if (!parseReturn) return 0;\n\n        // A length of 64 bytes is required to return a bytes4, and a 32 byte delta\n        if (result.length != 64) InvalidHookResponse.selector.revertWith();\n        return result.parseReturnDelta();\n    }\n\n    /// @notice modifier to prevent calling a hook if they initiated the action\n    modifier noSelfCall(IHooks self) {\n        if (msg.sender != address(self)) {\n            _;\n        }\n    }\n\n    /// @notice calls beforeInitialize hook if permissioned and validates return value\n    function beforeInitialize(IHooks self, PoolKey memory key, uint160 sqrtPriceX96) internal noSelfCall(self) {\n        if (self.hasPermission(BEFORE_INITIALIZE_FLAG)) {\n            self.callHook(abi.encodeCall(IHooks.beforeInitialize, (msg.sender, key, sqrtPriceX96)));\n        }\n    }\n\n    /// @notice calls afterInitialize hook if permissioned and validates return value\n    function afterInitialize(IHooks self, PoolKey memory key, uint160 sqrtPriceX96, int24 tick)\n        internal\n        noSelfCall(self)\n    {\n        if (self.hasPermission(AFTER_INITIALIZE_FLAG)) {\n            self.callHook(abi.encodeCall(IHooks.afterInitialize, (msg.sender, key, sqrtPriceX96, tick)));\n        }\n    }\n\n    /// @notice calls beforeModifyLiquidity hook if permissioned and validates return value\n    function beforeModifyLiquidity(\n        IHooks self,\n        PoolKey memory key,\n        ModifyLiquidityParams memory params,\n        bytes calldata hookData\n    ) internal noSelfCall(self) {\n        if (params.liquidityDelta > 0 && self.hasPermission(BEFORE_ADD_LIQUIDITY_FLAG)) {\n            self.callHook(abi.encodeCall(IHooks.beforeAddLiquidity, (msg.sender, key, params, hookData)));\n        } else if (params.liquidityDelta <= 0 && self.hasPermission(BEFORE_REMOVE_LIQUIDITY_FLAG)) {\n            self.callHook(abi.encodeCall(IHooks.beforeRemoveLiquidity, (msg.sender, key, params, hookData)));\n        }\n    }\n\n    /// @notice calls afterModifyLiquidity hook if permissioned and validates return value\n    function afterModifyLiquidity(\n        IHooks self,\n        PoolKey memory key,\n        ModifyLiquidityParams memory params,\n        BalanceDelta delta,\n        BalanceDelta feesAccrued,\n        bytes calldata hookData\n    ) internal returns (BalanceDelta callerDelta, BalanceDelta hookDelta) {\n        if (msg.sender == address(self)) return (delta, BalanceDeltaLibrary.ZERO_DELTA);\n\n        callerDelta = delta;\n        if (params.liquidityDelta > 0) {\n            if (self.hasPermission(AFTER_ADD_LIQUIDITY_FLAG)) {\n                hookDelta = BalanceDelta.wrap(\n                    self.callHookWithReturnDelta(\n                        abi.encodeCall(\n                            IHooks.afterAddLiquidity, (msg.sender, key, params, delta, feesAccrued, hookData)\n                        ),\n                        self.hasPermission(AFTER_ADD_LIQUIDITY_RETURNS_DELTA_FLAG)\n                    )\n                );\n                callerDelta = callerDelta - hookDelta;\n            }\n        } else {\n            if (self.hasPermission(AFTER_REMOVE_LIQUIDITY_FLAG)) {\n                hookDelta = BalanceDelta.wrap(\n                    self.callHookWithReturnDelta(\n                        abi.encodeCall(\n                            IHooks.afterRemoveLiquidity, (msg.sender, key, params, delta, feesAccrued, hookData)\n                        ),\n                        self.hasPermission(AFTER_REMOVE_LIQUIDITY_RETURNS_DELTA_FLAG)\n                    )\n                );\n                callerDelta = callerDelta - hookDelta;\n            }\n        }\n    }\n\n    /// @notice calls beforeSwap hook if permissioned and validates return value\n    function beforeSwap(IHooks self, PoolKey memory key, SwapParams memory params, bytes calldata hookData)\n        internal\n        returns (int256 amountToSwap, BeforeSwapDelta hookReturn, uint24 lpFeeOverride)\n    {\n        amountToSwap = params.amountSpecified;\n        if (msg.sender == address(self)) return (amountToSwap, BeforeSwapDeltaLibrary.ZERO_DELTA, lpFeeOverride);\n\n        if (self.hasPermission(BEFORE_SWAP_FLAG)) {\n            bytes memory result = callHook(self, abi.encodeCall(IHooks.beforeSwap, (msg.sender, key, params, hookData)));\n\n            // A length of 96 bytes is required to return a bytes4, a 32 byte delta, and an LP fee\n            if (result.length != 96) InvalidHookResponse.selector.revertWith();\n\n            // dynamic fee pools that want to override the cache fee, return a valid fee with the override flag. If override flag\n            // is set but an invalid fee is returned, the transaction will revert. Otherwise the current LP fee will be used\n            if (key.fee.isDynamicFee()) lpFeeOverride = result.parseFee();\n\n            // skip this logic for the case where the hook return is 0\n            if (self.hasPermission(BEFORE_SWAP_RETURNS_DELTA_FLAG)) {\n                hookReturn = BeforeSwapDelta.wrap(result.parseReturnDelta());\n\n                // any return in unspecified is passed to the afterSwap hook for handling\n                int128 hookDeltaSpecified = hookReturn.getSpecifiedDelta();\n\n                // Update the swap amount according to the hook's return, and check that the swap type doesn't change (exact input/output)\n                if (hookDeltaSpecified != 0) {\n                    bool exactInput = amountToSwap < 0;\n                    amountToSwap += hookDeltaSpecified;\n                    if (exactInput ? amountToSwap > 0 : amountToSwap < 0) {\n                        HookDeltaExceedsSwapAmount.selector.revertWith();\n                    }\n                }\n            }\n        }\n    }\n\n    /// @notice calls afterSwap hook if permissioned and validates return value\n    function afterSwap(\n        IHooks self,\n        PoolKey memory key,\n        SwapParams memory params,\n        BalanceDelta swapDelta,\n        bytes calldata hookData,\n        BeforeSwapDelta beforeSwapHookReturn\n    ) internal returns (BalanceDelta, BalanceDelta) {\n        if (msg.sender == address(self)) return (swapDelta, BalanceDeltaLibrary.ZERO_DELTA);\n\n        int128 hookDeltaSpecified = beforeSwapHookReturn.getSpecifiedDelta();\n        int128 hookDeltaUnspecified = beforeSwapHookReturn.getUnspecifiedDelta();\n\n        if (self.hasPermission(AFTER_SWAP_FLAG)) {\n            hookDeltaUnspecified += self.callHookWithReturnDelta(\n                abi.encodeCall(IHooks.afterSwap, (msg.sender, key, params, swapDelta, hookData)),\n                self.hasPermission(AFTER_SWAP_RETURNS_DELTA_FLAG)\n            ).toInt128();\n        }\n\n        BalanceDelta hookDelta;\n        if (hookDeltaUnspecified != 0 || hookDeltaSpecified != 0) {\n            hookDelta = (params.amountSpecified < 0 == params.zeroForOne)\n                ? toBalanceDelta(hookDeltaSpecified, hookDeltaUnspecified)\n                : toBalanceDelta(hookDeltaUnspecified, hookDeltaSpecified);\n\n            // the caller has to pay for (or receive) the hook's delta\n            swapDelta = swapDelta - hookDelta;\n        }\n        return (swapDelta, hookDelta);\n    }\n\n    /// @notice calls beforeDonate hook if permissioned and validates return value\n    function beforeDonate(IHooks self, PoolKey memory key, uint256 amount0, uint256 amount1, bytes calldata hookData)\n        internal\n        noSelfCall(self)\n    {\n        if (self.hasPermission(BEFORE_DONATE_FLAG)) {\n            self.callHook(abi.encodeCall(IHooks.beforeDonate, (msg.sender, key, amount0, amount1, hookData)));\n        }\n    }\n\n    /// @notice calls afterDonate hook if permissioned and validates return value\n    function afterDonate(IHooks self, PoolKey memory key, uint256 amount0, uint256 amount1, bytes calldata hookData)\n        internal\n        noSelfCall(self)\n    {\n        if (self.hasPermission(AFTER_DONATE_FLAG)) {\n            self.callHook(abi.encodeCall(IHooks.afterDonate, (msg.sender, key, amount0, amount1, hookData)));\n        }\n    }\n\n    function hasPermission(IHooks self, uint160 flag) internal pure returns (bool) {\n        return uint160(address(self)) & flag != 0;\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/PoolKey.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {Currency} from \"./Currency.sol\";\nimport {IHooks} from \"../interfaces/IHooks.sol\";\nimport {PoolIdLibrary} from \"./PoolId.sol\";\n\nusing PoolIdLibrary for PoolKey global;\n\n/// @notice Returns the key for identifying a pool\nstruct PoolKey {\n    /// @notice The lower currency of the pool, sorted numerically\n    Currency currency0;\n    /// @notice The higher currency of the pool, sorted numerically\n    Currency currency1;\n    /// @notice The pool LP fee, capped at 1_000_000. If the highest bit is 1, the pool has a dynamic fee and must be exactly equal to 0x800000\n    uint24 fee;\n    /// @notice Ticks that involve positions must be a multiple of tick spacing\n    int24 tickSpacing;\n    /// @notice The hooks of the pool\n    IHooks hooks;\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/PoolId.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {PoolKey} from \"./PoolKey.sol\";\n\ntype PoolId is bytes32;\n\n/// @notice Library for computing the ID of a pool\nlibrary PoolIdLibrary {\n    /// @notice Returns value equal to keccak256(abi.encode(poolKey))\n    function toId(PoolKey memory poolKey) internal pure returns (PoolId poolId) {\n        assembly (\"memory-safe\") {\n            // 0xa0 represents the total size of the poolKey struct (5 slots of 32 bytes)\n            poolId := keccak256(poolKey, 0xa0)\n        }\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/Currency.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {IERC20Minimal} from \"../interfaces/external/IERC20Minimal.sol\";\nimport {CustomRevert} from \"../libraries/CustomRevert.sol\";\n\ntype Currency is address;\n\nusing {greaterThan as >, lessThan as <, greaterThanOrEqualTo as >=, equals as ==} for Currency global;\nusing CurrencyLibrary for Currency global;\n\nfunction equals(Currency currency, Currency other) pure returns (bool) {\n    return Currency.unwrap(currency) == Currency.unwrap(other);\n}\n\nfunction greaterThan(Currency currency, Currency other) pure returns (bool) {\n    return Currency.unwrap(currency) > Currency.unwrap(other);\n}\n\nfunction lessThan(Currency currency, Currency other) pure returns (bool) {\n    return Currency.unwrap(currency) < Currency.unwrap(other);\n}\n\nfunction greaterThanOrEqualTo(Currency currency, Currency other) pure returns (bool) {\n    return Currency.unwrap(currency) >= Currency.unwrap(other);\n}\n\n/// @title CurrencyLibrary\n/// @dev This library allows for transferring and holding native tokens and ERC20 tokens\nlibrary CurrencyLibrary {\n    /// @notice Additional context for ERC-7751 wrapped error when a native transfer fails\n    error NativeTransferFailed();\n\n    /// @notice Additional context for ERC-7751 wrapped error when an ERC20 transfer fails\n    error ERC20TransferFailed();\n\n    /// @notice A constant to represent the native currency\n    Currency public constant ADDRESS_ZERO = Currency.wrap(address(0));\n\n    function transfer(Currency currency, address to, uint256 amount) internal {\n        // altered from https://github.com/transmissions11/solmate/blob/44a9963d4c78111f77caa0e65d677b8b46d6f2e6/src/utils/SafeTransferLib.sol\n        // modified custom error selectors\n\n        bool success;\n        if (currency.isAddressZero()) {\n            assembly (\"memory-safe\") {\n                // Transfer the ETH and revert if it fails.\n                success := call(gas(), to, amount, 0, 0, 0, 0)\n            }\n            // revert with NativeTransferFailed, containing the bubbled up error as an argument\n            if (!success) {\n                CustomRevert.bubbleUpAndRevertWith(to, bytes4(0), NativeTransferFailed.selector);\n            }\n        } else {\n            assembly (\"memory-safe\") {\n                // Get a pointer to some free memory.\n                let fmp := mload(0x40)\n\n                // Write the abi-encoded calldata into memory, beginning with the function selector.\n                mstore(fmp, 0xa9059cbb00000000000000000000000000000000000000000000000000000000)\n                mstore(add(fmp, 4), and(to, 0xffffffffffffffffffffffffffffffffffffffff)) // Append and mask the \"to\" argument.\n                mstore(add(fmp, 36), amount) // Append the \"amount\" argument. Masking not required as it's a full 32 byte type.\n\n                success :=\n                    and(\n                        // Set success to whether the call reverted, if not we check it either\n                        // returned exactly 1 (can't just be non-zero data), or had no return data.\n                        or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),\n                        // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.\n                        // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.\n                        // Counterintuitively, this call must be positioned second to the or() call in the\n                        // surrounding and() call or else returndatasize() will be zero during the computation.\n                        call(gas(), currency, 0, fmp, 68, 0, 32)\n                    )\n\n                // Now clean the memory we used\n                mstore(fmp, 0) // 4 byte `selector` and 28 bytes of `to` were stored here\n                mstore(add(fmp, 0x20), 0) // 4 bytes of `to` and 28 bytes of `amount` were stored here\n                mstore(add(fmp, 0x40), 0) // 4 bytes of `amount` were stored here\n            }\n            // revert with ERC20TransferFailed, containing the bubbled up error as an argument\n            if (!success) {\n                CustomRevert.bubbleUpAndRevertWith(\n                    Currency.unwrap(currency), IERC20Minimal.transfer.selector, ERC20TransferFailed.selector\n                );\n            }\n        }\n    }\n\n    function balanceOfSelf(Currency currency) internal view returns (uint256) {\n        if (currency.isAddressZero()) {\n            return address(this).balance;\n        } else {\n            return IERC20Minimal(Currency.unwrap(currency)).balanceOf(address(this));\n        }\n    }\n\n    function balanceOf(Currency currency, address owner) internal view returns (uint256) {\n        if (currency.isAddressZero()) {\n            return owner.balance;\n        } else {\n            return IERC20Minimal(Currency.unwrap(currency)).balanceOf(owner);\n        }\n    }\n\n    function isAddressZero(Currency currency) internal pure returns (bool) {\n        return Currency.unwrap(currency) == Currency.unwrap(ADDRESS_ZERO);\n    }\n\n    function toId(Currency currency) internal pure returns (uint256) {\n        return uint160(Currency.unwrap(currency));\n    }\n\n    // If the upper 12 bytes are non-zero, they will be zero-ed out\n    // Therefore, fromId() and toId() are not inverses of each other\n    function fromId(uint256 id) internal pure returns (Currency) {\n        return Currency.wrap(address(uint160(id)));\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/BalanceDelta.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {SafeCast} from \"../libraries/SafeCast.sol\";\n\n/// @dev Two `int128` values packed into a single `int256` where the upper 128 bits represent the amount0\n/// and the lower 128 bits represent the amount1.\ntype BalanceDelta is int256;\n\nusing {add as +, sub as -, eq as ==, neq as !=} for BalanceDelta global;\nusing BalanceDeltaLibrary for BalanceDelta global;\nusing SafeCast for int256;\n\nfunction toBalanceDelta(int128 _amount0, int128 _amount1) pure returns (BalanceDelta balanceDelta) {\n    assembly (\"memory-safe\") {\n        balanceDelta := or(shl(128, _amount0), and(sub(shl(128, 1), 1), _amount1))\n    }\n}\n\nfunction add(BalanceDelta a, BalanceDelta b) pure returns (BalanceDelta) {\n    int256 res0;\n    int256 res1;\n    assembly (\"memory-safe\") {\n        let a0 := sar(128, a)\n        let a1 := signextend(15, a)\n        let b0 := sar(128, b)\n        let b1 := signextend(15, b)\n        res0 := add(a0, b0)\n        res1 := add(a1, b1)\n    }\n    return toBalanceDelta(res0.toInt128(), res1.toInt128());\n}\n\nfunction sub(BalanceDelta a, BalanceDelta b) pure returns (BalanceDelta) {\n    int256 res0;\n    int256 res1;\n    assembly (\"memory-safe\") {\n        let a0 := sar(128, a)\n        let a1 := signextend(15, a)\n        let b0 := sar(128, b)\n        let b1 := signextend(15, b)\n        res0 := sub(a0, b0)\n        res1 := sub(a1, b1)\n    }\n    return toBalanceDelta(res0.toInt128(), res1.toInt128());\n}\n\nfunction eq(BalanceDelta a, BalanceDelta b) pure returns (bool) {\n    return BalanceDelta.unwrap(a) == BalanceDelta.unwrap(b);\n}\n\nfunction neq(BalanceDelta a, BalanceDelta b) pure returns (bool) {\n    return BalanceDelta.unwrap(a) != BalanceDelta.unwrap(b);\n}\n\n/// @notice Library for getting the amount0 and amount1 deltas from the BalanceDelta type\nlibrary BalanceDeltaLibrary {\n    /// @notice A BalanceDelta of 0\n    BalanceDelta public constant ZERO_DELTA = BalanceDelta.wrap(0);\n\n    function amount0(BalanceDelta balanceDelta) internal pure returns (int128 _amount0) {\n        assembly (\"memory-safe\") {\n            _amount0 := sar(128, balanceDelta)\n        }\n    }\n\n    function amount1(BalanceDelta balanceDelta) internal pure returns (int128 _amount1) {\n        assembly (\"memory-safe\") {\n            _amount1 := signextend(15, balanceDelta)\n        }\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/BeforeSwapDelta.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n// Return type of the beforeSwap hook.\n// Upper 128 bits is the delta in specified tokens. Lower 128 bits is delta in unspecified tokens (to match the afterSwap hook)\ntype BeforeSwapDelta is int256;\n\n// Creates a BeforeSwapDelta from specified and unspecified\nfunction toBeforeSwapDelta(int128 deltaSpecified, int128 deltaUnspecified)\n    pure\n    returns (BeforeSwapDelta beforeSwapDelta)\n{\n    assembly (\"memory-safe\") {\n        beforeSwapDelta := or(shl(128, deltaSpecified), and(sub(shl(128, 1), 1), deltaUnspecified))\n    }\n}\n\n/// @notice Library for getting the specified and unspecified deltas from the BeforeSwapDelta type\nlibrary BeforeSwapDeltaLibrary {\n    /// @notice A BeforeSwapDelta of 0\n    BeforeSwapDelta public constant ZERO_DELTA = BeforeSwapDelta.wrap(0);\n\n    /// extracts int128 from the upper 128 bits of the BeforeSwapDelta\n    /// returned by beforeSwap\n    function getSpecifiedDelta(BeforeSwapDelta delta) internal pure returns (int128 deltaSpecified) {\n        assembly (\"memory-safe\") {\n            deltaSpecified := sar(128, delta)\n        }\n    }\n\n    /// extracts int128 from the lower 128 bits of the BeforeSwapDelta\n    /// returned by beforeSwap and afterSwap\n    function getUnspecifiedDelta(BeforeSwapDelta delta) internal pure returns (int128 deltaUnspecified) {\n        assembly (\"memory-safe\") {\n            deltaUnspecified := signextend(15, delta)\n        }\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/PoolOperation.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.24;\n\nimport {PoolKey} from \"../types/PoolKey.sol\";\nimport {BalanceDelta} from \"../types/BalanceDelta.sol\";\n\n/// @notice Parameter struct for `ModifyLiquidity` pool operations\nstruct ModifyLiquidityParams {\n    // the lower and upper tick of the position\n    int24 tickLower;\n    int24 tickUpper;\n    // how to modify the liquidity\n    int256 liquidityDelta;\n    // a value to set if you want unique liquidity positions at the same range\n    bytes32 salt;\n}\n\n/// @notice Parameter struct for `Swap` pool operations\nstruct SwapParams {\n    /// Whether to swap token0 for token1 or vice versa\n    bool zeroForOne;\n    /// The desired input amount if negative (exactIn), or the desired output amount if positive (exactOut)\n    int256 amountSpecified;\n    /// The sqrt price at which, if reached, the swap will stop executing\n    uint160 sqrtPriceLimitX96;\n}\n"},"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n    /**\n     * @dev Emitted when `value` tokens are moved from one account (`from`) to\n     * another (`to`).\n     *\n     * Note that `value` may be zero.\n     */\n    event Transfer(address indexed from, address indexed to, uint256 value);\n\n    /**\n     * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n     * a call to {approve}. `value` is the new allowance.\n     */\n    event Approval(address indexed owner, address indexed spender, uint256 value);\n\n    /**\n     * @dev Returns the value of tokens in existence.\n     */\n    function totalSupply() external view returns (uint256);\n\n    /**\n     * @dev Returns the value of tokens owned by `account`.\n     */\n    function balanceOf(address account) external view returns (uint256);\n\n    /**\n     * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transfer(address to, uint256 value) external returns (bool);\n\n    /**\n     * @dev Returns the remaining number of tokens that `spender` will be\n     * allowed to spend on behalf of `owner` through {transferFrom}. This is\n     * zero by default.\n     *\n     * This value changes when {approve} or {transferFrom} are called.\n     */\n    function allowance(address owner, address spender) external view returns (uint256);\n\n    /**\n     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n     * caller's tokens.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * IMPORTANT: Beware that changing an allowance with this method brings the risk\n     * that someone may use both the old and the new allowance by unfortunate\n     * transaction ordering. One possible solution to mitigate this race\n     * condition is to first reduce the spender's allowance to 0 and set the\n     * desired value afterwards:\n     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n     *\n     * Emits an {Approval} event.\n     */\n    function approve(address spender, uint256 value) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to` using the\n     * allowance mechanism. `value` is then deducted from the caller's\n     * allowance.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transferFrom(address from, address to, uint256 value) external returns (bool);\n}\n"},"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.7.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\nimport {IERC20Metadata} from \"../../../interfaces/IERC20Metadata.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 operations that throw on failure (when the token\n * contract returns false). Tokens that return no value (and instead revert or\n * throw on failure) are also supported, non-reverting calls are assumed to be\n * successful.\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\n */\nlibrary SafeERC20 {\n    /**\n     * @dev An operation with an ERC-20 token failed.\n     */\n    error SafeERC20FailedOperation(address token);\n\n    /**\n     * @dev Indicates a failed `decreaseAllowance` request.\n     */\n    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n    /**\n     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeTransfer(IERC20 token, address to, uint256 value) internal {\n        if (!_safeTransfer(token, to, value, true)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n     */\n    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n        if (!_safeTransferFrom(token, from, to, value, true)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n     */\n    function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n        return _safeTransfer(token, to, value, false);\n    }\n\n    /**\n     * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n     */\n    function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n        return _safeTransferFrom(token, from, to, value, false);\n    }\n\n    /**\n     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     *\n     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n     * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n     */\n    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n        uint256 oldAllowance = token.allowance(address(this), spender);\n        forceApprove(token, spender, oldAllowance + value);\n    }\n\n    /**\n     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n     * value, non-reverting calls are assumed to be successful.\n     *\n     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n     * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n     */\n    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n        unchecked {\n            uint256 currentAllowance = token.allowance(address(this), spender);\n            if (currentAllowance < requestedDecrease) {\n                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n            }\n            forceApprove(token, spender, currentAllowance - requestedDecrease);\n        }\n    }\n\n    /**\n     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n     * to be set to zero before setting it to a non-zero value, such as USDT.\n     *\n     * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n     * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n     * set here.\n     */\n    function forceApprove(IERC20 token, address spender, uint256 value) internal {\n        if (!_safeApprove(token, spender, value, false)) {\n            if (!_safeApprove(token, spender, 0, true)) revert SafeERC20FailedOperation(address(token));\n            if (!_safeApprove(token, spender, value, true)) revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n     * code. This can be used to implement an {ERC721}-like safe transfer that relies on {ERC1363} checks when\n     * targeting contracts.\n     *\n     * Reverts if the returned value is other than `true`.\n     */\n    function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n        if (to.code.length == 0) {\n            safeTransfer(token, to, value);\n        } else if (!token.transferAndCall(to, value, data)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n     * has no code. This can be used to implement an {ERC721}-like safe transfer that relies on {ERC1363} checks when\n     * targeting contracts.\n     *\n     * Reverts if the returned value is other than `true`.\n     */\n    function transferFromAndCallRelaxed(\n        IERC1363 token,\n        address from,\n        address to,\n        uint256 value,\n        bytes memory data\n    ) internal {\n        if (to.code.length == 0) {\n            safeTransferFrom(token, from, to, value);\n        } else if (!token.transferFromAndCall(from, to, value, data)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n     * targeting contracts.\n     *\n     * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n     * Oppositely, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n     * once without retrying, and relies on the returned value to be true.\n     *\n     * Reverts if the returned value is other than `true`.\n     */\n    function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n        if (to.code.length == 0) {\n            forceApprove(token, to, value);\n        } else if (!token.approveAndCall(to, value, data)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /// @dev Attempts to fetch the token decimals. A return value of false indicates that the attempt failed in some way.\n    function tryGetDecimals(IERC20 token) internal view returns (bool success, uint8 decimals) {\n        bytes4 selector = IERC20Metadata.decimals.selector;\n        assembly (\"memory-safe\") {\n            mstore(0x00, selector)\n            success := staticcall(gas(), token, 0x00, 4, 0x00, 0x20)\n            success := and(and(success, gt(returndatasize(), 0x1f)), lt(mload(0x00), 0x100))\n            decimals := mul(success, mload(0x00))\n        }\n    }\n\n    /**\n     * @dev Imitates a Solidity `token.transfer(to, value)` call, relaxing the requirement on the return value: the\n     * return value is optional (but if data is returned, it must not be false).\n     *\n     * @param token The token targeted by the call.\n     * @param to The recipient of the tokens\n     * @param value The amount of token to transfer\n     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.\n     */\n    function _safeTransfer(IERC20 token, address to, uint256 value, bool bubble) private returns (bool success) {\n        bytes4 selector = IERC20.transfer.selector;\n\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(0x00, selector)\n            mstore(0x04, and(to, shr(96, not(0))))\n            mstore(0x24, value)\n            success := call(gas(), token, 0, 0x00, 0x44, 0x00, 0x20)\n            // if call success and return is true, all is good.\n            // otherwise (not success or return is not true), we need to perform further checks\n            if iszero(and(success, eq(mload(0x00), 1))) {\n                // if the call was a failure and bubble is enabled, bubble the error\n                if and(iszero(success), bubble) {\n                    returndatacopy(fmp, 0x00, returndatasize())\n                    revert(fmp, returndatasize())\n                }\n                // if the return value is not true, then the call is only successful if:\n                // - the token address has code\n                // - the returndata is empty\n                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))\n            }\n            mstore(0x40, fmp)\n        }\n    }\n\n    /**\n     * @dev Imitates a Solidity `token.transferFrom(from, to, value)` call, relaxing the requirement on the return\n     * value: the return value is optional (but if data is returned, it must not be false).\n     *\n     * @param token The token targeted by the call.\n     * @param from The sender of the tokens\n     * @param to The recipient of the tokens\n     * @param value The amount of token to transfer\n     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.\n     */\n    function _safeTransferFrom(\n        IERC20 token,\n        address from,\n        address to,\n        uint256 value,\n        bool bubble\n    ) private returns (bool success) {\n        bytes4 selector = IERC20.transferFrom.selector;\n\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(0x00, selector)\n            mstore(0x04, and(from, shr(96, not(0))))\n            mstore(0x24, and(to, shr(96, not(0))))\n            mstore(0x44, value)\n            success := call(gas(), token, 0, 0x00, 0x64, 0x00, 0x20)\n            // if call success and return is true, all is good.\n            // otherwise (not success or return is not true), we need to perform further checks\n            if iszero(and(success, eq(mload(0x00), 1))) {\n                // if the call was a failure and bubble is enabled, bubble the error\n                if and(iszero(success), bubble) {\n                    returndatacopy(fmp, 0x00, returndatasize())\n                    revert(fmp, returndatasize())\n                }\n                // if the return value is not true, then the call is only successful if:\n                // - the token address has code\n                // - the returndata is empty\n                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))\n            }\n            mstore(0x40, fmp)\n            mstore(0x60, 0)\n        }\n    }\n\n    /**\n     * @dev Imitates a Solidity `token.approve(spender, value)` call, relaxing the requirement on the return value:\n     * the return value is optional (but if data is returned, it must not be false).\n     *\n     * @param token The token targeted by the call.\n     * @param spender The spender of the tokens\n     * @param value The amount of token to approve\n     * @param bubble Behavior switch if the approve call reverts: bubble the revert reason or return a false boolean.\n     */\n    function _safeApprove(IERC20 token, address spender, uint256 value, bool bubble) private returns (bool success) {\n        bytes4 selector = IERC20.approve.selector;\n\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(0x00, selector)\n            mstore(0x04, and(spender, shr(96, not(0))))\n            mstore(0x24, value)\n            success := call(gas(), token, 0, 0x00, 0x44, 0x00, 0x20)\n            // if call success and return is true, all is good.\n            // otherwise (not success or return is not true), we need to perform further checks\n            if iszero(and(success, eq(mload(0x00), 1))) {\n                // if the call was a failure and bubble is enabled, bubble the error\n                if and(iszero(success), bubble) {\n                    returndatacopy(fmp, 0x00, returndatasize())\n                    revert(fmp, returndatasize())\n                }\n                // if the return value is not true, then the call is only successful if:\n                // - the token address has code\n                // - the returndata is empty\n                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))\n            }\n            mstore(0x40, fmp)\n        }\n    }\n}\n"},"src/interfaces/IFeeCollector.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\n/// @notice Sink for protocol fees skimmed by the LaunchpadHook, and the 50/30/20 splitter.\ninterface IFeeCollector {\n    /// @notice Deposit `amount` of TokenizedStock and attribute it to `token`.\n    /// @dev Permissionless by design: the caller must actually transfer the stock in,\n    ///      so there is nothing to gain by calling it. This is what lets the hook push\n    ///      fees without the FeeCollector needing to trust (or even know) the hook,\n    ///      which keeps the deployment graph acyclic.\n    function recordFee(address token, uint256 amount) external;\n\n    function pendingFees(address token) external view returns (uint256);\n\n    function totalCollected() external view returns (uint256);\n\n    function totalDistributed() external view returns (uint256);\n\n    /// @notice Cumulative stock paid out to shareholders as dividends.\n    function totalDividends() external view returns (uint256);\n\n    /// @notice Cumulative stock sold to pay the operator.\n    function stockConverted() external view returns (uint256);\n\n    /// @notice Cumulative USDG delivered to the operator.\n    function operatorReceived() external view returns (uint256);\n\n    /// @notice Operator-earmarked stock waiting on conversion-pool liquidity.\n    function pendingConversion() external view returns (uint256);\n\n    function collectedOnDay(uint256 day) external view returns (uint256);\n\n    function distributedOnDay(uint256 day) external view returns (uint256);\n\n    function dividendsOnDay(uint256 day) external view returns (uint256);\n\n    function operatorOnDay(uint256 day) external view returns (uint256);\n\n    function feeTokenCount() external view returns (uint256);\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC6909Claims.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @notice Interface for claims over a contract balance, wrapped as a ERC6909\ninterface IERC6909Claims {\n    /*//////////////////////////////////////////////////////////////\n                                 EVENTS\n    //////////////////////////////////////////////////////////////*/\n\n    event OperatorSet(address indexed owner, address indexed operator, bool approved);\n\n    event Approval(address indexed owner, address indexed spender, uint256 indexed id, uint256 amount);\n\n    event Transfer(address caller, address indexed from, address indexed to, uint256 indexed id, uint256 amount);\n\n    /*//////////////////////////////////////////////////////////////\n                                 FUNCTIONS\n    //////////////////////////////////////////////////////////////*/\n\n    /// @notice Owner balance of an id.\n    /// @param owner The address of the owner.\n    /// @param id The id of the token.\n    /// @return amount The balance of the token.\n    function balanceOf(address owner, uint256 id) external view returns (uint256 amount);\n\n    /// @notice Spender allowance of an id.\n    /// @param owner The address of the owner.\n    /// @param spender The address of the spender.\n    /// @param id The id of the token.\n    /// @return amount The allowance of the token.\n    function allowance(address owner, address spender, uint256 id) external view returns (uint256 amount);\n\n    /// @notice Checks if a spender is approved by an owner as an operator\n    /// @param owner The address of the owner.\n    /// @param spender The address of the spender.\n    /// @return approved The approval status.\n    function isOperator(address owner, address spender) external view returns (bool approved);\n\n    /// @notice Transfers an amount of an id from the caller to a receiver.\n    /// @param receiver The address of the receiver.\n    /// @param id The id of the token.\n    /// @param amount The amount of the token.\n    /// @return bool True, always, unless the function reverts\n    function transfer(address receiver, uint256 id, uint256 amount) external returns (bool);\n\n    /// @notice Transfers an amount of an id from a sender to a receiver.\n    /// @param sender The address of the sender.\n    /// @param receiver The address of the receiver.\n    /// @param id The id of the token.\n    /// @param amount The amount of the token.\n    /// @return bool True, always, unless the function reverts\n    function transferFrom(address sender, address receiver, uint256 id, uint256 amount) external returns (bool);\n\n    /// @notice Approves an amount of an id to a spender.\n    /// @param spender The address of the spender.\n    /// @param id The id of the token.\n    /// @param amount The amount of the token.\n    /// @return bool True, always\n    function approve(address spender, uint256 id, uint256 amount) external returns (bool);\n\n    /// @notice Sets or removes an operator for the caller.\n    /// @param operator The address of the operator.\n    /// @param approved The approval status.\n    /// @return bool True, always\n    function setOperator(address operator, bool approved) external returns (bool);\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/IProtocolFees.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {Currency} from \"../types/Currency.sol\";\nimport {PoolId} from \"../types/PoolId.sol\";\nimport {PoolKey} from \"../types/PoolKey.sol\";\n\n/// @notice Interface for all protocol-fee related functions in the pool manager\ninterface IProtocolFees {\n    /// @notice Thrown when protocol fee is set too high\n    error ProtocolFeeTooLarge(uint24 fee);\n\n    /// @notice Thrown when collectProtocolFees or setProtocolFee is not called by the controller.\n    error InvalidCaller();\n\n    /// @notice Thrown when collectProtocolFees is attempted on a token that is synced.\n    error ProtocolFeeCurrencySynced();\n\n    /// @notice Emitted when the protocol fee controller address is updated in setProtocolFeeController.\n    event ProtocolFeeControllerUpdated(address indexed protocolFeeController);\n\n    /// @notice Emitted when the protocol fee is updated for a pool.\n    event ProtocolFeeUpdated(PoolId indexed id, uint24 protocolFee);\n\n    /// @notice Given a currency address, returns the protocol fees accrued in that currency\n    /// @param currency The currency to check\n    /// @return amount The amount of protocol fees accrued in the currency\n    function protocolFeesAccrued(Currency currency) external view returns (uint256 amount);\n\n    /// @notice Sets the protocol fee for the given pool\n    /// @param key The key of the pool to set a protocol fee for\n    /// @param newProtocolFee The fee to set\n    function setProtocolFee(PoolKey memory key, uint24 newProtocolFee) external;\n\n    /// @notice Sets the protocol fee controller\n    /// @param controller The new protocol fee controller\n    function setProtocolFeeController(address controller) external;\n\n    /// @notice Collects the protocol fees for a given recipient and currency, returning the amount collected\n    /// @dev This will revert if the contract is unlocked\n    /// @param recipient The address to receive the protocol fees\n    /// @param currency The currency to withdraw\n    /// @param amount The amount of currency to withdraw\n    /// @return amountCollected The amount of currency successfully withdrawn\n    function collectProtocolFees(address recipient, Currency currency, uint256 amount)\n        external\n        returns (uint256 amountCollected);\n\n    /// @notice Returns the current protocol fee controller address\n    /// @return address The current protocol fee controller address\n    function protocolFeeController() external view returns (address);\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/IExtsload.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @notice Interface for functions to access any storage slot in a contract\ninterface IExtsload {\n    /// @notice Called by external contracts to access granular pool state\n    /// @param slot Key of slot to sload\n    /// @return value The value of the slot as bytes32\n    function extsload(bytes32 slot) external view returns (bytes32 value);\n\n    /// @notice Called by external contracts to access granular pool state\n    /// @param startSlot Key of slot to start sloading from\n    /// @param nSlots Number of slots to load into return value\n    /// @return values List of loaded values.\n    function extsload(bytes32 startSlot, uint256 nSlots) external view returns (bytes32[] memory values);\n\n    /// @notice Called by external contracts to access sparse pool state\n    /// @param slots List of slots to SLOAD from.\n    /// @return values List of loaded values.\n    function extsload(bytes32[] calldata slots) external view returns (bytes32[] memory values);\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/IExttload.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.24;\n\n/// @notice Interface for functions to access any transient storage slot in a contract\ninterface IExttload {\n    /// @notice Called by external contracts to access transient storage of the contract\n    /// @param slot Key of slot to tload\n    /// @return value The value of the slot as bytes32\n    function exttload(bytes32 slot) external view returns (bytes32 value);\n\n    /// @notice Called by external contracts to access sparse transient pool state\n    /// @param slots List of slots to tload\n    /// @return values List of loaded values\n    function exttload(bytes32[] calldata slots) external view returns (bytes32[] memory values);\n}\n"},"lib/v4-periphery/lib/v4-core/src/libraries/SafeCast.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {CustomRevert} from \"./CustomRevert.sol\";\n\n/// @title Safe casting methods\n/// @notice Contains methods for safely casting between types\nlibrary SafeCast {\n    using CustomRevert for bytes4;\n\n    error SafeCastOverflow();\n\n    /// @notice Cast a uint256 to a uint160, revert on overflow\n    /// @param x The uint256 to be downcasted\n    /// @return y The downcasted integer, now type uint160\n    function toUint160(uint256 x) internal pure returns (uint160 y) {\n        y = uint160(x);\n        if (y != x) SafeCastOverflow.selector.revertWith();\n    }\n\n    /// @notice Cast a uint256 to a uint128, revert on overflow\n    /// @param x The uint256 to be downcasted\n    /// @return y The downcasted integer, now type uint128\n    function toUint128(uint256 x) internal pure returns (uint128 y) {\n        y = uint128(x);\n        if (x != y) SafeCastOverflow.selector.revertWith();\n    }\n\n    /// @notice Cast a int128 to a uint128, revert on overflow or underflow\n    /// @param x The int128 to be casted\n    /// @return y The casted integer, now type uint128\n    function toUint128(int128 x) internal pure returns (uint128 y) {\n        if (x < 0) SafeCastOverflow.selector.revertWith();\n        y = uint128(x);\n    }\n\n    /// @notice Cast a int256 to a int128, revert on overflow or underflow\n    /// @param x The int256 to be downcasted\n    /// @return y The downcasted integer, now type int128\n    function toInt128(int256 x) internal pure returns (int128 y) {\n        y = int128(x);\n        if (y != x) SafeCastOverflow.selector.revertWith();\n    }\n\n    /// @notice Cast a uint256 to a int256, revert on overflow\n    /// @param x The uint256 to be casted\n    /// @return y The casted integer, now type int256\n    function toInt256(uint256 x) internal pure returns (int256 y) {\n        y = int256(x);\n        if (y < 0) SafeCastOverflow.selector.revertWith();\n    }\n\n    /// @notice Cast a uint256 to a int128, revert on overflow\n    /// @param x The uint256 to be downcasted\n    /// @return The downcasted integer, now type int128\n    function toInt128(uint256 x) internal pure returns (int128) {\n        if (x >= 1 << 127) SafeCastOverflow.selector.revertWith();\n        return int128(int256(x));\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/libraries/LPFeeLibrary.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {CustomRevert} from \"./CustomRevert.sol\";\n\n/// @notice Library of helper functions for a pools LP fee\nlibrary LPFeeLibrary {\n    using LPFeeLibrary for uint24;\n    using CustomRevert for bytes4;\n\n    /// @notice Thrown when the static or dynamic fee on a pool exceeds 100%.\n    error LPFeeTooLarge(uint24 fee);\n\n    /// @notice An lp fee of exactly 0b1000000... signals a dynamic fee pool. This isn't a valid static fee as it is > MAX_LP_FEE\n    uint24 public constant DYNAMIC_FEE_FLAG = 0x800000;\n\n    /// @notice the second bit of the fee returned by beforeSwap is used to signal if the stored LP fee should be overridden in this swap\n    // only dynamic-fee pools can return a fee via the beforeSwap hook\n    uint24 public constant OVERRIDE_FEE_FLAG = 0x400000;\n\n    /// @notice mask to remove the override fee flag from a fee returned by the beforeSwaphook\n    uint24 public constant REMOVE_OVERRIDE_MASK = 0xBFFFFF;\n\n    /// @notice the lp fee is represented in hundredths of a bip, so the max is 100%\n    uint24 public constant MAX_LP_FEE = 1000000;\n\n    /// @notice returns true if a pool's LP fee signals that the pool has a dynamic fee\n    /// @param self The fee to check\n    /// @return bool True of the fee is dynamic\n    function isDynamicFee(uint24 self) internal pure returns (bool) {\n        return self == DYNAMIC_FEE_FLAG;\n    }\n\n    /// @notice returns true if an LP fee is valid, aka not above the maximum permitted fee\n    /// @param self The fee to check\n    /// @return bool True of the fee is valid\n    function isValid(uint24 self) internal pure returns (bool) {\n        return self <= MAX_LP_FEE;\n    }\n\n    /// @notice validates whether an LP fee is larger than the maximum, and reverts if invalid\n    /// @param self The fee to validate\n    function validate(uint24 self) internal pure {\n        if (!self.isValid()) LPFeeTooLarge.selector.revertWith(self);\n    }\n\n    /// @notice gets and validates the initial LP fee for a pool. Dynamic fee pools have an initial fee of 0.\n    /// @dev if a dynamic fee pool wants a non-0 initial fee, it should call `updateDynamicLPFee` in the afterInitialize hook\n    /// @param self The fee to get the initial LP from\n    /// @return initialFee 0 if the fee is dynamic, otherwise the fee (if valid)\n    function getInitialLPFee(uint24 self) internal pure returns (uint24) {\n        // the initial fee for a dynamic fee pool is 0\n        if (self.isDynamicFee()) return 0;\n        self.validate();\n        return self;\n    }\n\n    /// @notice returns true if the fee has the override flag set (2nd highest bit of the uint24)\n    /// @param self The fee to check\n    /// @return bool True of the fee has the override flag set\n    function isOverride(uint24 self) internal pure returns (bool) {\n        return self & OVERRIDE_FEE_FLAG != 0;\n    }\n\n    /// @notice returns a fee with the override flag removed\n    /// @param self The fee to remove the override flag from\n    /// @return fee The fee without the override flag set\n    function removeOverrideFlag(uint24 self) internal pure returns (uint24) {\n        return self & REMOVE_OVERRIDE_MASK;\n    }\n\n    /// @notice Removes the override flag and validates the fee (reverts if the fee is too large)\n    /// @param self The fee to remove the override flag from, and then validate\n    /// @return fee The fee without the override flag set (if valid)\n    function removeOverrideFlagAndValidate(uint24 self) internal pure returns (uint24 fee) {\n        fee = self.removeOverrideFlag();\n        fee.validate();\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/libraries/ParseBytes.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\n/// @notice Parses bytes returned from hooks and the byte selector used to check return selectors from hooks.\n/// @dev parseSelector also is used to parse the expected selector\n/// For parsing hook returns, note that all hooks return either bytes4 or (bytes4, 32-byte-delta) or (bytes4, 32-byte-delta, uint24).\nlibrary ParseBytes {\n    function parseSelector(bytes memory result) internal pure returns (bytes4 selector) {\n        // equivalent: (selector,) = abi.decode(result, (bytes4, int256));\n        assembly (\"memory-safe\") {\n            selector := mload(add(result, 0x20))\n        }\n    }\n\n    function parseFee(bytes memory result) internal pure returns (uint24 lpFee) {\n        // equivalent: (,, lpFee) = abi.decode(result, (bytes4, int256, uint24));\n        assembly (\"memory-safe\") {\n            lpFee := mload(add(result, 0x60))\n        }\n    }\n\n    function parseReturnDelta(bytes memory result) internal pure returns (int256 hookReturn) {\n        // equivalent: (, hookReturnDelta) = abi.decode(result, (bytes4, int256));\n        assembly (\"memory-safe\") {\n            hookReturn := mload(add(result, 0x40))\n        }\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/libraries/CustomRevert.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @title Library for reverting with custom errors efficiently\n/// @notice Contains functions for reverting with custom errors with different argument types efficiently\n/// @dev To use this library, declare `using CustomRevert for bytes4;` and replace `revert CustomError()` with\n/// `CustomError.selector.revertWith()`\n/// @dev The functions may tamper with the free memory pointer but it is fine since the call context is exited immediately\nlibrary CustomRevert {\n    /// @dev ERC-7751 error for wrapping bubbled up reverts\n    error WrappedError(address target, bytes4 selector, bytes reason, bytes details);\n\n    /// @dev Reverts with the selector of a custom error in the scratch space\n    function revertWith(bytes4 selector) internal pure {\n        assembly (\"memory-safe\") {\n            mstore(0, selector)\n            revert(0, 0x04)\n        }\n    }\n\n    /// @dev Reverts with a custom error with an address argument in the scratch space\n    function revertWith(bytes4 selector, address addr) internal pure {\n        assembly (\"memory-safe\") {\n            mstore(0, selector)\n            mstore(0x04, and(addr, 0xffffffffffffffffffffffffffffffffffffffff))\n            revert(0, 0x24)\n        }\n    }\n\n    /// @dev Reverts with a custom error with an int24 argument in the scratch space\n    function revertWith(bytes4 selector, int24 value) internal pure {\n        assembly (\"memory-safe\") {\n            mstore(0, selector)\n            mstore(0x04, signextend(2, value))\n            revert(0, 0x24)\n        }\n    }\n\n    /// @dev Reverts with a custom error with a uint160 argument in the scratch space\n    function revertWith(bytes4 selector, uint160 value) internal pure {\n        assembly (\"memory-safe\") {\n            mstore(0, selector)\n            mstore(0x04, and(value, 0xffffffffffffffffffffffffffffffffffffffff))\n            revert(0, 0x24)\n        }\n    }\n\n    /// @dev Reverts with a custom error with two int24 arguments\n    function revertWith(bytes4 selector, int24 value1, int24 value2) internal pure {\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(fmp, selector)\n            mstore(add(fmp, 0x04), signextend(2, value1))\n            mstore(add(fmp, 0x24), signextend(2, value2))\n            revert(fmp, 0x44)\n        }\n    }\n\n    /// @dev Reverts with a custom error with two uint160 arguments\n    function revertWith(bytes4 selector, uint160 value1, uint160 value2) internal pure {\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(fmp, selector)\n            mstore(add(fmp, 0x04), and(value1, 0xffffffffffffffffffffffffffffffffffffffff))\n            mstore(add(fmp, 0x24), and(value2, 0xffffffffffffffffffffffffffffffffffffffff))\n            revert(fmp, 0x44)\n        }\n    }\n\n    /// @dev Reverts with a custom error with two address arguments\n    function revertWith(bytes4 selector, address value1, address value2) internal pure {\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(fmp, selector)\n            mstore(add(fmp, 0x04), and(value1, 0xffffffffffffffffffffffffffffffffffffffff))\n            mstore(add(fmp, 0x24), and(value2, 0xffffffffffffffffffffffffffffffffffffffff))\n            revert(fmp, 0x44)\n        }\n    }\n\n    /// @notice bubble up the revert message returned by a call and revert with a wrapped ERC-7751 error\n    /// @dev this method can be vulnerable to revert data bombs\n    function bubbleUpAndRevertWith(\n        address revertingContract,\n        bytes4 revertingFunctionSelector,\n        bytes4 additionalContext\n    ) internal pure {\n        bytes4 wrappedErrorSelector = WrappedError.selector;\n        assembly (\"memory-safe\") {\n            // Ensure the size of the revert data is a multiple of 32 bytes\n            let encodedDataSize := mul(div(add(returndatasize(), 31), 32), 32)\n\n            let fmp := mload(0x40)\n\n            // Encode wrapped error selector, address, function selector, offset, additional context, size, revert reason\n            mstore(fmp, wrappedErrorSelector)\n            mstore(add(fmp, 0x04), and(revertingContract, 0xffffffffffffffffffffffffffffffffffffffff))\n            mstore(\n                add(fmp, 0x24),\n                and(revertingFunctionSelector, 0xffffffff00000000000000000000000000000000000000000000000000000000)\n            )\n            // offset revert reason\n            mstore(add(fmp, 0x44), 0x80)\n            // offset additional context\n            mstore(add(fmp, 0x64), add(0xa0, encodedDataSize))\n            // size revert reason\n            mstore(add(fmp, 0x84), returndatasize())\n            // revert reason\n            returndatacopy(add(fmp, 0xa4), 0, returndatasize())\n            // size additional context\n            mstore(add(fmp, add(0xa4, encodedDataSize)), 0x04)\n            // additional context\n            mstore(\n                add(fmp, add(0xc4, encodedDataSize)),\n                and(additionalContext, 0xffffffff00000000000000000000000000000000000000000000000000000000)\n            )\n            revert(fmp, add(0xe4, encodedDataSize))\n        }\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC20Minimal.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @title Minimal ERC20 interface for Uniswap\n/// @notice Contains a subset of the full ERC20 interface that is used in Uniswap V3\ninterface IERC20Minimal {\n    /// @notice Returns an account's balance in the token\n    /// @param account The account for which to look up the number of tokens it has, i.e. its balance\n    /// @return The number of tokens held by the account\n    function balanceOf(address account) external view returns (uint256);\n\n    /// @notice Transfers the amount of token from the `msg.sender` to the recipient\n    /// @param recipient The account that will receive the amount transferred\n    /// @param amount The number of tokens to send from the sender to the recipient\n    /// @return Returns true for a successful transfer, false for an unsuccessful transfer\n    function transfer(address recipient, uint256 amount) external returns (bool);\n\n    /// @notice Returns the current allowance given to a spender by an owner\n    /// @param owner The account of the token owner\n    /// @param spender The account of the token spender\n    /// @return The current allowance granted by `owner` to `spender`\n    function allowance(address owner, address spender) external view returns (uint256);\n\n    /// @notice Sets the allowance of a spender from the `msg.sender` to the value `amount`\n    /// @param spender The account which will be allowed to spend a given amount of the owners tokens\n    /// @param amount The amount of tokens allowed to be used by `spender`\n    /// @return Returns true for a successful approval, false for unsuccessful\n    function approve(address spender, uint256 amount) external returns (bool);\n\n    /// @notice Transfers `amount` tokens from `sender` to `recipient` up to the allowance given to the `msg.sender`\n    /// @param sender The account from which the transfer will be initiated\n    /// @param recipient The recipient of the transfer\n    /// @param amount The amount of the transfer\n    /// @return Returns true for a successful transfer, false for unsuccessful\n    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);\n\n    /// @notice Event emitted when tokens are transferred from one address to another, either via `#transfer` or `#transferFrom`.\n    /// @param from The account from which the tokens were sent, i.e. the balance decreased\n    /// @param to The account to which the tokens were sent, i.e. the balance increased\n    /// @param value The amount of tokens that were transferred\n    event Transfer(address indexed from, address indexed to, uint256 value);\n\n    /// @notice Event emitted when the approval amount for the spender of a given owner's tokens changes.\n    /// @param owner The account that approved spending of its tokens\n    /// @param spender The account for which the spending allowance was modified\n    /// @param value The new allowance from the owner to the spender\n    event Approval(address indexed owner, address indexed spender, uint256 value);\n}\n"},"lib/openzeppelin-contracts/contracts/interfaces/IERC1363.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n    /*\n     * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n     * 0xb0202a11 ===\n     *   bytes4(keccak256('transferAndCall(address,uint256)')) ^\n     *   bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^\n     *   bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^\n     *   bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^\n     *   bytes4(keccak256('approveAndCall(address,uint256)')) ^\n     *   bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n     */\n\n    /**\n     * @dev Moves a `value` amount of tokens from the caller's account to `to`\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferAndCall(address to, uint256 value) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from the caller's account to `to`\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @param data Additional data with no specified format, sent in call to `to`.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param from The address which you want to send tokens from.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param from The address which you want to send tokens from.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @param data Additional data with no specified format, sent in call to `to`.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n    /**\n     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n     * @param spender The address which will spend the funds.\n     * @param value The amount of tokens to be spent.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function approveAndCall(address spender, uint256 value) external returns (bool);\n\n    /**\n     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n     * @param spender The address which will spend the funds.\n     * @param value The amount of tokens to be spent.\n     * @param data Additional data with no specified format, sent in call to `spender`.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"},"lib/openzeppelin-contracts/contracts/interfaces/IERC20Metadata.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20Metadata.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20Metadata} from \"../token/ERC20/extensions/IERC20Metadata.sol\";\n"},"lib/openzeppelin-contracts/contracts/interfaces/IERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"},"lib/openzeppelin-contracts/contracts/interfaces/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"},"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/extensions/IERC20Metadata.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"../IERC20.sol\";\n\n/**\n * @dev Interface for the optional metadata functions from the ERC-20 standard.\n */\ninterface IERC20Metadata is IERC20 {\n    /**\n     * @dev Returns the name of the token.\n     */\n    function name() external view returns (string memory);\n\n    /**\n     * @dev Returns the symbol of the token.\n     */\n    function symbol() external view returns (string memory);\n\n    /**\n     * @dev Returns the decimals places of the token.\n     */\n    function decimals() external view returns (uint8);\n}\n"},"lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n    /**\n     * @dev Returns true if this contract implements the interface defined by\n     * `interfaceId`. See the corresponding\n     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]\n     * to learn more about how these ids are created.\n     *\n     * This function call must use less than 30 000 gas.\n     */\n    function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n"}},"compilation":{"language":"Solidity","compiler":"solc","compilerVersion":"0.8.26+commit.8a97fa7a","compilerSettings":{"viaIR":false,"metadata":{"appendCBOR":true,"bytecodeHash":"none","useLiteralContent":false},"libraries":{},"optimizer":{"runs":200,"enabled":true},"evmVersion":"cancun","remappings":["@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/","openzeppelin-contracts/=lib/openzeppelin-contracts/","@uniswap/v4-core/=lib/v4-periphery/lib/v4-core/","v4-core/=lib/v4-periphery/lib/v4-core/src/","v4-periphery/=lib/v4-periphery/","permit2/=lib/v4-periphery/lib/permit2/","forge-std/=lib/forge-std/src/","ds-test/=lib/v4-periphery/lib/v4-core/lib/forge-std/lib/ds-test/src/","solmate/=lib/v4-periphery/lib/v4-core/lib/solmate/","forge-gas-snapshot/=lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/src/","@ensdomains/=lib/v4-periphery/lib/v4-core/node_modules/@ensdomains/","hardhat/=lib/v4-periphery/lib/v4-core/node_modules/hardhat/","erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/","halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/"]},"name":"LaunchpadHook","fullyQualifiedName":"src/LaunchpadHook.sol:LaunchpadHook"},"abi":[{"type":"constructor","inputs":[{"name":"poolManager_","type":"address","internalType":"contract IPoolManager"},{"name":"tokenizedStock_","type":"address","internalType":"contract IERC20"},{"name":"feeCollector_","type":"address","internalType":"contract IFeeCollector"}],"stateMutability":"nonpayable"},{"name":"HookNotImplemented","type":"error","inputs":[]},{"name":"InvalidHookAddress","type":"error","inputs":[]},{"name":"NotPoolManager","type":"error","inputs":[]},{"name":"PoolMustPairTokenizedStock","type":"error","inputs":[]},{"name":"SafeERC20FailedOperation","type":"error","inputs":[{"name":"token","type":"address","internalType":"address"}]},{"name":"FeeDeferredAsClaim","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"FeeSettled","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"ProtocolFeeCharged","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"poolId","type":"bytes32","indexed":true,"internalType":"PoolId"},{"name":"stockVolume","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"feeAmount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"PROTOCOL_FEE_BPS","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"REQUIRED_FLAGS","type":"function","inputs":[],"outputs":[{"name":"","type":"uint160","internalType":"uint160"}],"stateMutability":"view"},{"name":"activePoolsOnDay","type":"function","inputs":[{"name":"day","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"afterAddLiquidity","type":"function","inputs":[{"name":"","type":"address","internalType":"address"},{"name":"","type":"tuple","components":[{"name":"currency0","type":"address","internalType":"Currency"},{"name":"currency1","type":"address","internalType":"Currency"},{"name":"fee","type":"uint24","internalType":"uint24"},{"name":"tickSpacing","type":"int24","internalType":"int24"},{"name":"hooks","type":"address","internalType":"contract IHooks"}],"internalType":"struct PoolKey"},{"name":"","type":"tuple","components":[{"name":"tickLower","type":"int24","internalType":"int24"},{"name":"tickUpper","type":"int24","internalType":"int24"},{"name":"liquidityDelta","type":"int256","internalType":"int256"},{"name":"salt","type":"bytes32","internalType":"bytes32"}],"internalType":"struct ModifyLiquidityParams"},{"name":"","type":"int256","internalType":"BalanceDelta"},{"name":"","type":"int256","internalType":"BalanceDelta"},{"name":"","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"","type":"bytes4","internalType":"bytes4"},{"name":"","type":"int256","internalType":"BalanceDelta"}],"stateMutability":"pure"},{"name":"afterDonate","type":"function","inputs":[{"name":"","type":"address","internalType":"address"},{"name":"","type":"tuple","components":[{"name":"currency0","type":"address","internalType":"Currency"},{"name":"currency1","type":"address","internalType":"Currency"},{"name":"fee","type":"uint24","internalType":"uint24"},{"name":"tickSpacing","type":"int24","internalType":"int24"},{"name":"hooks","type":"address","internalType":"contract IHooks"}],"internalType":"struct PoolKey"},{"name":"","type":"uint256","internalType":"uint256"},{"name":"","type":"uint256","internalType":"uint256"},{"name":"","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"","type":"bytes4","internalType":"bytes4"}],"stateMutability":"pure"},{"name":"afterInitialize","type":"function","inputs":[{"name":"","type":"address","internalType":"address"},{"name":"","type":"tuple","components":[{"name":"currency0","type":"address","internalType":"Currency"},{"name":"currency1","type":"address","internalType":"Currency"},{"name":"fee","type":"uint24","internalType":"uint24"},{"name":"tickSpacing","type":"int24","internalType":"int24"},{"name":"hooks","type":"address","internalType":"contract IHooks"}],"internalType":"struct PoolKey"},{"name":"","type":"uint160","internalType":"uint160"},{"name":"","type":"int24","internalType":"int24"}],"outputs":[{"name":"","type":"bytes4","internalType":"bytes4"}],"stateMutability":"pure"},{"name":"afterRemoveLiquidity","type":"function","inputs":[{"name":"","type":"address","internalType":"address"},{"name":"","type":"tuple","components":[{"name":"currency0","type":"address","internalType":"Currency"},{"name":"currency1","type":"address","internalType":"Currency"},{"name":"fee","type":"uint24","internalType":"uint24"},{"name":"tickSpacing","type":"int24","internalType":"int24"},{"name":"hooks","type":"address","internalType":"contract IHooks"}],"internalType":"struct PoolKey"},{"name":"","type":"tuple","components":[{"name":"tickLower","type":"int24","internalType":"int24"},{"name":"tickUpper","type":"int24","internalType":"int24"},{"name":"liquidityDelta","type":"int256","internalType":"int256"},{"name":"salt","type":"bytes32","internalType":"bytes32"}],"internalType":"struct ModifyLiquidityParams"},{"name":"","type":"int256","internalType":"BalanceDelta"},{"name":"","type":"int256","internalType":"BalanceDelta"},{"name":"","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"","type":"bytes4","internalType":"bytes4"},{"name":"","type":"int256","internalType":"BalanceDelta"}],"stateMutability":"pure"},{"name":"afterSwap","type":"function","inputs":[{"name":"","type":"address","internalType":"address"},{"name":"key","type":"tuple","components":[{"name":"currency0","type":"address","internalType":"Currency"},{"name":"currency1","type":"address","internalType":"Currency"},{"name":"fee","type":"uint24","internalType":"uint24"},{"name":"tickSpacing","type":"int24","internalType":"int24"},{"name":"hooks","type":"address","internalType":"contract IHooks"}],"internalType":"struct PoolKey"},{"name":"params","type":"tuple","components":[{"name":"zeroForOne","type":"bool","internalType":"bool"},{"name":"amountSpecified","type":"int256","internalType":"int256"},{"name":"sqrtPriceLimitX96","type":"uint160","internalType":"uint160"}],"internalType":"struct SwapParams"},{"name":"delta","type":"int256","internalType":"BalanceDelta"},{"name":"","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"","type":"bytes4","internalType":"bytes4"},{"name":"","type":"int128","internalType":"int128"}],"stateMutability":"nonpayable"},{"name":"beforeAddLiquidity","type":"function","inputs":[{"name":"","type":"address","internalType":"address"},{"name":"","type":"tuple","components":[{"name":"currency0","type":"address","internalType":"Currency"},{"name":"currency1","type":"address","internalType":"Currency"},{"name":"fee","type":"uint24","internalType":"uint24"},{"name":"tickSpacing","type":"int24","internalType":"int24"},{"name":"hooks","type":"address","internalType":"contract IHooks"}],"internalType":"struct PoolKey"},{"name":"","type":"tuple","components":[{"name":"tickLower","type":"int24","internalType":"int24"},{"name":"tickUpper","type":"int24","internalType":"int24"},{"name":"liquidityDelta","type":"int256","internalType":"int256"},{"name":"salt","type":"bytes32","internalType":"bytes32"}],"internalType":"struct ModifyLiquidityParams"},{"name":"","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"","type":"bytes4","internalType":"bytes4"}],"stateMutability":"pure"},{"name":"beforeDonate","type":"function","inputs":[{"name":"","type":"address","internalType":"address"},{"name":"","type":"tuple","components":[{"name":"currency0","type":"address","internalType":"Currency"},{"name":"currency1","type":"address","internalType":"Currency"},{"name":"fee","type":"uint24","internalType":"uint24"},{"name":"tickSpacing","type":"int24","internalType":"int24"},{"name":"hooks","type":"address","internalType":"contract IHooks"}],"internalType":"struct PoolKey"},{"name":"","type":"uint256","internalType":"uint256"},{"name":"","type":"uint256","internalType":"uint256"},{"name":"","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"","type":"bytes4","internalType":"bytes4"}],"stateMutability":"pure"},{"name":"beforeInitialize","type":"function","inputs":[{"name":"","type":"address","internalType":"address"},{"name":"","type":"tuple","components":[{"name":"currency0","type":"address","internalType":"Currency"},{"name":"currency1","type":"address","internalType":"Currency"},{"name":"fee","type":"uint24","internalType":"uint24"},{"name":"tickSpacing","type":"int24","internalType":"int24"},{"name":"hooks","type":"address","internalType":"contract IHooks"}],"internalType":"struct PoolKey"},{"name":"","type":"uint160","internalType":"uint160"}],"outputs":[{"name":"","type":"bytes4","internalType":"bytes4"}],"stateMutability":"pure"},{"name":"beforeRemoveLiquidity","type":"function","inputs":[{"name":"","type":"address","internalType":"address"},{"name":"","type":"tuple","components":[{"name":"currency0","type":"address","internalType":"Currency"},{"name":"currency1","type":"address","internalType":"Currency"},{"name":"fee","type":"uint24","internalType":"uint24"},{"name":"tickSpacing","type":"int24","internalType":"int24"},{"name":"hooks","type":"address","internalType":"contract IHooks"}],"internalType":"struct PoolKey"},{"name":"","type":"tuple","components":[{"name":"tickLower","type":"int24","internalType":"int24"},{"name":"tickUpper","type":"int24","internalType":"int24"},{"name":"liquidityDelta","type":"int256","internalType":"int256"},{"name":"salt","type":"bytes32","internalType":"bytes32"}],"internalType":"struct ModifyLiquidityParams"},{"name":"","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"","type":"bytes4","internalType":"bytes4"}],"stateMutability":"pure"},{"name":"beforeSwap","type":"function","inputs":[{"name":"","type":"address","internalType":"address"},{"name":"key","type":"tuple","components":[{"name":"currency0","type":"address","internalType":"Currency"},{"name":"currency1","type":"address","internalType":"Currency"},{"name":"fee","type":"uint24","internalType":"uint24"},{"name":"tickSpacing","type":"int24","internalType":"int24"},{"name":"hooks","type":"address","internalType":"contract IHooks"}],"internalType":"struct PoolKey"},{"name":"params","type":"tuple","components":[{"name":"zeroForOne","type":"bool","internalType":"bool"},{"name":"amountSpecified","type":"int256","internalType":"int256"},{"name":"sqrtPriceLimitX96","type":"uint160","internalType":"uint160"}],"internalType":"struct SwapParams"},{"name":"","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"","type":"bytes4","internalType":"bytes4"},{"name":"","type":"int256","internalType":"BeforeSwapDelta"},{"name":"","type":"uint24","internalType":"uint24"}],"stateMutability":"nonpayable"},{"name":"currentDay","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"feeCollector","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IFeeCollector"}],"stateMutability":"view"},{"name":"feesChargedOf","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"feesOnDay","type":"function","inputs":[{"name":"day","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"lastActiveDay","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"poolManager","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IPoolManager"}],"stateMutability":"view"},{"name":"poolsEverTraded","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"settleAllFees","type":"function","inputs":[],"outputs":[{"name":"total","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"name":"settleFees","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"settled","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"name":"stockCurrency","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"Currency"}],"stateMutability":"view"},{"name":"stockLockedOf","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"tokenizedStock","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IERC20"}],"stateMutability":"view"},{"name":"totalFeesCharged","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"totalStockLocked","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"totalUnsettledFees","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"totalVolume","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"unlockCallback","type":"function","inputs":[{"name":"data","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"","type":"bytes","internalType":"bytes"}],"stateMutability":"nonpayable"},{"name":"unsettledFeeOf","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"unsettledTokens","type":"function","inputs":[],"outputs":[{"name":"","type":"address[]","internalType":"address[]"}],"stateMutability":"view"},{"name":"volumeOf","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"volumeOnDay","type":"function","inputs":[{"name":"day","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"}],"metadata":{"compiler":{"version":"0.8.26+commit.8a97fa7a"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"contract IPoolManager","name":"poolManager_","type":"address"},{"internalType":"contract IERC20","name":"tokenizedStock_","type":"address"},{"internalType":"contract IFeeCollector","name":"feeCollector_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"HookNotImplemented","type":"error"},{"inputs":[],"name":"InvalidHookAddress","type":"error"},{"inputs":[],"name":"NotPoolManager","type":"error"},{"inputs":[],"name":"PoolMustPairTokenizedStock","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FeeDeferredAsClaim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FeeSettled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"PoolId","name":"poolId","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"stockVolume","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feeAmount","type":"uint256"}],"name":"ProtocolFeeCharged","type":"event"},{"inputs":[],"name":"PROTOCOL_FEE_BPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REQUIRED_FLAGS","outputs":[{"internalType":"uint160","name":"","type":"uint160"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"day","type":"uint256"}],"name":"activePoolsOnDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"components":[{"internalType":"Currency","name":"currency0","type":"address"},{"internalType":"Currency","name":"currency1","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"int24","name":"tickSpacing","type":"int24"},{"internalType":"contract IHooks","name":"hooks","type":"address"}],"internalType":"struct PoolKey","name":"","type":"tuple"},{"components":[{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"},{"internalType":"int256","name":"liquidityDelta","type":"int256"},{"internalType":"bytes32","name":"salt","type":"bytes32"}],"internalType":"struct ModifyLiquidityParams","name":"","type":"tuple"},{"internalType":"BalanceDelta","name":"","type":"int256"},{"internalType":"BalanceDelta","name":"","type":"int256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"afterAddLiquidity","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"},{"internalType":"BalanceDelta","name":"","type":"int256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"components":[{"internalType":"Currency","name":"currency0","type":"address"},{"internalType":"Currency","name":"currency1","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"int24","name":"tickSpacing","type":"int24"},{"internalType":"contract IHooks","name":"hooks","type":"address"}],"internalType":"struct PoolKey","name":"","type":"tuple"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"afterDonate","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"components":[{"internalType":"Currency","name":"currency0","type":"address"},{"internalType":"Currency","name":"currency1","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"int24","name":"tickSpacing","type":"int24"},{"internalType":"contract IHooks","name":"hooks","type":"address"}],"internalType":"struct PoolKey","name":"","type":"tuple"},{"internalType":"uint160","name":"","type":"uint160"},{"internalType":"int24","name":"","type":"int24"}],"name":"afterInitialize","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"components":[{"internalType":"Currency","name":"currency0","type":"address"},{"internalType":"Currency","name":"currency1","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"int24","name":"tickSpacing","type":"int24"},{"internalType":"contract IHooks","name":"hooks","type":"address"}],"internalType":"struct PoolKey","name":"","type":"tuple"},{"components":[{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"},{"internalType":"int256","name":"liquidityDelta","type":"int256"},{"internalType":"bytes32","name":"salt","type":"bytes32"}],"internalType":"struct ModifyLiquidityParams","name":"","type":"tuple"},{"internalType":"BalanceDelta","name":"","type":"int256"},{"internalType":"BalanceDelta","name":"","type":"int256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"afterRemoveLiquidity","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"},{"internalType":"BalanceDelta","name":"","type":"int256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"components":[{"internalType":"Currency","name":"currency0","type":"address"},{"internalType":"Currency","name":"currency1","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"int24","name":"tickSpacing","type":"int24"},{"internalType":"contract IHooks","name":"hooks","type":"address"}],"internalType":"struct PoolKey","name":"key","type":"tuple"},{"components":[{"internalType":"bool","name":"zeroForOne","type":"bool"},{"internalType":"int256","name":"amountSpecified","type":"int256"},{"internalType":"uint160","name":"sqrtPriceLimitX96","type":"uint160"}],"internalType":"struct SwapParams","name":"params","type":"tuple"},{"internalType":"BalanceDelta","name":"delta","type":"int256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"afterSwap","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"},{"internalType":"int128","name":"","type":"int128"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"components":[{"internalType":"Currency","name":"currency0","type":"address"},{"internalType":"Currency","name":"currency1","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"int24","name":"tickSpacing","type":"int24"},{"internalType":"contract IHooks","name":"hooks","type":"address"}],"internalType":"struct PoolKey","name":"","type":"tuple"},{"components":[{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"},{"internalType":"int256","name":"liquidityDelta","type":"int256"},{"internalType":"bytes32","name":"salt","type":"bytes32"}],"internalType":"struct ModifyLiquidityParams","name":"","type":"tuple"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"beforeAddLiquidity","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"components":[{"internalType":"Currency","name":"currency0","type":"address"},{"internalType":"Currency","name":"currency1","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"int24","name":"tickSpacing","type":"int24"},{"internalType":"contract IHooks","name":"hooks","type":"address"}],"internalType":"struct PoolKey","name":"","type":"tuple"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"beforeDonate","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"components":[{"internalType":"Currency","name":"currency0","type":"address"},{"internalType":"Currency","name":"currency1","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"int24","name":"tickSpacing","type":"int24"},{"internalType":"contract IHooks","name":"hooks","type":"address"}],"internalType":"struct PoolKey","name":"","type":"tuple"},{"internalType":"uint160","name":"","type":"uint160"}],"name":"beforeInitialize","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"components":[{"internalType":"Currency","name":"currency0","type":"address"},{"internalType":"Currency","name":"currency1","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"int24","name":"tickSpacing","type":"int24"},{"internalType":"contract IHooks","name":"hooks","type":"address"}],"internalType":"struct PoolKey","name":"","type":"tuple"},{"components":[{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"},{"internalType":"int256","name":"liquidityDelta","type":"int256"},{"internalType":"bytes32","name":"salt","type":"bytes32"}],"internalType":"struct ModifyLiquidityParams","name":"","type":"tuple"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"beforeRemoveLiquidity","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"components":[{"internalType":"Currency","name":"currency0","type":"address"},{"internalType":"Currency","name":"currency1","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"int24","name":"tickSpacing","type":"int24"},{"internalType":"contract IHooks","name":"hooks","type":"address"}],"internalType":"struct PoolKey","name":"key","type":"tuple"},{"components":[{"internalType":"bool","name":"zeroForOne","type":"bool"},{"internalType":"int256","name":"amountSpecified","type":"int256"},{"internalType":"uint160","name":"sqrtPriceLimitX96","type":"uint160"}],"internalType":"struct SwapParams","name":"params","type":"tuple"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"beforeSwap","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"},{"internalType":"BeforeSwapDelta","name":"","type":"int256"},{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeCollector","outputs":[{"internalType":"contract IFeeCollector","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"feesChargedOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"day","type":"uint256"}],"name":"feesOnDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"lastActiveDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolManager","outputs":[{"internalType":"contract IPoolManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolsEverTraded","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"settleAllFees","outputs":[{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"settleFees","outputs":[{"internalType":"uint256","name":"settled","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stockCurrency","outputs":[{"internalType":"Currency","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"stockLockedOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenizedStock","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFeesCharged","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStockLocked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalUnsettledFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalVolume","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"data","type":"bytes"}],"name":"unlockCallback","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"unsettledFeeOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unsettledTokens","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"volumeOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"day","type":"uint256"}],"name":"volumeOnDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}],"devdoc":{"details":"WHY THIS CONTRACT EXISTS (it was not in the six-contract brief):      The brief asks for two things that cannot both be true without a hook. It asks that      the LP NFT of every launch pool be burned to 0xdead so liquidity is locked forever,      and it asks that the FeeCollector collect trading fees from those pools. In Uniswap      v4 swap fees accrue to the *position*. Burn the position's NFT and the fees it earns      become permanently unclaimable — by anyone, including the protocol. The company      would report zero revenue.      A hook resolves it. Liquidity stays provably locked (the NFT really is at 0xdead and      nobody can decrease the position), and the protocol still earns, because the hook      skims its fee off the swap itself before the pool ever sees it.      FEE DENOMINATION. Fees are charged only on BUYS, and always in TokenizedStock. That      is a deliberate product choice as much as an engineering one: it matches the thesis      (\"every buy creates demand for the stock\"), it keeps 100% of protocol revenue      denominated in the asset the treasury actually wants to report, and it means the      FeeCollector never has to liquidate a long tail of memecoins to work out what a      quarter earned. Sells are untaxed, which also keeps the blink window's \"selling is      unrestricted at all times\" promise honest.      Landing the fee in TokenizedStock in both buy shapes takes both callbacks, because      v4 only lets a hook adjust the *specified* currency in `beforeSwap` and the      *unspecified* one in `afterSwap`:        - exact-input buy  (spend N stock):   stock is the specified currency   -> beforeSwap        - exact-output buy (receive N token): stock is the unspecified currency -> afterSwap      TAKE-OR-CLAIM. `poolManager.take` moves real ERC-20 out of the singleton, so it only      works if the singleton is *already* holding enough stock at that instant. Mid-swap it      may not be: a launch pool opens with zero stock, and the buyer has not settled their      input yet. So the hook takes real tokens when the balance covers it and otherwise      mints itself an ERC-6909 claim, which always succeeds. Claims are realised      automatically on that pool's next trade, or by anyone calling `settleFees`. A thin      moment in the singleton can therefore never revert a user's swap, and no fee is ever      lost — only briefly deferred.      All volume / TVL accounting happens in `afterSwap`, where the realised `BalanceDelta`      is known, so the numbers reflect what actually swapped rather than what was requested.      No owner, no admin, no parameters to change. The fee rate is a constant.","errors":{"SafeERC20FailedOperation(address)":[{"details":"An operation with an ERC-20 token failed."}]},"kind":"dev","methods":{"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)":{"params":{"delta":"The amount owed to the caller (positive) or owed to the pool (negative)","hookData":"Arbitrary data handed into the PoolManager by the swapper to be be passed on to the hook","key":"The key for the pool","params":"The parameters for the swap","sender":"The initial msg.sender for the swap call"},"returns":{"_0":"bytes4 The function selector for the hook","_1":"int128 The hook's delta in unspecified currency. Positive: the hook is owed/took currency, negative: the hook owes/sent currency"}},"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)":{"params":{"hookData":"Arbitrary data handed into the PoolManager by the swapper to be be passed on to the hook","key":"The key for the pool","params":"The parameters for the swap","sender":"The initial msg.sender for the swap call"},"returns":{"_0":"bytes4 The function selector for the hook","_1":"BeforeSwapDelta The hook's delta in specified and unspecified currencies. Positive: the hook is owed/took currency, negative: the hook owes/sent currency","_2":"uint24 Optionally override the lp fee, only used if three conditions are met: 1. the Pool has a dynamic fee, 2. the value's 2nd highest bit is set (23rd bit, 0x400000), and 3. the value is less than or equal to the maximum fee (1 million)"}},"unlockCallback(bytes)":{"details":"Only ever used by `settleFees`: burn the claim for a credit, then take the      matching ERC-20. Net delta zero.","params":{"data":"The data that was passed to the call to unlock"},"returns":{"_0":"Any data that you want to be returned from the unlock call"}}},"stateVariables":{"REQUIRED_FLAGS":{"details":"beforeSwap | beforeSwapReturnDelta | afterSwap | afterSwapReturnDelta."},"_feeTakenInBeforeSwap":{"details":"Handoff from `beforeSwap` to `afterSwap` within a single swap. Written and      cleared inside the same `PoolManager.swap` call, never observable across      transactions."}},"title":"LaunchpadHook","version":1},"userdoc":{"events":{"FeeDeferredAsClaim(address,uint256)":{"notice":"The singleton could not cover the fee in ERC-20, so it was taken as a claim."},"FeeSettled(address,uint256)":{"notice":"A deferred claim was converted back into ERC-20 and forwarded on."}},"kind":"user","methods":{"PROTOCOL_FEE_BPS()":{"notice":"Protocol fee charged on the stock side of every buy. 1%."},"activePoolsOnDay(uint256)":{"notice":"How many distinct launch pools traded on a given day-bucket."},"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)":{"notice":"The hook called after a swap"},"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)":{"notice":"The hook called before a swap"},"currentDay()":{"notice":"The current day bucket, matching the FeeCollector's."},"poolsEverTraded()":{"notice":"Number of distinct launch pools that have ever traded."},"settleAllFees()":{"notice":"`settleFees` for every token that has ever deferred a fee."},"settleFees(address)":{"notice":"Convert one token's deferred fee claims back into TokenizedStock and forward         them to the FeeCollector. Permissionless; normally unnecessary, because trades         clear the backlog on their own."},"totalFeesCharged()":{"notice":"Cumulative protocol fees charged, in TokenizedStock."},"totalStockLocked()":{"notice":"Net TokenizedStock sitting in launch pools. Launch pools start empty of stock         (liquidity is single-sided), so this is exactly stock-denominated TVL."},"totalUnsettledFees()":{"notice":"Fees charged but still held as ERC-6909 claims, not yet pushed to the FeeCollector."},"totalVolume()":{"notice":"Cumulative traded volume across every launch pool, in TokenizedStock terms."},"unlockCallback(bytes)":{"notice":"Called by the pool manager on `msg.sender` when the manager is unlocked"}},"notice":"The Uniswap v4 hook attached to every launchpad pool. It is the protocol's         cash register and its meter.","version":1}},"settings":{"compilationTarget":{"src/LaunchpadHook.sol":"LaunchpadHook"},"evmVersion":"cancun","libraries":{},"metadata":{"bytecodeHash":"none"},"optimizer":{"enabled":true,"runs":200},"remappings":[":@ensdomains/=lib/v4-periphery/lib/v4-core/node_modules/@ensdomains/",":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",":@uniswap/v4-core/=lib/v4-periphery/lib/v4-core/",":ds-test/=lib/v4-periphery/lib/v4-core/lib/forge-std/lib/ds-test/src/",":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",":forge-gas-snapshot/=lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/src/",":forge-std/=lib/forge-std/src/",":halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",":hardhat/=lib/v4-periphery/lib/v4-core/node_modules/hardhat/",":openzeppelin-contracts/=lib/openzeppelin-contracts/",":permit2/=lib/v4-periphery/lib/permit2/",":solmate/=lib/v4-periphery/lib/v4-core/lib/solmate/",":v4-core/=lib/v4-periphery/lib/v4-core/src/",":v4-periphery/=lib/v4-periphery/"]},"sources":{"lib/openzeppelin-contracts/contracts/interfaces/IERC1363.sol":{"keccak256":"0xd5ea07362ab630a6a3dee4285a74cf2377044ca2e4be472755ad64d7c5d4b69d","license":"MIT","urls":["bzz-raw://da5e832b40fc5c3145d3781e2e5fa60ac2052c9d08af7e300dc8ab80c4343100","dweb:/ipfs/QmTzf7N5ZUdh5raqtzbM11yexiUoLC9z3Ws632MCuycq1d"]},"lib/openzeppelin-contracts/contracts/interfaces/IERC165.sol":{"keccak256":"0x0afcb7e740d1537b252cb2676f600465ce6938398569f09ba1b9ca240dde2dfc","license":"MIT","urls":["bzz-raw://1c299900ac4ec268d4570ecef0d697a3013cd11a6eb74e295ee3fbc945056037","dweb:/ipfs/Qmab9owJoxcA7vJT5XNayCMaUR1qxqj1NDzzisduwaJMcZ"]},"lib/openzeppelin-contracts/contracts/interfaces/IERC20.sol":{"keccak256":"0x1a6221315ce0307746c2c4827c125d821ee796c74a676787762f4778671d4f44","license":"MIT","urls":["bzz-raw://1bb2332a7ee26dd0b0de9b7fe266749f54820c99ab6a3bcb6f7e6b751d47ee2d","dweb:/ipfs/QmcRWpaBeCYkhy68PR3B4AgD7asuQk7PwkWxrvJbZcikLF"]},"lib/openzeppelin-contracts/contracts/interfaces/IERC20Metadata.sol":{"keccak256":"0xd735962e3d6660884153ba8a972b5f100dde4c482f2ff1c525ba7fdefb154cbd","license":"MIT","urls":["bzz-raw://5a264d17b093f585844b0d977e9f60555b8c8d6513b304fde863cdf652a0d336","dweb:/ipfs/QmWXfaJisjVnrjTUjZGryZpMob9wKivvtbodLS3PTc1ttq"]},"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol":{"keccak256":"0x74ed01eb66b923d0d0cfe3be84604ac04b76482a55f9dd655e1ef4d367f95bc2","license":"MIT","urls":["bzz-raw://5282825a626cfe924e504274b864a652b0023591fa66f06a067b25b51ba9b303","dweb:/ipfs/QmeCfPykghhMc81VJTrHTC7sF6CRvaA1FXVq2pJhwYp1dV"]},"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol":{"keccak256":"0xd6fa4088198f04eef10c5bce8a2f4d60554b7ec4b987f684393c01bf79b94d9f","license":"MIT","urls":["bzz-raw://f95ee0bbd4dd3ac730d066ba3e785ded4565e890dbec2fa7d3b9fe3bad9d0d6e","dweb:/ipfs/QmSLr6bHkPFWT7ntj34jmwfyskpwo97T9jZUrk5sz3sdtR"]},"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol":{"keccak256":"0x318ea37780610ca7808852275651885d428669402b81488cb7434fde361e9704","license":"MIT","urls":["bzz-raw://4aad80ad93cedad85619900fd7c2084c4d2f4b28f1dbda27e491c5f4fd31025d","dweb:/ipfs/QmUyXtX7FUi2u1W5fs7ufka9XkRVb5ss2menQHTsrsSmqZ"]},"lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol":{"keccak256":"0x8891738ffe910f0cf2da09566928589bf5d63f4524dd734fd9cedbac3274dd5c","license":"MIT","urls":["bzz-raw://971f954442df5c2ef5b5ebf1eb245d7105d9fbacc7386ee5c796df1d45b21617","dweb:/ipfs/QmadRjHbkicwqwwh61raUEapaVEtaLMcYbQZWs9gUkgj3u"]},"lib/v4-periphery/lib/v4-core/src/interfaces/IExtsload.sol":{"keccak256":"0x80b53ca4907d6f0088c3b931f2b72cad1dc4615a95094d96bd0fb8dff8d5ba43","license":"MIT","urls":["bzz-raw://375c69148622aab7a3537d5fd37d373a8e9731022c8d87bdaee46233b0a99fe1","dweb:/ipfs/QmXFjdoYRxsA5B1kyuxEXgNf3FBoL1zPvy26Qy8EtpdFRN"]},"lib/v4-periphery/lib/v4-core/src/interfaces/IExttload.sol":{"keccak256":"0xc6b68283ebd8d1c789df536756726eed51c589134bb20821b236a0d22a135937","license":"MIT","urls":["bzz-raw://294394f72dfc219689209f4130d85601dfd0d63c8d47578050d312db70f9b6c8","dweb:/ipfs/QmTDMQ3oxCGHgEBU48a3Lp4S1rRjc8vVCxkhE5ZNej1bsY"]},"lib/v4-periphery/lib/v4-core/src/interfaces/IHooks.sol":{"keccak256":"0xc131ffa2d04c10a012fe715fe2c115811526b7ea34285cf0a04ce7ce8320da8d","license":"MIT","urls":["bzz-raw://3b212358897db5d99c21244d88f97b2e788527552cb430629b472a8cc6289aec","dweb:/ipfs/QmQtwV4dDe2RYk2ErLpaAX7U82jWh1L6Lw2HRuKDvBi84G"]},"lib/v4-periphery/lib/v4-core/src/interfaces/IPoolManager.sol":{"keccak256":"0xbdab3544da3d32dfdf7457baa94e17d5a3012952428559e013ffac45d067038e","license":"MIT","urls":["bzz-raw://ce95ff864468e37c76adf71df061d4f3d6f3a5ec1f9bc3aea090463bc72798f4","dweb:/ipfs/QmSbWh1pLbz51yQF4HEu5NRhr8XVv9JYGEw1hq1HudAnCi"]},"lib/v4-periphery/lib/v4-core/src/interfaces/IProtocolFees.sol":{"keccak256":"0x32a666e588a2f66334430357bb1e2424fe7eebeb98a3364b1dd16eb6ccca9848","license":"MIT","urls":["bzz-raw://85751d302125881f72e5f8af051c2d5d9b1f606ebaea8ca7d04fccdd27cc252d","dweb:/ipfs/QmeRwomeh9NWm6A6fgNA4KZPQZHPpdKsPQyYsHSFmvud7J"]},"lib/v4-periphery/lib/v4-core/src/interfaces/callback/IUnlockCallback.sol":{"keccak256":"0x58c82f2bd9d7c097ed09bd0991fedc403b0ec270eb3d0158bfb095c06a03d719","license":"MIT","urls":["bzz-raw://91168ca26a10980df2cdc3fbfe8ddf372c002b7ef19e3c59a0c9870d64198f1b","dweb:/ipfs/QmUSpaM825vd1SwvF38esgbdLgYiPwefKaFERTWvUi6uSK"]},"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC20Minimal.sol":{"keccak256":"0xeccadf1bf69ba2eb51f2fe4fa511bc7bb05bbd6b9f9a3cb8e5d83d9582613e0f","license":"MIT","urls":["bzz-raw://118757369892687b99ef46ce28d6861f62c098285bd7687a4f17f7e44e5f81de","dweb:/ipfs/QmUxqbYqQtcEwwFbb9e6BBMePEaSgN8C45v6RKubD4ib8d"]},"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC6909Claims.sol":{"keccak256":"0xa586f345739e52b0488a0fe40b6e375cce67fdd25758408b0efcb5133ad96a48","license":"MIT","urls":["bzz-raw://e8c557b7e52abdbbd82e415a1acc27921446a7fd090b7d4877e52be72619547f","dweb:/ipfs/QmXE2KNPbXmGX8BQF3ei6zhzRTnhoTQg39XmqMnkhbr6QK"]},"lib/v4-periphery/lib/v4-core/src/libraries/CustomRevert.sol":{"keccak256":"0x111ed3031b6990c80a93ae35dde6b6ac0b7e6af471388fdd7461e91edda9b7de","license":"MIT","urls":["bzz-raw://c9ea883c98d6ae1829160d0977bb5195761cfd5bc81692d0a941f45717f594cd","dweb:/ipfs/QmZPwxzaeMNv536wzrAMrMswu7vMHuqPVpjcqL3YvCMoxt"]},"lib/v4-periphery/lib/v4-core/src/libraries/Hooks.sol":{"keccak256":"0xd679b4b2d429689bc44f136050ebc958fb2d7d0d3a3c7b3e48c08ab4fba09aaa","license":"MIT","urls":["bzz-raw://287190cb72840e5eb63cc7a8a1d0b9150af17d8e4ea0323f47c7e7928f2033cb","dweb:/ipfs/QmVfqWBnAQM2jUcuREDdvjcP21gNuLU35CoL3NG5CEhNcx"]},"lib/v4-periphery/lib/v4-core/src/libraries/LPFeeLibrary.sol":{"keccak256":"0xbf6914e01014e7c1044111feb7df7a3d96bb503b3da827ad8464b1955580d13b","license":"MIT","urls":["bzz-raw://33823c20a91882c9aacdcbb02f0558c05209f4d5954aa6dd4fa17c95664db475","dweb:/ipfs/QmR7owkFgpfztpp1QUg3ut3nw9iPVQqLGP4hzgmZtRUQ2J"]},"lib/v4-periphery/lib/v4-core/src/libraries/ParseBytes.sol":{"keccak256":"0x7533b13f53ee2c2c55500100b22ffd6e37e7523c27874edc98663d53a8672b15","license":"MIT","urls":["bzz-raw://82449058634fde28a085f3c59a6a5f412550c02181590593fd84c3e8b329aa17","dweb:/ipfs/Qmev4E9Au6SsE4wsArChCwfg94KhHc5gYsEsZUnjF5sRLa"]},"lib/v4-periphery/lib/v4-core/src/libraries/SafeCast.sol":{"keccak256":"0x42c4a24f996a14d358be397b71f7ec9d7daf666aaec78002c63315a6ee67aa86","license":"MIT","urls":["bzz-raw://c3db86e2ba3679105fc32edec656c70282e1fede6cab11217702443f6c26fa59","dweb:/ipfs/QmX4yaaSPdKQzYNRsezjTvZKsubzS8JRTEGFD3fPpTTCcj"]},"lib/v4-periphery/lib/v4-core/src/types/BalanceDelta.sol":{"keccak256":"0xa719c8fe51e0a9524280178f19f6851bcc3b3b60e73618f3d60905d35ae5569f","license":"MIT","urls":["bzz-raw://7436928dc9de35c6c7c5c636cb51adaf295cfd590da83b19a004ae33cbec9ef9","dweb:/ipfs/QmRJ9yZkUpzk4433GX3LgVVL8jwpbSYSUwXcucKisf3v4H"]},"lib/v4-periphery/lib/v4-core/src/types/BeforeSwapDelta.sol":{"keccak256":"0x2a774312d91285313d569da1a718c909655da5432310417692097a1d4dc83a78","license":"MIT","urls":["bzz-raw://a2c7a0379955cff9c17ab9e61f95e42909aa5947c22740f86ce940d09856f782","dweb:/ipfs/QmaAuo8UBYXsGrVuKh8iRoAAdqwtg1jDq515cW1ZRP5m9K"]},"lib/v4-periphery/lib/v4-core/src/types/Currency.sol":{"keccak256":"0x4a0b84b282577ff6f8acf13ec9f4d32dbb9348748b49611d00e68bee96609c93","license":"MIT","urls":["bzz-raw://45f9d62ab3d51b52957279e353853ba1547c3182c9a1e3d1846ada4a90263b01","dweb:/ipfs/QmS8NG84ccQS1yXVD8cv3eKX7J1UKxuJhbUfHTQR2opKF5"]},"lib/v4-periphery/lib/v4-core/src/types/PoolId.sol":{"keccak256":"0x308311916ea0f5c2fd878b6a2751eb223d170a69e33f601fae56dfe3c5d392af","license":"MIT","urls":["bzz-raw://669c2cd7ac17690b5d8831e0bda72822376c3a04b36afed6d31df4d75fe60918","dweb:/ipfs/QmT6EpkxqU8VF3WsgrZ66F3s1cCQRffR95z1HDYZz7ph6y"]},"lib/v4-periphery/lib/v4-core/src/types/PoolKey.sol":{"keccak256":"0xf89856e0580d7a4856d3187a76858377ccee9d59702d230c338d84388221b786","license":"MIT","urls":["bzz-raw://6f3118fa189025695c37fdf0bdd1190f085ad097484d3c88cf4c56d1db65f639","dweb:/ipfs/QmamXpgtB8GV1CaFLvqefPWSoikLDhMk1yU4heBnVzU8gi"]},"lib/v4-periphery/lib/v4-core/src/types/PoolOperation.sol":{"keccak256":"0x7a1a107fc1f2208abb2c9364c8c54e56e98dca27673e9441bed2b949b6382162","license":"MIT","urls":["bzz-raw://4ad2470383bc5595d5af17840c64971f457adac68895a4db41ba5c71a4478e07","dweb:/ipfs/QmdwKhBHDZFuqXrR2BfDBD9r7rB2ULGQBznsajRTkTmL4c"]},"src/LaunchpadHook.sol":{"keccak256":"0x013a0ad9066ce84adf31490b82d23d62a75e5d4fdf7d6002f0182377ac47887d","license":"MIT","urls":["bzz-raw://d0fe4b5b5628c7ccccb6370d21ad77bb27d07534cfa37bf91ca28bd0ee4f15b6","dweb:/ipfs/QmSJWazKDRaUmDUEvjr3WFLBjmB4s3Lp5XTppxoXQm1W97"]},"src/interfaces/IFeeCollector.sol":{"keccak256":"0x0a83ebc9e661980522757cb21a227ad2ad2ef2682feb343093bf86c96aff1e16","license":"MIT","urls":["bzz-raw://8dbda426b110c371feb087a0aea493de642bade5e7eda5174b39d6660de8212a","dweb:/ipfs/QmWnotezoQS4CrqPpDRj219F8o5kv24jUgQungdac23TXf"]}},"version":1},"storageLayout":{"types":{"t_bool":{"label":"bool","encoding":"inplace","numberOfBytes":"1"},"t_address":{"label":"address","encoding":"inplace","numberOfBytes":"20"},"t_uint128":{"label":"uint128","encoding":"inplace","numberOfBytes":"16"},"t_uint256":{"label":"uint256","encoding":"inplace","numberOfBytes":"32"},"t_mapping(t_address,t_bool)":{"key":"t_address","label":"mapping(address => bool)","value":"t_bool","encoding":"mapping","numberOfBytes":"32"},"t_array(t_address)dyn_storage":{"base":"t_address","label":"address[]","encoding":"dynamic_array","numberOfBytes":"32"},"t_mapping(t_address,t_uint256)":{"key":"t_address","label":"mapping(address => uint256)","value":"t_uint256","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_uint256,t_uint256)":{"key":"t_uint256","label":"mapping(uint256 => uint256)","value":"t_uint256","encoding":"mapping","numberOfBytes":"32"}},"storage":[{"slot":"0","type":"t_uint256","astId":3819,"label":"totalVolume","offset":0,"contract":"src/LaunchpadHook.sol:LaunchpadHook"},{"slot":"1","type":"t_uint256","astId":3822,"label":"totalStockLocked","offset":0,"contract":"src/LaunchpadHook.sol:LaunchpadHook"},{"slot":"2","type":"t_uint256","astId":3825,"label":"totalFeesCharged","offset":0,"contract":"src/LaunchpadHook.sol:LaunchpadHook"},{"slot":"3","type":"t_uint256","astId":3828,"label":"poolsEverTraded","offset":0,"contract":"src/LaunchpadHook.sol:LaunchpadHook"},{"slot":"4","type":"t_uint256","astId":3831,"label":"totalUnsettledFees","offset":0,"contract":"src/LaunchpadHook.sol:LaunchpadHook"},{"slot":"5","type":"t_mapping(t_address,t_uint256)","astId":3835,"label":"volumeOf","offset":0,"contract":"src/LaunchpadHook.sol:LaunchpadHook"},{"slot":"6","type":"t_mapping(t_address,t_uint256)","astId":3839,"label":"stockLockedOf","offset":0,"contract":"src/LaunchpadHook.sol:LaunchpadHook"},{"slot":"7","type":"t_mapping(t_address,t_uint256)","astId":3843,"label":"feesChargedOf","offset":0,"contract":"src/LaunchpadHook.sol:LaunchpadHook"},{"slot":"8","type":"t_mapping(t_address,t_uint256)","astId":3847,"label":"lastActiveDay","offset":0,"contract":"src/LaunchpadHook.sol:LaunchpadHook"},{"slot":"9","type":"t_mapping(t_address,t_uint256)","astId":3851,"label":"unsettledFeeOf","offset":0,"contract":"src/LaunchpadHook.sol:LaunchpadHook"},{"slot":"10","type":"t_mapping(t_uint256,t_uint256)","astId":3855,"label":"volumeOnDay","offset":0,"contract":"src/LaunchpadHook.sol:LaunchpadHook"},{"slot":"11","type":"t_mapping(t_uint256,t_uint256)","astId":3859,"label":"feesOnDay","offset":0,"contract":"src/LaunchpadHook.sol:LaunchpadHook"},{"slot":"12","type":"t_mapping(t_uint256,t_uint256)","astId":3864,"label":"activePoolsOnDay","offset":0,"contract":"src/LaunchpadHook.sol:LaunchpadHook"},{"slot":"13","type":"t_mapping(t_address,t_bool)","astId":3868,"label":"_queued","offset":0,"contract":"src/LaunchpadHook.sol:LaunchpadHook"},{"slot":"14","type":"t_array(t_address)dyn_storage","astId":3871,"label":"_unsettledTokens","offset":0,"contract":"src/LaunchpadHook.sol:LaunchpadHook"},{"slot":"15","type":"t_bool","astId":3874,"label":"_feeTakenInBeforeSwap","offset":0,"contract":"src/LaunchpadHook.sol:LaunchpadHook"},{"slot":"15","type":"t_uint128","astId":3876,"label":"_feeTakenAmount","offset":1,"contract":"src/LaunchpadHook.sol:LaunchpadHook"}]},"transientStorageLayout":null,"userdoc":{"kind":"user","events":{"FeeSettled(address,uint256)":{"notice":"A deferred claim was converted back into ERC-20 and forwarded on."},"FeeDeferredAsClaim(address,uint256)":{"notice":"The singleton could not cover the fee in ERC-20, so it was taken as a claim."}},"notice":"The Uniswap v4 hook attached to every launchpad pool. It is the protocol's         cash register and its meter.","methods":{"currentDay()":{"notice":"The current day bucket, matching the FeeCollector's."},"totalVolume()":{"notice":"Cumulative traded volume across every launch pool, in TokenizedStock terms."},"settleAllFees()":{"notice":"`settleFees` for every token that has ever deferred a fee."},"poolsEverTraded()":{"notice":"Number of distinct launch pools that have ever traded."},"PROTOCOL_FEE_BPS()":{"notice":"Protocol fee charged on the stock side of every buy. 1%."},"totalFeesCharged()":{"notice":"Cumulative protocol fees charged, in TokenizedStock."},"totalStockLocked()":{"notice":"Net TokenizedStock sitting in launch pools. Launch pools start empty of stock         (liquidity is single-sided), so this is exactly stock-denominated TVL."},"settleFees(address)":{"notice":"Convert one token's deferred fee claims back into TokenizedStock and forward         them to the FeeCollector. Permissionless; normally unnecessary, because trades         clear the backlog on their own."},"totalUnsettledFees()":{"notice":"Fees charged but still held as ERC-6909 claims, not yet pushed to the FeeCollector."},"unlockCallback(bytes)":{"notice":"Called by the pool manager on `msg.sender` when the manager is unlocked"},"activePoolsOnDay(uint256)":{"notice":"How many distinct launch pools traded on a given day-bucket."},"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)":{"notice":"The hook called before a swap"},"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)":{"notice":"The hook called after a swap"}},"version":1},"devdoc":{"kind":"dev","title":"LaunchpadHook","errors":{"SafeERC20FailedOperation(address)":[{"details":"An operation with an ERC-20 token failed."}]},"details":"WHY THIS CONTRACT EXISTS (it was not in the six-contract brief):      The brief asks for two things that cannot both be true without a hook. It asks that      the LP NFT of every launch pool be burned to 0xdead so liquidity is locked forever,      and it asks that the FeeCollector collect trading fees from those pools. In Uniswap      v4 swap fees accrue to the *position*. Burn the position's NFT and the fees it earns      become permanently unclaimable — by anyone, including the protocol. The company      would report zero revenue.      A hook resolves it. Liquidity stays provably locked (the NFT really is at 0xdead and      nobody can decrease the position), and the protocol still earns, because the hook      skims its fee off the swap itself before the pool ever sees it.      FEE DENOMINATION. Fees are charged only on BUYS, and always in TokenizedStock. That      is a deliberate product choice as much as an engineering one: it matches the thesis      (\"every buy creates demand for the stock\"), it keeps 100% of protocol revenue      denominated in the asset the treasury actually wants to report, and it means the      FeeCollector never has to liquidate a long tail of memecoins to work out what a      quarter earned. Sells are untaxed, which also keeps the blink window's \"selling is      unrestricted at all times\" promise honest.      Landing the fee in TokenizedStock in both buy shapes takes both callbacks, because      v4 only lets a hook adjust the *specified* currency in `beforeSwap` and the      *unspecified* one in `afterSwap`:        - exact-input buy  (spend N stock):   stock is the specified currency   -> beforeSwap        - exact-output buy (receive N token): stock is the unspecified currency -> afterSwap      TAKE-OR-CLAIM. `poolManager.take` moves real ERC-20 out of the singleton, so it only      works if the singleton is *already* holding enough stock at that instant. Mid-swap it      may not be: a launch pool opens with zero stock, and the buyer has not settled their      input yet. So the hook takes real tokens when the balance covers it and otherwise      mints itself an ERC-6909 claim, which always succeeds. Claims are realised      automatically on that pool's next trade, or by anyone calling `settleFees`. A thin      moment in the singleton can therefore never revert a user's swap, and no fee is ever      lost — only briefly deferred.      All volume / TVL accounting happens in `afterSwap`, where the realised `BalanceDelta`      is known, so the numbers reflect what actually swapped rather than what was requested.      No owner, no admin, no parameters to change. The fee rate is a constant.","methods":{"unlockCallback(bytes)":{"params":{"data":"The data that was passed to the call to unlock"},"details":"Only ever used by `settleFees`: burn the claim for a credit, then take the      matching ERC-20. Net delta zero.","returns":{"_0":"Any data that you want to be returned from the unlock call"}},"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)":{"params":{"key":"The key for the pool","params":"The parameters for the swap","sender":"The initial msg.sender for the swap call","hookData":"Arbitrary data handed into the PoolManager by the swapper to be be passed on to the hook"},"returns":{"_0":"bytes4 The function selector for the hook","_1":"BeforeSwapDelta The hook's delta in specified and unspecified currencies. Positive: the hook is owed/took currency, negative: the hook owes/sent currency","_2":"uint24 Optionally override the lp fee, only used if three conditions are met: 1. the Pool has a dynamic fee, 2. the value's 2nd highest bit is set (23rd bit, 0x400000), and 3. the value is less than or equal to the maximum fee (1 million)"}},"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)":{"params":{"key":"The key for the pool","delta":"The amount owed to the caller (positive) or owed to the pool (negative)","params":"The parameters for the swap","sender":"The initial msg.sender for the swap call","hookData":"Arbitrary data handed into the PoolManager by the swapper to be be passed on to the hook"},"returns":{"_0":"bytes4 The function selector for the hook","_1":"int128 The hook's delta in unspecified currency. Positive: the hook is owed/took currency, negative: the hook owes/sent currency"}}},"version":1,"stateVariables":{"REQUIRED_FLAGS":{"details":"beforeSwap | beforeSwapReturnDelta | afterSwap | afterSwapReturnDelta."},"_feeTakenInBeforeSwap":{"details":"Handoff from `beforeSwap` to `afterSwap` within a single swap. Written and      cleared inside the same `PoolManager.swap` call, never observable across      transactions."}}},"sourceIds":{"src/LaunchpadHook.sol":{"id":27},"src/interfaces/IFeeCollector.sol":{"id":28},"lib/v4-periphery/lib/v4-core/src/types/PoolId.sol":{"id":24},"lib/v4-periphery/lib/v4-core/src/types/PoolKey.sol":{"id":25},"lib/v4-periphery/lib/v4-core/src/types/Currency.sol":{"id":23},"lib/v4-periphery/lib/v4-core/src/libraries/Hooks.sol":{"id":17},"lib/v4-periphery/lib/v4-core/src/interfaces/IHooks.sol":{"id":10},"lib/v4-periphery/lib/v4-core/src/libraries/SafeCast.sol":{"id":20},"lib/v4-periphery/lib/v4-core/src/types/BalanceDelta.sol":{"id":21},"lib/v4-periphery/lib/v4-core/src/types/PoolOperation.sol":{"id":26},"lib/v4-periphery/lib/v4-core/src/interfaces/IExtsload.sol":{"id":8},"lib/v4-periphery/lib/v4-core/src/interfaces/IExttload.sol":{"id":9},"lib/v4-periphery/lib/v4-core/src/libraries/ParseBytes.sol":{"id":19},"lib/openzeppelin-contracts/contracts/interfaces/IERC20.sol":{"id":2},"lib/v4-periphery/lib/v4-core/src/types/BeforeSwapDelta.sol":{"id":22},"lib/openzeppelin-contracts/contracts/interfaces/IERC165.sol":{"id":1},"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol":{"id":4},"lib/v4-periphery/lib/v4-core/src/libraries/CustomRevert.sol":{"id":16},"lib/v4-periphery/lib/v4-core/src/libraries/LPFeeLibrary.sol":{"id":18},"lib/openzeppelin-contracts/contracts/interfaces/IERC1363.sol":{"id":0},"lib/v4-periphery/lib/v4-core/src/interfaces/IPoolManager.sol":{"id":11},"lib/v4-periphery/lib/v4-core/src/interfaces/IProtocolFees.sol":{"id":12},"lib/openzeppelin-contracts/contracts/interfaces/IERC20Metadata.sol":{"id":3},"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol":{"id":6},"lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol":{"id":7},"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC20Minimal.sol":{"id":14},"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC6909Claims.sol":{"id":15},"lib/v4-periphery/lib/v4-core/src/interfaces/callback/IUnlockCallback.sol":{"id":13},"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol":{"id":5}},"additionalInput":null,"stdJsonInput":{"sources":{"src/LaunchpadHook.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\nimport {IHooks} from \"@uniswap/v4-core/src/interfaces/IHooks.sol\";\nimport {IPoolManager} from \"@uniswap/v4-core/src/interfaces/IPoolManager.sol\";\nimport {IUnlockCallback} from \"@uniswap/v4-core/src/interfaces/callback/IUnlockCallback.sol\";\nimport {Hooks} from \"@uniswap/v4-core/src/libraries/Hooks.sol\";\nimport {PoolKey} from \"@uniswap/v4-core/src/types/PoolKey.sol\";\nimport {PoolId, PoolIdLibrary} from \"@uniswap/v4-core/src/types/PoolId.sol\";\nimport {Currency, CurrencyLibrary} from \"@uniswap/v4-core/src/types/Currency.sol\";\nimport {BalanceDelta} from \"@uniswap/v4-core/src/types/BalanceDelta.sol\";\nimport {\n    BeforeSwapDelta,\n    toBeforeSwapDelta,\n    BeforeSwapDeltaLibrary\n} from \"@uniswap/v4-core/src/types/BeforeSwapDelta.sol\";\nimport {SwapParams, ModifyLiquidityParams} from \"@uniswap/v4-core/src/types/PoolOperation.sol\";\nimport {IERC20} from \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport {SafeERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IFeeCollector} from \"./interfaces/IFeeCollector.sol\";\n\n/// @notice The hook permissions LaunchpadHook declares, and therefore the exact value the\n///         low 14 bits of its address must equal.\n/// @dev Lives in a library so the deployment script can mine against the same constant the\n///      hook checks itself against, rather than a copy that could drift.\nlibrary LaunchpadHookFlags {\n    uint160 internal constant REQUIRED = uint160(\n        Hooks.BEFORE_SWAP_FLAG | Hooks.BEFORE_SWAP_RETURNS_DELTA_FLAG | Hooks.AFTER_SWAP_FLAG\n            | Hooks.AFTER_SWAP_RETURNS_DELTA_FLAG\n    );\n}\n\n/// @title LaunchpadHook\n/// @notice The Uniswap v4 hook attached to every launchpad pool. It is the protocol's\n///         cash register and its meter.\n///\n/// @dev WHY THIS CONTRACT EXISTS (it was not in the six-contract brief):\n///\n///      The brief asks for two things that cannot both be true without a hook. It asks that\n///      the LP NFT of every launch pool be burned to 0xdead so liquidity is locked forever,\n///      and it asks that the FeeCollector collect trading fees from those pools. In Uniswap\n///      v4 swap fees accrue to the *position*. Burn the position's NFT and the fees it earns\n///      become permanently unclaimable — by anyone, including the protocol. The company\n///      would report zero revenue.\n///\n///      A hook resolves it. Liquidity stays provably locked (the NFT really is at 0xdead and\n///      nobody can decrease the position), and the protocol still earns, because the hook\n///      skims its fee off the swap itself before the pool ever sees it.\n///\n///      FEE DENOMINATION. Fees are charged only on BUYS, and always in TokenizedStock. That\n///      is a deliberate product choice as much as an engineering one: it matches the thesis\n///      (\"every buy creates demand for the stock\"), it keeps 100% of protocol revenue\n///      denominated in the asset the treasury actually wants to report, and it means the\n///      FeeCollector never has to liquidate a long tail of memecoins to work out what a\n///      quarter earned. Sells are untaxed, which also keeps the blink window's \"selling is\n///      unrestricted at all times\" promise honest.\n///\n///      Landing the fee in TokenizedStock in both buy shapes takes both callbacks, because\n///      v4 only lets a hook adjust the *specified* currency in `beforeSwap` and the\n///      *unspecified* one in `afterSwap`:\n///        - exact-input buy  (spend N stock):   stock is the specified currency   -> beforeSwap\n///        - exact-output buy (receive N token): stock is the unspecified currency -> afterSwap\n///\n///      TAKE-OR-CLAIM. `poolManager.take` moves real ERC-20 out of the singleton, so it only\n///      works if the singleton is *already* holding enough stock at that instant. Mid-swap it\n///      may not be: a launch pool opens with zero stock, and the buyer has not settled their\n///      input yet. So the hook takes real tokens when the balance covers it and otherwise\n///      mints itself an ERC-6909 claim, which always succeeds. Claims are realised\n///      automatically on that pool's next trade, or by anyone calling `settleFees`. A thin\n///      moment in the singleton can therefore never revert a user's swap, and no fee is ever\n///      lost — only briefly deferred.\n///\n///      All volume / TVL accounting happens in `afterSwap`, where the realised `BalanceDelta`\n///      is known, so the numbers reflect what actually swapped rather than what was requested.\n///\n///      No owner, no admin, no parameters to change. The fee rate is a constant.\ncontract LaunchpadHook is IHooks, IUnlockCallback {\n    using SafeERC20 for IERC20;\n    using PoolIdLibrary for PoolKey;\n    using CurrencyLibrary for Currency;\n\n    /// @notice Protocol fee charged on the stock side of every buy. 1%.\n    uint256 public constant PROTOCOL_FEE_BPS = 100;\n    uint256 private constant BPS_DENOMINATOR = 10_000;\n\n    /// @dev beforeSwap | beforeSwapReturnDelta | afterSwap | afterSwapReturnDelta.\n    uint160 public constant REQUIRED_FLAGS = LaunchpadHookFlags.REQUIRED;\n\n    IPoolManager public immutable poolManager;\n    IERC20 public immutable tokenizedStock;\n    Currency public immutable stockCurrency;\n    IFeeCollector public immutable feeCollector;\n\n    // --- protocol-wide meters (written only from inside a real PoolManager.swap) ---\n\n    /// @notice Cumulative traded volume across every launch pool, in TokenizedStock terms.\n    uint256 public totalVolume;\n    /// @notice Net TokenizedStock sitting in launch pools. Launch pools start empty of stock\n    ///         (liquidity is single-sided), so this is exactly stock-denominated TVL.\n    uint256 public totalStockLocked;\n    /// @notice Cumulative protocol fees charged, in TokenizedStock.\n    uint256 public totalFeesCharged;\n    /// @notice Number of distinct launch pools that have ever traded.\n    uint256 public poolsEverTraded;\n    /// @notice Fees charged but still held as ERC-6909 claims, not yet pushed to the FeeCollector.\n    uint256 public totalUnsettledFees;\n\n    mapping(address token => uint256) public volumeOf;\n    mapping(address token => uint256) public stockLockedOf;\n    mapping(address token => uint256) public feesChargedOf;\n    mapping(address token => uint256) public lastActiveDay;\n    mapping(address token => uint256) public unsettledFeeOf;\n\n    mapping(uint256 day => uint256) public volumeOnDay;\n    mapping(uint256 day => uint256) public feesOnDay;\n    /// @notice How many distinct launch pools traded on a given day-bucket.\n    mapping(uint256 day => uint256) public activePoolsOnDay;\n\n    mapping(address token => bool) private _queued;\n    address[] private _unsettledTokens;\n\n    /// @dev Handoff from `beforeSwap` to `afterSwap` within a single swap. Written and\n    ///      cleared inside the same `PoolManager.swap` call, never observable across\n    ///      transactions.\n    bool private _feeTakenInBeforeSwap;\n    uint128 private _feeTakenAmount;\n\n    error NotPoolManager();\n    error InvalidHookAddress();\n    error HookNotImplemented();\n    error PoolMustPairTokenizedStock();\n\n    event ProtocolFeeCharged(address indexed token, PoolId indexed poolId, uint256 stockVolume, uint256 feeAmount);\n    /// @notice The singleton could not cover the fee in ERC-20, so it was taken as a claim.\n    event FeeDeferredAsClaim(address indexed token, uint256 amount);\n    /// @notice A deferred claim was converted back into ERC-20 and forwarded on.\n    event FeeSettled(address indexed token, uint256 amount);\n\n    modifier onlyPoolManager() {\n        if (msg.sender != address(poolManager)) revert NotPoolManager();\n        _;\n    }\n\n    constructor(IPoolManager poolManager_, IERC20 tokenizedStock_, IFeeCollector feeCollector_) {\n        // v4 reads a hook's permissions straight out of its address, so this contract only\n        // works at a mined CREATE2 address. Fail at construction rather than at first swap.\n        if (uint160(address(this)) & Hooks.ALL_HOOK_MASK != REQUIRED_FLAGS) revert InvalidHookAddress();\n\n        poolManager = poolManager_;\n        tokenizedStock = tokenizedStock_;\n        stockCurrency = Currency.wrap(address(tokenizedStock_));\n        feeCollector = feeCollector_;\n\n        // The hook pushes fees onward with `IFeeCollector.recordFee`, which pulls. One\n        // approval at construction, never touched again.\n        tokenizedStock_.forceApprove(address(feeCollector_), type(uint256).max);\n    }\n\n    /// @notice The current day bucket, matching the FeeCollector's.\n    function currentDay() public view returns (uint256) {\n        return block.timestamp / 1 days;\n    }\n\n    // -------------------------------------------------------------------------\n    // Swap hooks\n    // -------------------------------------------------------------------------\n\n    /// @inheritdoc IHooks\n    function beforeSwap(address, PoolKey calldata key, SwapParams calldata params, bytes calldata)\n        external\n        override\n        onlyPoolManager\n        returns (bytes4, BeforeSwapDelta, uint24)\n    {\n        (bool stockIsCurrency0, address token) = _resolvePair(key);\n\n        // Every trade is a chance to clear this pool's deferred fees, and by now the pool\n        // is holding reserves it was not holding when they were deferred.\n        _realizeDeferred(token);\n\n        bool isBuy = params.zeroForOne == stockIsCurrency0;\n\n        // Only the exact-input buy is charged here; every other shape falls through to\n        // afterSwap. Reset the handoff either way so a prior swap cannot leak into this one.\n        if (!isBuy || params.amountSpecified >= 0) {\n            _feeTakenInBeforeSwap = false;\n            _feeTakenAmount = 0;\n            return (IHooks.beforeSwap.selector, BeforeSwapDeltaLibrary.ZERO_DELTA, 0);\n        }\n\n        uint256 amountIn = uint256(-params.amountSpecified);\n        uint256 fee = (amountIn * PROTOCOL_FEE_BPS) / BPS_DENOMINATOR;\n\n        _feeTakenInBeforeSwap = true;\n        _feeTakenAmount = uint128(fee);\n\n        if (fee == 0) {\n            return (IHooks.beforeSwap.selector, BeforeSwapDeltaLibrary.ZERO_DELTA, 0);\n        }\n\n        // Pull the fee out of the pool now; the positive specified-delta returned below is\n        // what pays that debt back, so the swapper funds it and only `amountIn - fee`\n        // reaches the pool.\n        _collectFee(token, fee);\n\n        return (\n            IHooks.beforeSwap.selector,\n            toBeforeSwapDelta(int128(uint128(fee)), 0),\n            0 // no lp fee override; launch pools use a static fee\n        );\n    }\n\n    /// @inheritdoc IHooks\n    function afterSwap(address, PoolKey calldata key, SwapParams calldata params, BalanceDelta delta, bytes calldata)\n        external\n        override\n        onlyPoolManager\n        returns (bytes4, int128)\n    {\n        (bool stockIsCurrency0, address token) = _resolvePair(key);\n        bool isBuy = params.zeroForOne == stockIsCurrency0;\n\n        // `delta` is the raw pool-side delta, so it already excludes anything beforeSwap\n        // skimmed. Positive = the pool owes the swapper, negative = the swapper owes the pool.\n        int128 stockDelta = stockIsCurrency0 ? delta.amount0() : delta.amount1();\n\n        if (_feeTakenInBeforeSwap) {\n            // Exact-input buy, already charged. Meter it off the realised delta.\n            uint256 fee = _feeTakenAmount;\n            _feeTakenInBeforeSwap = false;\n            _feeTakenAmount = 0;\n\n            uint256 stockIntoPool = uint256(uint128(-stockDelta));\n            _meter(token, key, stockIntoPool + fee, fee, true, stockIntoPool);\n            return (IHooks.afterSwap.selector, 0);\n        }\n\n        if (isBuy) {\n            // Exact-output buy: stock is the unspecified currency, so this is where the fee\n            // can be added. `stockDelta` is negative — the stock the swapper paid in.\n            uint256 stockIntoPool = uint256(uint128(-stockDelta));\n            uint256 fee = (stockIntoPool * PROTOCOL_FEE_BPS) / BPS_DENOMINATOR;\n\n            if (fee != 0) _collectFee(token, fee);\n            _meter(token, key, stockIntoPool + fee, fee, true, stockIntoPool);\n\n            // Positive: the hook is owed this, so the swapper pays it on top.\n            return (IHooks.afterSwap.selector, int128(uint128(fee)));\n        }\n\n        // Sell. Untaxed, always allowed. Stock leaves the pool.\n        uint256 stockOut = uint256(uint128(stockDelta));\n        _meter(token, key, stockOut, 0, false, stockOut);\n        return (IHooks.afterSwap.selector, 0);\n    }\n\n    // -------------------------------------------------------------------------\n    // Deferred-fee settlement\n    // -------------------------------------------------------------------------\n\n    /// @notice Convert one token's deferred fee claims back into TokenizedStock and forward\n    ///         them to the FeeCollector. Permissionless; normally unnecessary, because trades\n    ///         clear the backlog on their own.\n    function settleFees(address token) public returns (uint256 settled) {\n        uint256 owed = unsettledFeeOf[token];\n        if (owed == 0) return 0;\n\n        uint256 available = tokenizedStock.balanceOf(address(poolManager));\n        settled = owed < available ? owed : available;\n        if (settled == 0) return 0;\n\n        unsettledFeeOf[token] = owed - settled;\n        totalUnsettledFees -= settled;\n\n        poolManager.unlock(abi.encode(settled));\n        feeCollector.recordFee(token, settled);\n        emit FeeSettled(token, settled);\n    }\n\n    /// @notice `settleFees` for every token that has ever deferred a fee.\n    function settleAllFees() external returns (uint256 total) {\n        uint256 n = _unsettledTokens.length;\n        for (uint256 i = 0; i < n; ++i) {\n            total += settleFees(_unsettledTokens[i]);\n        }\n    }\n\n    /// @inheritdoc IUnlockCallback\n    /// @dev Only ever used by `settleFees`: burn the claim for a credit, then take the\n    ///      matching ERC-20. Net delta zero.\n    function unlockCallback(bytes calldata data) external returns (bytes memory) {\n        if (msg.sender != address(poolManager)) revert NotPoolManager();\n        uint256 amount = abi.decode(data, (uint256));\n        poolManager.burn(address(this), stockCurrency.toId(), amount);\n        poolManager.take(stockCurrency, address(this), amount);\n        return \"\";\n    }\n\n    function unsettledTokens() external view returns (address[] memory) {\n        return _unsettledTokens;\n    }\n\n    // -------------------------------------------------------------------------\n    // Internals\n    // -------------------------------------------------------------------------\n\n    /// @dev Moves a charged fee out of the pool. Assumes the PoolManager is unlocked and\n    ///      that the caller returns a matching hook delta to cover the debit.\n    function _collectFee(address token, uint256 fee) private {\n        if (tokenizedStock.balanceOf(address(poolManager)) >= fee) {\n            poolManager.take(stockCurrency, address(this), fee);\n            feeCollector.recordFee(token, fee);\n        } else {\n            // Not enough ERC-20 in the singleton this instant. Take a claim instead — it\n            // always succeeds — and realise it on the next trade.\n            poolManager.mint(address(this), stockCurrency.toId(), fee);\n            if (!_queued[token]) {\n                _queued[token] = true;\n                _unsettledTokens.push(token);\n            }\n            unsettledFeeOf[token] += fee;\n            totalUnsettledFees += fee;\n            emit FeeDeferredAsClaim(token, fee);\n        }\n    }\n\n    /// @dev Same as `settleFees` but for use inside an existing unlock (i.e. from a hook\n    ///      callback), where opening another one would revert.\n    function _realizeDeferred(address token) private {\n        uint256 owed = unsettledFeeOf[token];\n        if (owed == 0) return;\n\n        uint256 available = tokenizedStock.balanceOf(address(poolManager));\n        uint256 amount = owed < available ? owed : available;\n        if (amount == 0) return;\n\n        unsettledFeeOf[token] = owed - amount;\n        totalUnsettledFees -= amount;\n\n        poolManager.burn(address(this), stockCurrency.toId(), amount);\n        poolManager.take(stockCurrency, address(this), amount);\n        feeCollector.recordFee(token, amount);\n        emit FeeSettled(token, amount);\n    }\n\n    /// @dev Works out which side of the pool is the tokenized stock, and rejects any pool\n    ///      that is not paired against it. Every launchpad pool is, by construction.\n    function _resolvePair(PoolKey calldata key) private view returns (bool stockIsCurrency0, address token) {\n        address stock = address(tokenizedStock);\n        address c0 = Currency.unwrap(key.currency0);\n        address c1 = Currency.unwrap(key.currency1);\n\n        if (c0 == stock) return (true, c1);\n        if (c1 == stock) return (false, c0);\n        revert PoolMustPairTokenizedStock();\n    }\n\n    /// @param volume     Gross stock that changed hands, fee included.\n    /// @param fee        Protocol fee charged, in stock.\n    /// @param inbound    True if stock entered the pool (a buy), false if it left (a sell).\n    /// @param lockDelta  Absolute change in the pool's stock reserves.\n    function _meter(address token, PoolKey calldata key, uint256 volume, uint256 fee, bool inbound, uint256 lockDelta)\n        private\n    {\n        uint256 day = currentDay();\n\n        // `lastActiveDay` defaults to 0, which is a real day bucket, so first-ever has to be\n        // distinguished explicitly rather than inferred from the default.\n        bool firstEver = volumeOf[token] == 0;\n        if (firstEver) ++poolsEverTraded;\n        if (firstEver || lastActiveDay[token] != day) {\n            ++activePoolsOnDay[day];\n            lastActiveDay[token] = day;\n        }\n\n        volumeOf[token] += volume;\n        totalVolume += volume;\n        volumeOnDay[day] += volume;\n\n        if (inbound) {\n            stockLockedOf[token] += lockDelta;\n            totalStockLocked += lockDelta;\n        } else {\n            // Defensive: rounding inside the pool must never make this underflow.\n            uint256 locked = stockLockedOf[token];\n            uint256 drop = lockDelta > locked ? locked : lockDelta;\n            stockLockedOf[token] = locked - drop;\n            totalStockLocked -= drop;\n        }\n\n        if (fee != 0) {\n            feesChargedOf[token] += fee;\n            totalFeesCharged += fee;\n            feesOnDay[day] += fee;\n            emit ProtocolFeeCharged(token, key.toId(), volume, fee);\n        }\n    }\n\n    // -------------------------------------------------------------------------\n    // Unused IHooks callbacks. The mined address does not carry these flags, so the\n    // PoolManager never calls them; they revert to make that explicit.\n    // -------------------------------------------------------------------------\n\n    function beforeInitialize(address, PoolKey calldata, uint160) external pure override returns (bytes4) {\n        revert HookNotImplemented();\n    }\n\n    function afterInitialize(address, PoolKey calldata, uint160, int24) external pure override returns (bytes4) {\n        revert HookNotImplemented();\n    }\n\n    function beforeAddLiquidity(address, PoolKey calldata, ModifyLiquidityParams calldata, bytes calldata)\n        external\n        pure\n        override\n        returns (bytes4)\n    {\n        revert HookNotImplemented();\n    }\n\n    function afterAddLiquidity(\n        address,\n        PoolKey calldata,\n        ModifyLiquidityParams calldata,\n        BalanceDelta,\n        BalanceDelta,\n        bytes calldata\n    ) external pure override returns (bytes4, BalanceDelta) {\n        revert HookNotImplemented();\n    }\n\n    function beforeRemoveLiquidity(address, PoolKey calldata, ModifyLiquidityParams calldata, bytes calldata)\n        external\n        pure\n        override\n        returns (bytes4)\n    {\n        revert HookNotImplemented();\n    }\n\n    function afterRemoveLiquidity(\n        address,\n        PoolKey calldata,\n        ModifyLiquidityParams calldata,\n        BalanceDelta,\n        BalanceDelta,\n        bytes calldata\n    ) external pure override returns (bytes4, BalanceDelta) {\n        revert HookNotImplemented();\n    }\n\n    function beforeDonate(address, PoolKey calldata, uint256, uint256, bytes calldata)\n        external\n        pure\n        override\n        returns (bytes4)\n    {\n        revert HookNotImplemented();\n    }\n\n    function afterDonate(address, PoolKey calldata, uint256, uint256, bytes calldata)\n        external\n        pure\n        override\n        returns (bytes4)\n    {\n        revert HookNotImplemented();\n    }\n}\n"},"src/interfaces/IFeeCollector.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\n/// @notice Sink for protocol fees skimmed by the LaunchpadHook, and the 50/30/20 splitter.\ninterface IFeeCollector {\n    /// @notice Deposit `amount` of TokenizedStock and attribute it to `token`.\n    /// @dev Permissionless by design: the caller must actually transfer the stock in,\n    ///      so there is nothing to gain by calling it. This is what lets the hook push\n    ///      fees without the FeeCollector needing to trust (or even know) the hook,\n    ///      which keeps the deployment graph acyclic.\n    function recordFee(address token, uint256 amount) external;\n\n    function pendingFees(address token) external view returns (uint256);\n\n    function totalCollected() external view returns (uint256);\n\n    function totalDistributed() external view returns (uint256);\n\n    /// @notice Cumulative stock paid out to shareholders as dividends.\n    function totalDividends() external view returns (uint256);\n\n    /// @notice Cumulative stock sold to pay the operator.\n    function stockConverted() external view returns (uint256);\n\n    /// @notice Cumulative USDG delivered to the operator.\n    function operatorReceived() external view returns (uint256);\n\n    /// @notice Operator-earmarked stock waiting on conversion-pool liquidity.\n    function pendingConversion() external view returns (uint256);\n\n    function collectedOnDay(uint256 day) external view returns (uint256);\n\n    function distributedOnDay(uint256 day) external view returns (uint256);\n\n    function dividendsOnDay(uint256 day) external view returns (uint256);\n\n    function operatorOnDay(uint256 day) external view returns (uint256);\n\n    function feeTokenCount() external view returns (uint256);\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/PoolId.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {PoolKey} from \"./PoolKey.sol\";\n\ntype PoolId is bytes32;\n\n/// @notice Library for computing the ID of a pool\nlibrary PoolIdLibrary {\n    /// @notice Returns value equal to keccak256(abi.encode(poolKey))\n    function toId(PoolKey memory poolKey) internal pure returns (PoolId poolId) {\n        assembly (\"memory-safe\") {\n            // 0xa0 represents the total size of the poolKey struct (5 slots of 32 bytes)\n            poolId := keccak256(poolKey, 0xa0)\n        }\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/PoolKey.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {Currency} from \"./Currency.sol\";\nimport {IHooks} from \"../interfaces/IHooks.sol\";\nimport {PoolIdLibrary} from \"./PoolId.sol\";\n\nusing PoolIdLibrary for PoolKey global;\n\n/// @notice Returns the key for identifying a pool\nstruct PoolKey {\n    /// @notice The lower currency of the pool, sorted numerically\n    Currency currency0;\n    /// @notice The higher currency of the pool, sorted numerically\n    Currency currency1;\n    /// @notice The pool LP fee, capped at 1_000_000. If the highest bit is 1, the pool has a dynamic fee and must be exactly equal to 0x800000\n    uint24 fee;\n    /// @notice Ticks that involve positions must be a multiple of tick spacing\n    int24 tickSpacing;\n    /// @notice The hooks of the pool\n    IHooks hooks;\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/Currency.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {IERC20Minimal} from \"../interfaces/external/IERC20Minimal.sol\";\nimport {CustomRevert} from \"../libraries/CustomRevert.sol\";\n\ntype Currency is address;\n\nusing {greaterThan as >, lessThan as <, greaterThanOrEqualTo as >=, equals as ==} for Currency global;\nusing CurrencyLibrary for Currency global;\n\nfunction equals(Currency currency, Currency other) pure returns (bool) {\n    return Currency.unwrap(currency) == Currency.unwrap(other);\n}\n\nfunction greaterThan(Currency currency, Currency other) pure returns (bool) {\n    return Currency.unwrap(currency) > Currency.unwrap(other);\n}\n\nfunction lessThan(Currency currency, Currency other) pure returns (bool) {\n    return Currency.unwrap(currency) < Currency.unwrap(other);\n}\n\nfunction greaterThanOrEqualTo(Currency currency, Currency other) pure returns (bool) {\n    return Currency.unwrap(currency) >= Currency.unwrap(other);\n}\n\n/// @title CurrencyLibrary\n/// @dev This library allows for transferring and holding native tokens and ERC20 tokens\nlibrary CurrencyLibrary {\n    /// @notice Additional context for ERC-7751 wrapped error when a native transfer fails\n    error NativeTransferFailed();\n\n    /// @notice Additional context for ERC-7751 wrapped error when an ERC20 transfer fails\n    error ERC20TransferFailed();\n\n    /// @notice A constant to represent the native currency\n    Currency public constant ADDRESS_ZERO = Currency.wrap(address(0));\n\n    function transfer(Currency currency, address to, uint256 amount) internal {\n        // altered from https://github.com/transmissions11/solmate/blob/44a9963d4c78111f77caa0e65d677b8b46d6f2e6/src/utils/SafeTransferLib.sol\n        // modified custom error selectors\n\n        bool success;\n        if (currency.isAddressZero()) {\n            assembly (\"memory-safe\") {\n                // Transfer the ETH and revert if it fails.\n                success := call(gas(), to, amount, 0, 0, 0, 0)\n            }\n            // revert with NativeTransferFailed, containing the bubbled up error as an argument\n            if (!success) {\n                CustomRevert.bubbleUpAndRevertWith(to, bytes4(0), NativeTransferFailed.selector);\n            }\n        } else {\n            assembly (\"memory-safe\") {\n                // Get a pointer to some free memory.\n                let fmp := mload(0x40)\n\n                // Write the abi-encoded calldata into memory, beginning with the function selector.\n                mstore(fmp, 0xa9059cbb00000000000000000000000000000000000000000000000000000000)\n                mstore(add(fmp, 4), and(to, 0xffffffffffffffffffffffffffffffffffffffff)) // Append and mask the \"to\" argument.\n                mstore(add(fmp, 36), amount) // Append the \"amount\" argument. Masking not required as it's a full 32 byte type.\n\n                success :=\n                    and(\n                        // Set success to whether the call reverted, if not we check it either\n                        // returned exactly 1 (can't just be non-zero data), or had no return data.\n                        or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),\n                        // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.\n                        // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.\n                        // Counterintuitively, this call must be positioned second to the or() call in the\n                        // surrounding and() call or else returndatasize() will be zero during the computation.\n                        call(gas(), currency, 0, fmp, 68, 0, 32)\n                    )\n\n                // Now clean the memory we used\n                mstore(fmp, 0) // 4 byte `selector` and 28 bytes of `to` were stored here\n                mstore(add(fmp, 0x20), 0) // 4 bytes of `to` and 28 bytes of `amount` were stored here\n                mstore(add(fmp, 0x40), 0) // 4 bytes of `amount` were stored here\n            }\n            // revert with ERC20TransferFailed, containing the bubbled up error as an argument\n            if (!success) {\n                CustomRevert.bubbleUpAndRevertWith(\n                    Currency.unwrap(currency), IERC20Minimal.transfer.selector, ERC20TransferFailed.selector\n                );\n            }\n        }\n    }\n\n    function balanceOfSelf(Currency currency) internal view returns (uint256) {\n        if (currency.isAddressZero()) {\n            return address(this).balance;\n        } else {\n            return IERC20Minimal(Currency.unwrap(currency)).balanceOf(address(this));\n        }\n    }\n\n    function balanceOf(Currency currency, address owner) internal view returns (uint256) {\n        if (currency.isAddressZero()) {\n            return owner.balance;\n        } else {\n            return IERC20Minimal(Currency.unwrap(currency)).balanceOf(owner);\n        }\n    }\n\n    function isAddressZero(Currency currency) internal pure returns (bool) {\n        return Currency.unwrap(currency) == Currency.unwrap(ADDRESS_ZERO);\n    }\n\n    function toId(Currency currency) internal pure returns (uint256) {\n        return uint160(Currency.unwrap(currency));\n    }\n\n    // If the upper 12 bytes are non-zero, they will be zero-ed out\n    // Therefore, fromId() and toId() are not inverses of each other\n    function fromId(uint256 id) internal pure returns (Currency) {\n        return Currency.wrap(address(uint160(id)));\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/libraries/Hooks.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {PoolKey} from \"../types/PoolKey.sol\";\nimport {IHooks} from \"../interfaces/IHooks.sol\";\nimport {SafeCast} from \"./SafeCast.sol\";\nimport {LPFeeLibrary} from \"./LPFeeLibrary.sol\";\nimport {BalanceDelta, toBalanceDelta, BalanceDeltaLibrary} from \"../types/BalanceDelta.sol\";\nimport {BeforeSwapDelta, BeforeSwapDeltaLibrary} from \"../types/BeforeSwapDelta.sol\";\nimport {IPoolManager} from \"../interfaces/IPoolManager.sol\";\nimport {ModifyLiquidityParams, SwapParams} from \"../types/PoolOperation.sol\";\nimport {ParseBytes} from \"./ParseBytes.sol\";\nimport {CustomRevert} from \"./CustomRevert.sol\";\n\n/// @notice V4 decides whether to invoke specific hooks by inspecting the least significant bits\n/// of the address that the hooks contract is deployed to.\n/// For example, a hooks contract deployed to address: 0x0000000000000000000000000000000000002400\n/// has the lowest bits '10 0100 0000 0000' which would cause the 'before initialize' and 'after add liquidity' hooks to be used.\nlibrary Hooks {\n    using LPFeeLibrary for uint24;\n    using Hooks for IHooks;\n    using SafeCast for int256;\n    using BeforeSwapDeltaLibrary for BeforeSwapDelta;\n    using ParseBytes for bytes;\n    using CustomRevert for bytes4;\n\n    uint160 internal constant ALL_HOOK_MASK = uint160((1 << 14) - 1);\n\n    uint160 internal constant BEFORE_INITIALIZE_FLAG = 1 << 13;\n    uint160 internal constant AFTER_INITIALIZE_FLAG = 1 << 12;\n\n    uint160 internal constant BEFORE_ADD_LIQUIDITY_FLAG = 1 << 11;\n    uint160 internal constant AFTER_ADD_LIQUIDITY_FLAG = 1 << 10;\n\n    uint160 internal constant BEFORE_REMOVE_LIQUIDITY_FLAG = 1 << 9;\n    uint160 internal constant AFTER_REMOVE_LIQUIDITY_FLAG = 1 << 8;\n\n    uint160 internal constant BEFORE_SWAP_FLAG = 1 << 7;\n    uint160 internal constant AFTER_SWAP_FLAG = 1 << 6;\n\n    uint160 internal constant BEFORE_DONATE_FLAG = 1 << 5;\n    uint160 internal constant AFTER_DONATE_FLAG = 1 << 4;\n\n    uint160 internal constant BEFORE_SWAP_RETURNS_DELTA_FLAG = 1 << 3;\n    uint160 internal constant AFTER_SWAP_RETURNS_DELTA_FLAG = 1 << 2;\n    uint160 internal constant AFTER_ADD_LIQUIDITY_RETURNS_DELTA_FLAG = 1 << 1;\n    uint160 internal constant AFTER_REMOVE_LIQUIDITY_RETURNS_DELTA_FLAG = 1 << 0;\n\n    struct Permissions {\n        bool beforeInitialize;\n        bool afterInitialize;\n        bool beforeAddLiquidity;\n        bool afterAddLiquidity;\n        bool beforeRemoveLiquidity;\n        bool afterRemoveLiquidity;\n        bool beforeSwap;\n        bool afterSwap;\n        bool beforeDonate;\n        bool afterDonate;\n        bool beforeSwapReturnDelta;\n        bool afterSwapReturnDelta;\n        bool afterAddLiquidityReturnDelta;\n        bool afterRemoveLiquidityReturnDelta;\n    }\n\n    /// @notice Thrown if the address will not lead to the specified hook calls being called\n    /// @param hooks The address of the hooks contract\n    error HookAddressNotValid(address hooks);\n\n    /// @notice Hook did not return its selector\n    error InvalidHookResponse();\n\n    /// @notice Additional context for ERC-7751 wrapped error when a hook call fails\n    error HookCallFailed();\n\n    /// @notice The hook's delta changed the swap from exactIn to exactOut or vice versa\n    error HookDeltaExceedsSwapAmount();\n\n    /// @notice Utility function intended to be used in hook constructors to ensure\n    /// the deployed hooks address causes the intended hooks to be called\n    /// @param permissions The hooks that are intended to be called\n    /// @dev permissions param is memory as the function will be called from constructors\n    function validateHookPermissions(IHooks self, Permissions memory permissions) internal pure {\n        if (\n            permissions.beforeInitialize != self.hasPermission(BEFORE_INITIALIZE_FLAG)\n                || permissions.afterInitialize != self.hasPermission(AFTER_INITIALIZE_FLAG)\n                || permissions.beforeAddLiquidity != self.hasPermission(BEFORE_ADD_LIQUIDITY_FLAG)\n                || permissions.afterAddLiquidity != self.hasPermission(AFTER_ADD_LIQUIDITY_FLAG)\n                || permissions.beforeRemoveLiquidity != self.hasPermission(BEFORE_REMOVE_LIQUIDITY_FLAG)\n                || permissions.afterRemoveLiquidity != self.hasPermission(AFTER_REMOVE_LIQUIDITY_FLAG)\n                || permissions.beforeSwap != self.hasPermission(BEFORE_SWAP_FLAG)\n                || permissions.afterSwap != self.hasPermission(AFTER_SWAP_FLAG)\n                || permissions.beforeDonate != self.hasPermission(BEFORE_DONATE_FLAG)\n                || permissions.afterDonate != self.hasPermission(AFTER_DONATE_FLAG)\n                || permissions.beforeSwapReturnDelta != self.hasPermission(BEFORE_SWAP_RETURNS_DELTA_FLAG)\n                || permissions.afterSwapReturnDelta != self.hasPermission(AFTER_SWAP_RETURNS_DELTA_FLAG)\n                || permissions.afterAddLiquidityReturnDelta != self.hasPermission(AFTER_ADD_LIQUIDITY_RETURNS_DELTA_FLAG)\n                || permissions.afterRemoveLiquidityReturnDelta\n                    != self.hasPermission(AFTER_REMOVE_LIQUIDITY_RETURNS_DELTA_FLAG)\n        ) {\n            HookAddressNotValid.selector.revertWith(address(self));\n        }\n    }\n\n    /// @notice Ensures that the hook address includes at least one hook flag or dynamic fees, or is the 0 address\n    /// @param self The hook to verify\n    /// @param fee The fee of the pool the hook is used with\n    /// @return bool True if the hook address is valid\n    function isValidHookAddress(IHooks self, uint24 fee) internal pure returns (bool) {\n        // The hook can only have a flag to return a hook delta on an action if it also has the corresponding action flag\n        if (!self.hasPermission(BEFORE_SWAP_FLAG) && self.hasPermission(BEFORE_SWAP_RETURNS_DELTA_FLAG)) return false;\n        if (!self.hasPermission(AFTER_SWAP_FLAG) && self.hasPermission(AFTER_SWAP_RETURNS_DELTA_FLAG)) return false;\n        if (!self.hasPermission(AFTER_ADD_LIQUIDITY_FLAG) && self.hasPermission(AFTER_ADD_LIQUIDITY_RETURNS_DELTA_FLAG))\n        {\n            return false;\n        }\n        if (\n            !self.hasPermission(AFTER_REMOVE_LIQUIDITY_FLAG)\n                && self.hasPermission(AFTER_REMOVE_LIQUIDITY_RETURNS_DELTA_FLAG)\n        ) return false;\n\n        // If there is no hook contract set, then fee cannot be dynamic\n        // If a hook contract is set, it must have at least 1 flag set, or have a dynamic fee\n        return address(self) == address(0)\n            ? !fee.isDynamicFee()\n            : (uint160(address(self)) & ALL_HOOK_MASK > 0 || fee.isDynamicFee());\n    }\n\n    /// @notice performs a hook call using the given calldata on the given hook that doesn't return a delta\n    /// @return result The complete data returned by the hook\n    function callHook(IHooks self, bytes memory data) internal returns (bytes memory result) {\n        bool success;\n        assembly (\"memory-safe\") {\n            success := call(gas(), self, 0, add(data, 0x20), mload(data), 0, 0)\n        }\n        // Revert with FailedHookCall, containing any error message to bubble up\n        if (!success) CustomRevert.bubbleUpAndRevertWith(address(self), bytes4(data), HookCallFailed.selector);\n\n        // The call was successful, fetch the returned data\n        assembly (\"memory-safe\") {\n            // allocate result byte array from the free memory pointer\n            result := mload(0x40)\n            // store new free memory pointer at the end of the array padded to 32 bytes\n            mstore(0x40, add(result, and(add(returndatasize(), 0x3f), not(0x1f))))\n            // store length in memory\n            mstore(result, returndatasize())\n            // copy return data to result\n            returndatacopy(add(result, 0x20), 0, returndatasize())\n        }\n\n        // Length must be at least 32 to contain the selector. Check expected selector and returned selector match.\n        if (result.length < 32 || result.parseSelector() != data.parseSelector()) {\n            InvalidHookResponse.selector.revertWith();\n        }\n    }\n\n    /// @notice performs a hook call using the given calldata on the given hook\n    /// @return int256 The delta returned by the hook\n    function callHookWithReturnDelta(IHooks self, bytes memory data, bool parseReturn) internal returns (int256) {\n        bytes memory result = callHook(self, data);\n\n        // If this hook wasn't meant to return something, default to 0 delta\n        if (!parseReturn) return 0;\n\n        // A length of 64 bytes is required to return a bytes4, and a 32 byte delta\n        if (result.length != 64) InvalidHookResponse.selector.revertWith();\n        return result.parseReturnDelta();\n    }\n\n    /// @notice modifier to prevent calling a hook if they initiated the action\n    modifier noSelfCall(IHooks self) {\n        if (msg.sender != address(self)) {\n            _;\n        }\n    }\n\n    /// @notice calls beforeInitialize hook if permissioned and validates return value\n    function beforeInitialize(IHooks self, PoolKey memory key, uint160 sqrtPriceX96) internal noSelfCall(self) {\n        if (self.hasPermission(BEFORE_INITIALIZE_FLAG)) {\n            self.callHook(abi.encodeCall(IHooks.beforeInitialize, (msg.sender, key, sqrtPriceX96)));\n        }\n    }\n\n    /// @notice calls afterInitialize hook if permissioned and validates return value\n    function afterInitialize(IHooks self, PoolKey memory key, uint160 sqrtPriceX96, int24 tick)\n        internal\n        noSelfCall(self)\n    {\n        if (self.hasPermission(AFTER_INITIALIZE_FLAG)) {\n            self.callHook(abi.encodeCall(IHooks.afterInitialize, (msg.sender, key, sqrtPriceX96, tick)));\n        }\n    }\n\n    /// @notice calls beforeModifyLiquidity hook if permissioned and validates return value\n    function beforeModifyLiquidity(\n        IHooks self,\n        PoolKey memory key,\n        ModifyLiquidityParams memory params,\n        bytes calldata hookData\n    ) internal noSelfCall(self) {\n        if (params.liquidityDelta > 0 && self.hasPermission(BEFORE_ADD_LIQUIDITY_FLAG)) {\n            self.callHook(abi.encodeCall(IHooks.beforeAddLiquidity, (msg.sender, key, params, hookData)));\n        } else if (params.liquidityDelta <= 0 && self.hasPermission(BEFORE_REMOVE_LIQUIDITY_FLAG)) {\n            self.callHook(abi.encodeCall(IHooks.beforeRemoveLiquidity, (msg.sender, key, params, hookData)));\n        }\n    }\n\n    /// @notice calls afterModifyLiquidity hook if permissioned and validates return value\n    function afterModifyLiquidity(\n        IHooks self,\n        PoolKey memory key,\n        ModifyLiquidityParams memory params,\n        BalanceDelta delta,\n        BalanceDelta feesAccrued,\n        bytes calldata hookData\n    ) internal returns (BalanceDelta callerDelta, BalanceDelta hookDelta) {\n        if (msg.sender == address(self)) return (delta, BalanceDeltaLibrary.ZERO_DELTA);\n\n        callerDelta = delta;\n        if (params.liquidityDelta > 0) {\n            if (self.hasPermission(AFTER_ADD_LIQUIDITY_FLAG)) {\n                hookDelta = BalanceDelta.wrap(\n                    self.callHookWithReturnDelta(\n                        abi.encodeCall(\n                            IHooks.afterAddLiquidity, (msg.sender, key, params, delta, feesAccrued, hookData)\n                        ),\n                        self.hasPermission(AFTER_ADD_LIQUIDITY_RETURNS_DELTA_FLAG)\n                    )\n                );\n                callerDelta = callerDelta - hookDelta;\n            }\n        } else {\n            if (self.hasPermission(AFTER_REMOVE_LIQUIDITY_FLAG)) {\n                hookDelta = BalanceDelta.wrap(\n                    self.callHookWithReturnDelta(\n                        abi.encodeCall(\n                            IHooks.afterRemoveLiquidity, (msg.sender, key, params, delta, feesAccrued, hookData)\n                        ),\n                        self.hasPermission(AFTER_REMOVE_LIQUIDITY_RETURNS_DELTA_FLAG)\n                    )\n                );\n                callerDelta = callerDelta - hookDelta;\n            }\n        }\n    }\n\n    /// @notice calls beforeSwap hook if permissioned and validates return value\n    function beforeSwap(IHooks self, PoolKey memory key, SwapParams memory params, bytes calldata hookData)\n        internal\n        returns (int256 amountToSwap, BeforeSwapDelta hookReturn, uint24 lpFeeOverride)\n    {\n        amountToSwap = params.amountSpecified;\n        if (msg.sender == address(self)) return (amountToSwap, BeforeSwapDeltaLibrary.ZERO_DELTA, lpFeeOverride);\n\n        if (self.hasPermission(BEFORE_SWAP_FLAG)) {\n            bytes memory result = callHook(self, abi.encodeCall(IHooks.beforeSwap, (msg.sender, key, params, hookData)));\n\n            // A length of 96 bytes is required to return a bytes4, a 32 byte delta, and an LP fee\n            if (result.length != 96) InvalidHookResponse.selector.revertWith();\n\n            // dynamic fee pools that want to override the cache fee, return a valid fee with the override flag. If override flag\n            // is set but an invalid fee is returned, the transaction will revert. Otherwise the current LP fee will be used\n            if (key.fee.isDynamicFee()) lpFeeOverride = result.parseFee();\n\n            // skip this logic for the case where the hook return is 0\n            if (self.hasPermission(BEFORE_SWAP_RETURNS_DELTA_FLAG)) {\n                hookReturn = BeforeSwapDelta.wrap(result.parseReturnDelta());\n\n                // any return in unspecified is passed to the afterSwap hook for handling\n                int128 hookDeltaSpecified = hookReturn.getSpecifiedDelta();\n\n                // Update the swap amount according to the hook's return, and check that the swap type doesn't change (exact input/output)\n                if (hookDeltaSpecified != 0) {\n                    bool exactInput = amountToSwap < 0;\n                    amountToSwap += hookDeltaSpecified;\n                    if (exactInput ? amountToSwap > 0 : amountToSwap < 0) {\n                        HookDeltaExceedsSwapAmount.selector.revertWith();\n                    }\n                }\n            }\n        }\n    }\n\n    /// @notice calls afterSwap hook if permissioned and validates return value\n    function afterSwap(\n        IHooks self,\n        PoolKey memory key,\n        SwapParams memory params,\n        BalanceDelta swapDelta,\n        bytes calldata hookData,\n        BeforeSwapDelta beforeSwapHookReturn\n    ) internal returns (BalanceDelta, BalanceDelta) {\n        if (msg.sender == address(self)) return (swapDelta, BalanceDeltaLibrary.ZERO_DELTA);\n\n        int128 hookDeltaSpecified = beforeSwapHookReturn.getSpecifiedDelta();\n        int128 hookDeltaUnspecified = beforeSwapHookReturn.getUnspecifiedDelta();\n\n        if (self.hasPermission(AFTER_SWAP_FLAG)) {\n            hookDeltaUnspecified += self.callHookWithReturnDelta(\n                abi.encodeCall(IHooks.afterSwap, (msg.sender, key, params, swapDelta, hookData)),\n                self.hasPermission(AFTER_SWAP_RETURNS_DELTA_FLAG)\n            ).toInt128();\n        }\n\n        BalanceDelta hookDelta;\n        if (hookDeltaUnspecified != 0 || hookDeltaSpecified != 0) {\n            hookDelta = (params.amountSpecified < 0 == params.zeroForOne)\n                ? toBalanceDelta(hookDeltaSpecified, hookDeltaUnspecified)\n                : toBalanceDelta(hookDeltaUnspecified, hookDeltaSpecified);\n\n            // the caller has to pay for (or receive) the hook's delta\n            swapDelta = swapDelta - hookDelta;\n        }\n        return (swapDelta, hookDelta);\n    }\n\n    /// @notice calls beforeDonate hook if permissioned and validates return value\n    function beforeDonate(IHooks self, PoolKey memory key, uint256 amount0, uint256 amount1, bytes calldata hookData)\n        internal\n        noSelfCall(self)\n    {\n        if (self.hasPermission(BEFORE_DONATE_FLAG)) {\n            self.callHook(abi.encodeCall(IHooks.beforeDonate, (msg.sender, key, amount0, amount1, hookData)));\n        }\n    }\n\n    /// @notice calls afterDonate hook if permissioned and validates return value\n    function afterDonate(IHooks self, PoolKey memory key, uint256 amount0, uint256 amount1, bytes calldata hookData)\n        internal\n        noSelfCall(self)\n    {\n        if (self.hasPermission(AFTER_DONATE_FLAG)) {\n            self.callHook(abi.encodeCall(IHooks.afterDonate, (msg.sender, key, amount0, amount1, hookData)));\n        }\n    }\n\n    function hasPermission(IHooks self, uint160 flag) internal pure returns (bool) {\n        return uint160(address(self)) & flag != 0;\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/IHooks.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {PoolKey} from \"../types/PoolKey.sol\";\nimport {BalanceDelta} from \"../types/BalanceDelta.sol\";\nimport {ModifyLiquidityParams, SwapParams} from \"../types/PoolOperation.sol\";\nimport {BeforeSwapDelta} from \"../types/BeforeSwapDelta.sol\";\n\n/// @notice V4 decides whether to invoke specific hooks by inspecting the least significant bits\n/// of the address that the hooks contract is deployed to.\n/// For example, a hooks contract deployed to address: 0x0000000000000000000000000000000000002400\n/// has the lowest bits '10 0100 0000 0000' which would cause the 'before initialize' and 'after add liquidity' hooks to be used.\n/// See the Hooks library for the full spec.\n/// @dev Should only be callable by the v4 PoolManager.\ninterface IHooks {\n    /// @notice The hook called before the state of a pool is initialized\n    /// @param sender The initial msg.sender for the initialize call\n    /// @param key The key for the pool being initialized\n    /// @param sqrtPriceX96 The sqrt(price) of the pool as a Q64.96\n    /// @return bytes4 The function selector for the hook\n    function beforeInitialize(address sender, PoolKey calldata key, uint160 sqrtPriceX96) external returns (bytes4);\n\n    /// @notice The hook called after the state of a pool is initialized\n    /// @param sender The initial msg.sender for the initialize call\n    /// @param key The key for the pool being initialized\n    /// @param sqrtPriceX96 The sqrt(price) of the pool as a Q64.96\n    /// @param tick The current tick after the state of a pool is initialized\n    /// @return bytes4 The function selector for the hook\n    function afterInitialize(address sender, PoolKey calldata key, uint160 sqrtPriceX96, int24 tick)\n        external\n        returns (bytes4);\n\n    /// @notice The hook called before liquidity is added\n    /// @param sender The initial msg.sender for the add liquidity call\n    /// @param key The key for the pool\n    /// @param params The parameters for adding liquidity\n    /// @param hookData Arbitrary data handed into the PoolManager by the liquidity provider to be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    function beforeAddLiquidity(\n        address sender,\n        PoolKey calldata key,\n        ModifyLiquidityParams calldata params,\n        bytes calldata hookData\n    ) external returns (bytes4);\n\n    /// @notice The hook called after liquidity is added\n    /// @param sender The initial msg.sender for the add liquidity call\n    /// @param key The key for the pool\n    /// @param params The parameters for adding liquidity\n    /// @param delta The caller's balance delta after adding liquidity; the sum of principal delta, fees accrued, and hook delta\n    /// @param feesAccrued The fees accrued since the last time fees were collected from this position\n    /// @param hookData Arbitrary data handed into the PoolManager by the liquidity provider to be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    /// @return BalanceDelta The hook's delta in token0 and token1. Positive: the hook is owed/took currency, negative: the hook owes/sent currency\n    function afterAddLiquidity(\n        address sender,\n        PoolKey calldata key,\n        ModifyLiquidityParams calldata params,\n        BalanceDelta delta,\n        BalanceDelta feesAccrued,\n        bytes calldata hookData\n    ) external returns (bytes4, BalanceDelta);\n\n    /// @notice The hook called before liquidity is removed\n    /// @param sender The initial msg.sender for the remove liquidity call\n    /// @param key The key for the pool\n    /// @param params The parameters for removing liquidity\n    /// @param hookData Arbitrary data handed into the PoolManager by the liquidity provider to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    function beforeRemoveLiquidity(\n        address sender,\n        PoolKey calldata key,\n        ModifyLiquidityParams calldata params,\n        bytes calldata hookData\n    ) external returns (bytes4);\n\n    /// @notice The hook called after liquidity is removed\n    /// @param sender The initial msg.sender for the remove liquidity call\n    /// @param key The key for the pool\n    /// @param params The parameters for removing liquidity\n    /// @param delta The caller's balance delta after removing liquidity; the sum of principal delta, fees accrued, and hook delta\n    /// @param feesAccrued The fees accrued since the last time fees were collected from this position\n    /// @param hookData Arbitrary data handed into the PoolManager by the liquidity provider to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    /// @return BalanceDelta The hook's delta in token0 and token1. Positive: the hook is owed/took currency, negative: the hook owes/sent currency\n    function afterRemoveLiquidity(\n        address sender,\n        PoolKey calldata key,\n        ModifyLiquidityParams calldata params,\n        BalanceDelta delta,\n        BalanceDelta feesAccrued,\n        bytes calldata hookData\n    ) external returns (bytes4, BalanceDelta);\n\n    /// @notice The hook called before a swap\n    /// @param sender The initial msg.sender for the swap call\n    /// @param key The key for the pool\n    /// @param params The parameters for the swap\n    /// @param hookData Arbitrary data handed into the PoolManager by the swapper to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    /// @return BeforeSwapDelta The hook's delta in specified and unspecified currencies. Positive: the hook is owed/took currency, negative: the hook owes/sent currency\n    /// @return uint24 Optionally override the lp fee, only used if three conditions are met: 1. the Pool has a dynamic fee, 2. the value's 2nd highest bit is set (23rd bit, 0x400000), and 3. the value is less than or equal to the maximum fee (1 million)\n    function beforeSwap(address sender, PoolKey calldata key, SwapParams calldata params, bytes calldata hookData)\n        external\n        returns (bytes4, BeforeSwapDelta, uint24);\n\n    /// @notice The hook called after a swap\n    /// @param sender The initial msg.sender for the swap call\n    /// @param key The key for the pool\n    /// @param params The parameters for the swap\n    /// @param delta The amount owed to the caller (positive) or owed to the pool (negative)\n    /// @param hookData Arbitrary data handed into the PoolManager by the swapper to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    /// @return int128 The hook's delta in unspecified currency. Positive: the hook is owed/took currency, negative: the hook owes/sent currency\n    function afterSwap(\n        address sender,\n        PoolKey calldata key,\n        SwapParams calldata params,\n        BalanceDelta delta,\n        bytes calldata hookData\n    ) external returns (bytes4, int128);\n\n    /// @notice The hook called before donate\n    /// @param sender The initial msg.sender for the donate call\n    /// @param key The key for the pool\n    /// @param amount0 The amount of token0 being donated\n    /// @param amount1 The amount of token1 being donated\n    /// @param hookData Arbitrary data handed into the PoolManager by the donor to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    function beforeDonate(\n        address sender,\n        PoolKey calldata key,\n        uint256 amount0,\n        uint256 amount1,\n        bytes calldata hookData\n    ) external returns (bytes4);\n\n    /// @notice The hook called after donate\n    /// @param sender The initial msg.sender for the donate call\n    /// @param key The key for the pool\n    /// @param amount0 The amount of token0 being donated\n    /// @param amount1 The amount of token1 being donated\n    /// @param hookData Arbitrary data handed into the PoolManager by the donor to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    function afterDonate(\n        address sender,\n        PoolKey calldata key,\n        uint256 amount0,\n        uint256 amount1,\n        bytes calldata hookData\n    ) external returns (bytes4);\n}\n"},"lib/v4-periphery/lib/v4-core/src/libraries/SafeCast.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {CustomRevert} from \"./CustomRevert.sol\";\n\n/// @title Safe casting methods\n/// @notice Contains methods for safely casting between types\nlibrary SafeCast {\n    using CustomRevert for bytes4;\n\n    error SafeCastOverflow();\n\n    /// @notice Cast a uint256 to a uint160, revert on overflow\n    /// @param x The uint256 to be downcasted\n    /// @return y The downcasted integer, now type uint160\n    function toUint160(uint256 x) internal pure returns (uint160 y) {\n        y = uint160(x);\n        if (y != x) SafeCastOverflow.selector.revertWith();\n    }\n\n    /// @notice Cast a uint256 to a uint128, revert on overflow\n    /// @param x The uint256 to be downcasted\n    /// @return y The downcasted integer, now type uint128\n    function toUint128(uint256 x) internal pure returns (uint128 y) {\n        y = uint128(x);\n        if (x != y) SafeCastOverflow.selector.revertWith();\n    }\n\n    /// @notice Cast a int128 to a uint128, revert on overflow or underflow\n    /// @param x The int128 to be casted\n    /// @return y The casted integer, now type uint128\n    function toUint128(int128 x) internal pure returns (uint128 y) {\n        if (x < 0) SafeCastOverflow.selector.revertWith();\n        y = uint128(x);\n    }\n\n    /// @notice Cast a int256 to a int128, revert on overflow or underflow\n    /// @param x The int256 to be downcasted\n    /// @return y The downcasted integer, now type int128\n    function toInt128(int256 x) internal pure returns (int128 y) {\n        y = int128(x);\n        if (y != x) SafeCastOverflow.selector.revertWith();\n    }\n\n    /// @notice Cast a uint256 to a int256, revert on overflow\n    /// @param x The uint256 to be casted\n    /// @return y The casted integer, now type int256\n    function toInt256(uint256 x) internal pure returns (int256 y) {\n        y = int256(x);\n        if (y < 0) SafeCastOverflow.selector.revertWith();\n    }\n\n    /// @notice Cast a uint256 to a int128, revert on overflow\n    /// @param x The uint256 to be downcasted\n    /// @return The downcasted integer, now type int128\n    function toInt128(uint256 x) internal pure returns (int128) {\n        if (x >= 1 << 127) SafeCastOverflow.selector.revertWith();\n        return int128(int256(x));\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/BalanceDelta.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {SafeCast} from \"../libraries/SafeCast.sol\";\n\n/// @dev Two `int128` values packed into a single `int256` where the upper 128 bits represent the amount0\n/// and the lower 128 bits represent the amount1.\ntype BalanceDelta is int256;\n\nusing {add as +, sub as -, eq as ==, neq as !=} for BalanceDelta global;\nusing BalanceDeltaLibrary for BalanceDelta global;\nusing SafeCast for int256;\n\nfunction toBalanceDelta(int128 _amount0, int128 _amount1) pure returns (BalanceDelta balanceDelta) {\n    assembly (\"memory-safe\") {\n        balanceDelta := or(shl(128, _amount0), and(sub(shl(128, 1), 1), _amount1))\n    }\n}\n\nfunction add(BalanceDelta a, BalanceDelta b) pure returns (BalanceDelta) {\n    int256 res0;\n    int256 res1;\n    assembly (\"memory-safe\") {\n        let a0 := sar(128, a)\n        let a1 := signextend(15, a)\n        let b0 := sar(128, b)\n        let b1 := signextend(15, b)\n        res0 := add(a0, b0)\n        res1 := add(a1, b1)\n    }\n    return toBalanceDelta(res0.toInt128(), res1.toInt128());\n}\n\nfunction sub(BalanceDelta a, BalanceDelta b) pure returns (BalanceDelta) {\n    int256 res0;\n    int256 res1;\n    assembly (\"memory-safe\") {\n        let a0 := sar(128, a)\n        let a1 := signextend(15, a)\n        let b0 := sar(128, b)\n        let b1 := signextend(15, b)\n        res0 := sub(a0, b0)\n        res1 := sub(a1, b1)\n    }\n    return toBalanceDelta(res0.toInt128(), res1.toInt128());\n}\n\nfunction eq(BalanceDelta a, BalanceDelta b) pure returns (bool) {\n    return BalanceDelta.unwrap(a) == BalanceDelta.unwrap(b);\n}\n\nfunction neq(BalanceDelta a, BalanceDelta b) pure returns (bool) {\n    return BalanceDelta.unwrap(a) != BalanceDelta.unwrap(b);\n}\n\n/// @notice Library for getting the amount0 and amount1 deltas from the BalanceDelta type\nlibrary BalanceDeltaLibrary {\n    /// @notice A BalanceDelta of 0\n    BalanceDelta public constant ZERO_DELTA = BalanceDelta.wrap(0);\n\n    function amount0(BalanceDelta balanceDelta) internal pure returns (int128 _amount0) {\n        assembly (\"memory-safe\") {\n            _amount0 := sar(128, balanceDelta)\n        }\n    }\n\n    function amount1(BalanceDelta balanceDelta) internal pure returns (int128 _amount1) {\n        assembly (\"memory-safe\") {\n            _amount1 := signextend(15, balanceDelta)\n        }\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/PoolOperation.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.24;\n\nimport {PoolKey} from \"../types/PoolKey.sol\";\nimport {BalanceDelta} from \"../types/BalanceDelta.sol\";\n\n/// @notice Parameter struct for `ModifyLiquidity` pool operations\nstruct ModifyLiquidityParams {\n    // the lower and upper tick of the position\n    int24 tickLower;\n    int24 tickUpper;\n    // how to modify the liquidity\n    int256 liquidityDelta;\n    // a value to set if you want unique liquidity positions at the same range\n    bytes32 salt;\n}\n\n/// @notice Parameter struct for `Swap` pool operations\nstruct SwapParams {\n    /// Whether to swap token0 for token1 or vice versa\n    bool zeroForOne;\n    /// The desired input amount if negative (exactIn), or the desired output amount if positive (exactOut)\n    int256 amountSpecified;\n    /// The sqrt price at which, if reached, the swap will stop executing\n    uint160 sqrtPriceLimitX96;\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/IExtsload.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @notice Interface for functions to access any storage slot in a contract\ninterface IExtsload {\n    /// @notice Called by external contracts to access granular pool state\n    /// @param slot Key of slot to sload\n    /// @return value The value of the slot as bytes32\n    function extsload(bytes32 slot) external view returns (bytes32 value);\n\n    /// @notice Called by external contracts to access granular pool state\n    /// @param startSlot Key of slot to start sloading from\n    /// @param nSlots Number of slots to load into return value\n    /// @return values List of loaded values.\n    function extsload(bytes32 startSlot, uint256 nSlots) external view returns (bytes32[] memory values);\n\n    /// @notice Called by external contracts to access sparse pool state\n    /// @param slots List of slots to SLOAD from.\n    /// @return values List of loaded values.\n    function extsload(bytes32[] calldata slots) external view returns (bytes32[] memory values);\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/IExttload.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.24;\n\n/// @notice Interface for functions to access any transient storage slot in a contract\ninterface IExttload {\n    /// @notice Called by external contracts to access transient storage of the contract\n    /// @param slot Key of slot to tload\n    /// @return value The value of the slot as bytes32\n    function exttload(bytes32 slot) external view returns (bytes32 value);\n\n    /// @notice Called by external contracts to access sparse transient pool state\n    /// @param slots List of slots to tload\n    /// @return values List of loaded values\n    function exttload(bytes32[] calldata slots) external view returns (bytes32[] memory values);\n}\n"},"lib/v4-periphery/lib/v4-core/src/libraries/ParseBytes.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\n/// @notice Parses bytes returned from hooks and the byte selector used to check return selectors from hooks.\n/// @dev parseSelector also is used to parse the expected selector\n/// For parsing hook returns, note that all hooks return either bytes4 or (bytes4, 32-byte-delta) or (bytes4, 32-byte-delta, uint24).\nlibrary ParseBytes {\n    function parseSelector(bytes memory result) internal pure returns (bytes4 selector) {\n        // equivalent: (selector,) = abi.decode(result, (bytes4, int256));\n        assembly (\"memory-safe\") {\n            selector := mload(add(result, 0x20))\n        }\n    }\n\n    function parseFee(bytes memory result) internal pure returns (uint24 lpFee) {\n        // equivalent: (,, lpFee) = abi.decode(result, (bytes4, int256, uint24));\n        assembly (\"memory-safe\") {\n            lpFee := mload(add(result, 0x60))\n        }\n    }\n\n    function parseReturnDelta(bytes memory result) internal pure returns (int256 hookReturn) {\n        // equivalent: (, hookReturnDelta) = abi.decode(result, (bytes4, int256));\n        assembly (\"memory-safe\") {\n            hookReturn := mload(add(result, 0x40))\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/interfaces/IERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"},"lib/v4-periphery/lib/v4-core/src/types/BeforeSwapDelta.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n// Return type of the beforeSwap hook.\n// Upper 128 bits is the delta in specified tokens. Lower 128 bits is delta in unspecified tokens (to match the afterSwap hook)\ntype BeforeSwapDelta is int256;\n\n// Creates a BeforeSwapDelta from specified and unspecified\nfunction toBeforeSwapDelta(int128 deltaSpecified, int128 deltaUnspecified)\n    pure\n    returns (BeforeSwapDelta beforeSwapDelta)\n{\n    assembly (\"memory-safe\") {\n        beforeSwapDelta := or(shl(128, deltaSpecified), and(sub(shl(128, 1), 1), deltaUnspecified))\n    }\n}\n\n/// @notice Library for getting the specified and unspecified deltas from the BeforeSwapDelta type\nlibrary BeforeSwapDeltaLibrary {\n    /// @notice A BeforeSwapDelta of 0\n    BeforeSwapDelta public constant ZERO_DELTA = BeforeSwapDelta.wrap(0);\n\n    /// extracts int128 from the upper 128 bits of the BeforeSwapDelta\n    /// returned by beforeSwap\n    function getSpecifiedDelta(BeforeSwapDelta delta) internal pure returns (int128 deltaSpecified) {\n        assembly (\"memory-safe\") {\n            deltaSpecified := sar(128, delta)\n        }\n    }\n\n    /// extracts int128 from the lower 128 bits of the BeforeSwapDelta\n    /// returned by beforeSwap and afterSwap\n    function getUnspecifiedDelta(BeforeSwapDelta delta) internal pure returns (int128 deltaUnspecified) {\n        assembly (\"memory-safe\") {\n            deltaUnspecified := signextend(15, delta)\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/interfaces/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"},"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n    /**\n     * @dev Emitted when `value` tokens are moved from one account (`from`) to\n     * another (`to`).\n     *\n     * Note that `value` may be zero.\n     */\n    event Transfer(address indexed from, address indexed to, uint256 value);\n\n    /**\n     * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n     * a call to {approve}. `value` is the new allowance.\n     */\n    event Approval(address indexed owner, address indexed spender, uint256 value);\n\n    /**\n     * @dev Returns the value of tokens in existence.\n     */\n    function totalSupply() external view returns (uint256);\n\n    /**\n     * @dev Returns the value of tokens owned by `account`.\n     */\n    function balanceOf(address account) external view returns (uint256);\n\n    /**\n     * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transfer(address to, uint256 value) external returns (bool);\n\n    /**\n     * @dev Returns the remaining number of tokens that `spender` will be\n     * allowed to spend on behalf of `owner` through {transferFrom}. This is\n     * zero by default.\n     *\n     * This value changes when {approve} or {transferFrom} are called.\n     */\n    function allowance(address owner, address spender) external view returns (uint256);\n\n    /**\n     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n     * caller's tokens.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * IMPORTANT: Beware that changing an allowance with this method brings the risk\n     * that someone may use both the old and the new allowance by unfortunate\n     * transaction ordering. One possible solution to mitigate this race\n     * condition is to first reduce the spender's allowance to 0 and set the\n     * desired value afterwards:\n     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n     *\n     * Emits an {Approval} event.\n     */\n    function approve(address spender, uint256 value) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to` using the\n     * allowance mechanism. `value` is then deducted from the caller's\n     * allowance.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transferFrom(address from, address to, uint256 value) external returns (bool);\n}\n"},"lib/v4-periphery/lib/v4-core/src/libraries/CustomRevert.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @title Library for reverting with custom errors efficiently\n/// @notice Contains functions for reverting with custom errors with different argument types efficiently\n/// @dev To use this library, declare `using CustomRevert for bytes4;` and replace `revert CustomError()` with\n/// `CustomError.selector.revertWith()`\n/// @dev The functions may tamper with the free memory pointer but it is fine since the call context is exited immediately\nlibrary CustomRevert {\n    /// @dev ERC-7751 error for wrapping bubbled up reverts\n    error WrappedError(address target, bytes4 selector, bytes reason, bytes details);\n\n    /// @dev Reverts with the selector of a custom error in the scratch space\n    function revertWith(bytes4 selector) internal pure {\n        assembly (\"memory-safe\") {\n            mstore(0, selector)\n            revert(0, 0x04)\n        }\n    }\n\n    /// @dev Reverts with a custom error with an address argument in the scratch space\n    function revertWith(bytes4 selector, address addr) internal pure {\n        assembly (\"memory-safe\") {\n            mstore(0, selector)\n            mstore(0x04, and(addr, 0xffffffffffffffffffffffffffffffffffffffff))\n            revert(0, 0x24)\n        }\n    }\n\n    /// @dev Reverts with a custom error with an int24 argument in the scratch space\n    function revertWith(bytes4 selector, int24 value) internal pure {\n        assembly (\"memory-safe\") {\n            mstore(0, selector)\n            mstore(0x04, signextend(2, value))\n            revert(0, 0x24)\n        }\n    }\n\n    /// @dev Reverts with a custom error with a uint160 argument in the scratch space\n    function revertWith(bytes4 selector, uint160 value) internal pure {\n        assembly (\"memory-safe\") {\n            mstore(0, selector)\n            mstore(0x04, and(value, 0xffffffffffffffffffffffffffffffffffffffff))\n            revert(0, 0x24)\n        }\n    }\n\n    /// @dev Reverts with a custom error with two int24 arguments\n    function revertWith(bytes4 selector, int24 value1, int24 value2) internal pure {\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(fmp, selector)\n            mstore(add(fmp, 0x04), signextend(2, value1))\n            mstore(add(fmp, 0x24), signextend(2, value2))\n            revert(fmp, 0x44)\n        }\n    }\n\n    /// @dev Reverts with a custom error with two uint160 arguments\n    function revertWith(bytes4 selector, uint160 value1, uint160 value2) internal pure {\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(fmp, selector)\n            mstore(add(fmp, 0x04), and(value1, 0xffffffffffffffffffffffffffffffffffffffff))\n            mstore(add(fmp, 0x24), and(value2, 0xffffffffffffffffffffffffffffffffffffffff))\n            revert(fmp, 0x44)\n        }\n    }\n\n    /// @dev Reverts with a custom error with two address arguments\n    function revertWith(bytes4 selector, address value1, address value2) internal pure {\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(fmp, selector)\n            mstore(add(fmp, 0x04), and(value1, 0xffffffffffffffffffffffffffffffffffffffff))\n            mstore(add(fmp, 0x24), and(value2, 0xffffffffffffffffffffffffffffffffffffffff))\n            revert(fmp, 0x44)\n        }\n    }\n\n    /// @notice bubble up the revert message returned by a call and revert with a wrapped ERC-7751 error\n    /// @dev this method can be vulnerable to revert data bombs\n    function bubbleUpAndRevertWith(\n        address revertingContract,\n        bytes4 revertingFunctionSelector,\n        bytes4 additionalContext\n    ) internal pure {\n        bytes4 wrappedErrorSelector = WrappedError.selector;\n        assembly (\"memory-safe\") {\n            // Ensure the size of the revert data is a multiple of 32 bytes\n            let encodedDataSize := mul(div(add(returndatasize(), 31), 32), 32)\n\n            let fmp := mload(0x40)\n\n            // Encode wrapped error selector, address, function selector, offset, additional context, size, revert reason\n            mstore(fmp, wrappedErrorSelector)\n            mstore(add(fmp, 0x04), and(revertingContract, 0xffffffffffffffffffffffffffffffffffffffff))\n            mstore(\n                add(fmp, 0x24),\n                and(revertingFunctionSelector, 0xffffffff00000000000000000000000000000000000000000000000000000000)\n            )\n            // offset revert reason\n            mstore(add(fmp, 0x44), 0x80)\n            // offset additional context\n            mstore(add(fmp, 0x64), add(0xa0, encodedDataSize))\n            // size revert reason\n            mstore(add(fmp, 0x84), returndatasize())\n            // revert reason\n            returndatacopy(add(fmp, 0xa4), 0, returndatasize())\n            // size additional context\n            mstore(add(fmp, add(0xa4, encodedDataSize)), 0x04)\n            // additional context\n            mstore(\n                add(fmp, add(0xc4, encodedDataSize)),\n                and(additionalContext, 0xffffffff00000000000000000000000000000000000000000000000000000000)\n            )\n            revert(fmp, add(0xe4, encodedDataSize))\n        }\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/libraries/LPFeeLibrary.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {CustomRevert} from \"./CustomRevert.sol\";\n\n/// @notice Library of helper functions for a pools LP fee\nlibrary LPFeeLibrary {\n    using LPFeeLibrary for uint24;\n    using CustomRevert for bytes4;\n\n    /// @notice Thrown when the static or dynamic fee on a pool exceeds 100%.\n    error LPFeeTooLarge(uint24 fee);\n\n    /// @notice An lp fee of exactly 0b1000000... signals a dynamic fee pool. This isn't a valid static fee as it is > MAX_LP_FEE\n    uint24 public constant DYNAMIC_FEE_FLAG = 0x800000;\n\n    /// @notice the second bit of the fee returned by beforeSwap is used to signal if the stored LP fee should be overridden in this swap\n    // only dynamic-fee pools can return a fee via the beforeSwap hook\n    uint24 public constant OVERRIDE_FEE_FLAG = 0x400000;\n\n    /// @notice mask to remove the override fee flag from a fee returned by the beforeSwaphook\n    uint24 public constant REMOVE_OVERRIDE_MASK = 0xBFFFFF;\n\n    /// @notice the lp fee is represented in hundredths of a bip, so the max is 100%\n    uint24 public constant MAX_LP_FEE = 1000000;\n\n    /// @notice returns true if a pool's LP fee signals that the pool has a dynamic fee\n    /// @param self The fee to check\n    /// @return bool True of the fee is dynamic\n    function isDynamicFee(uint24 self) internal pure returns (bool) {\n        return self == DYNAMIC_FEE_FLAG;\n    }\n\n    /// @notice returns true if an LP fee is valid, aka not above the maximum permitted fee\n    /// @param self The fee to check\n    /// @return bool True of the fee is valid\n    function isValid(uint24 self) internal pure returns (bool) {\n        return self <= MAX_LP_FEE;\n    }\n\n    /// @notice validates whether an LP fee is larger than the maximum, and reverts if invalid\n    /// @param self The fee to validate\n    function validate(uint24 self) internal pure {\n        if (!self.isValid()) LPFeeTooLarge.selector.revertWith(self);\n    }\n\n    /// @notice gets and validates the initial LP fee for a pool. Dynamic fee pools have an initial fee of 0.\n    /// @dev if a dynamic fee pool wants a non-0 initial fee, it should call `updateDynamicLPFee` in the afterInitialize hook\n    /// @param self The fee to get the initial LP from\n    /// @return initialFee 0 if the fee is dynamic, otherwise the fee (if valid)\n    function getInitialLPFee(uint24 self) internal pure returns (uint24) {\n        // the initial fee for a dynamic fee pool is 0\n        if (self.isDynamicFee()) return 0;\n        self.validate();\n        return self;\n    }\n\n    /// @notice returns true if the fee has the override flag set (2nd highest bit of the uint24)\n    /// @param self The fee to check\n    /// @return bool True of the fee has the override flag set\n    function isOverride(uint24 self) internal pure returns (bool) {\n        return self & OVERRIDE_FEE_FLAG != 0;\n    }\n\n    /// @notice returns a fee with the override flag removed\n    /// @param self The fee to remove the override flag from\n    /// @return fee The fee without the override flag set\n    function removeOverrideFlag(uint24 self) internal pure returns (uint24) {\n        return self & REMOVE_OVERRIDE_MASK;\n    }\n\n    /// @notice Removes the override flag and validates the fee (reverts if the fee is too large)\n    /// @param self The fee to remove the override flag from, and then validate\n    /// @return fee The fee without the override flag set (if valid)\n    function removeOverrideFlagAndValidate(uint24 self) internal pure returns (uint24 fee) {\n        fee = self.removeOverrideFlag();\n        fee.validate();\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/interfaces/IERC1363.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n    /*\n     * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n     * 0xb0202a11 ===\n     *   bytes4(keccak256('transferAndCall(address,uint256)')) ^\n     *   bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^\n     *   bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^\n     *   bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^\n     *   bytes4(keccak256('approveAndCall(address,uint256)')) ^\n     *   bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n     */\n\n    /**\n     * @dev Moves a `value` amount of tokens from the caller's account to `to`\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferAndCall(address to, uint256 value) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from the caller's account to `to`\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @param data Additional data with no specified format, sent in call to `to`.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param from The address which you want to send tokens from.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param from The address which you want to send tokens from.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @param data Additional data with no specified format, sent in call to `to`.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n    /**\n     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n     * @param spender The address which will spend the funds.\n     * @param value The amount of tokens to be spent.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function approveAndCall(address spender, uint256 value) external returns (bool);\n\n    /**\n     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n     * @param spender The address which will spend the funds.\n     * @param value The amount of tokens to be spent.\n     * @param data Additional data with no specified format, sent in call to `spender`.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/IPoolManager.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.24;\n\nimport {Currency} from \"../types/Currency.sol\";\nimport {PoolKey} from \"../types/PoolKey.sol\";\nimport {IHooks} from \"./IHooks.sol\";\nimport {IERC6909Claims} from \"./external/IERC6909Claims.sol\";\nimport {IProtocolFees} from \"./IProtocolFees.sol\";\nimport {BalanceDelta} from \"../types/BalanceDelta.sol\";\nimport {PoolId} from \"../types/PoolId.sol\";\nimport {IExtsload} from \"./IExtsload.sol\";\nimport {IExttload} from \"./IExttload.sol\";\nimport {ModifyLiquidityParams, SwapParams} from \"../types/PoolOperation.sol\";\n\n/// @notice Interface for the PoolManager\ninterface IPoolManager is IProtocolFees, IERC6909Claims, IExtsload, IExttload {\n    /// @notice Thrown when a currency is not netted out after the contract is unlocked\n    error CurrencyNotSettled();\n\n    /// @notice Thrown when trying to interact with a non-initialized pool\n    error PoolNotInitialized();\n\n    /// @notice Thrown when unlock is called, but the contract is already unlocked\n    error AlreadyUnlocked();\n\n    /// @notice Thrown when a function is called that requires the contract to be unlocked, but it is not\n    error ManagerLocked();\n\n    /// @notice Pools are limited to type(int16).max tickSpacing in #initialize, to prevent overflow\n    error TickSpacingTooLarge(int24 tickSpacing);\n\n    /// @notice Pools must have a positive non-zero tickSpacing passed to #initialize\n    error TickSpacingTooSmall(int24 tickSpacing);\n\n    /// @notice PoolKey must have currencies where address(currency0) < address(currency1)\n    error CurrenciesOutOfOrderOrEqual(address currency0, address currency1);\n\n    /// @notice Thrown when a call to updateDynamicLPFee is made by an address that is not the hook,\n    /// or on a pool that does not have a dynamic swap fee.\n    error UnauthorizedDynamicLPFeeUpdate();\n\n    /// @notice Thrown when trying to swap amount of 0\n    error SwapAmountCannotBeZero();\n\n    ///@notice Thrown when native currency is passed to a non native settlement\n    error NonzeroNativeValue();\n\n    /// @notice Thrown when `clear` is called with an amount that is not exactly equal to the open currency delta.\n    error MustClearExactPositiveDelta();\n\n    /// @notice Emitted when a new pool is initialized\n    /// @param id The abi encoded hash of the pool key struct for the new pool\n    /// @param currency0 The first currency of the pool by address sort order\n    /// @param currency1 The second currency of the pool by address sort order\n    /// @param fee The fee collected upon every swap in the pool, denominated in hundredths of a bip\n    /// @param tickSpacing The minimum number of ticks between initialized ticks\n    /// @param hooks The hooks contract address for the pool, or address(0) if none\n    /// @param sqrtPriceX96 The price of the pool on initialization\n    /// @param tick The initial tick of the pool corresponding to the initialized price\n    event Initialize(\n        PoolId indexed id,\n        Currency indexed currency0,\n        Currency indexed currency1,\n        uint24 fee,\n        int24 tickSpacing,\n        IHooks hooks,\n        uint160 sqrtPriceX96,\n        int24 tick\n    );\n\n    /// @notice Emitted when a liquidity position is modified\n    /// @param id The abi encoded hash of the pool key struct for the pool that was modified\n    /// @param sender The address that modified the pool\n    /// @param tickLower The lower tick of the position\n    /// @param tickUpper The upper tick of the position\n    /// @param liquidityDelta The amount of liquidity that was added or removed\n    /// @param salt The extra data to make positions unique\n    event ModifyLiquidity(\n        PoolId indexed id, address indexed sender, int24 tickLower, int24 tickUpper, int256 liquidityDelta, bytes32 salt\n    );\n\n    /// @notice Emitted for swaps between currency0 and currency1\n    /// @param id The abi encoded hash of the pool key struct for the pool that was modified\n    /// @param sender The address that initiated the swap call, and that received the callback\n    /// @param amount0 The delta of the currency0 balance of the pool\n    /// @param amount1 The delta of the currency1 balance of the pool\n    /// @param sqrtPriceX96 The sqrt(price) of the pool after the swap, as a Q64.96\n    /// @param liquidity The liquidity of the pool after the swap\n    /// @param tick The log base 1.0001 of the price of the pool after the swap\n    /// @param fee The swap fee in hundredths of a bip\n    event Swap(\n        PoolId indexed id,\n        address indexed sender,\n        int128 amount0,\n        int128 amount1,\n        uint160 sqrtPriceX96,\n        uint128 liquidity,\n        int24 tick,\n        uint24 fee\n    );\n\n    /// @notice Emitted for donations\n    /// @param id The abi encoded hash of the pool key struct for the pool that was donated to\n    /// @param sender The address that initiated the donate call\n    /// @param amount0 The amount donated in currency0\n    /// @param amount1 The amount donated in currency1\n    event Donate(PoolId indexed id, address indexed sender, uint256 amount0, uint256 amount1);\n\n    /// @notice All interactions on the contract that account deltas require unlocking. A caller that calls `unlock` must implement\n    /// `IUnlockCallback(msg.sender).unlockCallback(data)`, where they interact with the remaining functions on this contract.\n    /// @dev The only functions callable without an unlocking are `initialize` and `updateDynamicLPFee`\n    /// @param data Any data to pass to the callback, via `IUnlockCallback(msg.sender).unlockCallback(data)`\n    /// @return The data returned by the call to `IUnlockCallback(msg.sender).unlockCallback(data)`\n    function unlock(bytes calldata data) external returns (bytes memory);\n\n    /// @notice Initialize the state for a given pool ID\n    /// @dev A swap fee totaling MAX_SWAP_FEE (100%) makes exact output swaps impossible since the input is entirely consumed by the fee\n    /// @param key The pool key for the pool to initialize\n    /// @param sqrtPriceX96 The initial square root price\n    /// @return tick The initial tick of the pool\n    function initialize(PoolKey memory key, uint160 sqrtPriceX96) external returns (int24 tick);\n\n    /// @notice Modify the liquidity for the given pool\n    /// @dev Poke by calling with a zero liquidityDelta\n    /// @param key The pool to modify liquidity in\n    /// @param params The parameters for modifying the liquidity\n    /// @param hookData The data to pass through to the add/removeLiquidity hooks\n    /// @return callerDelta The balance delta of the caller of modifyLiquidity. This is the total of both principal, fee deltas, and hook deltas if applicable\n    /// @return feesAccrued The balance delta of the fees generated in the liquidity range. Returned for informational purposes\n    /// @dev Note that feesAccrued can be artificially inflated by a malicious actor and integrators should be careful using the value\n    /// For pools with a single liquidity position, actors can donate to themselves to inflate feeGrowthGlobal (and consequently feesAccrued)\n    /// atomically donating and collecting fees in the same unlockCallback may make the inflated value more extreme\n    function modifyLiquidity(PoolKey memory key, ModifyLiquidityParams memory params, bytes calldata hookData)\n        external\n        returns (BalanceDelta callerDelta, BalanceDelta feesAccrued);\n\n    /// @notice Swap against the given pool\n    /// @param key The pool to swap in\n    /// @param params The parameters for swapping\n    /// @param hookData The data to pass through to the swap hooks\n    /// @return swapDelta The balance delta of the address swapping\n    /// @dev Swapping on low liquidity pools may cause unexpected swap amounts when liquidity available is less than amountSpecified.\n    /// Additionally note that if interacting with hooks that have the BEFORE_SWAP_RETURNS_DELTA_FLAG or AFTER_SWAP_RETURNS_DELTA_FLAG\n    /// the hook may alter the swap input/output. Integrators should perform checks on the returned swapDelta.\n    function swap(PoolKey memory key, SwapParams memory params, bytes calldata hookData)\n        external\n        returns (BalanceDelta swapDelta);\n\n    /// @notice Donate the given currency amounts to the in-range liquidity providers of a pool\n    /// @dev Calls to donate can be frontrun adding just-in-time liquidity, with the aim of receiving a portion donated funds.\n    /// Donors should keep this in mind when designing donation mechanisms.\n    /// @dev This function donates to in-range LPs at slot0.tick. In certain edge-cases of the swap algorithm, the `sqrtPrice` of\n    /// a pool can be at the lower boundary of tick `n`, but the `slot0.tick` of the pool is already `n - 1`. In this case a call to\n    /// `donate` would donate to tick `n - 1` (slot0.tick) not tick `n` (getTickAtSqrtPrice(slot0.sqrtPriceX96)).\n    /// Read the comments in `Pool.swap()` for more information about this.\n    /// @param key The key of the pool to donate to\n    /// @param amount0 The amount of currency0 to donate\n    /// @param amount1 The amount of currency1 to donate\n    /// @param hookData The data to pass through to the donate hooks\n    /// @return BalanceDelta The delta of the caller after the donate\n    function donate(PoolKey memory key, uint256 amount0, uint256 amount1, bytes calldata hookData)\n        external\n        returns (BalanceDelta);\n\n    /// @notice Writes the current ERC20 balance of the specified currency to transient storage\n    /// This is used to checkpoint balances for the manager and derive deltas for the caller.\n    /// @dev This MUST be called before any ERC20 tokens are sent into the contract, but can be skipped\n    /// for native tokens because the amount to settle is determined by the sent value.\n    /// However, if an ERC20 token has been synced and not settled, and the caller instead wants to settle\n    /// native funds, this function can be called with the native currency to then be able to settle the native currency\n    function sync(Currency currency) external;\n\n    /// @notice Called by the user to net out some value owed to the user\n    /// @dev Will revert if the requested amount is not available, consider using `mint` instead\n    /// @dev Can also be used as a mechanism for free flash loans\n    /// @param currency The currency to withdraw from the pool manager\n    /// @param to The address to withdraw to\n    /// @param amount The amount of currency to withdraw\n    function take(Currency currency, address to, uint256 amount) external;\n\n    /// @notice Called by the user to pay what is owed\n    /// @return paid The amount of currency settled\n    function settle() external payable returns (uint256 paid);\n\n    /// @notice Called by the user to pay on behalf of another address\n    /// @param recipient The address to credit for the payment\n    /// @return paid The amount of currency settled\n    function settleFor(address recipient) external payable returns (uint256 paid);\n\n    /// @notice WARNING - Any currency that is cleared, will be non-retrievable, and locked in the contract permanently.\n    /// A call to clear will zero out a positive balance WITHOUT a corresponding transfer.\n    /// @dev This could be used to clear a balance that is considered dust.\n    /// Additionally, the amount must be the exact positive balance. This is to enforce that the caller is aware of the amount being cleared.\n    function clear(Currency currency, uint256 amount) external;\n\n    /// @notice Called by the user to move value into ERC6909 balance\n    /// @param to The address to mint the tokens to\n    /// @param id The currency address to mint to ERC6909s, as a uint256\n    /// @param amount The amount of currency to mint\n    /// @dev The id is converted to a uint160 to correspond to a currency address\n    /// If the upper 12 bytes are not 0, they will be 0-ed out\n    function mint(address to, uint256 id, uint256 amount) external;\n\n    /// @notice Called by the user to move value from ERC6909 balance\n    /// @param from The address to burn the tokens from\n    /// @param id The currency address to burn from ERC6909s, as a uint256\n    /// @param amount The amount of currency to burn\n    /// @dev The id is converted to a uint160 to correspond to a currency address\n    /// If the upper 12 bytes are not 0, they will be 0-ed out\n    function burn(address from, uint256 id, uint256 amount) external;\n\n    /// @notice Updates the pools lp fees for the a pool that has enabled dynamic lp fees.\n    /// @dev A swap fee totaling MAX_SWAP_FEE (100%) makes exact output swaps impossible since the input is entirely consumed by the fee\n    /// @param key The key of the pool to update dynamic LP fees for\n    /// @param newDynamicLPFee The new dynamic pool LP fee\n    function updateDynamicLPFee(PoolKey memory key, uint24 newDynamicLPFee) external;\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/IProtocolFees.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {Currency} from \"../types/Currency.sol\";\nimport {PoolId} from \"../types/PoolId.sol\";\nimport {PoolKey} from \"../types/PoolKey.sol\";\n\n/// @notice Interface for all protocol-fee related functions in the pool manager\ninterface IProtocolFees {\n    /// @notice Thrown when protocol fee is set too high\n    error ProtocolFeeTooLarge(uint24 fee);\n\n    /// @notice Thrown when collectProtocolFees or setProtocolFee is not called by the controller.\n    error InvalidCaller();\n\n    /// @notice Thrown when collectProtocolFees is attempted on a token that is synced.\n    error ProtocolFeeCurrencySynced();\n\n    /// @notice Emitted when the protocol fee controller address is updated in setProtocolFeeController.\n    event ProtocolFeeControllerUpdated(address indexed protocolFeeController);\n\n    /// @notice Emitted when the protocol fee is updated for a pool.\n    event ProtocolFeeUpdated(PoolId indexed id, uint24 protocolFee);\n\n    /// @notice Given a currency address, returns the protocol fees accrued in that currency\n    /// @param currency The currency to check\n    /// @return amount The amount of protocol fees accrued in the currency\n    function protocolFeesAccrued(Currency currency) external view returns (uint256 amount);\n\n    /// @notice Sets the protocol fee for the given pool\n    /// @param key The key of the pool to set a protocol fee for\n    /// @param newProtocolFee The fee to set\n    function setProtocolFee(PoolKey memory key, uint24 newProtocolFee) external;\n\n    /// @notice Sets the protocol fee controller\n    /// @param controller The new protocol fee controller\n    function setProtocolFeeController(address controller) external;\n\n    /// @notice Collects the protocol fees for a given recipient and currency, returning the amount collected\n    /// @dev This will revert if the contract is unlocked\n    /// @param recipient The address to receive the protocol fees\n    /// @param currency The currency to withdraw\n    /// @param amount The amount of currency to withdraw\n    /// @return amountCollected The amount of currency successfully withdrawn\n    function collectProtocolFees(address recipient, Currency currency, uint256 amount)\n        external\n        returns (uint256 amountCollected);\n\n    /// @notice Returns the current protocol fee controller address\n    /// @return address The current protocol fee controller address\n    function protocolFeeController() external view returns (address);\n}\n"},"lib/openzeppelin-contracts/contracts/interfaces/IERC20Metadata.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20Metadata.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20Metadata} from \"../token/ERC20/extensions/IERC20Metadata.sol\";\n"},"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.7.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\nimport {IERC20Metadata} from \"../../../interfaces/IERC20Metadata.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 operations that throw on failure (when the token\n * contract returns false). Tokens that return no value (and instead revert or\n * throw on failure) are also supported, non-reverting calls are assumed to be\n * successful.\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\n */\nlibrary SafeERC20 {\n    /**\n     * @dev An operation with an ERC-20 token failed.\n     */\n    error SafeERC20FailedOperation(address token);\n\n    /**\n     * @dev Indicates a failed `decreaseAllowance` request.\n     */\n    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n    /**\n     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeTransfer(IERC20 token, address to, uint256 value) internal {\n        if (!_safeTransfer(token, to, value, true)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n     */\n    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n        if (!_safeTransferFrom(token, from, to, value, true)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n     */\n    function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n        return _safeTransfer(token, to, value, false);\n    }\n\n    /**\n     * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n     */\n    function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n        return _safeTransferFrom(token, from, to, value, false);\n    }\n\n    /**\n     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     *\n     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n     * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n     */\n    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n        uint256 oldAllowance = token.allowance(address(this), spender);\n        forceApprove(token, spender, oldAllowance + value);\n    }\n\n    /**\n     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n     * value, non-reverting calls are assumed to be successful.\n     *\n     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n     * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n     */\n    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n        unchecked {\n            uint256 currentAllowance = token.allowance(address(this), spender);\n            if (currentAllowance < requestedDecrease) {\n                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n            }\n            forceApprove(token, spender, currentAllowance - requestedDecrease);\n        }\n    }\n\n    /**\n     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n     * to be set to zero before setting it to a non-zero value, such as USDT.\n     *\n     * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n     * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n     * set here.\n     */\n    function forceApprove(IERC20 token, address spender, uint256 value) internal {\n        if (!_safeApprove(token, spender, value, false)) {\n            if (!_safeApprove(token, spender, 0, true)) revert SafeERC20FailedOperation(address(token));\n            if (!_safeApprove(token, spender, value, true)) revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n     * code. This can be used to implement an {ERC721}-like safe transfer that relies on {ERC1363} checks when\n     * targeting contracts.\n     *\n     * Reverts if the returned value is other than `true`.\n     */\n    function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n        if (to.code.length == 0) {\n            safeTransfer(token, to, value);\n        } else if (!token.transferAndCall(to, value, data)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n     * has no code. This can be used to implement an {ERC721}-like safe transfer that relies on {ERC1363} checks when\n     * targeting contracts.\n     *\n     * Reverts if the returned value is other than `true`.\n     */\n    function transferFromAndCallRelaxed(\n        IERC1363 token,\n        address from,\n        address to,\n        uint256 value,\n        bytes memory data\n    ) internal {\n        if (to.code.length == 0) {\n            safeTransferFrom(token, from, to, value);\n        } else if (!token.transferFromAndCall(from, to, value, data)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n     * targeting contracts.\n     *\n     * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n     * Oppositely, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n     * once without retrying, and relies on the returned value to be true.\n     *\n     * Reverts if the returned value is other than `true`.\n     */\n    function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n        if (to.code.length == 0) {\n            forceApprove(token, to, value);\n        } else if (!token.approveAndCall(to, value, data)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /// @dev Attempts to fetch the token decimals. A return value of false indicates that the attempt failed in some way.\n    function tryGetDecimals(IERC20 token) internal view returns (bool success, uint8 decimals) {\n        bytes4 selector = IERC20Metadata.decimals.selector;\n        assembly (\"memory-safe\") {\n            mstore(0x00, selector)\n            success := staticcall(gas(), token, 0x00, 4, 0x00, 0x20)\n            success := and(and(success, gt(returndatasize(), 0x1f)), lt(mload(0x00), 0x100))\n            decimals := mul(success, mload(0x00))\n        }\n    }\n\n    /**\n     * @dev Imitates a Solidity `token.transfer(to, value)` call, relaxing the requirement on the return value: the\n     * return value is optional (but if data is returned, it must not be false).\n     *\n     * @param token The token targeted by the call.\n     * @param to The recipient of the tokens\n     * @param value The amount of token to transfer\n     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.\n     */\n    function _safeTransfer(IERC20 token, address to, uint256 value, bool bubble) private returns (bool success) {\n        bytes4 selector = IERC20.transfer.selector;\n\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(0x00, selector)\n            mstore(0x04, and(to, shr(96, not(0))))\n            mstore(0x24, value)\n            success := call(gas(), token, 0, 0x00, 0x44, 0x00, 0x20)\n            // if call success and return is true, all is good.\n            // otherwise (not success or return is not true), we need to perform further checks\n            if iszero(and(success, eq(mload(0x00), 1))) {\n                // if the call was a failure and bubble is enabled, bubble the error\n                if and(iszero(success), bubble) {\n                    returndatacopy(fmp, 0x00, returndatasize())\n                    revert(fmp, returndatasize())\n                }\n                // if the return value is not true, then the call is only successful if:\n                // - the token address has code\n                // - the returndata is empty\n                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))\n            }\n            mstore(0x40, fmp)\n        }\n    }\n\n    /**\n     * @dev Imitates a Solidity `token.transferFrom(from, to, value)` call, relaxing the requirement on the return\n     * value: the return value is optional (but if data is returned, it must not be false).\n     *\n     * @param token The token targeted by the call.\n     * @param from The sender of the tokens\n     * @param to The recipient of the tokens\n     * @param value The amount of token to transfer\n     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.\n     */\n    function _safeTransferFrom(\n        IERC20 token,\n        address from,\n        address to,\n        uint256 value,\n        bool bubble\n    ) private returns (bool success) {\n        bytes4 selector = IERC20.transferFrom.selector;\n\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(0x00, selector)\n            mstore(0x04, and(from, shr(96, not(0))))\n            mstore(0x24, and(to, shr(96, not(0))))\n            mstore(0x44, value)\n            success := call(gas(), token, 0, 0x00, 0x64, 0x00, 0x20)\n            // if call success and return is true, all is good.\n            // otherwise (not success or return is not true), we need to perform further checks\n            if iszero(and(success, eq(mload(0x00), 1))) {\n                // if the call was a failure and bubble is enabled, bubble the error\n                if and(iszero(success), bubble) {\n                    returndatacopy(fmp, 0x00, returndatasize())\n                    revert(fmp, returndatasize())\n                }\n                // if the return value is not true, then the call is only successful if:\n                // - the token address has code\n                // - the returndata is empty\n                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))\n            }\n            mstore(0x40, fmp)\n            mstore(0x60, 0)\n        }\n    }\n\n    /**\n     * @dev Imitates a Solidity `token.approve(spender, value)` call, relaxing the requirement on the return value:\n     * the return value is optional (but if data is returned, it must not be false).\n     *\n     * @param token The token targeted by the call.\n     * @param spender The spender of the tokens\n     * @param value The amount of token to approve\n     * @param bubble Behavior switch if the approve call reverts: bubble the revert reason or return a false boolean.\n     */\n    function _safeApprove(IERC20 token, address spender, uint256 value, bool bubble) private returns (bool success) {\n        bytes4 selector = IERC20.approve.selector;\n\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(0x00, selector)\n            mstore(0x04, and(spender, shr(96, not(0))))\n            mstore(0x24, value)\n            success := call(gas(), token, 0, 0x00, 0x44, 0x00, 0x20)\n            // if call success and return is true, all is good.\n            // otherwise (not success or return is not true), we need to perform further checks\n            if iszero(and(success, eq(mload(0x00), 1))) {\n                // if the call was a failure and bubble is enabled, bubble the error\n                if and(iszero(success), bubble) {\n                    returndatacopy(fmp, 0x00, returndatasize())\n                    revert(fmp, returndatasize())\n                }\n                // if the return value is not true, then the call is only successful if:\n                // - the token address has code\n                // - the returndata is empty\n                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))\n            }\n            mstore(0x40, fmp)\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n    /**\n     * @dev Returns true if this contract implements the interface defined by\n     * `interfaceId`. See the corresponding\n     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]\n     * to learn more about how these ids are created.\n     *\n     * This function call must use less than 30 000 gas.\n     */\n    function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC20Minimal.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @title Minimal ERC20 interface for Uniswap\n/// @notice Contains a subset of the full ERC20 interface that is used in Uniswap V3\ninterface IERC20Minimal {\n    /// @notice Returns an account's balance in the token\n    /// @param account The account for which to look up the number of tokens it has, i.e. its balance\n    /// @return The number of tokens held by the account\n    function balanceOf(address account) external view returns (uint256);\n\n    /// @notice Transfers the amount of token from the `msg.sender` to the recipient\n    /// @param recipient The account that will receive the amount transferred\n    /// @param amount The number of tokens to send from the sender to the recipient\n    /// @return Returns true for a successful transfer, false for an unsuccessful transfer\n    function transfer(address recipient, uint256 amount) external returns (bool);\n\n    /// @notice Returns the current allowance given to a spender by an owner\n    /// @param owner The account of the token owner\n    /// @param spender The account of the token spender\n    /// @return The current allowance granted by `owner` to `spender`\n    function allowance(address owner, address spender) external view returns (uint256);\n\n    /// @notice Sets the allowance of a spender from the `msg.sender` to the value `amount`\n    /// @param spender The account which will be allowed to spend a given amount of the owners tokens\n    /// @param amount The amount of tokens allowed to be used by `spender`\n    /// @return Returns true for a successful approval, false for unsuccessful\n    function approve(address spender, uint256 amount) external returns (bool);\n\n    /// @notice Transfers `amount` tokens from `sender` to `recipient` up to the allowance given to the `msg.sender`\n    /// @param sender The account from which the transfer will be initiated\n    /// @param recipient The recipient of the transfer\n    /// @param amount The amount of the transfer\n    /// @return Returns true for a successful transfer, false for unsuccessful\n    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);\n\n    /// @notice Event emitted when tokens are transferred from one address to another, either via `#transfer` or `#transferFrom`.\n    /// @param from The account from which the tokens were sent, i.e. the balance decreased\n    /// @param to The account to which the tokens were sent, i.e. the balance increased\n    /// @param value The amount of tokens that were transferred\n    event Transfer(address indexed from, address indexed to, uint256 value);\n\n    /// @notice Event emitted when the approval amount for the spender of a given owner's tokens changes.\n    /// @param owner The account that approved spending of its tokens\n    /// @param spender The account for which the spending allowance was modified\n    /// @param value The new allowance from the owner to the spender\n    event Approval(address indexed owner, address indexed spender, uint256 value);\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC6909Claims.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @notice Interface for claims over a contract balance, wrapped as a ERC6909\ninterface IERC6909Claims {\n    /*//////////////////////////////////////////////////////////////\n                                 EVENTS\n    //////////////////////////////////////////////////////////////*/\n\n    event OperatorSet(address indexed owner, address indexed operator, bool approved);\n\n    event Approval(address indexed owner, address indexed spender, uint256 indexed id, uint256 amount);\n\n    event Transfer(address caller, address indexed from, address indexed to, uint256 indexed id, uint256 amount);\n\n    /*//////////////////////////////////////////////////////////////\n                                 FUNCTIONS\n    //////////////////////////////////////////////////////////////*/\n\n    /// @notice Owner balance of an id.\n    /// @param owner The address of the owner.\n    /// @param id The id of the token.\n    /// @return amount The balance of the token.\n    function balanceOf(address owner, uint256 id) external view returns (uint256 amount);\n\n    /// @notice Spender allowance of an id.\n    /// @param owner The address of the owner.\n    /// @param spender The address of the spender.\n    /// @param id The id of the token.\n    /// @return amount The allowance of the token.\n    function allowance(address owner, address spender, uint256 id) external view returns (uint256 amount);\n\n    /// @notice Checks if a spender is approved by an owner as an operator\n    /// @param owner The address of the owner.\n    /// @param spender The address of the spender.\n    /// @return approved The approval status.\n    function isOperator(address owner, address spender) external view returns (bool approved);\n\n    /// @notice Transfers an amount of an id from the caller to a receiver.\n    /// @param receiver The address of the receiver.\n    /// @param id The id of the token.\n    /// @param amount The amount of the token.\n    /// @return bool True, always, unless the function reverts\n    function transfer(address receiver, uint256 id, uint256 amount) external returns (bool);\n\n    /// @notice Transfers an amount of an id from a sender to a receiver.\n    /// @param sender The address of the sender.\n    /// @param receiver The address of the receiver.\n    /// @param id The id of the token.\n    /// @param amount The amount of the token.\n    /// @return bool True, always, unless the function reverts\n    function transferFrom(address sender, address receiver, uint256 id, uint256 amount) external returns (bool);\n\n    /// @notice Approves an amount of an id to a spender.\n    /// @param spender The address of the spender.\n    /// @param id The id of the token.\n    /// @param amount The amount of the token.\n    /// @return bool True, always\n    function approve(address spender, uint256 id, uint256 amount) external returns (bool);\n\n    /// @notice Sets or removes an operator for the caller.\n    /// @param operator The address of the operator.\n    /// @param approved The approval status.\n    /// @return bool True, always\n    function setOperator(address operator, bool approved) external returns (bool);\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/callback/IUnlockCallback.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @notice Interface for the callback executed when an address unlocks the pool manager\ninterface IUnlockCallback {\n    /// @notice Called by the pool manager on `msg.sender` when the manager is unlocked\n    /// @param data The data that was passed to the call to unlock\n    /// @return Any data that you want to be returned from the unlock call\n    function unlockCallback(bytes calldata data) external returns (bytes memory);\n}\n"},"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/extensions/IERC20Metadata.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"../IERC20.sol\";\n\n/**\n * @dev Interface for the optional metadata functions from the ERC-20 standard.\n */\ninterface IERC20Metadata is IERC20 {\n    /**\n     * @dev Returns the name of the token.\n     */\n    function name() external view returns (string memory);\n\n    /**\n     * @dev Returns the symbol of the token.\n     */\n    function symbol() external view returns (string memory);\n\n    /**\n     * @dev Returns the decimals places of the token.\n     */\n    function decimals() external view returns (uint8);\n}\n"}},"language":"Solidity","settings":{"viaIR":false,"metadata":{"appendCBOR":true,"bytecodeHash":"none","useLiteralContent":false},"libraries":{},"optimizer":{"runs":200,"enabled":true},"evmVersion":"cancun","remappings":["@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/","openzeppelin-contracts/=lib/openzeppelin-contracts/","@uniswap/v4-core/=lib/v4-periphery/lib/v4-core/","v4-core/=lib/v4-periphery/lib/v4-core/src/","v4-periphery/=lib/v4-periphery/","permit2/=lib/v4-periphery/lib/permit2/","forge-std/=lib/forge-std/src/","ds-test/=lib/v4-periphery/lib/v4-core/lib/forge-std/lib/ds-test/src/","solmate/=lib/v4-periphery/lib/v4-core/lib/solmate/","forge-gas-snapshot/=lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/src/","@ensdomains/=lib/v4-periphery/lib/v4-core/node_modules/@ensdomains/","hardhat/=lib/v4-periphery/lib/v4-core/node_modules/hardhat/","erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/","halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/"]}},"stdJsonOutput":{"sources":{"src/LaunchpadHook.sol":{"id":27},"src/interfaces/IFeeCollector.sol":{"id":28},"lib/v4-periphery/lib/v4-core/src/types/PoolId.sol":{"id":24},"lib/v4-periphery/lib/v4-core/src/types/PoolKey.sol":{"id":25},"lib/v4-periphery/lib/v4-core/src/types/Currency.sol":{"id":23},"lib/v4-periphery/lib/v4-core/src/libraries/Hooks.sol":{"id":17},"lib/v4-periphery/lib/v4-core/src/interfaces/IHooks.sol":{"id":10},"lib/v4-periphery/lib/v4-core/src/libraries/SafeCast.sol":{"id":20},"lib/v4-periphery/lib/v4-core/src/types/BalanceDelta.sol":{"id":21},"lib/v4-periphery/lib/v4-core/src/types/PoolOperation.sol":{"id":26},"lib/v4-periphery/lib/v4-core/src/interfaces/IExtsload.sol":{"id":8},"lib/v4-periphery/lib/v4-core/src/interfaces/IExttload.sol":{"id":9},"lib/v4-periphery/lib/v4-core/src/libraries/ParseBytes.sol":{"id":19},"lib/openzeppelin-contracts/contracts/interfaces/IERC20.sol":{"id":2},"lib/v4-periphery/lib/v4-core/src/types/BeforeSwapDelta.sol":{"id":22},"lib/openzeppelin-contracts/contracts/interfaces/IERC165.sol":{"id":1},"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol":{"id":4},"lib/v4-periphery/lib/v4-core/src/libraries/CustomRevert.sol":{"id":16},"lib/v4-periphery/lib/v4-core/src/libraries/LPFeeLibrary.sol":{"id":18},"lib/openzeppelin-contracts/contracts/interfaces/IERC1363.sol":{"id":0},"lib/v4-periphery/lib/v4-core/src/interfaces/IPoolManager.sol":{"id":11},"lib/v4-periphery/lib/v4-core/src/interfaces/IProtocolFees.sol":{"id":12},"lib/openzeppelin-contracts/contracts/interfaces/IERC20Metadata.sol":{"id":3},"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol":{"id":6},"lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol":{"id":7},"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC20Minimal.sol":{"id":14},"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC6909Claims.sol":{"id":15},"lib/v4-periphery/lib/v4-core/src/interfaces/callback/IUnlockCallback.sol":{"id":13},"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol":{"id":5}},"contracts":{"src/LaunchpadHook.sol":{"LaunchpadHook":{"abi":[{"type":"constructor","inputs":[{"name":"poolManager_","type":"address","internalType":"contract IPoolManager"},{"name":"tokenizedStock_","type":"address","internalType":"contract IERC20"},{"name":"feeCollector_","type":"address","internalType":"contract IFeeCollector"}],"stateMutability":"nonpayable"},{"name":"HookNotImplemented","type":"error","inputs":[]},{"name":"InvalidHookAddress","type":"error","inputs":[]},{"name":"NotPoolManager","type":"error","inputs":[]},{"name":"PoolMustPairTokenizedStock","type":"error","inputs":[]},{"name":"SafeERC20FailedOperation","type":"error","inputs":[{"name":"token","type":"address","internalType":"address"}]},{"name":"FeeDeferredAsClaim","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"FeeSettled","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"ProtocolFeeCharged","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"poolId","type":"bytes32","indexed":true,"internalType":"PoolId"},{"name":"stockVolume","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"feeAmount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"PROTOCOL_FEE_BPS","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"REQUIRED_FLAGS","type":"function","inputs":[],"outputs":[{"name":"","type":"uint160","internalType":"uint160"}],"stateMutability":"view"},{"name":"activePoolsOnDay","type":"function","inputs":[{"name":"day","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"afterAddLiquidity","type":"function","inputs":[{"name":"","type":"address","internalType":"address"},{"name":"","type":"tuple","components":[{"name":"currency0","type":"address","internalType":"Currency"},{"name":"currency1","type":"address","internalType":"Currency"},{"name":"fee","type":"uint24","internalType":"uint24"},{"name":"tickSpacing","type":"int24","internalType":"int24"},{"name":"hooks","type":"address","internalType":"contract IHooks"}],"internalType":"struct PoolKey"},{"name":"","type":"tuple","components":[{"name":"tickLower","type":"int24","internalType":"int24"},{"name":"tickUpper","type":"int24","internalType":"int24"},{"name":"liquidityDelta","type":"int256","internalType":"int256"},{"name":"salt","type":"bytes32","internalType":"bytes32"}],"internalType":"struct ModifyLiquidityParams"},{"name":"","type":"int256","internalType":"BalanceDelta"},{"name":"","type":"int256","internalType":"BalanceDelta"},{"name":"","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"","type":"bytes4","internalType":"bytes4"},{"name":"","type":"int256","internalType":"BalanceDelta"}],"stateMutability":"pure"},{"name":"afterDonate","type":"function","inputs":[{"name":"","type":"address","internalType":"address"},{"name":"","type":"tuple","components":[{"name":"currency0","type":"address","internalType":"Currency"},{"name":"currency1","type":"address","internalType":"Currency"},{"name":"fee","type":"uint24","internalType":"uint24"},{"name":"tickSpacing","type":"int24","internalType":"int24"},{"name":"hooks","type":"address","internalType":"contract IHooks"}],"internalType":"struct PoolKey"},{"name":"","type":"uint256","internalType":"uint256"},{"name":"","type":"uint256","internalType":"uint256"},{"name":"","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"","type":"bytes4","internalType":"bytes4"}],"stateMutability":"pure"},{"name":"afterInitialize","type":"function","inputs":[{"name":"","type":"address","internalType":"address"},{"name":"","type":"tuple","components":[{"name":"currency0","type":"address","internalType":"Currency"},{"name":"currency1","type":"address","internalType":"Currency"},{"name":"fee","type":"uint24","internalType":"uint24"},{"name":"tickSpacing","type":"int24","internalType":"int24"},{"name":"hooks","type":"address","internalType":"contract IHooks"}],"internalType":"struct PoolKey"},{"name":"","type":"uint160","internalType":"uint160"},{"name":"","type":"int24","internalType":"int24"}],"outputs":[{"name":"","type":"bytes4","internalType":"bytes4"}],"stateMutability":"pure"},{"name":"afterRemoveLiquidity","type":"function","inputs":[{"name":"","type":"address","internalType":"address"},{"name":"","type":"tuple","components":[{"name":"currency0","type":"address","internalType":"Currency"},{"name":"currency1","type":"address","internalType":"Currency"},{"name":"fee","type":"uint24","internalType":"uint24"},{"name":"tickSpacing","type":"int24","internalType":"int24"},{"name":"hooks","type":"address","internalType":"contract IHooks"}],"internalType":"struct PoolKey"},{"name":"","type":"tuple","components":[{"name":"tickLower","type":"int24","internalType":"int24"},{"name":"tickUpper","type":"int24","internalType":"int24"},{"name":"liquidityDelta","type":"int256","internalType":"int256"},{"name":"salt","type":"bytes32","internalType":"bytes32"}],"internalType":"struct ModifyLiquidityParams"},{"name":"","type":"int256","internalType":"BalanceDelta"},{"name":"","type":"int256","internalType":"BalanceDelta"},{"name":"","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"","type":"bytes4","internalType":"bytes4"},{"name":"","type":"int256","internalType":"BalanceDelta"}],"stateMutability":"pure"},{"name":"afterSwap","type":"function","inputs":[{"name":"","type":"address","internalType":"address"},{"name":"key","type":"tuple","components":[{"name":"currency0","type":"address","internalType":"Currency"},{"name":"currency1","type":"address","internalType":"Currency"},{"name":"fee","type":"uint24","internalType":"uint24"},{"name":"tickSpacing","type":"int24","internalType":"int24"},{"name":"hooks","type":"address","internalType":"contract IHooks"}],"internalType":"struct PoolKey"},{"name":"params","type":"tuple","components":[{"name":"zeroForOne","type":"bool","internalType":"bool"},{"name":"amountSpecified","type":"int256","internalType":"int256"},{"name":"sqrtPriceLimitX96","type":"uint160","internalType":"uint160"}],"internalType":"struct SwapParams"},{"name":"delta","type":"int256","internalType":"BalanceDelta"},{"name":"","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"","type":"bytes4","internalType":"bytes4"},{"name":"","type":"int128","internalType":"int128"}],"stateMutability":"nonpayable"},{"name":"beforeAddLiquidity","type":"function","inputs":[{"name":"","type":"address","internalType":"address"},{"name":"","type":"tuple","components":[{"name":"currency0","type":"address","internalType":"Currency"},{"name":"currency1","type":"address","internalType":"Currency"},{"name":"fee","type":"uint24","internalType":"uint24"},{"name":"tickSpacing","type":"int24","internalType":"int24"},{"name":"hooks","type":"address","internalType":"contract IHooks"}],"internalType":"struct PoolKey"},{"name":"","type":"tuple","components":[{"name":"tickLower","type":"int24","internalType":"int24"},{"name":"tickUpper","type":"int24","internalType":"int24"},{"name":"liquidityDelta","type":"int256","internalType":"int256"},{"name":"salt","type":"bytes32","internalType":"bytes32"}],"internalType":"struct ModifyLiquidityParams"},{"name":"","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"","type":"bytes4","internalType":"bytes4"}],"stateMutability":"pure"},{"name":"beforeDonate","type":"function","inputs":[{"name":"","type":"address","internalType":"address"},{"name":"","type":"tuple","components":[{"name":"currency0","type":"address","internalType":"Currency"},{"name":"currency1","type":"address","internalType":"Currency"},{"name":"fee","type":"uint24","internalType":"uint24"},{"name":"tickSpacing","type":"int24","internalType":"int24"},{"name":"hooks","type":"address","internalType":"contract IHooks"}],"internalType":"struct PoolKey"},{"name":"","type":"uint256","internalType":"uint256"},{"name":"","type":"uint256","internalType":"uint256"},{"name":"","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"","type":"bytes4","internalType":"bytes4"}],"stateMutability":"pure"},{"name":"beforeInitialize","type":"function","inputs":[{"name":"","type":"address","internalType":"address"},{"name":"","type":"tuple","components":[{"name":"currency0","type":"address","internalType":"Currency"},{"name":"currency1","type":"address","internalType":"Currency"},{"name":"fee","type":"uint24","internalType":"uint24"},{"name":"tickSpacing","type":"int24","internalType":"int24"},{"name":"hooks","type":"address","internalType":"contract IHooks"}],"internalType":"struct PoolKey"},{"name":"","type":"uint160","internalType":"uint160"}],"outputs":[{"name":"","type":"bytes4","internalType":"bytes4"}],"stateMutability":"pure"},{"name":"beforeRemoveLiquidity","type":"function","inputs":[{"name":"","type":"address","internalType":"address"},{"name":"","type":"tuple","components":[{"name":"currency0","type":"address","internalType":"Currency"},{"name":"currency1","type":"address","internalType":"Currency"},{"name":"fee","type":"uint24","internalType":"uint24"},{"name":"tickSpacing","type":"int24","internalType":"int24"},{"name":"hooks","type":"address","internalType":"contract IHooks"}],"internalType":"struct PoolKey"},{"name":"","type":"tuple","components":[{"name":"tickLower","type":"int24","internalType":"int24"},{"name":"tickUpper","type":"int24","internalType":"int24"},{"name":"liquidityDelta","type":"int256","internalType":"int256"},{"name":"salt","type":"bytes32","internalType":"bytes32"}],"internalType":"struct ModifyLiquidityParams"},{"name":"","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"","type":"bytes4","internalType":"bytes4"}],"stateMutability":"pure"},{"name":"beforeSwap","type":"function","inputs":[{"name":"","type":"address","internalType":"address"},{"name":"key","type":"tuple","components":[{"name":"currency0","type":"address","internalType":"Currency"},{"name":"currency1","type":"address","internalType":"Currency"},{"name":"fee","type":"uint24","internalType":"uint24"},{"name":"tickSpacing","type":"int24","internalType":"int24"},{"name":"hooks","type":"address","internalType":"contract IHooks"}],"internalType":"struct PoolKey"},{"name":"params","type":"tuple","components":[{"name":"zeroForOne","type":"bool","internalType":"bool"},{"name":"amountSpecified","type":"int256","internalType":"int256"},{"name":"sqrtPriceLimitX96","type":"uint160","internalType":"uint160"}],"internalType":"struct SwapParams"},{"name":"","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"","type":"bytes4","internalType":"bytes4"},{"name":"","type":"int256","internalType":"BeforeSwapDelta"},{"name":"","type":"uint24","internalType":"uint24"}],"stateMutability":"nonpayable"},{"name":"currentDay","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"feeCollector","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IFeeCollector"}],"stateMutability":"view"},{"name":"feesChargedOf","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"feesOnDay","type":"function","inputs":[{"name":"day","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"lastActiveDay","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"poolManager","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IPoolManager"}],"stateMutability":"view"},{"name":"poolsEverTraded","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"settleAllFees","type":"function","inputs":[],"outputs":[{"name":"total","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"name":"settleFees","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"settled","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"name":"stockCurrency","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"Currency"}],"stateMutability":"view"},{"name":"stockLockedOf","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"tokenizedStock","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IERC20"}],"stateMutability":"view"},{"name":"totalFeesCharged","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"totalStockLocked","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"totalUnsettledFees","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"totalVolume","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"unlockCallback","type":"function","inputs":[{"name":"data","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"","type":"bytes","internalType":"bytes"}],"stateMutability":"nonpayable"},{"name":"unsettledFeeOf","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"unsettledTokens","type":"function","inputs":[],"outputs":[{"name":"","type":"address[]","internalType":"address[]"}],"stateMutability":"view"},{"name":"volumeOf","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"volumeOnDay","type":"function","inputs":[{"name":"day","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"}],"metadata":"{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"contract IPoolManager\",\"name\":\"poolManager_\",\"type\":\"address\"},{\"internalType\":\"contract IERC20\",\"name\":\"tokenizedStock_\",\"type\":\"address\"},{\"internalType\":\"contract IFeeCollector\",\"name\":\"feeCollector_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"HookNotImplemented\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidHookAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotPoolManager\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PoolMustPairTokenizedStock\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"SafeERC20FailedOperation\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"FeeDeferredAsClaim\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"FeeSettled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"PoolId\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"stockVolume\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"}],\"name\":\"ProtocolFeeCharged\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"PROTOCOL_FEE_BPS\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"REQUIRED_FLAGS\",\"outputs\":[{\"internalType\":\"uint160\",\"name\":\"\",\"type\":\"uint160\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"day\",\"type\":\"uint256\"}],\"name\":\"activePoolsOnDay\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"Currency\",\"name\":\"currency0\",\"type\":\"address\"},{\"internalType\":\"Currency\",\"name\":\"currency1\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"internalType\":\"int24\",\"name\":\"tickSpacing\",\"type\":\"int24\"},{\"internalType\":\"contract IHooks\",\"name\":\"hooks\",\"type\":\"address\"}],\"internalType\":\"struct PoolKey\",\"name\":\"\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"int24\",\"name\":\"tickLower\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"tickUpper\",\"type\":\"int24\"},{\"internalType\":\"int256\",\"name\":\"liquidityDelta\",\"type\":\"int256\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"}],\"internalType\":\"struct ModifyLiquidityParams\",\"name\":\"\",\"type\":\"tuple\"},{\"internalType\":\"BalanceDelta\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"BalanceDelta\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"afterAddLiquidity\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"},{\"internalType\":\"BalanceDelta\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"Currency\",\"name\":\"currency0\",\"type\":\"address\"},{\"internalType\":\"Currency\",\"name\":\"currency1\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"internalType\":\"int24\",\"name\":\"tickSpacing\",\"type\":\"int24\"},{\"internalType\":\"contract IHooks\",\"name\":\"hooks\",\"type\":\"address\"}],\"internalType\":\"struct PoolKey\",\"name\":\"\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"afterDonate\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"Currency\",\"name\":\"currency0\",\"type\":\"address\"},{\"internalType\":\"Currency\",\"name\":\"currency1\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"internalType\":\"int24\",\"name\":\"tickSpacing\",\"type\":\"int24\"},{\"internalType\":\"contract IHooks\",\"name\":\"hooks\",\"type\":\"address\"}],\"internalType\":\"struct PoolKey\",\"name\":\"\",\"type\":\"tuple\"},{\"internalType\":\"uint160\",\"name\":\"\",\"type\":\"uint160\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"name\":\"afterInitialize\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"Currency\",\"name\":\"currency0\",\"type\":\"address\"},{\"internalType\":\"Currency\",\"name\":\"currency1\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"internalType\":\"int24\",\"name\":\"tickSpacing\",\"type\":\"int24\"},{\"internalType\":\"contract IHooks\",\"name\":\"hooks\",\"type\":\"address\"}],\"internalType\":\"struct PoolKey\",\"name\":\"\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"int24\",\"name\":\"tickLower\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"tickUpper\",\"type\":\"int24\"},{\"internalType\":\"int256\",\"name\":\"liquidityDelta\",\"type\":\"int256\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"}],\"internalType\":\"struct ModifyLiquidityParams\",\"name\":\"\",\"type\":\"tuple\"},{\"internalType\":\"BalanceDelta\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"BalanceDelta\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"afterRemoveLiquidity\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"},{\"internalType\":\"BalanceDelta\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"Currency\",\"name\":\"currency0\",\"type\":\"address\"},{\"internalType\":\"Currency\",\"name\":\"currency1\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"internalType\":\"int24\",\"name\":\"tickSpacing\",\"type\":\"int24\"},{\"internalType\":\"contract IHooks\",\"name\":\"hooks\",\"type\":\"address\"}],\"internalType\":\"struct PoolKey\",\"name\":\"key\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"zeroForOne\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"amountSpecified\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"sqrtPriceLimitX96\",\"type\":\"uint160\"}],\"internalType\":\"struct SwapParams\",\"name\":\"params\",\"type\":\"tuple\"},{\"internalType\":\"BalanceDelta\",\"name\":\"delta\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"afterSwap\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"},{\"internalType\":\"int128\",\"name\":\"\",\"type\":\"int128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"Currency\",\"name\":\"currency0\",\"type\":\"address\"},{\"internalType\":\"Currency\",\"name\":\"currency1\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"internalType\":\"int24\",\"name\":\"tickSpacing\",\"type\":\"int24\"},{\"internalType\":\"contract IHooks\",\"name\":\"hooks\",\"type\":\"address\"}],\"internalType\":\"struct PoolKey\",\"name\":\"\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"int24\",\"name\":\"tickLower\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"tickUpper\",\"type\":\"int24\"},{\"internalType\":\"int256\",\"name\":\"liquidityDelta\",\"type\":\"int256\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"}],\"internalType\":\"struct ModifyLiquidityParams\",\"name\":\"\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"beforeAddLiquidity\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"Currency\",\"name\":\"currency0\",\"type\":\"address\"},{\"internalType\":\"Currency\",\"name\":\"currency1\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"internalType\":\"int24\",\"name\":\"tickSpacing\",\"type\":\"int24\"},{\"internalType\":\"contract IHooks\",\"name\":\"hooks\",\"type\":\"address\"}],\"internalType\":\"struct PoolKey\",\"name\":\"\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"beforeDonate\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"Currency\",\"name\":\"currency0\",\"type\":\"address\"},{\"internalType\":\"Currency\",\"name\":\"currency1\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"internalType\":\"int24\",\"name\":\"tickSpacing\",\"type\":\"int24\"},{\"internalType\":\"contract IHooks\",\"name\":\"hooks\",\"type\":\"address\"}],\"internalType\":\"struct PoolKey\",\"name\":\"\",\"type\":\"tuple\"},{\"internalType\":\"uint160\",\"name\":\"\",\"type\":\"uint160\"}],\"name\":\"beforeInitialize\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"Currency\",\"name\":\"currency0\",\"type\":\"address\"},{\"internalType\":\"Currency\",\"name\":\"currency1\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"internalType\":\"int24\",\"name\":\"tickSpacing\",\"type\":\"int24\"},{\"internalType\":\"contract IHooks\",\"name\":\"hooks\",\"type\":\"address\"}],\"internalType\":\"struct PoolKey\",\"name\":\"\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"int24\",\"name\":\"tickLower\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"tickUpper\",\"type\":\"int24\"},{\"internalType\":\"int256\",\"name\":\"liquidityDelta\",\"type\":\"int256\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"}],\"internalType\":\"struct ModifyLiquidityParams\",\"name\":\"\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"beforeRemoveLiquidity\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"Currency\",\"name\":\"currency0\",\"type\":\"address\"},{\"internalType\":\"Currency\",\"name\":\"currency1\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"internalType\":\"int24\",\"name\":\"tickSpacing\",\"type\":\"int24\"},{\"internalType\":\"contract IHooks\",\"name\":\"hooks\",\"type\":\"address\"}],\"internalType\":\"struct PoolKey\",\"name\":\"key\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"zeroForOne\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"amountSpecified\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"sqrtPriceLimitX96\",\"type\":\"uint160\"}],\"internalType\":\"struct SwapParams\",\"name\":\"params\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"beforeSwap\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"},{\"internalType\":\"BeforeSwapDelta\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"currentDay\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeCollector\",\"outputs\":[{\"internalType\":\"contract IFeeCollector\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"feesChargedOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"day\",\"type\":\"uint256\"}],\"name\":\"feesOnDay\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"lastActiveDay\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"poolManager\",\"outputs\":[{\"internalType\":\"contract IPoolManager\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"poolsEverTraded\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"settleAllFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"total\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"settleFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"settled\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stockCurrency\",\"outputs\":[{\"internalType\":\"Currency\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"stockLockedOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tokenizedStock\",\"outputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalFeesCharged\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalStockLocked\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalUnsettledFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalVolume\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"unlockCallback\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"unsettledFeeOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unsettledTokens\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"volumeOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"day\",\"type\":\"uint256\"}],\"name\":\"volumeOnDay\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"WHY THIS CONTRACT EXISTS (it was not in the six-contract brief):      The brief asks for two things that cannot both be true without a hook. It asks that      the LP NFT of every launch pool be burned to 0xdead so liquidity is locked forever,      and it asks that the FeeCollector collect trading fees from those pools. In Uniswap      v4 swap fees accrue to the *position*. Burn the position's NFT and the fees it earns      become permanently unclaimable — by anyone, including the protocol. The company      would report zero revenue.      A hook resolves it. Liquidity stays provably locked (the NFT really is at 0xdead and      nobody can decrease the position), and the protocol still earns, because the hook      skims its fee off the swap itself before the pool ever sees it.      FEE DENOMINATION. Fees are charged only on BUYS, and always in TokenizedStock. That      is a deliberate product choice as much as an engineering one: it matches the thesis      (\\\"every buy creates demand for the stock\\\"), it keeps 100% of protocol revenue      denominated in the asset the treasury actually wants to report, and it means the      FeeCollector never has to liquidate a long tail of memecoins to work out what a      quarter earned. Sells are untaxed, which also keeps the blink window's \\\"selling is      unrestricted at all times\\\" promise honest.      Landing the fee in TokenizedStock in both buy shapes takes both callbacks, because      v4 only lets a hook adjust the *specified* currency in `beforeSwap` and the      *unspecified* one in `afterSwap`:        - exact-input buy  (spend N stock):   stock is the specified currency   -> beforeSwap        - exact-output buy (receive N token): stock is the unspecified currency -> afterSwap      TAKE-OR-CLAIM. `poolManager.take` moves real ERC-20 out of the singleton, so it only      works if the singleton is *already* holding enough stock at that instant. Mid-swap it      may not be: a launch pool opens with zero stock, and the buyer has not settled their      input yet. So the hook takes real tokens when the balance covers it and otherwise      mints itself an ERC-6909 claim, which always succeeds. Claims are realised      automatically on that pool's next trade, or by anyone calling `settleFees`. A thin      moment in the singleton can therefore never revert a user's swap, and no fee is ever      lost — only briefly deferred.      All volume / TVL accounting happens in `afterSwap`, where the realised `BalanceDelta`      is known, so the numbers reflect what actually swapped rather than what was requested.      No owner, no admin, no parameters to change. The fee rate is a constant.\",\"errors\":{\"SafeERC20FailedOperation(address)\":[{\"details\":\"An operation with an ERC-20 token failed.\"}]},\"kind\":\"dev\",\"methods\":{\"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)\":{\"params\":{\"delta\":\"The amount owed to the caller (positive) or owed to the pool (negative)\",\"hookData\":\"Arbitrary data handed into the PoolManager by the swapper to be be passed on to the hook\",\"key\":\"The key for the pool\",\"params\":\"The parameters for the swap\",\"sender\":\"The initial msg.sender for the swap call\"},\"returns\":{\"_0\":\"bytes4 The function selector for the hook\",\"_1\":\"int128 The hook's delta in unspecified currency. Positive: the hook is owed/took currency, negative: the hook owes/sent currency\"}},\"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)\":{\"params\":{\"hookData\":\"Arbitrary data handed into the PoolManager by the swapper to be be passed on to the hook\",\"key\":\"The key for the pool\",\"params\":\"The parameters for the swap\",\"sender\":\"The initial msg.sender for the swap call\"},\"returns\":{\"_0\":\"bytes4 The function selector for the hook\",\"_1\":\"BeforeSwapDelta The hook's delta in specified and unspecified currencies. Positive: the hook is owed/took currency, negative: the hook owes/sent currency\",\"_2\":\"uint24 Optionally override the lp fee, only used if three conditions are met: 1. the Pool has a dynamic fee, 2. the value's 2nd highest bit is set (23rd bit, 0x400000), and 3. the value is less than or equal to the maximum fee (1 million)\"}},\"unlockCallback(bytes)\":{\"details\":\"Only ever used by `settleFees`: burn the claim for a credit, then take the      matching ERC-20. Net delta zero.\",\"params\":{\"data\":\"The data that was passed to the call to unlock\"},\"returns\":{\"_0\":\"Any data that you want to be returned from the unlock call\"}}},\"stateVariables\":{\"REQUIRED_FLAGS\":{\"details\":\"beforeSwap | beforeSwapReturnDelta | afterSwap | afterSwapReturnDelta.\"},\"_feeTakenInBeforeSwap\":{\"details\":\"Handoff from `beforeSwap` to `afterSwap` within a single swap. Written and      cleared inside the same `PoolManager.swap` call, never observable across      transactions.\"}},\"title\":\"LaunchpadHook\",\"version\":1},\"userdoc\":{\"events\":{\"FeeDeferredAsClaim(address,uint256)\":{\"notice\":\"The singleton could not cover the fee in ERC-20, so it was taken as a claim.\"},\"FeeSettled(address,uint256)\":{\"notice\":\"A deferred claim was converted back into ERC-20 and forwarded on.\"}},\"kind\":\"user\",\"methods\":{\"PROTOCOL_FEE_BPS()\":{\"notice\":\"Protocol fee charged on the stock side of every buy. 1%.\"},\"activePoolsOnDay(uint256)\":{\"notice\":\"How many distinct launch pools traded on a given day-bucket.\"},\"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)\":{\"notice\":\"The hook called after a swap\"},\"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)\":{\"notice\":\"The hook called before a swap\"},\"currentDay()\":{\"notice\":\"The current day bucket, matching the FeeCollector's.\"},\"poolsEverTraded()\":{\"notice\":\"Number of distinct launch pools that have ever traded.\"},\"settleAllFees()\":{\"notice\":\"`settleFees` for every token that has ever deferred a fee.\"},\"settleFees(address)\":{\"notice\":\"Convert one token's deferred fee claims back into TokenizedStock and forward         them to the FeeCollector. Permissionless; normally unnecessary, because trades         clear the backlog on their own.\"},\"totalFeesCharged()\":{\"notice\":\"Cumulative protocol fees charged, in TokenizedStock.\"},\"totalStockLocked()\":{\"notice\":\"Net TokenizedStock sitting in launch pools. Launch pools start empty of stock         (liquidity is single-sided), so this is exactly stock-denominated TVL.\"},\"totalUnsettledFees()\":{\"notice\":\"Fees charged but still held as ERC-6909 claims, not yet pushed to the FeeCollector.\"},\"totalVolume()\":{\"notice\":\"Cumulative traded volume across every launch pool, in TokenizedStock terms.\"},\"unlockCallback(bytes)\":{\"notice\":\"Called by the pool manager on `msg.sender` when the manager is unlocked\"}},\"notice\":\"The Uniswap v4 hook attached to every launchpad pool. It is the protocol's         cash register and its meter.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/LaunchpadHook.sol\":\"LaunchpadHook\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@ensdomains/=lib/v4-periphery/lib/v4-core/node_modules/@ensdomains/\",\":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/\",\":@uniswap/v4-core/=lib/v4-periphery/lib/v4-core/\",\":ds-test/=lib/v4-periphery/lib/v4-core/lib/forge-std/lib/ds-test/src/\",\":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-gas-snapshot/=lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/src/\",\":forge-std/=lib/forge-std/src/\",\":halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/\",\":hardhat/=lib/v4-periphery/lib/v4-core/node_modules/hardhat/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/\",\":permit2/=lib/v4-periphery/lib/permit2/\",\":solmate/=lib/v4-periphery/lib/v4-core/lib/solmate/\",\":v4-core/=lib/v4-periphery/lib/v4-core/src/\",\":v4-periphery/=lib/v4-periphery/\"]},\"sources\":{\"lib/openzeppelin-contracts/contracts/interfaces/IERC1363.sol\":{\"keccak256\":\"0xd5ea07362ab630a6a3dee4285a74cf2377044ca2e4be472755ad64d7c5d4b69d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://da5e832b40fc5c3145d3781e2e5fa60ac2052c9d08af7e300dc8ab80c4343100\",\"dweb:/ipfs/QmTzf7N5ZUdh5raqtzbM11yexiUoLC9z3Ws632MCuycq1d\"]},\"lib/openzeppelin-contracts/contracts/interfaces/IERC165.sol\":{\"keccak256\":\"0x0afcb7e740d1537b252cb2676f600465ce6938398569f09ba1b9ca240dde2dfc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1c299900ac4ec268d4570ecef0d697a3013cd11a6eb74e295ee3fbc945056037\",\"dweb:/ipfs/Qmab9owJoxcA7vJT5XNayCMaUR1qxqj1NDzzisduwaJMcZ\"]},\"lib/openzeppelin-contracts/contracts/interfaces/IERC20.sol\":{\"keccak256\":\"0x1a6221315ce0307746c2c4827c125d821ee796c74a676787762f4778671d4f44\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1bb2332a7ee26dd0b0de9b7fe266749f54820c99ab6a3bcb6f7e6b751d47ee2d\",\"dweb:/ipfs/QmcRWpaBeCYkhy68PR3B4AgD7asuQk7PwkWxrvJbZcikLF\"]},\"lib/openzeppelin-contracts/contracts/interfaces/IERC20Metadata.sol\":{\"keccak256\":\"0xd735962e3d6660884153ba8a972b5f100dde4c482f2ff1c525ba7fdefb154cbd\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://5a264d17b093f585844b0d977e9f60555b8c8d6513b304fde863cdf652a0d336\",\"dweb:/ipfs/QmWXfaJisjVnrjTUjZGryZpMob9wKivvtbodLS3PTc1ttq\"]},\"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0x74ed01eb66b923d0d0cfe3be84604ac04b76482a55f9dd655e1ef4d367f95bc2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://5282825a626cfe924e504274b864a652b0023591fa66f06a067b25b51ba9b303\",\"dweb:/ipfs/QmeCfPykghhMc81VJTrHTC7sF6CRvaA1FXVq2pJhwYp1dV\"]},\"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol\":{\"keccak256\":\"0xd6fa4088198f04eef10c5bce8a2f4d60554b7ec4b987f684393c01bf79b94d9f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f95ee0bbd4dd3ac730d066ba3e785ded4565e890dbec2fa7d3b9fe3bad9d0d6e\",\"dweb:/ipfs/QmSLr6bHkPFWT7ntj34jmwfyskpwo97T9jZUrk5sz3sdtR\"]},\"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol\":{\"keccak256\":\"0x318ea37780610ca7808852275651885d428669402b81488cb7434fde361e9704\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://4aad80ad93cedad85619900fd7c2084c4d2f4b28f1dbda27e491c5f4fd31025d\",\"dweb:/ipfs/QmUyXtX7FUi2u1W5fs7ufka9XkRVb5ss2menQHTsrsSmqZ\"]},\"lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol\":{\"keccak256\":\"0x8891738ffe910f0cf2da09566928589bf5d63f4524dd734fd9cedbac3274dd5c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://971f954442df5c2ef5b5ebf1eb245d7105d9fbacc7386ee5c796df1d45b21617\",\"dweb:/ipfs/QmadRjHbkicwqwwh61raUEapaVEtaLMcYbQZWs9gUkgj3u\"]},\"lib/v4-periphery/lib/v4-core/src/interfaces/IExtsload.sol\":{\"keccak256\":\"0x80b53ca4907d6f0088c3b931f2b72cad1dc4615a95094d96bd0fb8dff8d5ba43\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://375c69148622aab7a3537d5fd37d373a8e9731022c8d87bdaee46233b0a99fe1\",\"dweb:/ipfs/QmXFjdoYRxsA5B1kyuxEXgNf3FBoL1zPvy26Qy8EtpdFRN\"]},\"lib/v4-periphery/lib/v4-core/src/interfaces/IExttload.sol\":{\"keccak256\":\"0xc6b68283ebd8d1c789df536756726eed51c589134bb20821b236a0d22a135937\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://294394f72dfc219689209f4130d85601dfd0d63c8d47578050d312db70f9b6c8\",\"dweb:/ipfs/QmTDMQ3oxCGHgEBU48a3Lp4S1rRjc8vVCxkhE5ZNej1bsY\"]},\"lib/v4-periphery/lib/v4-core/src/interfaces/IHooks.sol\":{\"keccak256\":\"0xc131ffa2d04c10a012fe715fe2c115811526b7ea34285cf0a04ce7ce8320da8d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://3b212358897db5d99c21244d88f97b2e788527552cb430629b472a8cc6289aec\",\"dweb:/ipfs/QmQtwV4dDe2RYk2ErLpaAX7U82jWh1L6Lw2HRuKDvBi84G\"]},\"lib/v4-periphery/lib/v4-core/src/interfaces/IPoolManager.sol\":{\"keccak256\":\"0xbdab3544da3d32dfdf7457baa94e17d5a3012952428559e013ffac45d067038e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ce95ff864468e37c76adf71df061d4f3d6f3a5ec1f9bc3aea090463bc72798f4\",\"dweb:/ipfs/QmSbWh1pLbz51yQF4HEu5NRhr8XVv9JYGEw1hq1HudAnCi\"]},\"lib/v4-periphery/lib/v4-core/src/interfaces/IProtocolFees.sol\":{\"keccak256\":\"0x32a666e588a2f66334430357bb1e2424fe7eebeb98a3364b1dd16eb6ccca9848\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://85751d302125881f72e5f8af051c2d5d9b1f606ebaea8ca7d04fccdd27cc252d\",\"dweb:/ipfs/QmeRwomeh9NWm6A6fgNA4KZPQZHPpdKsPQyYsHSFmvud7J\"]},\"lib/v4-periphery/lib/v4-core/src/interfaces/callback/IUnlockCallback.sol\":{\"keccak256\":\"0x58c82f2bd9d7c097ed09bd0991fedc403b0ec270eb3d0158bfb095c06a03d719\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://91168ca26a10980df2cdc3fbfe8ddf372c002b7ef19e3c59a0c9870d64198f1b\",\"dweb:/ipfs/QmUSpaM825vd1SwvF38esgbdLgYiPwefKaFERTWvUi6uSK\"]},\"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC20Minimal.sol\":{\"keccak256\":\"0xeccadf1bf69ba2eb51f2fe4fa511bc7bb05bbd6b9f9a3cb8e5d83d9582613e0f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://118757369892687b99ef46ce28d6861f62c098285bd7687a4f17f7e44e5f81de\",\"dweb:/ipfs/QmUxqbYqQtcEwwFbb9e6BBMePEaSgN8C45v6RKubD4ib8d\"]},\"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC6909Claims.sol\":{\"keccak256\":\"0xa586f345739e52b0488a0fe40b6e375cce67fdd25758408b0efcb5133ad96a48\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e8c557b7e52abdbbd82e415a1acc27921446a7fd090b7d4877e52be72619547f\",\"dweb:/ipfs/QmXE2KNPbXmGX8BQF3ei6zhzRTnhoTQg39XmqMnkhbr6QK\"]},\"lib/v4-periphery/lib/v4-core/src/libraries/CustomRevert.sol\":{\"keccak256\":\"0x111ed3031b6990c80a93ae35dde6b6ac0b7e6af471388fdd7461e91edda9b7de\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c9ea883c98d6ae1829160d0977bb5195761cfd5bc81692d0a941f45717f594cd\",\"dweb:/ipfs/QmZPwxzaeMNv536wzrAMrMswu7vMHuqPVpjcqL3YvCMoxt\"]},\"lib/v4-periphery/lib/v4-core/src/libraries/Hooks.sol\":{\"keccak256\":\"0xd679b4b2d429689bc44f136050ebc958fb2d7d0d3a3c7b3e48c08ab4fba09aaa\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://287190cb72840e5eb63cc7a8a1d0b9150af17d8e4ea0323f47c7e7928f2033cb\",\"dweb:/ipfs/QmVfqWBnAQM2jUcuREDdvjcP21gNuLU35CoL3NG5CEhNcx\"]},\"lib/v4-periphery/lib/v4-core/src/libraries/LPFeeLibrary.sol\":{\"keccak256\":\"0xbf6914e01014e7c1044111feb7df7a3d96bb503b3da827ad8464b1955580d13b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://33823c20a91882c9aacdcbb02f0558c05209f4d5954aa6dd4fa17c95664db475\",\"dweb:/ipfs/QmR7owkFgpfztpp1QUg3ut3nw9iPVQqLGP4hzgmZtRUQ2J\"]},\"lib/v4-periphery/lib/v4-core/src/libraries/ParseBytes.sol\":{\"keccak256\":\"0x7533b13f53ee2c2c55500100b22ffd6e37e7523c27874edc98663d53a8672b15\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://82449058634fde28a085f3c59a6a5f412550c02181590593fd84c3e8b329aa17\",\"dweb:/ipfs/Qmev4E9Au6SsE4wsArChCwfg94KhHc5gYsEsZUnjF5sRLa\"]},\"lib/v4-periphery/lib/v4-core/src/libraries/SafeCast.sol\":{\"keccak256\":\"0x42c4a24f996a14d358be397b71f7ec9d7daf666aaec78002c63315a6ee67aa86\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c3db86e2ba3679105fc32edec656c70282e1fede6cab11217702443f6c26fa59\",\"dweb:/ipfs/QmX4yaaSPdKQzYNRsezjTvZKsubzS8JRTEGFD3fPpTTCcj\"]},\"lib/v4-periphery/lib/v4-core/src/types/BalanceDelta.sol\":{\"keccak256\":\"0xa719c8fe51e0a9524280178f19f6851bcc3b3b60e73618f3d60905d35ae5569f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://7436928dc9de35c6c7c5c636cb51adaf295cfd590da83b19a004ae33cbec9ef9\",\"dweb:/ipfs/QmRJ9yZkUpzk4433GX3LgVVL8jwpbSYSUwXcucKisf3v4H\"]},\"lib/v4-periphery/lib/v4-core/src/types/BeforeSwapDelta.sol\":{\"keccak256\":\"0x2a774312d91285313d569da1a718c909655da5432310417692097a1d4dc83a78\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a2c7a0379955cff9c17ab9e61f95e42909aa5947c22740f86ce940d09856f782\",\"dweb:/ipfs/QmaAuo8UBYXsGrVuKh8iRoAAdqwtg1jDq515cW1ZRP5m9K\"]},\"lib/v4-periphery/lib/v4-core/src/types/Currency.sol\":{\"keccak256\":\"0x4a0b84b282577ff6f8acf13ec9f4d32dbb9348748b49611d00e68bee96609c93\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://45f9d62ab3d51b52957279e353853ba1547c3182c9a1e3d1846ada4a90263b01\",\"dweb:/ipfs/QmS8NG84ccQS1yXVD8cv3eKX7J1UKxuJhbUfHTQR2opKF5\"]},\"lib/v4-periphery/lib/v4-core/src/types/PoolId.sol\":{\"keccak256\":\"0x308311916ea0f5c2fd878b6a2751eb223d170a69e33f601fae56dfe3c5d392af\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://669c2cd7ac17690b5d8831e0bda72822376c3a04b36afed6d31df4d75fe60918\",\"dweb:/ipfs/QmT6EpkxqU8VF3WsgrZ66F3s1cCQRffR95z1HDYZz7ph6y\"]},\"lib/v4-periphery/lib/v4-core/src/types/PoolKey.sol\":{\"keccak256\":\"0xf89856e0580d7a4856d3187a76858377ccee9d59702d230c338d84388221b786\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6f3118fa189025695c37fdf0bdd1190f085ad097484d3c88cf4c56d1db65f639\",\"dweb:/ipfs/QmamXpgtB8GV1CaFLvqefPWSoikLDhMk1yU4heBnVzU8gi\"]},\"lib/v4-periphery/lib/v4-core/src/types/PoolOperation.sol\":{\"keccak256\":\"0x7a1a107fc1f2208abb2c9364c8c54e56e98dca27673e9441bed2b949b6382162\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://4ad2470383bc5595d5af17840c64971f457adac68895a4db41ba5c71a4478e07\",\"dweb:/ipfs/QmdwKhBHDZFuqXrR2BfDBD9r7rB2ULGQBznsajRTkTmL4c\"]},\"src/LaunchpadHook.sol\":{\"keccak256\":\"0x013a0ad9066ce84adf31490b82d23d62a75e5d4fdf7d6002f0182377ac47887d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d0fe4b5b5628c7ccccb6370d21ad77bb27d07534cfa37bf91ca28bd0ee4f15b6\",\"dweb:/ipfs/QmSJWazKDRaUmDUEvjr3WFLBjmB4s3Lp5XTppxoXQm1W97\"]},\"src/interfaces/IFeeCollector.sol\":{\"keccak256\":\"0x0a83ebc9e661980522757cb21a227ad2ad2ef2682feb343093bf86c96aff1e16\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8dbda426b110c371feb087a0aea493de642bade5e7eda5174b39d6660de8212a\",\"dweb:/ipfs/QmWnotezoQS4CrqPpDRj219F8o5kv24jUgQungdac23TXf\"]}},\"version\":1}","userdoc":{"kind":"user","events":{"FeeSettled(address,uint256)":{"notice":"A deferred claim was converted back into ERC-20 and forwarded on."},"FeeDeferredAsClaim(address,uint256)":{"notice":"The singleton could not cover the fee in ERC-20, so it was taken as a claim."}},"notice":"The Uniswap v4 hook attached to every launchpad pool. It is the protocol's         cash register and its meter.","methods":{"currentDay()":{"notice":"The current day bucket, matching the FeeCollector's."},"totalVolume()":{"notice":"Cumulative traded volume across every launch pool, in TokenizedStock terms."},"settleAllFees()":{"notice":"`settleFees` for every token that has ever deferred a fee."},"poolsEverTraded()":{"notice":"Number of distinct launch pools that have ever traded."},"PROTOCOL_FEE_BPS()":{"notice":"Protocol fee charged on the stock side of every buy. 1%."},"totalFeesCharged()":{"notice":"Cumulative protocol fees charged, in TokenizedStock."},"totalStockLocked()":{"notice":"Net TokenizedStock sitting in launch pools. Launch pools start empty of stock         (liquidity is single-sided), so this is exactly stock-denominated TVL."},"settleFees(address)":{"notice":"Convert one token's deferred fee claims back into TokenizedStock and forward         them to the FeeCollector. Permissionless; normally unnecessary, because trades         clear the backlog on their own."},"totalUnsettledFees()":{"notice":"Fees charged but still held as ERC-6909 claims, not yet pushed to the FeeCollector."},"unlockCallback(bytes)":{"notice":"Called by the pool manager on `msg.sender` when the manager is unlocked"},"activePoolsOnDay(uint256)":{"notice":"How many distinct launch pools traded on a given day-bucket."},"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)":{"notice":"The hook called before a swap"},"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)":{"notice":"The hook called after a swap"}},"version":1},"devdoc":{"kind":"dev","title":"LaunchpadHook","errors":{"SafeERC20FailedOperation(address)":[{"details":"An operation with an ERC-20 token failed."}]},"details":"WHY THIS CONTRACT EXISTS (it was not in the six-contract brief):      The brief asks for two things that cannot both be true without a hook. It asks that      the LP NFT of every launch pool be burned to 0xdead so liquidity is locked forever,      and it asks that the FeeCollector collect trading fees from those pools. In Uniswap      v4 swap fees accrue to the *position*. Burn the position's NFT and the fees it earns      become permanently unclaimable — by anyone, including the protocol. The company      would report zero revenue.      A hook resolves it. Liquidity stays provably locked (the NFT really is at 0xdead and      nobody can decrease the position), and the protocol still earns, because the hook      skims its fee off the swap itself before the pool ever sees it.      FEE DENOMINATION. Fees are charged only on BUYS, and always in TokenizedStock. That      is a deliberate product choice as much as an engineering one: it matches the thesis      (\"every buy creates demand for the stock\"), it keeps 100% of protocol revenue      denominated in the asset the treasury actually wants to report, and it means the      FeeCollector never has to liquidate a long tail of memecoins to work out what a      quarter earned. Sells are untaxed, which also keeps the blink window's \"selling is      unrestricted at all times\" promise honest.      Landing the fee in TokenizedStock in both buy shapes takes both callbacks, because      v4 only lets a hook adjust the *specified* currency in `beforeSwap` and the      *unspecified* one in `afterSwap`:        - exact-input buy  (spend N stock):   stock is the specified currency   -> beforeSwap        - exact-output buy (receive N token): stock is the unspecified currency -> afterSwap      TAKE-OR-CLAIM. `poolManager.take` moves real ERC-20 out of the singleton, so it only      works if the singleton is *already* holding enough stock at that instant. Mid-swap it      may not be: a launch pool opens with zero stock, and the buyer has not settled their      input yet. So the hook takes real tokens when the balance covers it and otherwise      mints itself an ERC-6909 claim, which always succeeds. Claims are realised      automatically on that pool's next trade, or by anyone calling `settleFees`. A thin      moment in the singleton can therefore never revert a user's swap, and no fee is ever      lost — only briefly deferred.      All volume / TVL accounting happens in `afterSwap`, where the realised `BalanceDelta`      is known, so the numbers reflect what actually swapped rather than what was requested.      No owner, no admin, no parameters to change. The fee rate is a constant.","methods":{"unlockCallback(bytes)":{"params":{"data":"The data that was passed to the call to unlock"},"details":"Only ever used by `settleFees`: burn the claim for a credit, then take the      matching ERC-20. Net delta zero.","returns":{"_0":"Any data that you want to be returned from the unlock call"}},"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)":{"params":{"key":"The key for the pool","params":"The parameters for the swap","sender":"The initial msg.sender for the swap call","hookData":"Arbitrary data handed into the PoolManager by the swapper to be be passed on to the hook"},"returns":{"_0":"bytes4 The function selector for the hook","_1":"BeforeSwapDelta The hook's delta in specified and unspecified currencies. Positive: the hook is owed/took currency, negative: the hook owes/sent currency","_2":"uint24 Optionally override the lp fee, only used if three conditions are met: 1. the Pool has a dynamic fee, 2. the value's 2nd highest bit is set (23rd bit, 0x400000), and 3. the value is less than or equal to the maximum fee (1 million)"}},"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)":{"params":{"key":"The key for the pool","delta":"The amount owed to the caller (positive) or owed to the pool (negative)","params":"The parameters for the swap","sender":"The initial msg.sender for the swap call","hookData":"Arbitrary data handed into the PoolManager by the swapper to be be passed on to the hook"},"returns":{"_0":"bytes4 The function selector for the hook","_1":"int128 The hook's delta in unspecified currency. Positive: the hook is owed/took currency, negative: the hook owes/sent currency"}}},"version":1,"stateVariables":{"REQUIRED_FLAGS":{"details":"beforeSwap | beforeSwapReturnDelta | afterSwap | afterSwapReturnDelta."},"_feeTakenInBeforeSwap":{"details":"Handoff from `beforeSwap` to `afterSwap` within a single swap. Written and      cleared inside the same `PoolManager.swap` call, never observable across      transactions."}}},"storageLayout":{"types":{"t_bool":{"label":"bool","encoding":"inplace","numberOfBytes":"1"},"t_address":{"label":"address","encoding":"inplace","numberOfBytes":"20"},"t_uint128":{"label":"uint128","encoding":"inplace","numberOfBytes":"16"},"t_uint256":{"label":"uint256","encoding":"inplace","numberOfBytes":"32"},"t_mapping(t_address,t_bool)":{"key":"t_address","label":"mapping(address => bool)","value":"t_bool","encoding":"mapping","numberOfBytes":"32"},"t_array(t_address)dyn_storage":{"base":"t_address","label":"address[]","encoding":"dynamic_array","numberOfBytes":"32"},"t_mapping(t_address,t_uint256)":{"key":"t_address","label":"mapping(address => uint256)","value":"t_uint256","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_uint256,t_uint256)":{"key":"t_uint256","label":"mapping(uint256 => uint256)","value":"t_uint256","encoding":"mapping","numberOfBytes":"32"}},"storage":[{"slot":"0","type":"t_uint256","astId":3819,"label":"totalVolume","offset":0,"contract":"src/LaunchpadHook.sol:LaunchpadHook"},{"slot":"1","type":"t_uint256","astId":3822,"label":"totalStockLocked","offset":0,"contract":"src/LaunchpadHook.sol:LaunchpadHook"},{"slot":"2","type":"t_uint256","astId":3825,"label":"totalFeesCharged","offset":0,"contract":"src/LaunchpadHook.sol:LaunchpadHook"},{"slot":"3","type":"t_uint256","astId":3828,"label":"poolsEverTraded","offset":0,"contract":"src/LaunchpadHook.sol:LaunchpadHook"},{"slot":"4","type":"t_uint256","astId":3831,"label":"totalUnsettledFees","offset":0,"contract":"src/LaunchpadHook.sol:LaunchpadHook"},{"slot":"5","type":"t_mapping(t_address,t_uint256)","astId":3835,"label":"volumeOf","offset":0,"contract":"src/LaunchpadHook.sol:LaunchpadHook"},{"slot":"6","type":"t_mapping(t_address,t_uint256)","astId":3839,"label":"stockLockedOf","offset":0,"contract":"src/LaunchpadHook.sol:LaunchpadHook"},{"slot":"7","type":"t_mapping(t_address,t_uint256)","astId":3843,"label":"feesChargedOf","offset":0,"contract":"src/LaunchpadHook.sol:LaunchpadHook"},{"slot":"8","type":"t_mapping(t_address,t_uint256)","astId":3847,"label":"lastActiveDay","offset":0,"contract":"src/LaunchpadHook.sol:LaunchpadHook"},{"slot":"9","type":"t_mapping(t_address,t_uint256)","astId":3851,"label":"unsettledFeeOf","offset":0,"contract":"src/LaunchpadHook.sol:LaunchpadHook"},{"slot":"10","type":"t_mapping(t_uint256,t_uint256)","astId":3855,"label":"volumeOnDay","offset":0,"contract":"src/LaunchpadHook.sol:LaunchpadHook"},{"slot":"11","type":"t_mapping(t_uint256,t_uint256)","astId":3859,"label":"feesOnDay","offset":0,"contract":"src/LaunchpadHook.sol:LaunchpadHook"},{"slot":"12","type":"t_mapping(t_uint256,t_uint256)","astId":3864,"label":"activePoolsOnDay","offset":0,"contract":"src/LaunchpadHook.sol:LaunchpadHook"},{"slot":"13","type":"t_mapping(t_address,t_bool)","astId":3868,"label":"_queued","offset":0,"contract":"src/LaunchpadHook.sol:LaunchpadHook"},{"slot":"14","type":"t_array(t_address)dyn_storage","astId":3871,"label":"_unsettledTokens","offset":0,"contract":"src/LaunchpadHook.sol:LaunchpadHook"},{"slot":"15","type":"t_bool","astId":3874,"label":"_feeTakenInBeforeSwap","offset":0,"contract":"src/LaunchpadHook.sol:LaunchpadHook"},{"slot":"15","type":"t_uint128","astId":3876,"label":"_feeTakenAmount","offset":1,"contract":"src/LaunchpadHook.sol:LaunchpadHook"}]},"transientStorageLayout":null,"evm":{"bytecode":{"object":"610100604052348015610010575f80fd5b506040516121d33803806121d383398101604081905261002f91610186565b30613fff1660cc1461005457604051632a96f9e160e21b815260040160405180910390fd5b6001600160a01b0380841660805282811660a081905260c081905290821660e05261008190825f19610089565b5050506101d0565b6100958383835f61010d565b610108576100a683835f600161010d565b6100d357604051635274afe760e01b81526001600160a01b03841660048201526024015b60405180910390fd5b6100e0838383600161010d565b61010857604051635274afe760e01b81526001600160a01b03841660048201526024016100ca565b505050565b60405163095ea7b360e01b5f8181526001600160a01b038616600452602485905291602083604481808b5af1925060015f51148316610163578383151615610157573d5f823e3d81fd5b5f873b113d1516831692505b60405250949350505050565b6001600160a01b0381168114610183575f80fd5b50565b5f805f60608486031215610198575f80fd5b83516101a38161016f565b60208501519093506101b48161016f565b60408501519092506101c58161016f565b809150509250925092565b60805160a05160c05160e051611f1a6102b95f395f818161046901528181610b280152818161112c015261134601525f818161026c015281816107d50152818161087e01528181610fe50152818161107a0152818161129601526113d801525f81816102ab0152818161098d01528181610ddc01528181610ee7015261120f01525f81816104ce015281816105d001528181610753015281816107a2015281816108b30152818161096301528181610a6c01528181610bd601528181610ebd01528181610fb9015281816110af015281816111e5015281816112cb01526113a50152611f1a5ff3fe608060405234801561000f575f80fd5b50600436106101fd575f3560e01c80639beedd1e11610114578063c415b95c116100a9578063dc98354e11610079578063dc98354e146104f0578063de6fb465146104fe578063e1b4af691461043c578063e861417814610513578063f253945314610532575f80fd5b8063c415b95c14610464578063cf0ac78f1461048b578063dc1ab379146104aa578063dc4c90d3146104c9575f80fd5b8063b6a8b0fa116100e4578063b6a8b0fa1461043c578063b75789401461044a578063b9daf51714610453578063be3782281461045c575f80fd5b80639beedd1e146103ea5780639f063efc1461033a578063a78842ee146103f3578063b47b2fb114610406575f80fd5b80635f81a57c11610195578063726877e511610165578063726877e51461037b57806377cd93741461039a5780638549d9be146103a357806391dd7346146103ab57806393cc0b2b146103cb575f80fd5b80635f81a57c1461031357806364f8caec1461031b5780636c2bbe7e1461033a5780636fe7e6eb1461036d575f80fd5b806326465937116101d057806326465937146102675780634eec9e09146102a6578063575e24b4146102cd5780635c9302c91461030b575f80fd5b80630f1d6f76146102015780631d38cbfe1461023357806321d0ee701461023b578063259982e51461023b575b5f80fd5b61022061020f366004611809565b600a6020525f908152604090205481565b6040519081526020015b60405180910390f35b610220610551565b61024e6102493660046118a2565b6105a8565b6040516001600160e01b0319909116815260200161022a565b61028e7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161022a565b61028e7f000000000000000000000000000000000000000000000000000000000000000081565b6102e06102db366004611929565b6105c2565b604080516001600160e01b03199094168452602084019290925262ffffff169082015260600161022a565b610220610718565b6102205f5481565b610220610329366004611983565b60056020525f908152604090205481565b61034d6103483660046119a5565b61072b565b604080516001600160e01b0319909316835260208301919091520161022a565b61024e610249366004611a46565b610220610389366004611983565b60096020525f908152604090205481565b61022060035481565b61028e60cc81565b6103be6103b9366004611a9d565b610746565b60405161022a9190611adc565b6102206103d9366004611983565b60066020525f908152604090205481565b61022060045481565b610220610401366004611983565b610925565b610419610414366004611b11565b610bc9565b604080516001600160e01b03199093168352600f9190910b60208301520161022a565b61024e610249366004611b92565b61022060025481565b61022060015481565b610220606481565b61028e7f000000000000000000000000000000000000000000000000000000000000000081565b610220610499366004611983565b60076020525f908152604090205481565b6102206104b8366004611983565b60086020525f908152604090205481565b61028e7f000000000000000000000000000000000000000000000000000000000000000081565b61024e610249366004611bec565b610506610d78565b60405161022a9190611c33565b610220610521366004611809565b600b6020525f908152604090205481565b610220610540366004611809565b600c6020525f908152604090205481565b600e545f90815b818110156105a35761058f600e828154811061057657610576611c7e565b5f918252602090912001546001600160a01b0316610925565b6105999084611ca6565b9250600101610558565b505090565b5f604051630a85dc2960e01b815260040160405180910390fd5b5f8080336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461060e5760405163570c108560e11b815260040160405180910390fd5b5f8061061989610dd8565b9150915061062681610e82565b5f82151561063760208b018b611cb9565b151514905080158061064d57505f896020013512155b1561067a575050600f80546001600160881b0319169055506315d7892d60e21b92505f915081905061070d565b5f61068860208b0135611cd8565b90505f612710610699606484611cf2565b6106a39190611d09565b600f80546001600160801b038316610100026001600160881b031990911617600117905590505f8190036106ec57506315d7892d60e21b96505f955085945061070d9350505050565b6106f684826111ce565b6315d7892d60e21b975060801b95505f9450505050505b955095509592505050565b5f6107266201518042611d09565b905090565b5f80604051630a85dc2960e01b815260040160405180910390fd5b6060336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146107915760405163570c108560e11b815260040160405180910390fd5b5f61079e83850185611809565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f5298aca306108097f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166001600160a01b031690565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604481018490526064015f604051808303815f87803b158015610853575f80fd5b505af1158015610865573d5f803e3d5ffd5b5050604051630b0d9c0960e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152306024830152604482018590527f0000000000000000000000000000000000000000000000000000000000000000169250630b0d9c0991506064015f604051808303815f87803b1580156108f6575f80fd5b505af1158015610908573d5f803e3d5ffd5b5050505060405180602001604052805f8152509150505b92915050565b6001600160a01b0381165f9081526009602052604081205480820361094c57505f92915050565b6040516370a0823160e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301525f917f0000000000000000000000000000000000000000000000000000000000000000909116906370a0823190602401602060405180830381865afa1580156109d4573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109f89190611d28565b9050808210610a075780610a09565b815b9250825f03610a1b57505f9392505050565b610a258383611d3f565b6001600160a01b0385165f9081526009602052604081209190915560048054859290610a52908490611d3f565b909155505060408051602081018590526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916348c8949191016040516020818303038152906040526040518263ffffffff1660e01b8152600401610abf9190611adc565b5f604051808303815f875af1158015610ada573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610b019190810190611d97565b5060405163029b83f560e21b81526001600160a01b038581166004830152602482018590527f00000000000000000000000000000000000000000000000000000000000000001690630a6e0fd4906044015f604051808303815f87803b158015610b69575f80fd5b505af1158015610b7b573d5f803e3d5ffd5b50505050836001600160a01b03167f8ca3aa85524ed683fbb1f239a5aa076ba47c5e8a4d86e32f8ca1ec2cdd56a95384604051610bba91815260200190565b60405180910390a25050919050565b5f80336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c145760405163570c108560e11b815260040160405180910390fd5b5f80610c1f89610dd8565b90925090505f821515610c3560208b018b611cb9565b15151490505f83610c4f57610c4a89600f0b90565b610c59565b610c598960801d90565b600f5490915060ff1615610ccd57600f80546001600160881b0319811690915561010090046001600160801b03165f610c9183611e2b565b6001600160801b03169050610cb4858e610cab8585611ca6565b85600186611576565b5063b47b2fb160e01b96505f9550610d6d945050505050565b8115610d42575f610cdd82611e2b565b6001600160801b031690505f612710610cf7606484611cf2565b610d019190611d09565b90508015610d1357610d1385826111ce565b610d2b858e610d228486611ca6565b84600187611576565b63b47b2fb160e01b97509550610d6d945050505050565b6001600160801b038116610d5a848d835f8082611576565b5063b47b2fb160e01b95505f9450505050505b965096945050505050565b6060600e805480602002602001604051908101604052809291908181526020018280548015610dce57602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610db0575b5050505050905090565b5f807f000000000000000000000000000000000000000000000000000000000000000081610e096020860186611983565b90505f610e1c6040870160208801611983565b9050826001600160a01b0316826001600160a01b031603610e44576001969095509350505050565b826001600160a01b0316816001600160a01b031603610e6957505f9590945092505050565b604051630650525d60e21b815260040160405180910390fd5b6001600160a01b0381165f9081526009602052604081205490819003610ea6575050565b6040516370a0823160e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301525f917f0000000000000000000000000000000000000000000000000000000000000000909116906370a0823190602401602060405180830381865afa158015610f2e573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f529190611d28565b90505f818310610f625781610f64565b825b9050805f03610f735750505050565b610f7d8184611d3f565b6001600160a01b0385165f9081526009602052604081209190915560048054839290610faa908490611d3f565b90915550506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169063f5298aca9030907f0000000000000000000000000000000000000000000000000000000000000000166040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604481018490526064015f604051808303815f87803b15801561104f575f80fd5b505af1158015611061573d5f803e3d5ffd5b5050604051630b0d9c0960e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152306024830152604482018590527f0000000000000000000000000000000000000000000000000000000000000000169250630b0d9c0991506064015f604051808303815f87803b1580156110f2575f80fd5b505af1158015611104573d5f803e3d5ffd5b505060405163029b83f560e21b81526001600160a01b038781166004830152602482018590527f0000000000000000000000000000000000000000000000000000000000000000169250630a6e0fd491506044015f604051808303815f87803b15801561116f575f80fd5b505af1158015611181573d5f803e3d5ffd5b50505050836001600160a01b03167f8ca3aa85524ed683fbb1f239a5aa076ba47c5e8a4d86e32f8ca1ec2cdd56a953826040516111c091815260200190565b60405180910390a250505050565b6040516370a0823160e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116600483015282917f0000000000000000000000000000000000000000000000000000000000000000909116906370a0823190602401602060405180830381865afa158015611256573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061127a9190611d28565b106113a357604051630b0d9c0960e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152306024830152604482018390527f00000000000000000000000000000000000000000000000000000000000000001690630b0d9c09906064015f604051808303815f87803b15801561130c575f80fd5b505af115801561131e573d5f803e3d5ffd5b505060405163029b83f560e21b81526001600160a01b038581166004830152602482018590527f0000000000000000000000000000000000000000000000000000000000000000169250630a6e0fd491506044015f604051808303815f87803b158015611389575f80fd5b505af115801561139b573d5f803e3d5ffd5b505050505050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663156e29f63061140c7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166001600160a01b031690565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604481018490526064015f604051808303815f87803b158015611456575f80fd5b505af1158015611468573d5f803e3d5ffd5b505050506001600160a01b0382165f908152600d602052604090205460ff166114f0576001600160a01b0382165f818152600d60205260408120805460ff19166001908117909155600e805491820181559091527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0180546001600160a01b03191690911790555b6001600160a01b0382165f9081526009602052604081208054839290611517908490611ca6565b925050819055508060045f82825461152f9190611ca6565b90915550506040518181526001600160a01b038316907fc1be2bc8eb877f1acaf69dd16cddb1a5ec91ca5dbf16c408720e4f71435b879f9060200160405180910390a25050565b5f61157f610718565b6001600160a01b0388165f908152600560205260409020549091501580156115b45760035f81546115af90611e58565b909155505b80806115d757506001600160a01b0388165f908152600860205260409020548214155b15611616575f828152600c6020526040812080549091906115f790611e58565b909155506001600160a01b0388165f9081526008602052604090208290555b6001600160a01b0388165f908152600560205260408120805488929061163d908490611ca6565b92505081905550855f808282546116549190611ca6565b90915550505f828152600a602052604081208054889290611676908490611ca6565b909155505083156116cb576001600160a01b0388165f90815260066020526040812080548592906116a8908490611ca6565b925050819055508260015f8282546116c09190611ca6565b909155506117349050565b6001600160a01b0388165f90815260066020526040812054908185116116f157846116f3565b815b90506116ff8183611d3f565b6001600160a01b038b165f908152600660205260408120919091556001805483929061172c908490611d3f565b909155505050505b84156117ff576001600160a01b0388165f9081526007602052604081208054879290611761908490611ca6565b925050819055508460025f8282546117799190611ca6565b90915550505f828152600b60205260408120805487929061179b908490611ca6565b909155506117ba90506117b336899003890189611e70565b60a0902090565b60408051888152602081018890526001600160a01b038b16917f1d04ee529105e3590e5b5ab05b857a0def93ec3de4b27276e998b8340bd1d193910160405180910390a35b5050505050505050565b5f60208284031215611819575f80fd5b5035919050565b6001600160a01b0381168114611834575f80fd5b50565b5f60a08284031215611847575f80fd5b50919050565b5f60808284031215611847575f80fd5b5f8083601f84011261186d575f80fd5b50813567ffffffffffffffff811115611884575f80fd5b60208301915083602082850101111561189b575f80fd5b9250929050565b5f805f805f61016086880312156118b7575f80fd5b85356118c281611820565b94506118d18760208801611837565b93506118e08760c0880161184d565b925061014086013567ffffffffffffffff8111156118fc575f80fd5b6119088882890161185d565b969995985093965092949392505050565b5f60608284031215611847575f80fd5b5f805f805f610140868803121561193e575f80fd5b853561194981611820565b94506119588760208801611837565b93506119678760c08801611919565b925061012086013567ffffffffffffffff8111156118fc575f80fd5b5f60208284031215611993575f80fd5b813561199e81611820565b9392505050565b5f805f805f805f6101a0888a0312156119bc575f80fd5b87356119c781611820565b96506119d68960208a01611837565b95506119e58960c08a0161184d565b94506101408801359350610160880135925061018088013567ffffffffffffffff811115611a11575f80fd5b611a1d8a828b0161185d565b989b979a50959850939692959293505050565b8035600281900b8114611a41575f80fd5b919050565b5f805f806101008587031215611a5a575f80fd5b8435611a6581611820565b9350611a748660208701611837565b925060c0850135611a8481611820565b9150611a9260e08601611a30565b905092959194509250565b5f8060208385031215611aae575f80fd5b823567ffffffffffffffff811115611ac4575f80fd5b611ad08582860161185d565b90969095509350505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f805f805f806101608789031215611b27575f80fd5b8635611b3281611820565b9550611b418860208901611837565b9450611b508860c08901611919565b9350610120870135925061014087013567ffffffffffffffff811115611b74575f80fd5b611b8089828a0161185d565b979a9699509497509295939492505050565b5f805f805f806101208789031215611ba8575f80fd5b8635611bb381611820565b9550611bc28860208901611837565b945060c0870135935060e0870135925061010087013567ffffffffffffffff811115611b74575f80fd5b5f805f60e08486031215611bfe575f80fd5b8335611c0981611820565b9250611c188560208601611837565b915060c0840135611c2881611820565b809150509250925092565b602080825282518282018190525f918401906040840190835b81811015611c735783516001600160a01b0316835260209384019390920191600101611c4c565b509095945050505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561091f5761091f611c92565b5f60208284031215611cc9575f80fd5b8135801515811461199e575f80fd5b5f600160ff1b8201611cec57611cec611c92565b505f0390565b808202811582820484141761091f5761091f611c92565b5f82611d2357634e487b7160e01b5f52601260045260245ffd5b500490565b5f60208284031215611d38575f80fd5b5051919050565b8181038181111561091f5761091f611c92565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611d8f57611d8f611d52565b604052919050565b5f60208284031215611da7575f80fd5b815167ffffffffffffffff811115611dbd575f80fd5b8201601f81018413611dcd575f80fd5b805167ffffffffffffffff811115611de757611de7611d52565b611dfa601f8201601f1916602001611d66565b818152856020838501011115611e0e575f80fd5b8160208401602083015e5f91810160200191909152949350505050565b5f81600f0b6f7fffffffffffffffffffffffffffffff198103611e5057611e50611c92565b5f0392915050565b5f60018201611e6957611e69611c92565b5060010190565b5f60a0828403128015611e81575f80fd5b5060405160a0810167ffffffffffffffff81118282101715611ea557611ea5611d52565b6040528235611eb381611820565b81526020830135611ec381611820565b6020820152604083013562ffffff81168114611edd575f80fd5b6040820152611eee60608401611a30565b60608201526080830135611f0181611820565b6080820152939250505056fea164736f6c634300081a000a","sourceMap":"4635:16084:27:-:0;;;7707:799;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;8014:4;1325:13:17;7998:44:27;1505:135;7998:62;7994:95;;8069:20;;-1:-1:-1;;;8069:20:27;;;;;;;;;;;7994:95;-1:-1:-1;;;;;8100:26:27;;;;;8136:32;;;;;;;8178:55;;;;8243:28;;;;;8428:71;;8258:13;-1:-1:-1;;8428:28:27;:71::i;:::-;7707:799;;;4635:16084;;5169:367:6;5261:42;5274:5;5281:7;5290:5;5297;5261:12;:42::i;:::-;5256:274;;5324:37;5337:5;5344:7;5353:1;5356:4;5324:12;:37::i;:::-;5319:91;;5370:40;;-1:-1:-1;;;5370:40:6;;-1:-1:-1;;;;;951:32:29;;5370:40:6;;;933:51:29;906:18;;5370:40:6;;;;;;;;5319:91;5429:41;5442:5;5449:7;5458:5;5465:4;5429:12;:41::i;:::-;5424:95;;5479:40;;-1:-1:-1;;;5479:40:6;;-1:-1:-1;;;;;951:32:29;;5479:40:6;;;933:51:29;906:18;;5479:40:6;787:203:29;5424:95:6;5169:367;;;:::o;12706:1252::-;12936:4;12930:11;-1:-1:-1;;;12804:12:6;12954:22;;;-1:-1:-1;;;;;13002:29:6;;12996:4;12989:43;13052:4;13045:19;;;12804:12;13128:4;12804:12;13116:4;12804:12;;13100:5;13093;13088:45;13077:56;;13345:1;13338:4;13332:11;13329:18;13320:7;13316:32;13306:606;;13477:6;13467:7;13460:15;13456:28;13453:165;;;13533:16;13527:4;13522:3;13507:43;13583:16;13578:3;13571:29;13453:165;13894:1;13886:5;13874:18;13871:25;13852:16;13845:24;13841:56;13832:7;13828:70;13817:81;;13306:606;13932:4;13925:17;-1:-1:-1;12706:1252:6;;-1:-1:-1;;;;12706:1252:6:o;14:145:29:-;-1:-1:-1;;;;;103:31:29;;93:42;;83:70;;149:1;146;139:12;83:70;14:145;:::o;164:618::-;309:6;317;325;378:2;366:9;357:7;353:23;349:32;346:52;;;394:1;391;384:12;346:52;426:9;420:16;445:45;484:5;445:45;:::i;:::-;559:2;544:18;;538:25;509:5;;-1:-1:-1;572:47:29;538:25;572:47;:::i;:::-;690:2;675:18;;669:25;638:7;;-1:-1:-1;703:47:29;669:25;703:47;:::i;:::-;769:7;759:17;;;164:618;;;;;:::o;787:203::-;4635:16084:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","linkReferences":{}},"deployedBytecode":{"object":"608060405234801561000f575f80fd5b50600436106101fd575f3560e01c80639beedd1e11610114578063c415b95c116100a9578063dc98354e11610079578063dc98354e146104f0578063de6fb465146104fe578063e1b4af691461043c578063e861417814610513578063f253945314610532575f80fd5b8063c415b95c14610464578063cf0ac78f1461048b578063dc1ab379146104aa578063dc4c90d3146104c9575f80fd5b8063b6a8b0fa116100e4578063b6a8b0fa1461043c578063b75789401461044a578063b9daf51714610453578063be3782281461045c575f80fd5b80639beedd1e146103ea5780639f063efc1461033a578063a78842ee146103f3578063b47b2fb114610406575f80fd5b80635f81a57c11610195578063726877e511610165578063726877e51461037b57806377cd93741461039a5780638549d9be146103a357806391dd7346146103ab57806393cc0b2b146103cb575f80fd5b80635f81a57c1461031357806364f8caec1461031b5780636c2bbe7e1461033a5780636fe7e6eb1461036d575f80fd5b806326465937116101d057806326465937146102675780634eec9e09146102a6578063575e24b4146102cd5780635c9302c91461030b575f80fd5b80630f1d6f76146102015780631d38cbfe1461023357806321d0ee701461023b578063259982e51461023b575b5f80fd5b61022061020f366004611809565b600a6020525f908152604090205481565b6040519081526020015b60405180910390f35b610220610551565b61024e6102493660046118a2565b6105a8565b6040516001600160e01b0319909116815260200161022a565b61028e7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161022a565b61028e7f000000000000000000000000000000000000000000000000000000000000000081565b6102e06102db366004611929565b6105c2565b604080516001600160e01b03199094168452602084019290925262ffffff169082015260600161022a565b610220610718565b6102205f5481565b610220610329366004611983565b60056020525f908152604090205481565b61034d6103483660046119a5565b61072b565b604080516001600160e01b0319909316835260208301919091520161022a565b61024e610249366004611a46565b610220610389366004611983565b60096020525f908152604090205481565b61022060035481565b61028e60cc81565b6103be6103b9366004611a9d565b610746565b60405161022a9190611adc565b6102206103d9366004611983565b60066020525f908152604090205481565b61022060045481565b610220610401366004611983565b610925565b610419610414366004611b11565b610bc9565b604080516001600160e01b03199093168352600f9190910b60208301520161022a565b61024e610249366004611b92565b61022060025481565b61022060015481565b610220606481565b61028e7f000000000000000000000000000000000000000000000000000000000000000081565b610220610499366004611983565b60076020525f908152604090205481565b6102206104b8366004611983565b60086020525f908152604090205481565b61028e7f000000000000000000000000000000000000000000000000000000000000000081565b61024e610249366004611bec565b610506610d78565b60405161022a9190611c33565b610220610521366004611809565b600b6020525f908152604090205481565b610220610540366004611809565b600c6020525f908152604090205481565b600e545f90815b818110156105a35761058f600e828154811061057657610576611c7e565b5f918252602090912001546001600160a01b0316610925565b6105999084611ca6565b9250600101610558565b505090565b5f604051630a85dc2960e01b815260040160405180910390fd5b5f8080336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461060e5760405163570c108560e11b815260040160405180910390fd5b5f8061061989610dd8565b9150915061062681610e82565b5f82151561063760208b018b611cb9565b151514905080158061064d57505f896020013512155b1561067a575050600f80546001600160881b0319169055506315d7892d60e21b92505f915081905061070d565b5f61068860208b0135611cd8565b90505f612710610699606484611cf2565b6106a39190611d09565b600f80546001600160801b038316610100026001600160881b031990911617600117905590505f8190036106ec57506315d7892d60e21b96505f955085945061070d9350505050565b6106f684826111ce565b6315d7892d60e21b975060801b95505f9450505050505b955095509592505050565b5f6107266201518042611d09565b905090565b5f80604051630a85dc2960e01b815260040160405180910390fd5b6060336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146107915760405163570c108560e11b815260040160405180910390fd5b5f61079e83850185611809565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f5298aca306108097f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166001600160a01b031690565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604481018490526064015f604051808303815f87803b158015610853575f80fd5b505af1158015610865573d5f803e3d5ffd5b5050604051630b0d9c0960e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152306024830152604482018590527f0000000000000000000000000000000000000000000000000000000000000000169250630b0d9c0991506064015f604051808303815f87803b1580156108f6575f80fd5b505af1158015610908573d5f803e3d5ffd5b5050505060405180602001604052805f8152509150505b92915050565b6001600160a01b0381165f9081526009602052604081205480820361094c57505f92915050565b6040516370a0823160e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301525f917f0000000000000000000000000000000000000000000000000000000000000000909116906370a0823190602401602060405180830381865afa1580156109d4573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109f89190611d28565b9050808210610a075780610a09565b815b9250825f03610a1b57505f9392505050565b610a258383611d3f565b6001600160a01b0385165f9081526009602052604081209190915560048054859290610a52908490611d3f565b909155505060408051602081018590526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916348c8949191016040516020818303038152906040526040518263ffffffff1660e01b8152600401610abf9190611adc565b5f604051808303815f875af1158015610ada573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610b019190810190611d97565b5060405163029b83f560e21b81526001600160a01b038581166004830152602482018590527f00000000000000000000000000000000000000000000000000000000000000001690630a6e0fd4906044015f604051808303815f87803b158015610b69575f80fd5b505af1158015610b7b573d5f803e3d5ffd5b50505050836001600160a01b03167f8ca3aa85524ed683fbb1f239a5aa076ba47c5e8a4d86e32f8ca1ec2cdd56a95384604051610bba91815260200190565b60405180910390a25050919050565b5f80336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c145760405163570c108560e11b815260040160405180910390fd5b5f80610c1f89610dd8565b90925090505f821515610c3560208b018b611cb9565b15151490505f83610c4f57610c4a89600f0b90565b610c59565b610c598960801d90565b600f5490915060ff1615610ccd57600f80546001600160881b0319811690915561010090046001600160801b03165f610c9183611e2b565b6001600160801b03169050610cb4858e610cab8585611ca6565b85600186611576565b5063b47b2fb160e01b96505f9550610d6d945050505050565b8115610d42575f610cdd82611e2b565b6001600160801b031690505f612710610cf7606484611cf2565b610d019190611d09565b90508015610d1357610d1385826111ce565b610d2b858e610d228486611ca6565b84600187611576565b63b47b2fb160e01b97509550610d6d945050505050565b6001600160801b038116610d5a848d835f8082611576565b5063b47b2fb160e01b95505f9450505050505b965096945050505050565b6060600e805480602002602001604051908101604052809291908181526020018280548015610dce57602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610db0575b5050505050905090565b5f807f000000000000000000000000000000000000000000000000000000000000000081610e096020860186611983565b90505f610e1c6040870160208801611983565b9050826001600160a01b0316826001600160a01b031603610e44576001969095509350505050565b826001600160a01b0316816001600160a01b031603610e6957505f9590945092505050565b604051630650525d60e21b815260040160405180910390fd5b6001600160a01b0381165f9081526009602052604081205490819003610ea6575050565b6040516370a0823160e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301525f917f0000000000000000000000000000000000000000000000000000000000000000909116906370a0823190602401602060405180830381865afa158015610f2e573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f529190611d28565b90505f818310610f625781610f64565b825b9050805f03610f735750505050565b610f7d8184611d3f565b6001600160a01b0385165f9081526009602052604081209190915560048054839290610faa908490611d3f565b90915550506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169063f5298aca9030907f0000000000000000000000000000000000000000000000000000000000000000166040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604481018490526064015f604051808303815f87803b15801561104f575f80fd5b505af1158015611061573d5f803e3d5ffd5b5050604051630b0d9c0960e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152306024830152604482018590527f0000000000000000000000000000000000000000000000000000000000000000169250630b0d9c0991506064015f604051808303815f87803b1580156110f2575f80fd5b505af1158015611104573d5f803e3d5ffd5b505060405163029b83f560e21b81526001600160a01b038781166004830152602482018590527f0000000000000000000000000000000000000000000000000000000000000000169250630a6e0fd491506044015f604051808303815f87803b15801561116f575f80fd5b505af1158015611181573d5f803e3d5ffd5b50505050836001600160a01b03167f8ca3aa85524ed683fbb1f239a5aa076ba47c5e8a4d86e32f8ca1ec2cdd56a953826040516111c091815260200190565b60405180910390a250505050565b6040516370a0823160e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116600483015282917f0000000000000000000000000000000000000000000000000000000000000000909116906370a0823190602401602060405180830381865afa158015611256573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061127a9190611d28565b106113a357604051630b0d9c0960e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152306024830152604482018390527f00000000000000000000000000000000000000000000000000000000000000001690630b0d9c09906064015f604051808303815f87803b15801561130c575f80fd5b505af115801561131e573d5f803e3d5ffd5b505060405163029b83f560e21b81526001600160a01b038581166004830152602482018590527f0000000000000000000000000000000000000000000000000000000000000000169250630a6e0fd491506044015f604051808303815f87803b158015611389575f80fd5b505af115801561139b573d5f803e3d5ffd5b505050505050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663156e29f63061140c7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166001600160a01b031690565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604481018490526064015f604051808303815f87803b158015611456575f80fd5b505af1158015611468573d5f803e3d5ffd5b505050506001600160a01b0382165f908152600d602052604090205460ff166114f0576001600160a01b0382165f818152600d60205260408120805460ff19166001908117909155600e805491820181559091527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0180546001600160a01b03191690911790555b6001600160a01b0382165f9081526009602052604081208054839290611517908490611ca6565b925050819055508060045f82825461152f9190611ca6565b90915550506040518181526001600160a01b038316907fc1be2bc8eb877f1acaf69dd16cddb1a5ec91ca5dbf16c408720e4f71435b879f9060200160405180910390a25050565b5f61157f610718565b6001600160a01b0388165f908152600560205260409020549091501580156115b45760035f81546115af90611e58565b909155505b80806115d757506001600160a01b0388165f908152600860205260409020548214155b15611616575f828152600c6020526040812080549091906115f790611e58565b909155506001600160a01b0388165f9081526008602052604090208290555b6001600160a01b0388165f908152600560205260408120805488929061163d908490611ca6565b92505081905550855f808282546116549190611ca6565b90915550505f828152600a602052604081208054889290611676908490611ca6565b909155505083156116cb576001600160a01b0388165f90815260066020526040812080548592906116a8908490611ca6565b925050819055508260015f8282546116c09190611ca6565b909155506117349050565b6001600160a01b0388165f90815260066020526040812054908185116116f157846116f3565b815b90506116ff8183611d3f565b6001600160a01b038b165f908152600660205260408120919091556001805483929061172c908490611d3f565b909155505050505b84156117ff576001600160a01b0388165f9081526007602052604081208054879290611761908490611ca6565b925050819055508460025f8282546117799190611ca6565b90915550505f828152600b60205260408120805487929061179b908490611ca6565b909155506117ba90506117b336899003890189611e70565b60a0902090565b60408051888152602081018890526001600160a01b038b16917f1d04ee529105e3590e5b5ab05b857a0def93ec3de4b27276e998b8340bd1d193910160405180910390a35b5050505050505050565b5f60208284031215611819575f80fd5b5035919050565b6001600160a01b0381168114611834575f80fd5b50565b5f60a08284031215611847575f80fd5b50919050565b5f60808284031215611847575f80fd5b5f8083601f84011261186d575f80fd5b50813567ffffffffffffffff811115611884575f80fd5b60208301915083602082850101111561189b575f80fd5b9250929050565b5f805f805f61016086880312156118b7575f80fd5b85356118c281611820565b94506118d18760208801611837565b93506118e08760c0880161184d565b925061014086013567ffffffffffffffff8111156118fc575f80fd5b6119088882890161185d565b969995985093965092949392505050565b5f60608284031215611847575f80fd5b5f805f805f610140868803121561193e575f80fd5b853561194981611820565b94506119588760208801611837565b93506119678760c08801611919565b925061012086013567ffffffffffffffff8111156118fc575f80fd5b5f60208284031215611993575f80fd5b813561199e81611820565b9392505050565b5f805f805f805f6101a0888a0312156119bc575f80fd5b87356119c781611820565b96506119d68960208a01611837565b95506119e58960c08a0161184d565b94506101408801359350610160880135925061018088013567ffffffffffffffff811115611a11575f80fd5b611a1d8a828b0161185d565b989b979a50959850939692959293505050565b8035600281900b8114611a41575f80fd5b919050565b5f805f806101008587031215611a5a575f80fd5b8435611a6581611820565b9350611a748660208701611837565b925060c0850135611a8481611820565b9150611a9260e08601611a30565b905092959194509250565b5f8060208385031215611aae575f80fd5b823567ffffffffffffffff811115611ac4575f80fd5b611ad08582860161185d565b90969095509350505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f805f805f806101608789031215611b27575f80fd5b8635611b3281611820565b9550611b418860208901611837565b9450611b508860c08901611919565b9350610120870135925061014087013567ffffffffffffffff811115611b74575f80fd5b611b8089828a0161185d565b979a9699509497509295939492505050565b5f805f805f806101208789031215611ba8575f80fd5b8635611bb381611820565b9550611bc28860208901611837565b945060c0870135935060e0870135925061010087013567ffffffffffffffff811115611b74575f80fd5b5f805f60e08486031215611bfe575f80fd5b8335611c0981611820565b9250611c188560208601611837565b915060c0840135611c2881611820565b809150509250925092565b602080825282518282018190525f918401906040840190835b81811015611c735783516001600160a01b0316835260209384019390920191600101611c4c565b509095945050505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561091f5761091f611c92565b5f60208284031215611cc9575f80fd5b8135801515811461199e575f80fd5b5f600160ff1b8201611cec57611cec611c92565b505f0390565b808202811582820484141761091f5761091f611c92565b5f82611d2357634e487b7160e01b5f52601260045260245ffd5b500490565b5f60208284031215611d38575f80fd5b5051919050565b8181038181111561091f5761091f611c92565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611d8f57611d8f611d52565b604052919050565b5f60208284031215611da7575f80fd5b815167ffffffffffffffff811115611dbd575f80fd5b8201601f81018413611dcd575f80fd5b805167ffffffffffffffff811115611de757611de7611d52565b611dfa601f8201601f1916602001611d66565b818152856020838501011115611e0e575f80fd5b8160208401602083015e5f91810160200191909152949350505050565b5f81600f0b6f7fffffffffffffffffffffffffffffff198103611e5057611e50611c92565b5f0392915050565b5f60018201611e6957611e69611c92565b5060010190565b5f60a0828403128015611e81575f80fd5b5060405160a0810167ffffffffffffffff81118282101715611ea557611ea5611d52565b6040528235611eb381611820565b81526020830135611ec381611820565b6020820152604083013562ffffff81168114611edd575f80fd5b6040820152611eee60608401611a30565b60608201526080830135611f0181611820565b6080820152939250505056fea164736f6c634300081a000a","sourceMap":"4635:16084:27:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6407:50;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;391:25:29;;;379:2;364:18;6407:50:27;;;;;;;;13644:216;;;:::i;19783:226::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;;2245:33:29;;;2227:52;;2215:2;2200:18;19783:226:27;2083:202:29;5232:39:27;;;;;;;;-1:-1:-1;;;;;2483:32:29;;;2465:51;;2453:2;2438:18;5232:39:27;2290:232:29;5188:38:27;;;;;8895:1720;;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;;3973:33:29;;;3955:52;;4038:2;4023:18;;4016:34;;;;4098:8;4086:21;4066:18;;;4059:49;3943:2;3928:18;8895:1720:27;3722:392:29;8581:100:27;;;:::i;5507:26::-;;;;;;6110:49;;;;;;:::i;:::-;;;;;;;;;;;;;;20015:285;;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;;5733:33:29;;;5715:52;;5798:2;5783:18;;5776:34;;;;5688:18;20015:285:27;5511:305:29;19108:152:27;;;;;;:::i;6345:55::-;;;;;;:::i;:::-;;;;;;;;;;;;;;5934:30;;;;;;5066:68;;1505:135;5066:68;;14036:365;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;6165:54::-;;;;;;:::i;:::-;;;;;;;;;;;;;;6070:33;;;;;;13014:549;;;;;;:::i;:::-;;:::i;10648:1930::-;;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;;8773:33:29;;;8755:52;;8854:2;8843:22;;;;8838:2;8823:18;;8816:50;8728:18;10648:1930:27;8585:287:29;20306:203:27;;;;;;:::i;5826:31::-;;;;;;5720;;;;;;4874:46;;4917:3;4874:46;;5277:43;;;;;6225:54;;;;;;:::i;:::-;;;;;;;;;;;;;;6285;;;;;;:::i;:::-;;;;;;;;;;;;;;5141:41;;;;;18956:146;;;;;;:::i;14407:108::-;;;:::i;:::-;;;;;;;:::i;6463:48::-;;;;;;:::i;:::-;;;;;;;;;;;;;;6594:55;;;;;;:::i;:::-;;;;;;;;;;;;;;13644:216;13724:16;:23;13687:13;;;13757:97;13781:1;13777;:5;13757:97;;;13812:31;13823:16;13840:1;13823:19;;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;;;;13823:19:27;13812:10;:31::i;:::-;13803:40;;;;:::i;:::-;;-1:-1:-1;13784:3:27;;13757:97;;;;13702:158;13644:216;:::o;19783:226::-;19953:6;19982:20;;-1:-1:-1;;;19982:20:27;;;;;;;;;;;8895:1720;9065:6;;;7624:10;-1:-1:-1;;;;;7646:11:27;7624:34;;7620:63;;7667:16;;-1:-1:-1;;;7667:16:27;;;;;;;;;;;7620:63;9113:21:::1;9136:13:::0;9153:17:::1;9166:3;9153:12;:17::i;:::-;9112:58;;;;9347:23;9364:5;9347:16;:23::i;:::-;9381:10;9394:37:::0;::::1;;:17;;::::0;::::1;:6:::0;:17:::1;:::i;:::-;:37;;;9381:50;;9629:5;9628:6;:37;;;;9664:1;9638:6;:22;;;:27;;9628:37;9624:217;;;-1:-1:-1::0;;9681:21:27::1;:29:::0;;-1:-1:-1;;;;;;9724:19:27;;;-1:-1:-1;;;;9765:26:27;-1:-1:-1;9705:5:27::1;::::0;-1:-1:-1;9705:5:27;;-1:-1:-1;9757:73:27::1;;9624:217;9851:16;9878:23;9879:22;::::0;::::1;;9878:23;:::i;:::-;9851:51:::0;-1:-1:-1;9912:11:27::1;4969:6;9927:27;4917:3;9851:51:::0;9927:27:::1;:::i;:::-;9926:47;;;;:::i;:::-;9984:21;:28:::0;;-1:-1:-1;;;;;10022:30:27;::::1;9984:28;10022:30;-1:-1:-1::0;;;;;;10022:30:27;;;;10008:4:::1;10022:30:::0;;;9912:61;-1:-1:-1;9984:21:27::1;10067:8:::0;;;10063:112:::1;;-1:-1:-1::0;;;;10099:26:27;-1:-1:-1;830:1:22::1;::::0;-1:-1:-1;830:1:22;;-1:-1:-1;10091:73:27::1;::::0;-1:-1:-1;;;;10091:73:27::1;10063:112;10393:23;10405:5;10412:3;10393:11;:23::i;:::-;-1:-1:-1::0;;;10448:26:27;-1:-1:-1;548:3:22;510:24;;-1:-1:-1;10544:1:27::1;::::0;-1:-1:-1;;;;;7693:1:27::1;8895:1720:::0;;;;;;;;;:::o;8581:100::-;8624:7;8650:24;8668:6;8650:15;:24;:::i;:::-;8643:31;;8581:100;:::o;20015:285::-;20234:6;20242:12;20273:20;;-1:-1:-1;;;20273:20:27;;;;;;;;;;;14036:365;14099:12;14127:10;-1:-1:-1;;;;;14149:11:27;14127:34;;14123:63;;14170:16;;-1:-1:-1;;;14170:16:27;;;;;;;;;;;14123:63;14196:14;14213:27;;;;14224:4;14213:27;:::i;:::-;14196:44;;14250:11;-1:-1:-1;;;;;14250:16:27;;14275:4;14282:20;:13;-1:-1:-1;;;;;14282:18:27;-1:-1:-1;;;;;5144:41:23;;5069:123;14282:20:27;14250:61;;-1:-1:-1;;;;;;14250:61:27;;;;;;;-1:-1:-1;;;;;12846:32:29;;;14250:61:27;;;12828:51:29;12895:18;;;12888:34;12938:18;;;12931:34;;;12801:18;;14250:61:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;14321:54:27;;-1:-1:-1;;;14321:54:27;;-1:-1:-1;;;;;14338:13:27;13225:32:29;;14321:54:27;;;13207:51:29;14361:4:27;13274:18:29;;;13267:60;13343:18;;;13336:34;;;14321:11:27;:16;;-1:-1:-1;14321:16:27;;-1:-1:-1;13180:18:29;;14321:54:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14385:9;;;;;;;;;;;;;;;14036:365;;;;;:::o;13014:549::-;-1:-1:-1;;;;;13107:21:27;;13065:15;13107:21;;;:14;:21;;;;;;13142:9;;;13138:23;;-1:-1:-1;13160:1:27;;13014:549;-1:-1:-1;;13014:549:27:o;13138:23::-;13192:46;;-1:-1:-1;;;13192:46:27;;-1:-1:-1;;;;;13225:11:27;2483:32:29;;13192:46:27;;;2465:51:29;-1:-1:-1;;13192:14:27;:24;;;;;;2438:18:29;;13192:46:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;13172:66;;13265:9;13258:4;:16;:35;;13284:9;13258:35;;;13277:4;13258:35;13248:45;;13307:7;13318:1;13307:12;13303:26;;-1:-1:-1;13328:1:27;;13014:549;-1:-1:-1;;;13014:549:27:o;13303:26::-;13364:14;13371:7;13364:4;:14;:::i;:::-;-1:-1:-1;;;;;13340:21:27;;;;;;:14;:21;;;;;:38;;;;13388:18;:29;;13410:7;;13340:21;13388:29;;13410:7;;13388:29;:::i;:::-;;;;-1:-1:-1;;13447:19:27;;;;;;391:25:29;;;-1:-1:-1;;;;;13428:11:27;:18;;;;364::29;13447:19:27;;;;;;;;;;;;13428:39;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;13428:39:27;;;;;;;;;;;;:::i;:::-;-1:-1:-1;13477:38:27;;-1:-1:-1;;;13477:38:27;;-1:-1:-1;;;;;15275:32:29;;;13477:38:27;;;15257:51:29;15324:18;;;15317:34;;;13477:12:27;:22;;;;15230:18:29;;13477:38:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13541:5;-1:-1:-1;;;;;13530:26:27;;13548:7;13530:26;;;;391:25:29;;379:2;364:18;;245:177;13530:26:27;;;;;;;;13082:481;;13014:549;;;:::o;10648:1930::-;10837:6;;7624:10;-1:-1:-1;;;;;7646:11:27;7624:34;;7620:63;;7667:16;;-1:-1:-1;;;7667:16:27;;;;;;;;;;;7620:63;10868:21:::1;10891:13:::0;10908:17:::1;10921:3;10908:12;:17::i;:::-;10867:58:::0;;-1:-1:-1;10867:58:27;-1:-1:-1;10935:10:27::1;10948:37:::0;::::1;;:17;;::::0;::::1;:6:::0;:17:::1;:::i;:::-;:37;;;10935:50;;11182:17;11202:16;:52;;11239:15;:5;2303:2:21::0;2292:28;;2147:189;11239:15:27::1;11202:52;;;11221:15;:5;2107:3:21::0;2103:22;;1958:183;11221:15:27::1;11269:21;::::0;11182:72;;-1:-1:-1;11269:21:27::1;;11265:437;;;11402:15;::::0;;-1:-1:-1;;;;;;11474:19:27;;;;;11402:15:::1;::::0;::::1;-1:-1:-1::0;;;;;11402:15:27::1;-1:-1:-1::0;11548:11:27::1;11549:10:::0;11548:11:::1;:::i;:::-;-1:-1:-1::0;;;;;11532:29:27::1;::::0;-1:-1:-1;11575:65:27::1;11582:5:::0;11589:3;11594:19:::1;11610:3:::0;11532:29;11594:19:::1;:::i;:::-;11615:3;11620:4;11626:13;11575:6;:65::i;:::-;-1:-1:-1::0;;;;11662:25:27;-1:-1:-1;11689:1:27::1;::::0;-1:-1:-1;11654:37:27::1;::::0;-1:-1:-1;;;;;11654:37:27::1;11265:437;11716:5;11712:632;;;11919:21;11959:11;11960:10:::0;11959:11:::1;:::i;:::-;-1:-1:-1::0;;;;;11943:29:27::1;::::0;-1:-1:-1;11986:11:27::1;4969:6;12001:32;4917:3;11943:29:::0;12001:32:::1;:::i;:::-;12000:52;;;;:::i;:::-;11986:66:::0;-1:-1:-1;12071:8:27;;12067:37:::1;;12081:23;12093:5;12100:3;12081:11;:23::i;:::-;12118:65;12125:5:::0;12132:3;12137:19:::1;12153:3:::0;12137:13;:19:::1;:::i;:::-;12158:3;12163:4;12169:13;12118:6;:65::i;:::-;-1:-1:-1::0;;;12285:25:27;-1:-1:-1;12327:3:27;-1:-1:-1;12277:56:27::1;::::0;-1:-1:-1;;;;;12277:56:27::1;11712:632;-1:-1:-1::0;;;;;12438:28:27;::::1;12476:48;12483:5:::0;12490:3;12438:28;12419:16:::1;::::0;12438:28;12476:6:::1;:48::i;:::-;-1:-1:-1::0;;;;12542:25:27;-1:-1:-1;12569:1:27::1;::::0;-1:-1:-1;;;;;7693:1:27::1;10648:1930:::0;;;;;;;;;:::o;14407:108::-;14457:16;14492;14485:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;14485:23:27;;;;;;;;;;;;;;;;;;;;;;;14407:108;:::o;16597:401::-;16663:21;;16735:14;16663:21;16789:13;;;;:3;:13;:::i;:::-;16760:43;-1:-1:-1;16813:10:27;16842:13;;;;;;;;:::i;:::-;16813:43;;16877:5;-1:-1:-1;;;;;16871:11:27;:2;-1:-1:-1;;;;;16871:11:27;;16867:34;;16892:4;;16898:2;;-1:-1:-1;16597:401:27;-1:-1:-1;;;;16597:401:27:o;16867:34::-;16921:5;-1:-1:-1;;;;;16915:11:27;:2;-1:-1:-1;;;;;16915:11:27;;16911:35;;-1:-1:-1;16936:5:27;;16943:2;;-1:-1:-1;16597:401:27;-1:-1:-1;;;16597:401:27:o;16911:35::-;16963:28;;-1:-1:-1;;;16963:28:27;;;;;;;;;;;15800:614;-1:-1:-1;;;;;15874:21:27;;15859:12;15874:21;;;:14;:21;;;;;;;15909:9;;;15905:22;;15920:7;15800:614;:::o;15905:22::-;15957:46;;-1:-1:-1;;;15957:46:27;;-1:-1:-1;;;;;15990:11:27;2483:32:29;;15957:46:27;;;2465:51:29;-1:-1:-1;;15957:14:27;:24;;;;;;2438:18:29;;15957:46:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;15937:66;;16013:14;16037:9;16030:4;:16;:35;;16056:9;16030:35;;;16049:4;16030:35;16013:52;;16079:6;16089:1;16079:11;16075:24;;16092:7;;;15800:614;:::o;16075:24::-;16133:13;16140:6;16133:4;:13;:::i;:::-;-1:-1:-1;;;;;16109:21:27;;;;;;:14;:21;;;;;:37;;;;16156:18;:28;;16178:6;;16109:21;16156:28;;16178:6;;16156:28;:::i;:::-;;;;-1:-1:-1;;;;;;;16195:11:27;:16;;;;;16220:4;;16227:13;:18;16195:61;;-1:-1:-1;;;;;;16195:61:27;;;;;;;-1:-1:-1;;;;;12846:32:29;;;16195:61:27;;;12828:51:29;12895:18;;;12888:34;12938:18;;;12931:34;;;12801:18;;16195:61:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;16266:54:27;;-1:-1:-1;;;16266:54:27;;-1:-1:-1;;;;;16283:13:27;13225:32:29;;16266:54:27;;;13207:51:29;16306:4:27;13274:18:29;;;13267:60;13343:18;;;13336:34;;;16266:11:27;:16;;-1:-1:-1;16266:16:27;;-1:-1:-1;13180:18:29;;16266:54:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;16330:37:27;;-1:-1:-1;;;16330:37:27;;-1:-1:-1;;;;;15275:32:29;;;16330:37:27;;;15257:51:29;15324:18;;;15317:34;;;16330:12:27;:22;;-1:-1:-1;16330:22:27;;-1:-1:-1;15230:18:29;;16330:37:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16393:5;-1:-1:-1;;;;;16382:25:27;;16400:6;16382:25;;;;391::29;;379:2;364:18;;245:177;16382:25:27;;;;;;;;15849:565;;;15800:614;:::o;14870:770::-;14941:46;;-1:-1:-1;;;14941:46:27;;-1:-1:-1;;;;;14974:11:27;2483:32:29;;14941:46:27;;;2465:51:29;14991:3:27;;14941:14;:24;;;;;;2438:18:29;;14941:46:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:53;14937:697;;15010:51;;-1:-1:-1;;;15010:51:27;;-1:-1:-1;;;;;15027:13:27;13225:32:29;;15010:51:27;;;13207::29;15050:4:27;13274:18:29;;;13267:60;13343:18;;;13336:34;;;15010:11:27;:16;;;;13180:18:29;;15010:51:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;15075:34:27;;-1:-1:-1;;;15075:34:27;;-1:-1:-1;;;;;15275:32:29;;;15075:34:27;;;15257:51:29;15324:18;;;15317:34;;;15075:12:27;:22;;-1:-1:-1;15075:22:27;;-1:-1:-1;15230:18:29;;15075:34:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14870:770;;:::o;14937:697::-;15301:11;-1:-1:-1;;;;;15301:16:27;;15326:4;15333:20;:13;-1:-1:-1;;;;;15333:18:27;-1:-1:-1;;;;;5144:41:23;;5069:123;15333:20:27;15301:58;;-1:-1:-1;;;;;;15301:58:27;;;;;;;-1:-1:-1;;;;;12846:32:29;;;15301:58:27;;;12828:51:29;12895:18;;;12888:34;12938:18;;;12931:34;;;12801:18;;15301:58:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;15378:14:27;;;;;;:7;:14;;;;;;;;15373:121;;-1:-1:-1;;;;;15412:14:27;;;;;;:7;:14;;;;;:21;;-1:-1:-1;;15412:21:27;15429:4;15412:21;;;;;;15451:16;:28;;;;;;;;;;;;;;-1:-1:-1;;;;;;15451:28:27;;;;;;15373:121;-1:-1:-1;;;;;15507:21:27;;;;;;:14;:21;;;;;:28;;15532:3;;15507:21;:28;;15532:3;;15507:28;:::i;:::-;;;;;;;;15571:3;15549:18;;:25;;;;;;;:::i;:::-;;;;-1:-1:-1;;15593:30:27;;391:25:29;;;-1:-1:-1;;;;;15593:30:27;;;;;379:2:29;364:18;15593:30:27;;;;;;;14870:770;;:::o;17299:1331::-;17444:11;17458:12;:10;:12::i;:::-;-1:-1:-1;;;;;17667:15:27;;17650:14;17667:15;;;:8;:15;;;;;;17444:26;;-1:-1:-1;17667:20:27;17697:32;;;;17714:15;;17712:17;;;;;:::i;:::-;;;;-1:-1:-1;17697:32:27;17743:9;:40;;;-1:-1:-1;;;;;;17756:20:27;;;;;;:13;:20;;;;;;:27;;;17743:40;17739:134;;;17801:21;;;;:16;:21;;;;;17799:23;;17801:21;;;17799:23;;;:::i;:::-;;;;-1:-1:-1;;;;;;17836:20:27;;;;;;:13;:20;;;;;:26;;;17739:134;-1:-1:-1;;;;;17883:15:27;;;;;;:8;:15;;;;;:25;;17902:6;;17883:15;:25;;17902:6;;17883:25;:::i;:::-;;;;;;;;17933:6;17918:11;;:21;;;;;;;:::i;:::-;;;;-1:-1:-1;;17949:16:27;;;;:11;:16;;;;;:26;;17969:6;;17949:16;:26;;17969:6;;17949:26;:::i;:::-;;;;-1:-1:-1;;17986:421:27;;;;-1:-1:-1;;;;;18013:20:27;;;;;;:13;:20;;;;;:33;;18037:9;;18013:20;:33;;18037:9;;18013:33;:::i;:::-;;;;;;;;18080:9;18060:16;;:29;;;;;;;:::i;:::-;;;;-1:-1:-1;17986:421:27;;-1:-1:-1;17986:421:27;;-1:-1:-1;;;;;18220:20:27;;18203:14;18220:20;;;:13;:20;;;;;;;18269:18;;;:39;;18299:9;18269:39;;;18290:6;18269:39;18254:54;-1:-1:-1;18345:13:27;18254:54;18345:6;:13;:::i;:::-;-1:-1:-1;;;;;18322:20:27;;;;;;:13;:20;;;;;:36;;;;18372:16;:24;;18392:4;;18322:20;18372:24;;18392:4;;18372:24;:::i;:::-;;;;-1:-1:-1;;;;17986:421:27;18421:8;;18417:207;;-1:-1:-1;;;;;18445:20:27;;;;;;:13;:20;;;;;:27;;18469:3;;18445:20;:27;;18469:3;;18445:27;:::i;:::-;;;;;;;;18506:3;18486:16;;:23;;;;;;;:::i;:::-;;;;-1:-1:-1;;18523:14:27;;;;:9;:14;;;;;:21;;18541:3;;18523:14;:21;;18541:3;;18523:21;:::i;:::-;;;;-1:-1:-1;18589:10:27;;-1:-1:-1;18589:8:27;;;;;;;:3;:8;:::i;:::-;515:4:24;496:24;;;271:265;18589:10:27;18563:50;;;17263:25:29;;;17319:2;17304:18;;17297:34;;;-1:-1:-1;;;;;18563:50:27;;;;;17236:18:29;18563:50:27;;;;;;;18417:207;17434:1196;;17299:1331;;;;;;:::o;14:226:29:-;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;-1:-1:-1;187:23:29;;14:226;-1:-1:-1;14:226:29:o;427:131::-;-1:-1:-1;;;;;502:31:29;;492:42;;482:70;;548:1;545;538:12;482:70;427:131;:::o;563:156::-;623:5;668:3;659:6;654:3;650:16;646:26;643:46;;;685:1;682;675:12;643:46;-1:-1:-1;707:6:29;563:156;-1:-1:-1;563:156:29:o;724:170::-;798:5;843:3;834:6;829:3;825:16;821:26;818:46;;;860:1;857;850:12;899:347;950:8;960:6;1014:3;1007:4;999:6;995:17;991:27;981:55;;1032:1;1029;1022:12;981:55;-1:-1:-1;1055:20:29;;1098:18;1087:30;;1084:50;;;1130:1;1127;1120:12;1084:50;1167:4;1159:6;1155:17;1143:29;;1219:3;1212:4;1203:6;1195;1191:19;1187:30;1184:39;1181:59;;;1236:1;1233;1226:12;1181:59;899:347;;;;;:::o;1251:827::-;1416:6;1424;1432;1440;1448;1501:3;1489:9;1480:7;1476:23;1472:33;1469:53;;;1518:1;1515;1508:12;1469:53;1557:9;1544:23;1576:31;1601:5;1576:31;:::i;:::-;1626:5;-1:-1:-1;1650:63:29;1705:7;1700:2;1685:18;;1650:63;:::i;:::-;1640:73;;1732:78;1802:7;1796:3;1785:9;1781:19;1732:78;:::i;:::-;1722:88;;1861:3;1850:9;1846:19;1833:33;1889:18;1881:6;1878:30;1875:50;;;1921:1;1918;1911:12;1875:50;1960:58;2010:7;2001:6;1990:9;1986:22;1960:58;:::i;:::-;1251:827;;;;-1:-1:-1;1251:827:29;;-1:-1:-1;2037:8:29;;1934:84;1251:827;-1:-1:-1;;;1251:827:29:o;2749:158::-;2812:5;2857:2;2848:6;2843:3;2839:16;2835:25;2832:45;;;2873:1;2870;2863:12;2912:805;3066:6;3074;3082;3090;3098;3151:3;3139:9;3130:7;3126:23;3122:33;3119:53;;;3168:1;3165;3158:12;3119:53;3207:9;3194:23;3226:31;3251:5;3226:31;:::i;:::-;3276:5;-1:-1:-1;3300:63:29;3355:7;3350:2;3335:18;;3300:63;:::i;:::-;3290:73;;3382:67;3441:7;3435:3;3424:9;3420:19;3382:67;:::i;:::-;3372:77;;3500:3;3489:9;3485:19;3472:33;3528:18;3520:6;3517:30;3514:50;;;3560:1;3557;3550:12;4119:247;4178:6;4231:2;4219:9;4210:7;4206:23;4202:32;4199:52;;;4247:1;4244;4237:12;4199:52;4286:9;4273:23;4305:31;4330:5;4305:31;:::i;:::-;4355:5;4119:247;-1:-1:-1;;;4119:247:29:o;4371:1135::-;4620:6;4628;4636;4644;4652;4660;4668;4721:3;4709:9;4700:7;4696:23;4692:33;4689:53;;;4738:1;4735;4728:12;4689:53;4777:9;4764:23;4796:31;4821:5;4796:31;:::i;:::-;4846:5;-1:-1:-1;4870:63:29;4925:7;4920:2;4905:18;;4870:63;:::i;:::-;4860:73;;4952:78;5022:7;5016:3;5005:9;5001:19;4952:78;:::i;:::-;4942:88;-1:-1:-1;5103:3:29;5088:19;;5075:33;;-1:-1:-1;5207:3:29;5192:19;;5179:33;;-1:-1:-1;5289:3:29;5274:19;;5261:33;5317:18;5306:30;;5303:50;;;5349:1;5346;5339:12;5303:50;5388:58;5438:7;5429:6;5418:9;5414:22;5388:58;:::i;:::-;4371:1135;;;;-1:-1:-1;4371:1135:29;;-1:-1:-1;4371:1135:29;;;;5362:84;;-1:-1:-1;;;4371:1135:29:o;5821:160::-;5887:20;;5947:1;5936:20;;;5926:31;;5916:59;;5971:1;5968;5961:12;5916:59;5821:160;;;:::o;5986:587::-;6097:6;6105;6113;6121;6174:3;6162:9;6153:7;6149:23;6145:33;6142:53;;;6191:1;6188;6181:12;6142:53;6230:9;6217:23;6249:31;6274:5;6249:31;:::i;:::-;6299:5;-1:-1:-1;6323:63:29;6378:7;6373:2;6358:18;;6323:63;:::i;:::-;6313:73;;6438:3;6427:9;6423:19;6410:33;6452;6477:7;6452:33;:::i;:::-;6504:7;-1:-1:-1;6530:37:29;6562:3;6547:19;;6530:37;:::i;:::-;6520:47;;5986:587;;;;;;;:::o;6786:409::-;6856:6;6864;6917:2;6905:9;6896:7;6892:23;6888:32;6885:52;;;6933:1;6930;6923:12;6885:52;6973:9;6960:23;7006:18;6998:6;6995:30;6992:50;;;7038:1;7035;7028:12;6992:50;7077:58;7127:7;7118:6;7107:9;7103:22;7077:58;:::i;:::-;7154:8;;7051:84;;-1:-1:-1;6786:409:29;-1:-1:-1;;;;6786:409:29:o;7200:416::-;7347:2;7336:9;7329:21;7310:4;7379:6;7373:13;7422:6;7417:2;7406:9;7402:18;7395:34;7481:6;7476:2;7468:6;7464:15;7459:2;7448:9;7444:18;7438:50;7537:1;7532:2;7523:6;7512:9;7508:22;7504:31;7497:42;7607:2;7600;7596:7;7591:2;7583:6;7579:15;7575:29;7564:9;7560:45;7556:54;7548:62;;;7200:416;;;;:::o;7621:959::-;7817:6;7825;7833;7841;7849;7857;7910:3;7898:9;7889:7;7885:23;7881:33;7878:53;;;7927:1;7924;7917:12;7878:53;7966:9;7953:23;7985:31;8010:5;7985:31;:::i;:::-;8035:5;-1:-1:-1;8059:63:29;8114:7;8109:2;8094:18;;8059:63;:::i;:::-;8049:73;;8141:67;8200:7;8194:3;8183:9;8179:19;8141:67;:::i;:::-;8131:77;-1:-1:-1;8281:3:29;8266:19;;8253:33;;-1:-1:-1;8363:3:29;8348:19;;8335:33;8391:18;8380:30;;8377:50;;;8423:1;8420;8413:12;8377:50;8462:58;8512:7;8503:6;8492:9;8488:22;8462:58;:::i;:::-;7621:959;;;;-1:-1:-1;7621:959:29;;-1:-1:-1;7621:959:29;;8539:8;;7621:959;-1:-1:-1;;;7621:959:29:o;8877:914::-;9010:6;9018;9026;9034;9042;9050;9103:3;9091:9;9082:7;9078:23;9074:33;9071:53;;;9120:1;9117;9110:12;9071:53;9159:9;9146:23;9178:31;9203:5;9178:31;:::i;:::-;9228:5;-1:-1:-1;9252:63:29;9307:7;9302:2;9287:18;;9252:63;:::i;:::-;9242:73;-1:-1:-1;9388:3:29;9373:19;;9360:33;;-1:-1:-1;9492:3:29;9477:19;;9464:33;;-1:-1:-1;9574:3:29;9559:19;;9546:33;9602:18;9591:30;;9588:50;;;9634:1;9631;9624:12;10255:516;10359:6;10367;10375;10428:3;10416:9;10407:7;10403:23;10399:33;10396:53;;;10445:1;10442;10435:12;10396:53;10484:9;10471:23;10503:31;10528:5;10503:31;:::i;:::-;10553:5;-1:-1:-1;10577:63:29;10632:7;10627:2;10612:18;;10577:63;:::i;:::-;10567:73;;10692:3;10681:9;10677:19;10664:33;10706;10731:7;10706:33;:::i;:::-;10758:7;10748:17;;;10255:516;;;;;:::o;10776:637::-;10966:2;10978:21;;;11048:13;;10951:18;;;11070:22;;;10918:4;;11149:15;;;11123:2;11108:18;;;10918:4;11192:195;11206:6;11203:1;11200:13;11192:195;;;11271:13;;-1:-1:-1;;;;;11267:39:29;11255:52;;11336:2;11362:15;;;;11327:12;;;;11303:1;11221:9;11192:195;;;-1:-1:-1;11404:3:29;;10776:637;-1:-1:-1;;;;;10776:637:29:o;11418:127::-;11479:10;11474:3;11470:20;11467:1;11460:31;11510:4;11507:1;11500:15;11534:4;11531:1;11524:15;11550:127;11611:10;11606:3;11602:20;11599:1;11592:31;11642:4;11639:1;11632:15;11666:4;11663:1;11656:15;11682:125;11747:9;;;11768:10;;;11765:36;;;11781:18;;:::i;11812:273::-;11868:6;11921:2;11909:9;11900:7;11896:23;11892:32;11889:52;;;11937:1;11934;11927:12;11889:52;11976:9;11963:23;12029:5;12022:13;12015:21;12008:5;12005:32;11995:60;;12051:1;12048;12041:12;12090:136;12125:3;-1:-1:-1;;;12146:22:29;;12143:48;;12171:18;;:::i;:::-;-1:-1:-1;12211:1:29;12207:13;;12090:136::o;12231:168::-;12304:9;;;12335;;12352:15;;;12346:22;;12332:37;12322:71;;12373:18;;:::i;12404:217::-;12444:1;12470;12460:132;;12514:10;12509:3;12505:20;12502:1;12495:31;12549:4;12546:1;12539:15;12577:4;12574:1;12567:15;12460:132;-1:-1:-1;12606:9:29;;12404:217::o;13589:184::-;13659:6;13712:2;13700:9;13691:7;13687:23;13683:32;13680:52;;;13728:1;13725;13718:12;13680:52;-1:-1:-1;13751:16:29;;13589:184;-1:-1:-1;13589:184:29:o;13778:128::-;13845:9;;;13866:11;;;13863:37;;;13880:18;;:::i;13911:127::-;13972:10;13967:3;13963:20;13960:1;13953:31;14003:4;14000:1;13993:15;14027:4;14024:1;14017:15;14043:275;14114:2;14108:9;14179:2;14160:13;;-1:-1:-1;;14156:27:29;14144:40;;14214:18;14199:34;;14235:22;;;14196:62;14193:88;;;14261:18;;:::i;:::-;14297:2;14290:22;14043:275;;-1:-1:-1;14043:275:29:o;14323:755::-;14402:6;14455:2;14443:9;14434:7;14430:23;14426:32;14423:52;;;14471:1;14468;14461:12;14423:52;14504:9;14498:16;14537:18;14529:6;14526:30;14523:50;;;14569:1;14566;14559:12;14523:50;14592:22;;14645:4;14637:13;;14633:27;-1:-1:-1;14623:55:29;;14674:1;14671;14664:12;14623:55;14707:2;14701:9;14733:18;14725:6;14722:30;14719:56;;;14755:18;;:::i;:::-;14797:57;14844:2;14821:17;;-1:-1:-1;;14817:31:29;14850:2;14813:40;14797:57;:::i;:::-;14877:6;14870:5;14863:21;14925:7;14920:2;14911:6;14907:2;14903:15;14899:24;14896:37;14893:57;;;14946:1;14943;14936:12;14893:57;14994:6;14989:2;14985;14981:11;14976:2;14969:5;14965:14;14959:42;15046:1;15021:18;;;15041:2;15017:27;15010:38;;;;15025:5;14323:755;-1:-1:-1;;;;14323:755:29:o;15362:213::-;15397:3;15445:5;15441:2;15430:21;15479:34;15475:39;15466:7;15463:52;15460:78;;15518:18;;:::i;:::-;15558:1;15554:15;;15362:213;-1:-1:-1;;15362:213:29:o;15861:135::-;15900:3;15921:17;;;15918:43;;15941:18;;:::i;:::-;-1:-1:-1;15988:1:29;15977:13;;15861:135::o;16001:1083::-;16085:6;16145:3;16133:9;16124:7;16120:23;16116:33;16161:2;16158:22;;;16176:1;16173;16166:12;16158:22;-1:-1:-1;16245:2:29;16239:9;16287:3;16275:16;;16321:18;16306:34;;16342:22;;;16303:62;16300:88;;;16368:18;;:::i;:::-;16404:2;16397:22;16441:23;;16473:31;16441:23;16473:31;:::i;:::-;16513:21;;16586:2;16571:18;;16558:32;16599:33;16558:32;16599:33;:::i;:::-;16660:2;16648:15;;16641:32;16725:2;16710:18;;16697:32;16773:8;16760:22;;16748:35;;16738:63;;16797:1;16794;16787:12;16738:63;16829:2;16817:15;;16810:32;16875:36;16907:2;16892:18;;16875:36;:::i;:::-;16870:2;16862:6;16858:15;16851:61;16964:3;16953:9;16949:19;16936:33;16978;17003:7;16978:33;:::i;:::-;17039:3;17027:16;;17020:33;17031:6;16001:1083;-1:-1:-1;;;16001:1083:29:o","linkReferences":{},"immutableReferences":{"3807":[{"start":1230,"length":32},{"start":1488,"length":32},{"start":1875,"length":32},{"start":1954,"length":32},{"start":2227,"length":32},{"start":2403,"length":32},{"start":2668,"length":32},{"start":3030,"length":32},{"start":3773,"length":32},{"start":4025,"length":32},{"start":4271,"length":32},{"start":4581,"length":32},{"start":4811,"length":32},{"start":5029,"length":32}],"3810":[{"start":683,"length":32},{"start":2445,"length":32},{"start":3548,"length":32},{"start":3815,"length":32},{"start":4623,"length":32}],"3813":[{"start":620,"length":32},{"start":2005,"length":32},{"start":2174,"length":32},{"start":4069,"length":32},{"start":4218,"length":32},{"start":4758,"length":32},{"start":5080,"length":32}],"3816":[{"start":1129,"length":32},{"start":2856,"length":32},{"start":4396,"length":32},{"start":4934,"length":32}]}}}}}}},"signatures":{"function":[{"signature":"activePoolsOnDay(uint256)","signatureHash4":"0xf2539453","signatureHash32":"0xf2539453361e50041982b3a14a91537171e098f3f7d0662161350460abfcf06e"},{"signature":"afterAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)","signatureHash4":"0x9f063efc","signatureHash32":"0x9f063efc0e7905d302491c9da772361c0faa77174cc43ec9e94aa9141b6a6b67"},{"signature":"afterDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)","signatureHash4":"0xe1b4af69","signatureHash32":"0xe1b4af69b30a88bed49d94820f012d5d3a111a00764242f510270492aeb7fb1e"},{"signature":"afterInitialize(address,(address,address,uint24,int24,address),uint160,int24)","signatureHash4":"0x6fe7e6eb","signatureHash32":"0x6fe7e6ebae9b6648ee9582d3769da9a44fdb4ec83c36a0ffb490e9461143ec16"},{"signature":"afterRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)","signatureHash4":"0x6c2bbe7e","signatureHash32":"0x6c2bbe7e4f0f51f6ee10b6409b7088135645d7ae479b8f0be3d7250f85988483"},{"signature":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)","signatureHash4":"0xb47b2fb1","signatureHash32":"0xb47b2fb18a5a173c64a43e7f7fe55e43e298f5436a0e265b15e662727cb0695f"},{"signature":"beforeAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)","signatureHash4":"0x259982e5","signatureHash32":"0x259982e524ca348fcfeda0fb247c362c89fadb178685b3f748fe9b5beeeff045"},{"signature":"beforeDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)","signatureHash4":"0xb6a8b0fa","signatureHash32":"0xb6a8b0faa8fd517d727f03c7c72b0a7828d05348cbc4253b7cbd9609aad5559c"},{"signature":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)","signatureHash4":"0xdc98354e","signatureHash32":"0xdc98354e711e2be5d28eff54c09e2e61c5b15fb066d17daaa5b71151b4ae5c5a"},{"signature":"beforeRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)","signatureHash4":"0x21d0ee70","signatureHash32":"0x21d0ee70669b208d8af4dc382eaa03dea2d745370926da496c872bb9c9b98692"},{"signature":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)","signatureHash4":"0x575e24b4","signatureHash32":"0x575e24b486f1b1168e84028b6b7338846844275788c5ca5249def3be2dfc2c03"},{"signature":"currentDay()","signatureHash4":"0x5c9302c9","signatureHash32":"0x5c9302c9a8205c6b8ef0c76dd125de585b87489780ec737f30bcd14bcded00fa"},{"signature":"feeCollector()","signatureHash4":"0xc415b95c","signatureHash32":"0xc415b95c09c7e90f8c299832d8e0d7df8a5b154ae0ac7eb20de39b58b93e210c"},{"signature":"feesChargedOf(address)","signatureHash4":"0xcf0ac78f","signatureHash32":"0xcf0ac78f4680e4a41d0fa3a8878984fd3f44dd3d2ccef15f3e575dc9b881b773"},{"signature":"feesOnDay(uint256)","signatureHash4":"0xe8614178","signatureHash32":"0xe86141786cad4e35eceff88fac6228f3530bf52344ec0185c733f4b93f45b442"},{"signature":"lastActiveDay(address)","signatureHash4":"0xdc1ab379","signatureHash32":"0xdc1ab37993f5c617718d20b8fc35e757f9f78afa30368ba268cabf44a7f8ec70"},{"signature":"poolManager()","signatureHash4":"0xdc4c90d3","signatureHash32":"0xdc4c90d3c2342c5afe26871a21a4ecf482fcb45ae1ac8294d1dcff7a134352c0"},{"signature":"poolsEverTraded()","signatureHash4":"0x77cd9374","signatureHash32":"0x77cd9374fcf14008ee67ec034590b53097545782969690c101a4da5f8ffd2d40"},{"signature":"PROTOCOL_FEE_BPS()","signatureHash4":"0xbe378228","signatureHash32":"0xbe378228ec0aec3c7bac0dfe5b6ae2649c575e6cd6ec02cb628938edd00e4edc"},{"signature":"REQUIRED_FLAGS()","signatureHash4":"0x8549d9be","signatureHash32":"0x8549d9be4d198a649ccb7db7a6690e8244a3f138568869047df11ba784a7815e"},{"signature":"settleAllFees()","signatureHash4":"0x1d38cbfe","signatureHash32":"0x1d38cbfe92449ff90f58bdf1387500d72fb1999aa142d257d8df8298ed5c8b1c"},{"signature":"settleFees(address)","signatureHash4":"0xa78842ee","signatureHash32":"0xa78842ee4ed59442ec8de60e3f0bde96124d3314320530c99ce1ee1d3cc7694f"},{"signature":"stockCurrency()","signatureHash4":"0x26465937","signatureHash32":"0x264659377edde77852633e451c74e5abdf09f2aeee224b49aff33dbb5feb0b5e"},{"signature":"stockLockedOf(address)","signatureHash4":"0x93cc0b2b","signatureHash32":"0x93cc0b2b02d6968929cafd53a0c6c6c3549018185e9816ddeb82165fd0862660"},{"signature":"tokenizedStock()","signatureHash4":"0x4eec9e09","signatureHash32":"0x4eec9e09e31199c5c42576aff183626ca7e66b2b1c8be0238c9c2b909ac02401"},{"signature":"totalFeesCharged()","signatureHash4":"0xb7578940","signatureHash32":"0xb7578940b2988d064a6198bb02da50b13d334100e89c9ccdacd510f7c69336f9"},{"signature":"totalStockLocked()","signatureHash4":"0xb9daf517","signatureHash32":"0xb9daf517049a386f90646eaf6e27fab4c1ef2990cff7edbafcdbf20b1bb617d5"},{"signature":"totalUnsettledFees()","signatureHash4":"0x9beedd1e","signatureHash32":"0x9beedd1ea0ef7ea3a1bbb11948f8e6777c53f00a9649ee393e2d59d9b9ae7c65"},{"signature":"totalVolume()","signatureHash4":"0x5f81a57c","signatureHash32":"0x5f81a57ca6924034b6237278377a04f71422ea241de3c77e2741e4ebbd7a5433"},{"signature":"unlockCallback(bytes)","signatureHash4":"0x91dd7346","signatureHash32":"0x91dd7346410d7d3e1561ab65859d8ebbee84f666c7eb10ddc6d9424bc35ec2ee"},{"signature":"unsettledFeeOf(address)","signatureHash4":"0x726877e5","signatureHash32":"0x726877e55e38efb291fe98307ab86e074864b64fa9a6c4c20a60fab009e95ac7"},{"signature":"unsettledTokens()","signatureHash4":"0xde6fb465","signatureHash32":"0xde6fb4655fce42db1759a8b561f7841bf6c7bc00e853943430b2f49f240d7891"},{"signature":"volumeOf(address)","signatureHash4":"0x64f8caec","signatureHash32":"0x64f8caeccd7008a140655fc506f7c4f379738381473b7a0d5e3e5cbe00054ed4"},{"signature":"volumeOnDay(uint256)","signatureHash4":"0x0f1d6f76","signatureHash32":"0x0f1d6f76541d8d6cb16566ab40342be0905991967b232b72a5595ce79708b770"}],"event":[{"signature":"FeeDeferredAsClaim(address,uint256)","signatureHash4":"0xc1be2bc8","signatureHash32":"0xc1be2bc8eb877f1acaf69dd16cddb1a5ec91ca5dbf16c408720e4f71435b879f"},{"signature":"FeeSettled(address,uint256)","signatureHash4":"0x8ca3aa85","signatureHash32":"0x8ca3aa85524ed683fbb1f239a5aa076ba47c5e8a4d86e32f8ca1ec2cdd56a953"},{"signature":"ProtocolFeeCharged(address,bytes32,uint256,uint256)","signatureHash4":"0x1d04ee52","signatureHash32":"0x1d04ee529105e3590e5b5ab05b857a0def93ec3de4b27276e998b8340bd1d193"}],"error":[{"signature":"HookNotImplemented()","signatureHash4":"0x0a85dc29","signatureHash32":"0x0a85dc29bcc4d20e8373328a2a3f1b6cb998fd2fbddf45b4db05514aef5c184d"},{"signature":"InvalidHookAddress()","signatureHash4":"0xaa5be784","signatureHash32":"0xaa5be7845121eebe32e29a51013a53e2d4f3c373d836a3390da02ee92215b472"},{"signature":"NotPoolManager()","signatureHash4":"0xae18210a","signatureHash32":"0xae18210ab62e9620e84799499bafdb3202a30943ba8cb533c4bac9cdc8ced60b"},{"signature":"PoolMustPairTokenizedStock()","signatureHash4":"0x19414974","signatureHash32":"0x19414974438d6156973a60022ef9152c80818f8556f43aa196c8b5e464c25d0e"},{"signature":"SafeERC20FailedOperation(address)","signatureHash4":"0x5274afe7","signatureHash32":"0x5274afe73c98b4749fc91ffae6b7b574e7842cb2144a159e9377a5f20b32edf9"}]},"proxyResolution":{"isProxy":false,"proxyType":null,"implementations":[]},"match":"match","chainId":"4663","address":"0xd88DcACF4E77B7FF2778AEE824639D30cb1640CC"}