{"matchId":"39537835","creationMatch":null,"runtimeMatch":"exact_match","verifiedAt":"2026-07-01T14:54:59Z","creationBytecode":{"onchainBytecode":null,"recompiledBytecode":"0x608060405234801561001057600080fd5b50612190806100206000396000f3fe608060405234801561001057600080fd5b50600436106101825760003560e01c80639037ecae116100d8578063c274583a1161008c578063f90c492411610066578063f90c492414610371578063fb2eeb3b14610378578063fc57d4df1461038b57600080fd5b8063c274583a14610311578063e8689daa14610326578063f50b2efe1461035e57600080fd5b8063b24ebfcc116100bd578063b24ebfcc146102d6578063b7a16251146102e9578063b95ed06f146102fe57600080fd5b80639037ecae146102b0578063971b9c03146102c357600080fd5b806355a547d51161013a5780637de92016116101145780637de9201614610275578063858b033d1461028857806386a8a7221461029057600080fd5b806355a547d51461022c578063612f56bb14610234578063729bfda41461024757600080fd5b806343ba8cad1161016b57806343ba8cad146101e657806344e02982146101f957806348a1371b1461020c57600080fd5b806302b9c828146101875780633ce142f5146101c1575b600080fd5b6101ae610195366004611ceb565b73ffffffffffffffffffffffffffffffffffffffff1690565b6040519081526020015b60405180910390f35b6101d46101cf366004611ceb565b61039e565b60405160ff90911681526020016101b8565b6101ae6101f4366004611d08565b61050c565b6101ae610207366004611d08565b61051f565b61021f61021a366004611dc3565b610532565b6040516101b89190611e62565b6101ae6105d3565b6101ae610242366004611ea6565b61072c565b61025a610255366004611d08565b610746565b604080519384526020840192909252908201526060016101b8565b61021f610283366004611dc3565b6107f9565b6101ae610894565b6102a361029e366004611ec8565b6108e8565b6040516101b89190611f4e565b6101ae6102be366004611d08565b6109f4565b61021f6102d1366004611ec8565b610a08565b6101ae6102e4366004611ec8565b610aa3565b6102fc6102f7366004611ec8565b610aae565b005b6101ae61030c366004611ceb565b610ba3565b610319610bd2565b6040516101b89190611fa7565b610339610334366004611ceb565b610c06565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101b8565b6102fc61036c366004611d08565b610c77565b60036101d4565b61025a610386366004611d08565b610c83565b6101ae610399366004611ceb565b610cf9565b600073ffffffffffffffffffffffffffffffffffffffff8216738bb8f32df04c8b654987daaed53d6b6091e3b774036103d957506000919050565b73ffffffffffffffffffffffffffffffffffffffff821673deb22f54738d54976c4c0fe5ce6d408e40d884990361041257506001919050565b73ffffffffffffffffffffffffffffffffffffffff82167351ce04be4b3e32572c4ec9135221d0691ba7d2020361044b57506002919050565b73ffffffffffffffffffffffffffffffffffffffff821673dd682daec5a90dd295d14da4b0bec9281017b5be0361048457506003919050565b73ffffffffffffffffffffffffffffffffffffffff8216739c5ae89c4af6aa32ce58588dbaf90d18a855b6de036104bd57506004919050565b6040517fec459bc000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff831660048201526024015b60405180910390fd5b600061051782610c83565b509392505050565b600061052a82610c83565b949350505050565b6060815167ffffffffffffffff81111561054e5761054e611d21565b604051908082528060200260200182016040528015610577578160200160208202803683370190505b50905060005b82518110156105cd576105a883828151811061059b5761059b612013565b6020026020010151610cf9565b8282815181106105ba576105ba612013565b602090810291909101015260010161057d565b50919050565b6000806105de610d07565b905060006105eb82610e3c565b925061ffff169050600081900361062e576040517f8552ff3c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8181101561072657600061064484610ea4565b9050600080610654606887612071565b905060006106628236612084565b9050803592508265ffffffffffff166000036106aa576040517f336dc9d000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b876000036106c2578265ffffffffffff169750610703565b878365ffffffffffff1614610703576040517fd9d1f46500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61070d8488612071565b965050505050808061071e90612097565b915050610631565b50505090565b600061073d6402540be400836120cf565b90505b92915050565b60008181527f5e9fb4cb0eb3c2583734d3394f30bb14b241acb9b3a034f7e7ba1a62db4370f160205260408120805465ffffffffffff80821693660100000000000083049091169290917f0100000000000000000000000000000000000000000000000000000000000000900460ff16156107c757806001015491506107f1565b80546c01000000000000000000000000900472ffffffffffffffffffffffffffffffffffffff1691505b509193909250565b6060815167ffffffffffffffff81111561081557610815611d21565b60405190808252806020026020018201604052801561083e578160200160208202803683370190505b50905060005b82518110156105cd5761086f83828151811061086257610862612013565b6020026020010151610ba3565b82828151811061088157610881612013565b6020908102919091010152600101610844565b60006108e37f45544800000000000000000000000000000000000000000000000000000000006102427f455448000000000000000000000000000000000000000000000000000000000061051f565b905090565b6060815167ffffffffffffffff81111561090457610904611d21565b60405190808252806020026020018201604052801561095957816020015b61094660405180606001604052806000815260200160008152602001600081525090565b8152602001906001900390816109225790505b50905060005b82518110156105cd5761098a83828151811061097d5761097d612013565b6020026020010151610746565b84848151811061099c5761099c612013565b60200260200101516000018585815181106109b9576109b9612013565b60200260200101516020018686815181106109d6576109d6612013565b6020908102919091010151604001929092529190525260010161095f565b60006109ff82610c83565b50909392505050565b6060815167ffffffffffffffff811115610a2457610a24611d21565b604051908082528060200260200182016040528015610a4d578160200160208202803683370190505b50905060005b82518110156105cd57610a7e838281518110610a7157610a71612013565b602002602001015161051f565b828281518110610a9057610a90612013565b6020908102919091010152600101610a53565b600061074082610ed8565b600080610aba83610ee3565b91509150610ac781610c77565b65ffffffffffff811115610b0a576040517f48f06f0800000000000000000000000000000000000000000000000000000000815260048101829052602401610503565b65ffffffffffff421115610b4c576040517f5cf61159000000000000000000000000000000000000000000000000000000008152426004820152602401610503565b60005b8351811015610b9d57610b95848281518110610b6d57610b6d612013565b6020026020010151848381518110610b8757610b87612013565b602002602001015184610ef9565b600101610b4f565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff821681610bc68261051f565b905061052a828261072c565b60606040517f608b530700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff16636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c53573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074091906120e6565b610c8081610fdf565b50565b6000806000610c9184610746565b91945092509050610ca484848484611095565b610cf2576040517f4f319ffe00000000000000000000000000000000000000000000000000000000815260048101859052602481018490526044810183905260648101829052608401610503565b9193909250565b600061074061030c83610c06565b60006602ed57011e00007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe036013581161480610d6f576040517fe7764c9e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60003660291115610dac576040517f5796f78a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd736013560006009610de5600362ffffff8516612071565b610def9190612071565b905036610dfd600283612071565b1115610e35576040517fc30a7bd700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b9392505050565b60008080610e4b602085612071565b905036811115610e87576040517f5796f78a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3681900335925082610e9a600286612071565b9250925050915091565b6000806000610eb2846110ba565b9092509050604e610ec4826020612071565b610ece90846120cf565b61052a9190612071565b60006107408261110d565b60606000610ef08361124a565b91509150915091565b6000806000610f0786610746565b925092509250610f1682611497565b610f56576040518681527fd2fed36e637cb43fd01b51ddf3b0ca9d9966df112183894d5699cd9a16f85eb5906020015b60405180910390a1505050505050565b838310610f8d576040518681527ff34a55619bad9bd385340bece69770212d10a808ac72a95e6454acf05462ac1b90602001610f46565b84610fc2576040518681527fad6ebdc3909f212583bf7e8a0f31338c8c92f403f2fd37d23014fb3fd34e310290602001610f46565b610fcd86868661153b565b610fd78686611669565b505050505050565b6000610fed6103e883612132565b90508042101561104857603c6110034283612084565b1115611044576040517fb6b0916d00000000000000000000000000000000000000000000000000000000815260048101829052426024820152604401610503565b5050565b60b46110548242612084565b1115611044576040517f0321d0b500000000000000000000000000000000000000000000000000000000815260048101829052426024820152604401610503565b600080821180156110b15750426110af6201a5e085612071565b115b95945050505050565b60008080808060206110cd604188612071565b6110d79190612071565b6110e19036612084565b8035935090506110f2600382612084565b62ffffff9390931696923563ffffffff169550919350505050565b600081516002036111645760028260018151811061112d5761112d612013565b60200260200101518360008151811061114857611148612013565b602002602001015161115a9190612071565b6107409190612132565b815160000361119f576040517f9e198af900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111a8826116ac565b6000600283516111b89190612132565b9050600283516111c89190612146565b6000036112285760008382815181106111e3576111e3612013565b6020026020010151846001846111f99190612084565b8151811061120957611209612013565b602002602001015161121b9190612071565b905061052a600282612132565b82818151811061123a5761123a612013565b6020026020010151915050919050565b6060600080835167ffffffffffffffff81111561126957611269611d21565b604051908082528060200260200182016040528015611292578160200160208202803683370190505b5090506000845167ffffffffffffffff8111156112b1576112b1611d21565b6040519080825280602002602001820160405280156112da578160200160208202803683370190505b5090506000855167ffffffffffffffff8111156112f9576112f9611d21565b60405190808252806020026020018201604052801561132c57816020015b60608152602001906001900390816113175790505b509050600360005b87518110156113a5578167ffffffffffffffff81111561135657611356611d21565b60405190808252806020026020018201604052801561137f578160200160208202803683370190505b5083828151811061139257611392612013565b6020908102919091010152600101611334565b5060006113b0610d07565b905060006113bd82610e3c565b60405190935061ffff909116915060005b8281101561147e5760006113e58c8a8a8a896116f4565b90955090506000819003611425576040517fdfb25a7900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b89811461146e578960000361143c5780995061146e565b6040517f4cbc474200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50602082016040526001016113ce565b50611489858861199d565b985050505050505050915091565b6000337301726847a184fff6f65ac14a322108260b51e81f14806114ce575033733927a0ccb6d4d92aa0c6037d00393940b2295968145b806114ec57503373ae8474802ecb7d2c03eab7fe975b1dc65f90d46c145b8061150a57503373cd6bfda4d95d5c0f3f2882dc221d792392c99714145b8061152857503373c4d1ae5e796e6d7561cdc8335f85e6b57a36e097145b156115335750421190565b506000919050565b60007f5e9fb4cb0eb3c2583734d3394f30bb14b241acb9b3a034f7e7ba1a62db4370f160008581526020918252604090819020815160808101835265ffffffffffff8681168083524290911694820185905272ffffffffffffffffffffffffffffffffffffff8881169483018590528811606090920182905282547fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016176601000000000000909402939093176bffffffffffffffffffffffff166c010000000000000000000000009092027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16919091177f010000000000000000000000000000000000000000000000000000000000000083021781559150801561166257600182018490555b5050505050565b6040805182815260208101849052428183015290517ff36866d965ee70c8632ff558f5cf8d41ee9ca1d0d0bc7700786e57be607473909181900360600190a15050565b8051602082016020820281019150805b82811015610b9d57815b818110156116eb5781518151808210156116e1578084528183525b50506020016116c6565b506020016116bc565b6000806000806000611705866110ba565b909250905060008060608180600d61171e602088612071565b61172890896120cf565b6117329190612071565b9150600061174160688d612071565b61174b9036612084565b905060008361175b60418f612071565b6117659190612071565b61176f9036612084565b905061177b848261178e565b94508360208601209550813592506117d0565b604080518381526020818501810190925260009101838382377fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0019392505050565b8265ffffffffffff169a506117f18660418f6117ec9190612071565b611ac5565b96506117fc8761039e565b60ff16995050505050505050604e866118159190612071565b955060008060005b8481101561198a576020611831858b612071565b61183b9190612071565b98506118478985611c5d565b909350915060005b8d51811015611981578d818151811061186a5761186a612013565b602002602001015184036119795760008c828151811061188c5761188c612013565b602002602001015190506118a581896001901b16151590565b1580156118ce5750600360ff168e83815181106118c4576118c4612013565b6020026020010151105b1561197357838c83815181106118e6576118e6612013565b60200260200101518f848151811061190057611900612013565b60200260200101518151811061191857611918612013565b6020026020010181815250508d828151811061193657611936612013565b60200260200101805180919061194b90612097565b9052506001881b81178d838151811061196657611966612013565b6020026020010181815250505b50611981565b60010161184f565b5060010161181d565b5050508594505050509550959350505050565b60606000835167ffffffffffffffff8111156119bb576119bb611d21565b6040519080825280602002602001820160405280156119e4578160200160208202803683370190505b509050600360005b8551811015611abb5781858281518110611a0857611a08612013565b60200260200101511015611a6e57848181518110611a2857611a28612013565b6020026020010151826040517f2b13aef5000000000000000000000000000000000000000000000000000000008152600401610503929190918252602082015260400190565b6000611a92878381518110611a8557611a85612013565b6020026020010151610aa3565b905080848381518110611aa757611aa7612013565b6020908102919091010152506001016119ec565b5090949350505050565b60003682900380359060208101359060400135831a601b8114801590611aef575060ff8116601c14155b15611b29576040517f666b7cba00000000000000000000000000000000000000000000000000000000815260048101879052602401610503565b7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115611b86576040517f666b7cba00000000000000000000000000000000000000000000000000000000815260048101879052602401610503565b60408051600081526020810180835288905260ff831691810191909152606081018490526080810183905260019060a0016020604051602081039080840390855afa158015611bd9573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015194505073ffffffffffffffffffffffffffffffffffffffff8416611c54576040517f666b7cba00000000000000000000000000000000000000000000000000000000815260048101879052602401610503565b50505092915050565b60008080611c6b8536612084565b9050803592506020810135915060218410611cb5576040517fc000fc4200000000000000000000000000000000000000000000000000000000815260048101859052602401610503565b8360200360080282901c9150509250929050565b73ffffffffffffffffffffffffffffffffffffffff81168114610c8057600080fd5b600060208284031215611cfd57600080fd5b8135610e3581611cc9565b600060208284031215611d1a57600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715611d9757611d97611d21565b604052919050565b600067ffffffffffffffff821115611db957611db9611d21565b5060051b60200190565b60006020808385031215611dd657600080fd5b823567ffffffffffffffff811115611ded57600080fd5b8301601f81018513611dfe57600080fd5b8035611e11611e0c82611d9f565b611d50565b81815260059190911b82018301908381019087831115611e3057600080fd5b928401925b82841015611e57578335611e4881611cc9565b82529284019290840190611e35565b979650505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611e9a57835183529284019291840191600101611e7e565b50909695505050505050565b60008060408385031215611eb957600080fd5b50508035926020909101359150565b60006020808385031215611edb57600080fd5b823567ffffffffffffffff811115611ef257600080fd5b8301601f81018513611f0357600080fd5b8035611f11611e0c82611d9f565b81815260059190911b82018301908381019087831115611f3057600080fd5b928401925b82841015611e5757833582529284019290840190611f35565b602080825282518282018190526000919060409081850190868401855b82811015611f9a5781518051855286810151878601528501518585015260609093019290850190600101611f6b565b5091979650505050505050565b600060208083528351808285015260005b81811015611fd457858101830151858201604001528201611fb8565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082018082111561074057610740612042565b8181038181111561074057610740612042565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036120c8576120c8612042565b5060010190565b808202811582820484141761074057610740612042565b6000602082840312156120f857600080fd5b8151610e3581611cc9565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008261214157612141612103565b500490565b60008261215557612155612103565b50069056fea2646970667358221220248e9728d98cd627ba97cee8dfd2c0cdc771cd6f76f09b75fdeb25d4629747b964736f6c63430008110033","sourceMap":"313:837:14:-:0;;;;;;;;;;;;;;;;;;;","linkReferences":{},"cborAuxdata":{"1":{"value":"0xa2646970667358221220248e9728d98cd627ba97cee8dfd2c0cdc771cd6f76f09b75fdeb25d4629747b964736f6c63430008110033","offset":8571}},"transformations":null,"transformationValues":null},"runtimeBytecode":{"onchainBytecode":"0x608060405234801561001057600080fd5b50600436106101825760003560e01c80639037ecae116100d8578063c274583a1161008c578063f90c492411610066578063f90c492414610371578063fb2eeb3b14610378578063fc57d4df1461038b57600080fd5b8063c274583a14610311578063e8689daa14610326578063f50b2efe1461035e57600080fd5b8063b24ebfcc116100bd578063b24ebfcc146102d6578063b7a16251146102e9578063b95ed06f146102fe57600080fd5b80639037ecae146102b0578063971b9c03146102c357600080fd5b806355a547d51161013a5780637de92016116101145780637de9201614610275578063858b033d1461028857806386a8a7221461029057600080fd5b806355a547d51461022c578063612f56bb14610234578063729bfda41461024757600080fd5b806343ba8cad1161016b57806343ba8cad146101e657806344e02982146101f957806348a1371b1461020c57600080fd5b806302b9c828146101875780633ce142f5146101c1575b600080fd5b6101ae610195366004611ceb565b73ffffffffffffffffffffffffffffffffffffffff1690565b6040519081526020015b60405180910390f35b6101d46101cf366004611ceb565b61039e565b60405160ff90911681526020016101b8565b6101ae6101f4366004611d08565b61050c565b6101ae610207366004611d08565b61051f565b61021f61021a366004611dc3565b610532565b6040516101b89190611e62565b6101ae6105d3565b6101ae610242366004611ea6565b61072c565b61025a610255366004611d08565b610746565b604080519384526020840192909252908201526060016101b8565b61021f610283366004611dc3565b6107f9565b6101ae610894565b6102a361029e366004611ec8565b6108e8565b6040516101b89190611f4e565b6101ae6102be366004611d08565b6109f4565b61021f6102d1366004611ec8565b610a08565b6101ae6102e4366004611ec8565b610aa3565b6102fc6102f7366004611ec8565b610aae565b005b6101ae61030c366004611ceb565b610ba3565b610319610bd2565b6040516101b89190611fa7565b610339610334366004611ceb565b610c06565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101b8565b6102fc61036c366004611d08565b610c77565b60036101d4565b61025a610386366004611d08565b610c83565b6101ae610399366004611ceb565b610cf9565b600073ffffffffffffffffffffffffffffffffffffffff8216738bb8f32df04c8b654987daaed53d6b6091e3b774036103d957506000919050565b73ffffffffffffffffffffffffffffffffffffffff821673deb22f54738d54976c4c0fe5ce6d408e40d884990361041257506001919050565b73ffffffffffffffffffffffffffffffffffffffff82167351ce04be4b3e32572c4ec9135221d0691ba7d2020361044b57506002919050565b73ffffffffffffffffffffffffffffffffffffffff821673dd682daec5a90dd295d14da4b0bec9281017b5be0361048457506003919050565b73ffffffffffffffffffffffffffffffffffffffff8216739c5ae89c4af6aa32ce58588dbaf90d18a855b6de036104bd57506004919050565b6040517fec459bc000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff831660048201526024015b60405180910390fd5b600061051782610c83565b509392505050565b600061052a82610c83565b949350505050565b6060815167ffffffffffffffff81111561054e5761054e611d21565b604051908082528060200260200182016040528015610577578160200160208202803683370190505b50905060005b82518110156105cd576105a883828151811061059b5761059b612013565b6020026020010151610cf9565b8282815181106105ba576105ba612013565b602090810291909101015260010161057d565b50919050565b6000806105de610d07565b905060006105eb82610e3c565b925061ffff169050600081900361062e576040517f8552ff3c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8181101561072657600061064484610ea4565b9050600080610654606887612071565b905060006106628236612084565b9050803592508265ffffffffffff166000036106aa576040517f336dc9d000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b876000036106c2578265ffffffffffff169750610703565b878365ffffffffffff1614610703576040517fd9d1f46500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61070d8488612071565b965050505050808061071e90612097565b915050610631565b50505090565b600061073d6402540be400836120cf565b90505b92915050565b60008181527f5e9fb4cb0eb3c2583734d3394f30bb14b241acb9b3a034f7e7ba1a62db4370f160205260408120805465ffffffffffff80821693660100000000000083049091169290917f0100000000000000000000000000000000000000000000000000000000000000900460ff16156107c757806001015491506107f1565b80546c01000000000000000000000000900472ffffffffffffffffffffffffffffffffffffff1691505b509193909250565b6060815167ffffffffffffffff81111561081557610815611d21565b60405190808252806020026020018201604052801561083e578160200160208202803683370190505b50905060005b82518110156105cd5761086f83828151811061086257610862612013565b6020026020010151610ba3565b82828151811061088157610881612013565b6020908102919091010152600101610844565b60006108e37f45544800000000000000000000000000000000000000000000000000000000006102427f455448000000000000000000000000000000000000000000000000000000000061051f565b905090565b6060815167ffffffffffffffff81111561090457610904611d21565b60405190808252806020026020018201604052801561095957816020015b61094660405180606001604052806000815260200160008152602001600081525090565b8152602001906001900390816109225790505b50905060005b82518110156105cd5761098a83828151811061097d5761097d612013565b6020026020010151610746565b84848151811061099c5761099c612013565b60200260200101516000018585815181106109b9576109b9612013565b60200260200101516020018686815181106109d6576109d6612013565b6020908102919091010151604001929092529190525260010161095f565b60006109ff82610c83565b50909392505050565b6060815167ffffffffffffffff811115610a2457610a24611d21565b604051908082528060200260200182016040528015610a4d578160200160208202803683370190505b50905060005b82518110156105cd57610a7e838281518110610a7157610a71612013565b602002602001015161051f565b828281518110610a9057610a90612013565b6020908102919091010152600101610a53565b600061074082610ed8565b600080610aba83610ee3565b91509150610ac781610c77565b65ffffffffffff811115610b0a576040517f48f06f0800000000000000000000000000000000000000000000000000000000815260048101829052602401610503565b65ffffffffffff421115610b4c576040517f5cf61159000000000000000000000000000000000000000000000000000000008152426004820152602401610503565b60005b8351811015610b9d57610b95848281518110610b6d57610b6d612013565b6020026020010151848381518110610b8757610b87612013565b602002602001015184610ef9565b600101610b4f565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff821681610bc68261051f565b905061052a828261072c565b60606040517f608b530700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff16636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c53573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074091906120e6565b610c8081610fdf565b50565b6000806000610c9184610746565b91945092509050610ca484848484611095565b610cf2576040517f4f319ffe00000000000000000000000000000000000000000000000000000000815260048101859052602481018490526044810183905260648101829052608401610503565b9193909250565b600061074061030c83610c06565b60006602ed57011e00007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe036013581161480610d6f576040517fe7764c9e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60003660291115610dac576040517f5796f78a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd736013560006009610de5600362ffffff8516612071565b610def9190612071565b905036610dfd600283612071565b1115610e35576040517fc30a7bd700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b9392505050565b60008080610e4b602085612071565b905036811115610e87576040517f5796f78a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3681900335925082610e9a600286612071565b9250925050915091565b6000806000610eb2846110ba565b9092509050604e610ec4826020612071565b610ece90846120cf565b61052a9190612071565b60006107408261110d565b60606000610ef08361124a565b91509150915091565b6000806000610f0786610746565b925092509250610f1682611497565b610f56576040518681527fd2fed36e637cb43fd01b51ddf3b0ca9d9966df112183894d5699cd9a16f85eb5906020015b60405180910390a1505050505050565b838310610f8d576040518681527ff34a55619bad9bd385340bece69770212d10a808ac72a95e6454acf05462ac1b90602001610f46565b84610fc2576040518681527fad6ebdc3909f212583bf7e8a0f31338c8c92f403f2fd37d23014fb3fd34e310290602001610f46565b610fcd86868661153b565b610fd78686611669565b505050505050565b6000610fed6103e883612132565b90508042101561104857603c6110034283612084565b1115611044576040517fb6b0916d00000000000000000000000000000000000000000000000000000000815260048101829052426024820152604401610503565b5050565b60b46110548242612084565b1115611044576040517f0321d0b500000000000000000000000000000000000000000000000000000000815260048101829052426024820152604401610503565b600080821180156110b15750426110af6201a5e085612071565b115b95945050505050565b60008080808060206110cd604188612071565b6110d79190612071565b6110e19036612084565b8035935090506110f2600382612084565b62ffffff9390931696923563ffffffff169550919350505050565b600081516002036111645760028260018151811061112d5761112d612013565b60200260200101518360008151811061114857611148612013565b602002602001015161115a9190612071565b6107409190612132565b815160000361119f576040517f9e198af900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111a8826116ac565b6000600283516111b89190612132565b9050600283516111c89190612146565b6000036112285760008382815181106111e3576111e3612013565b6020026020010151846001846111f99190612084565b8151811061120957611209612013565b602002602001015161121b9190612071565b905061052a600282612132565b82818151811061123a5761123a612013565b6020026020010151915050919050565b6060600080835167ffffffffffffffff81111561126957611269611d21565b604051908082528060200260200182016040528015611292578160200160208202803683370190505b5090506000845167ffffffffffffffff8111156112b1576112b1611d21565b6040519080825280602002602001820160405280156112da578160200160208202803683370190505b5090506000855167ffffffffffffffff8111156112f9576112f9611d21565b60405190808252806020026020018201604052801561132c57816020015b60608152602001906001900390816113175790505b509050600360005b87518110156113a5578167ffffffffffffffff81111561135657611356611d21565b60405190808252806020026020018201604052801561137f578160200160208202803683370190505b5083828151811061139257611392612013565b6020908102919091010152600101611334565b5060006113b0610d07565b905060006113bd82610e3c565b60405190935061ffff909116915060005b8281101561147e5760006113e58c8a8a8a896116f4565b90955090506000819003611425576040517fdfb25a7900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b89811461146e578960000361143c5780995061146e565b6040517f4cbc474200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50602082016040526001016113ce565b50611489858861199d565b985050505050505050915091565b6000337301726847a184fff6f65ac14a322108260b51e81f14806114ce575033733927a0ccb6d4d92aa0c6037d00393940b2295968145b806114ec57503373ae8474802ecb7d2c03eab7fe975b1dc65f90d46c145b8061150a57503373cd6bfda4d95d5c0f3f2882dc221d792392c99714145b8061152857503373c4d1ae5e796e6d7561cdc8335f85e6b57a36e097145b156115335750421190565b506000919050565b60007f5e9fb4cb0eb3c2583734d3394f30bb14b241acb9b3a034f7e7ba1a62db4370f160008581526020918252604090819020815160808101835265ffffffffffff8681168083524290911694820185905272ffffffffffffffffffffffffffffffffffffff8881169483018590528811606090920182905282547fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016176601000000000000909402939093176bffffffffffffffffffffffff166c010000000000000000000000009092027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16919091177f010000000000000000000000000000000000000000000000000000000000000083021781559150801561166257600182018490555b5050505050565b6040805182815260208101849052428183015290517ff36866d965ee70c8632ff558f5cf8d41ee9ca1d0d0bc7700786e57be607473909181900360600190a15050565b8051602082016020820281019150805b82811015610b9d57815b818110156116eb5781518151808210156116e1578084528183525b50506020016116c6565b506020016116bc565b6000806000806000611705866110ba565b909250905060008060608180600d61171e602088612071565b61172890896120cf565b6117329190612071565b9150600061174160688d612071565b61174b9036612084565b905060008361175b60418f612071565b6117659190612071565b61176f9036612084565b905061177b848261178e565b94508360208601209550813592506117d0565b604080518381526020818501810190925260009101838382377fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0019392505050565b8265ffffffffffff169a506117f18660418f6117ec9190612071565b611ac5565b96506117fc8761039e565b60ff16995050505050505050604e866118159190612071565b955060008060005b8481101561198a576020611831858b612071565b61183b9190612071565b98506118478985611c5d565b909350915060005b8d51811015611981578d818151811061186a5761186a612013565b602002602001015184036119795760008c828151811061188c5761188c612013565b602002602001015190506118a581896001901b16151590565b1580156118ce5750600360ff168e83815181106118c4576118c4612013565b6020026020010151105b1561197357838c83815181106118e6576118e6612013565b60200260200101518f848151811061190057611900612013565b60200260200101518151811061191857611918612013565b6020026020010181815250508d828151811061193657611936612013565b60200260200101805180919061194b90612097565b9052506001881b81178d838151811061196657611966612013565b6020026020010181815250505b50611981565b60010161184f565b5060010161181d565b5050508594505050509550959350505050565b60606000835167ffffffffffffffff8111156119bb576119bb611d21565b6040519080825280602002602001820160405280156119e4578160200160208202803683370190505b509050600360005b8551811015611abb5781858281518110611a0857611a08612013565b60200260200101511015611a6e57848181518110611a2857611a28612013565b6020026020010151826040517f2b13aef5000000000000000000000000000000000000000000000000000000008152600401610503929190918252602082015260400190565b6000611a92878381518110611a8557611a85612013565b6020026020010151610aa3565b905080848381518110611aa757611aa7612013565b6020908102919091010152506001016119ec565b5090949350505050565b60003682900380359060208101359060400135831a601b8114801590611aef575060ff8116601c14155b15611b29576040517f666b7cba00000000000000000000000000000000000000000000000000000000815260048101879052602401610503565b7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115611b86576040517f666b7cba00000000000000000000000000000000000000000000000000000000815260048101879052602401610503565b60408051600081526020810180835288905260ff831691810191909152606081018490526080810183905260019060a0016020604051602081039080840390855afa158015611bd9573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015194505073ffffffffffffffffffffffffffffffffffffffff8416611c54576040517f666b7cba00000000000000000000000000000000000000000000000000000000815260048101879052602401610503565b50505092915050565b60008080611c6b8536612084565b9050803592506020810135915060218410611cb5576040517fc000fc4200000000000000000000000000000000000000000000000000000000815260048101859052602401610503565b8360200360080282901c9150509250929050565b73ffffffffffffffffffffffffffffffffffffffff81168114610c8057600080fd5b600060208284031215611cfd57600080fd5b8135610e3581611cc9565b600060208284031215611d1a57600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715611d9757611d97611d21565b604052919050565b600067ffffffffffffffff821115611db957611db9611d21565b5060051b60200190565b60006020808385031215611dd657600080fd5b823567ffffffffffffffff811115611ded57600080fd5b8301601f81018513611dfe57600080fd5b8035611e11611e0c82611d9f565b611d50565b81815260059190911b82018301908381019087831115611e3057600080fd5b928401925b82841015611e57578335611e4881611cc9565b82529284019290840190611e35565b979650505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611e9a57835183529284019291840191600101611e7e565b50909695505050505050565b60008060408385031215611eb957600080fd5b50508035926020909101359150565b60006020808385031215611edb57600080fd5b823567ffffffffffffffff811115611ef257600080fd5b8301601f81018513611f0357600080fd5b8035611f11611e0c82611d9f565b81815260059190911b82018301908381019087831115611f3057600080fd5b928401925b82841015611e5757833582529284019290840190611f35565b602080825282518282018190526000919060409081850190868401855b82811015611f9a5781518051855286810151878601528501518585015260609093019290850190600101611f6b565b5091979650505050505050565b600060208083528351808285015260005b81811015611fd457858101830151858201604001528201611fb8565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082018082111561074057610740612042565b8181038181111561074057610740612042565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036120c8576120c8612042565b5060010190565b808202811582820484141761074057610740612042565b6000602082840312156120f857600080fd5b8151610e3581611cc9565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008261214157612141612103565b500490565b60008261215557612155612103565b50069056fea2646970667358221220248e9728d98cd627ba97cee8dfd2c0cdc771cd6f76f09b75fdeb25d4629747b964736f6c63430008110033","recompiledBytecode":"0x608060405234801561001057600080fd5b50600436106101825760003560e01c80639037ecae116100d8578063c274583a1161008c578063f90c492411610066578063f90c492414610371578063fb2eeb3b14610378578063fc57d4df1461038b57600080fd5b8063c274583a14610311578063e8689daa14610326578063f50b2efe1461035e57600080fd5b8063b24ebfcc116100bd578063b24ebfcc146102d6578063b7a16251146102e9578063b95ed06f146102fe57600080fd5b80639037ecae146102b0578063971b9c03146102c357600080fd5b806355a547d51161013a5780637de92016116101145780637de9201614610275578063858b033d1461028857806386a8a7221461029057600080fd5b806355a547d51461022c578063612f56bb14610234578063729bfda41461024757600080fd5b806343ba8cad1161016b57806343ba8cad146101e657806344e02982146101f957806348a1371b1461020c57600080fd5b806302b9c828146101875780633ce142f5146101c1575b600080fd5b6101ae610195366004611ceb565b73ffffffffffffffffffffffffffffffffffffffff1690565b6040519081526020015b60405180910390f35b6101d46101cf366004611ceb565b61039e565b60405160ff90911681526020016101b8565b6101ae6101f4366004611d08565b61050c565b6101ae610207366004611d08565b61051f565b61021f61021a366004611dc3565b610532565b6040516101b89190611e62565b6101ae6105d3565b6101ae610242366004611ea6565b61072c565b61025a610255366004611d08565b610746565b604080519384526020840192909252908201526060016101b8565b61021f610283366004611dc3565b6107f9565b6101ae610894565b6102a361029e366004611ec8565b6108e8565b6040516101b89190611f4e565b6101ae6102be366004611d08565b6109f4565b61021f6102d1366004611ec8565b610a08565b6101ae6102e4366004611ec8565b610aa3565b6102fc6102f7366004611ec8565b610aae565b005b6101ae61030c366004611ceb565b610ba3565b610319610bd2565b6040516101b89190611fa7565b610339610334366004611ceb565b610c06565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101b8565b6102fc61036c366004611d08565b610c77565b60036101d4565b61025a610386366004611d08565b610c83565b6101ae610399366004611ceb565b610cf9565b600073ffffffffffffffffffffffffffffffffffffffff8216738bb8f32df04c8b654987daaed53d6b6091e3b774036103d957506000919050565b73ffffffffffffffffffffffffffffffffffffffff821673deb22f54738d54976c4c0fe5ce6d408e40d884990361041257506001919050565b73ffffffffffffffffffffffffffffffffffffffff82167351ce04be4b3e32572c4ec9135221d0691ba7d2020361044b57506002919050565b73ffffffffffffffffffffffffffffffffffffffff821673dd682daec5a90dd295d14da4b0bec9281017b5be0361048457506003919050565b73ffffffffffffffffffffffffffffffffffffffff8216739c5ae89c4af6aa32ce58588dbaf90d18a855b6de036104bd57506004919050565b6040517fec459bc000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff831660048201526024015b60405180910390fd5b600061051782610c83565b509392505050565b600061052a82610c83565b949350505050565b6060815167ffffffffffffffff81111561054e5761054e611d21565b604051908082528060200260200182016040528015610577578160200160208202803683370190505b50905060005b82518110156105cd576105a883828151811061059b5761059b612013565b6020026020010151610cf9565b8282815181106105ba576105ba612013565b602090810291909101015260010161057d565b50919050565b6000806105de610d07565b905060006105eb82610e3c565b925061ffff169050600081900361062e576040517f8552ff3c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8181101561072657600061064484610ea4565b9050600080610654606887612071565b905060006106628236612084565b9050803592508265ffffffffffff166000036106aa576040517f336dc9d000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b876000036106c2578265ffffffffffff169750610703565b878365ffffffffffff1614610703576040517fd9d1f46500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61070d8488612071565b965050505050808061071e90612097565b915050610631565b50505090565b600061073d6402540be400836120cf565b90505b92915050565b60008181527f5e9fb4cb0eb3c2583734d3394f30bb14b241acb9b3a034f7e7ba1a62db4370f160205260408120805465ffffffffffff80821693660100000000000083049091169290917f0100000000000000000000000000000000000000000000000000000000000000900460ff16156107c757806001015491506107f1565b80546c01000000000000000000000000900472ffffffffffffffffffffffffffffffffffffff1691505b509193909250565b6060815167ffffffffffffffff81111561081557610815611d21565b60405190808252806020026020018201604052801561083e578160200160208202803683370190505b50905060005b82518110156105cd5761086f83828151811061086257610862612013565b6020026020010151610ba3565b82828151811061088157610881612013565b6020908102919091010152600101610844565b60006108e37f45544800000000000000000000000000000000000000000000000000000000006102427f455448000000000000000000000000000000000000000000000000000000000061051f565b905090565b6060815167ffffffffffffffff81111561090457610904611d21565b60405190808252806020026020018201604052801561095957816020015b61094660405180606001604052806000815260200160008152602001600081525090565b8152602001906001900390816109225790505b50905060005b82518110156105cd5761098a83828151811061097d5761097d612013565b6020026020010151610746565b84848151811061099c5761099c612013565b60200260200101516000018585815181106109b9576109b9612013565b60200260200101516020018686815181106109d6576109d6612013565b6020908102919091010151604001929092529190525260010161095f565b60006109ff82610c83565b50909392505050565b6060815167ffffffffffffffff811115610a2457610a24611d21565b604051908082528060200260200182016040528015610a4d578160200160208202803683370190505b50905060005b82518110156105cd57610a7e838281518110610a7157610a71612013565b602002602001015161051f565b828281518110610a9057610a90612013565b6020908102919091010152600101610a53565b600061074082610ed8565b600080610aba83610ee3565b91509150610ac781610c77565b65ffffffffffff811115610b0a576040517f48f06f0800000000000000000000000000000000000000000000000000000000815260048101829052602401610503565b65ffffffffffff421115610b4c576040517f5cf61159000000000000000000000000000000000000000000000000000000008152426004820152602401610503565b60005b8351811015610b9d57610b95848281518110610b6d57610b6d612013565b6020026020010151848381518110610b8757610b87612013565b602002602001015184610ef9565b600101610b4f565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff821681610bc68261051f565b905061052a828261072c565b60606040517f608b530700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff16636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c53573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074091906120e6565b610c8081610fdf565b50565b6000806000610c9184610746565b91945092509050610ca484848484611095565b610cf2576040517f4f319ffe00000000000000000000000000000000000000000000000000000000815260048101859052602481018490526044810183905260648101829052608401610503565b9193909250565b600061074061030c83610c06565b60006602ed57011e00007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe036013581161480610d6f576040517fe7764c9e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60003660291115610dac576040517f5796f78a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd736013560006009610de5600362ffffff8516612071565b610def9190612071565b905036610dfd600283612071565b1115610e35576040517fc30a7bd700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b9392505050565b60008080610e4b602085612071565b905036811115610e87576040517f5796f78a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3681900335925082610e9a600286612071565b9250925050915091565b6000806000610eb2846110ba565b9092509050604e610ec4826020612071565b610ece90846120cf565b61052a9190612071565b60006107408261110d565b60606000610ef08361124a565b91509150915091565b6000806000610f0786610746565b925092509250610f1682611497565b610f56576040518681527fd2fed36e637cb43fd01b51ddf3b0ca9d9966df112183894d5699cd9a16f85eb5906020015b60405180910390a1505050505050565b838310610f8d576040518681527ff34a55619bad9bd385340bece69770212d10a808ac72a95e6454acf05462ac1b90602001610f46565b84610fc2576040518681527fad6ebdc3909f212583bf7e8a0f31338c8c92f403f2fd37d23014fb3fd34e310290602001610f46565b610fcd86868661153b565b610fd78686611669565b505050505050565b6000610fed6103e883612132565b90508042101561104857603c6110034283612084565b1115611044576040517fb6b0916d00000000000000000000000000000000000000000000000000000000815260048101829052426024820152604401610503565b5050565b60b46110548242612084565b1115611044576040517f0321d0b500000000000000000000000000000000000000000000000000000000815260048101829052426024820152604401610503565b600080821180156110b15750426110af6201a5e085612071565b115b95945050505050565b60008080808060206110cd604188612071565b6110d79190612071565b6110e19036612084565b8035935090506110f2600382612084565b62ffffff9390931696923563ffffffff169550919350505050565b600081516002036111645760028260018151811061112d5761112d612013565b60200260200101518360008151811061114857611148612013565b602002602001015161115a9190612071565b6107409190612132565b815160000361119f576040517f9e198af900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111a8826116ac565b6000600283516111b89190612132565b9050600283516111c89190612146565b6000036112285760008382815181106111e3576111e3612013565b6020026020010151846001846111f99190612084565b8151811061120957611209612013565b602002602001015161121b9190612071565b905061052a600282612132565b82818151811061123a5761123a612013565b6020026020010151915050919050565b6060600080835167ffffffffffffffff81111561126957611269611d21565b604051908082528060200260200182016040528015611292578160200160208202803683370190505b5090506000845167ffffffffffffffff8111156112b1576112b1611d21565b6040519080825280602002602001820160405280156112da578160200160208202803683370190505b5090506000855167ffffffffffffffff8111156112f9576112f9611d21565b60405190808252806020026020018201604052801561132c57816020015b60608152602001906001900390816113175790505b509050600360005b87518110156113a5578167ffffffffffffffff81111561135657611356611d21565b60405190808252806020026020018201604052801561137f578160200160208202803683370190505b5083828151811061139257611392612013565b6020908102919091010152600101611334565b5060006113b0610d07565b905060006113bd82610e3c565b60405190935061ffff909116915060005b8281101561147e5760006113e58c8a8a8a896116f4565b90955090506000819003611425576040517fdfb25a7900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b89811461146e578960000361143c5780995061146e565b6040517f4cbc474200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50602082016040526001016113ce565b50611489858861199d565b985050505050505050915091565b6000337301726847a184fff6f65ac14a322108260b51e81f14806114ce575033733927a0ccb6d4d92aa0c6037d00393940b2295968145b806114ec57503373ae8474802ecb7d2c03eab7fe975b1dc65f90d46c145b8061150a57503373cd6bfda4d95d5c0f3f2882dc221d792392c99714145b8061152857503373c4d1ae5e796e6d7561cdc8335f85e6b57a36e097145b156115335750421190565b506000919050565b60007f5e9fb4cb0eb3c2583734d3394f30bb14b241acb9b3a034f7e7ba1a62db4370f160008581526020918252604090819020815160808101835265ffffffffffff8681168083524290911694820185905272ffffffffffffffffffffffffffffffffffffff8881169483018590528811606090920182905282547fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016176601000000000000909402939093176bffffffffffffffffffffffff166c010000000000000000000000009092027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16919091177f010000000000000000000000000000000000000000000000000000000000000083021781559150801561166257600182018490555b5050505050565b6040805182815260208101849052428183015290517ff36866d965ee70c8632ff558f5cf8d41ee9ca1d0d0bc7700786e57be607473909181900360600190a15050565b8051602082016020820281019150805b82811015610b9d57815b818110156116eb5781518151808210156116e1578084528183525b50506020016116c6565b506020016116bc565b6000806000806000611705866110ba565b909250905060008060608180600d61171e602088612071565b61172890896120cf565b6117329190612071565b9150600061174160688d612071565b61174b9036612084565b905060008361175b60418f612071565b6117659190612071565b61176f9036612084565b905061177b848261178e565b94508360208601209550813592506117d0565b604080518381526020818501810190925260009101838382377fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0019392505050565b8265ffffffffffff169a506117f18660418f6117ec9190612071565b611ac5565b96506117fc8761039e565b60ff16995050505050505050604e866118159190612071565b955060008060005b8481101561198a576020611831858b612071565b61183b9190612071565b98506118478985611c5d565b909350915060005b8d51811015611981578d818151811061186a5761186a612013565b602002602001015184036119795760008c828151811061188c5761188c612013565b602002602001015190506118a581896001901b16151590565b1580156118ce5750600360ff168e83815181106118c4576118c4612013565b6020026020010151105b1561197357838c83815181106118e6576118e6612013565b60200260200101518f848151811061190057611900612013565b60200260200101518151811061191857611918612013565b6020026020010181815250508d828151811061193657611936612013565b60200260200101805180919061194b90612097565b9052506001881b81178d838151811061196657611966612013565b6020026020010181815250505b50611981565b60010161184f565b5060010161181d565b5050508594505050509550959350505050565b60606000835167ffffffffffffffff8111156119bb576119bb611d21565b6040519080825280602002602001820160405280156119e4578160200160208202803683370190505b509050600360005b8551811015611abb5781858281518110611a0857611a08612013565b60200260200101511015611a6e57848181518110611a2857611a28612013565b6020026020010151826040517f2b13aef5000000000000000000000000000000000000000000000000000000008152600401610503929190918252602082015260400190565b6000611a92878381518110611a8557611a85612013565b6020026020010151610aa3565b905080848381518110611aa757611aa7612013565b6020908102919091010152506001016119ec565b5090949350505050565b60003682900380359060208101359060400135831a601b8114801590611aef575060ff8116601c14155b15611b29576040517f666b7cba00000000000000000000000000000000000000000000000000000000815260048101879052602401610503565b7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115611b86576040517f666b7cba00000000000000000000000000000000000000000000000000000000815260048101879052602401610503565b60408051600081526020810180835288905260ff831691810191909152606081018490526080810183905260019060a0016020604051602081039080840390855afa158015611bd9573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015194505073ffffffffffffffffffffffffffffffffffffffff8416611c54576040517f666b7cba00000000000000000000000000000000000000000000000000000000815260048101879052602401610503565b50505092915050565b60008080611c6b8536612084565b9050803592506020810135915060218410611cb5576040517fc000fc4200000000000000000000000000000000000000000000000000000000815260048101859052602401610503565b8360200360080282901c9150509250929050565b73ffffffffffffffffffffffffffffffffffffffff81168114610c8057600080fd5b600060208284031215611cfd57600080fd5b8135610e3581611cc9565b600060208284031215611d1a57600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715611d9757611d97611d21565b604052919050565b600067ffffffffffffffff821115611db957611db9611d21565b5060051b60200190565b60006020808385031215611dd657600080fd5b823567ffffffffffffffff811115611ded57600080fd5b8301601f81018513611dfe57600080fd5b8035611e11611e0c82611d9f565b611d50565b81815260059190911b82018301908381019087831115611e3057600080fd5b928401925b82841015611e57578335611e4881611cc9565b82529284019290840190611e35565b979650505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611e9a57835183529284019291840191600101611e7e565b50909695505050505050565b60008060408385031215611eb957600080fd5b50508035926020909101359150565b60006020808385031215611edb57600080fd5b823567ffffffffffffffff811115611ef257600080fd5b8301601f81018513611f0357600080fd5b8035611f11611e0c82611d9f565b81815260059190911b82018301908381019087831115611f3057600080fd5b928401925b82841015611e5757833582529284019290840190611f35565b602080825282518282018190526000919060409081850190868401855b82811015611f9a5781518051855286810151878601528501518585015260609093019290850190600101611f6b565b5091979650505050505050565b600060208083528351808285015260005b81811015611fd457858101830151858201604001528201611fb8565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082018082111561074057610740612042565b8181038181111561074057610740612042565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036120c8576120c8612042565b5060010190565b808202811582820484141761074057610740612042565b6000602082840312156120f857600080fd5b8151610e3581611cc9565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008261214157612141612103565b500490565b60008261215557612155612103565b50069056fea2646970667358221220248e9728d98cd627ba97cee8dfd2c0cdc771cd6f76f09b75fdeb25d4629747b964736f6c63430008110033","sourceMap":"313:837:14:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10797:133:4;;;;;;:::i;:::-;10901:23;;;10797:133;;;;571:25:15;;;559:2;544:18;10797:133:4;;;;;;;;365:616:2;;;;;;:::i;:::-;;:::i;:::-;;;779:4:15;767:17;;;749:36;;737:2;722:18;365:616:2;607:184:15;10250::4;;;;;;:::i;:::-;;:::i;9889:165::-;;;;;;:::i;:::-;;:::i;12087:307::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;600:1411:5:-;;;:::i;10934:200:4:-;;;;;;:::i;:::-;;:::i;6246:529::-;;;;;;:::i;:::-;;:::i;:::-;;;;3942:25:15;;;3998:2;3983:18;;3976:34;;;;4026:18;;;4019:34;3930:2;3915:18;6246:529:4;3740:319:15;11669:283:4;;;;;;:::i;:::-;;:::i;11515:150::-;;;:::i;9062:463::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;10058:188::-;;;;;;:::i;:::-;;:::i;9529:356::-;;;;;;:::i;:::-;;:::i;2678:149:7:-;;;;;;:::i;:::-;;:::i;3125:1092:4:-;;;;;;:::i;:::-;;:::i;:::-;;11269:242;;;;;;:::i;:::-;;:::i;1024:122:7:-;;;:::i;:::-;;;;;;;:::i;11138:127:4:-;;;;;;:::i;:::-;;:::i;:::-;;;7510:42:15;7498:55;;;7480:74;;7468:2;7453:18;11138:127:4;7334:226:15;1923:165:7;;;;;;:::i;:::-;;:::i;260:101:2:-;355:1;260:101;;5773:469:4;;;;;;:::i;:::-;;:::i;11956:127::-;;;;;;:::i;:::-;;:::i;365:616:2:-;468:5;485:59;;;502:42;485:59;481:496;;-1:-1:-1;555:1:2;;365:616;-1:-1:-1;365:616:2:o;481:496::-;573:59;;;590:42;573:59;569:408;;-1:-1:-1;643:1:2;;365:616;-1:-1:-1;365:616:2:o;569:408::-;661:59;;;678:42;661:59;657:320;;-1:-1:-1;731:1:2;;365:616;-1:-1:-1;365:616:2:o;657:320::-;749:59;;;766:42;749:59;745:232;;-1:-1:-1;819:1:2;;365:616;-1:-1:-1;365:616:2:o;745:232::-;837:59;;;854:42;837:59;833:144;;-1:-1:-1;907:1:2;;365:616;-1:-1:-1;365:616:2:o;833:144::-;936:34;;;;;7510:42:15;7498:55;;936:34:2;;;7480:74:15;7453:18;;936:34:2;;;;;;;;10250:184:4;10344:22;10397:32;10418:10;10397:20;:32::i;:::-;-1:-1:-1;10374:55:4;10250:184;-1:-1:-1;;;10250:184:4:o;9889:165::-;9967:21;10017:32;10038:10;10017:20;:32::i;:::-;9996:53;9889:165;-1:-1:-1;;;;9889:165:4:o;12087:307::-;12171:23;12225:7;:14;12211:29;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12211:29:4;;12202:38;;12251:9;12246:144;12270:7;:14;12266:1;:18;12246:144;;;12307:30;12326:7;12334:1;12326:10;;;;;;;;:::i;:::-;;;;;;;12307:18;:30::i;:::-;12295:6;12302:1;12295:9;;;;;;;;:::i;:::-;;;;;;;;;;:42;12357:3;;12246:144;;;;12087:307;;;:::o;600:1411:5:-;670:26;704:30;737:36;:34;:36::i;:::-;704:69;;779:25;856:61;894:22;856:37;:61::i;:::-;810:107;-1:-1:-1;810:107:5;;;-1:-1:-1;949:1:5;928:22;;;924:96;;967:46;;;;;;;;;;;;;;924:96;1031:24;1026:981;1080:17;1061:16;:36;1026:981;;;1127:27;1157:47;1181:22;1157:23;:47::i;:::-;1127:77;-1:-1:-1;1272:27:5;;1384:88;1655:3:6;1384:22:5;:88;:::i;:::-;1349:124;-1:-1:-1;1481:23:5;1507:41;1349:124;1507:8;:41;:::i;:::-;1481:67;;1612:15;1599:29;1575:53;;1648:20;:25;;1672:1;1648:25;1644:92;;1692:35;;;;;;;;;;;;;;1644:92;1748:18;1770:1;1748:23;1744:203;;1804:20;1783:41;;;;1744:203;;;1867:18;1843:20;:42;;;1839:108;;1904:34;;;;;;;;;;;;;;1839:108;1955:45;1981:19;1955:45;;:::i;:::-;;;1119:888;;;;1099:18;;;;;:::i;:::-;;;;1026:981;;;;698:1313;;600:1411;:::o;10934:200:4:-;11048:7;11070:59;2262:4;11070:24;:59;:::i;:::-;11063:66;;10934:200;;;;;:::o;6246:529::-;6331:25;6466:45;;;6894:27;6466:45;;;;;6538:30;;;;;;;6595:31;;;;;;;6331:25;;6637:30;;;;;6633:138;;;6689:8;:20;;;6677:32;;6633:138;;;6742:22;;;;;;;;-1:-1:-1;6633:138:4;6405:370;6246:529;;;;;:::o;11669:283::-;11743:23;11797:6;:13;11783:28;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11783:28:4;;11774:37;;11822:9;11817:131;11841:6;:13;11837:1;:17;11817:131;;;11877:18;11885:6;11892:1;11885:9;;;;;;;;:::i;:::-;;;;;;;11877:7;:18::i;:::-;11865:6;11872:1;11865:9;;;;;;;;:::i;:::-;;;;;;;;;;:30;11915:3;;11817:131;;11515:150;11566:7;11588:72;2124:14;11622:37;2124:14;11622:19;:37::i;11588:72::-;11581:79;;11515:150;:::o;9062:463::-;9158:42;9250:11;:18;9226:43;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;9226:43:4;;;;;;;;;;;;;;;;;9208:61;;9280:9;9275:246;9299:11;:18;9295:1;:22;9275:246;;;9426:42;9453:11;9465:1;9453:14;;;;;;;;:::i;:::-;;;;;;;9426:26;:42::i;:::-;9329:15;9345:1;9329:18;;;;;;;;:::i;:::-;;;;;;;:32;;9363:15;9379:1;9363:18;;;;;;;;:::i;:::-;;;;;;;:33;;9398:15;9414:1;9398:18;;;;;;;;:::i;:::-;;;;;;;;;;;:24;;9328:140;;;;;;;;9488:3;;9275:246;;10058:188;10151:25;10209:32;10230:10;10209:20;:32::i;:::-;-1:-1:-1;10184:57:4;;10058:188;-1:-1:-1;;;10058:188:4:o;9529:356::-;9622:23;9676:20;:27;9662:42;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;9662:42:4;;9653:51;;9715:9;9710:171;9734:20;:27;9730:1;:31;9710:171;;;9784:44;9804:20;9825:1;9804:23;;;;;;;;:::i;:::-;;;;;;;9784:19;:44::i;:::-;9772:6;9779:1;9772:9;;;;;;;;:::i;:::-;;;;;;;;;;:56;9848:3;;9710:171;;2678:149:7;2757:7;2779:43;2815:6;2779:35;:43::i;3125:1092:4:-;3208:29;3239:30;3273:57;3317:12;3273:43;:57::i;:::-;3207:123;;;;3423:41;3441:22;3423:17;:41::i;:::-;3600:16;3575:41;;3571:114;;;3633:45;;;;;;;;571:25:15;;;544:18;;3633:45:4;425:177:15;3571:114:4;3712:16;3694:15;:34;3690:101;;;3745:39;;;;;3768:15;3745:39;;;571:25:15;544:18;;3745:39:4;425:177:15;3690:101:4;3874:9;3869:344;3893:12;:19;3889:1;:23;3869:344;;;4082:78;4103:12;4116:1;4103:15;;;;;;;;:::i;:::-;;;;;;;4120:12;4133:1;4120:15;;;;;;;;:::i;:::-;;;;;;;4137:22;4082:20;:78::i;:::-;4180:3;;3869:344;;;;3201:1016;;3125:1092;:::o;11269:242::-;11330:7;10901:23;;;11330:7;11422:31;10901:23;11422:19;:31::i;:::-;11400:53;;11466:40;11482:10;11494:11;11466:15;:40::i;1024:122:7:-;1081:13;1109:32;;;;;;;;;;;;;;11138:127:4;11210:7;11240:6;11232:26;;;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;1923:165:7:-;2015:68;2053:29;2015:37;:68::i;:::-;1923:165;:::o;5773:469:4:-;5852:25;5879:26;5907:17;5985:38;6012:10;5985:26;:38::i;:::-;5932:91;;-1:-1:-1;5932:91:4;-1:-1:-1;5932:91:4;-1:-1:-1;6034:94:4;6067:10;5932:91;;;6034:32;:94::i;:::-;6029:209;;6145:86;;;;;;;;9251:25:15;;;9292:18;;;9285:34;;;9335:18;;;9328:34;;;9378:18;;;9371:34;;;9223:19;;6145:86:4;9020:391:15;6029:209:4;5773:469;;;;;:::o;11956:127::-;12021:7;12043:35;12051:26;12070:6;12051:18;:26::i;2411:1169:5:-;2480:7;2785:20;2647:37;2651:14;2647:37;2634:51;2760:46;;2718:96;;2825:81;;2869:30;;;;;;;;;;;;;;2825:81;2988:31;3072:8;2114:2:6;3029:58:5;3025:111;;;3104:25;;;;;;;;;;;;;;3025:111;-1:-1:-1;3208:61:5;3212:14;3208:61;3186:91;3288:30;1363:1:6;3321:63:5;1311:1:6;3321:63:5;;;;:::i;:::-;:90;;;;:::i;:::-;3288:123;-1:-1:-1;3471:8:5;3421:47;1075:1:6;3288:123:5;3421:47;:::i;:::-;:65;3417:124;;;3503:31;;;;;;;;;;;;;;3417:124;3553:22;2411:1169;-1:-1:-1;;;2411:1169:5:o;3662:612::-;3776:24;;;3895:41;525:2:6;3895:22:5;:41;:::i;:::-;3846:90;-1:-1:-1;3987:8:5;3946:56;;3942:109;;;4019:25;;;;;;;;;;;;;;3942:109;4120:14;4116:59;;;4094:89;;-1:-1:-1;4094:89:5;4221:47;1075:1:6;4221:22:5;:47;:::i;:::-;4194:75;;;;;3662:612;;;:::o;2015:392::-;2103:7;2126:23;2157:34;2200:63;2240:22;2200:39;:63::i;:::-;2118:145;;-1:-1:-1;2118:145:5;-1:-1:-1;1810:2:6;2308:49:5;2118:145;1246:2:6;2308:49:5;:::i;:::-;2283:75;;:15;:75;:::i;:::-;:119;;;;:::i;1548:134:9:-;1621:7;1643:34;1670:6;1643:26;:34::i;3688:239:8:-;3818:16;3836:7;3860:62;3910:11;3860:49;:62::i;:::-;3853:69;;;;3688:239;;;:::o;4221:758:4:-;4333:25;4360:26;4388:17;4409:38;4436:10;4409:26;:38::i;:::-;4332:115;;;;;;4459:43;4483:18;4459:23;:43::i;:::-;4454:125;;4517:41;;571:25:15;;;4517:41:4;;559:2:15;544:18;4517:41:4;;;;;;;;4566:7;;;4221:758;;;:::o;4454:125::-;-1:-1:-1;;;4585:137:4;;4661:40;;571:25:15;;;4661:40:4;;559:2:15;544:18;4661:40:4;425:177:15;4585:137:4;8088:17;4728:134;;4802:39;;571:25:15;;;4802:39:4;;559:2:15;544:18;4802:39:4;425:177:15;4728:134:4;4868:55;4890:10;4902:5;4909:13;4868:21;:55::i;:::-;4929:45;4956:10;4968:5;4929:26;:45::i;:::-;4326:653;;;4221:758;;;:::o;585:959:9:-;1031:32;1066:36;1098:4;1066:29;:36;:::i;:::-;1031:71;;1131:24;1113:15;:42;1109:431;;;391:9;1170:42;1197:15;1170:24;:42;:::i;:::-;1169:87;1165:188;;;1275:69;;;;;;;;9904:25:15;;;1328:15:9;9945:18:15;;;9938:34;9877:18;;1275:69:9;9730:248:15;1165:188:9;665:879;585:959;:::o;1109:431::-;318:9;1370:42;1388:24;1370:15;:42;:::i;:::-;1369:87;1365:175;;;1473:60;;;;;;;;9904:25:15;;;1517:15:9;9945:18:15;;;9938:34;9877:18;;1473:60:9;9730:248:15;8280:277:4;8459:4;8490:1;8478:9;:13;:74;;;;-1:-1:-1;8537:15:4;8495:39;2189:8;8495:18;:39;:::i;:::-;:57;8478:74;8471:81;8280:277;-1:-1:-1;;;;;8280:277:4:o;4956:961:5:-;5086:23;;;;;525:2:6;5447:45:5;972:2:6;5447:36:5;:45;:::i;:::-;:64;;;;:::i;:::-;5428:84;;:8;:84;:::i;:::-;5555:28;;;-1:-1:-1;5403:109:5;-1:-1:-1;5654:37:5;1129:1:6;5403:109:5;5654:37;:::i;:::-;5816:34;;;;;;5745:28;;5856:56;;;-1:-1:-1;5816:34:5;;-1:-1:-1;;;;4956:961:5:o;390:447:11:-;455:7;474:3;:10;488:1;474:15;470:64;;526:1;516:3;520:1;516:6;;;;;;;;:::i;:::-;;;;;;;507:3;511:1;507:6;;;;;;;;:::i;:::-;;;;;;;:15;;;;:::i;:::-;506:21;;;;:::i;470:64::-;543:3;:10;557:1;543:15;539:73;;575:30;;;;;;;;;;;;;;539:73;617:9;622:3;617:4;:9::i;:::-;632:19;667:1;654:3;:10;:14;;;;:::i;:::-;632:36;;691:1;678:3;:10;:14;;;;:::i;:::-;696:1;678:19;674:159;;707:11;744:3;748:11;744:16;;;;;;;;:::i;:::-;;;;;;;721:3;739:1;725:11;:15;;;;:::i;:::-;721:20;;;;;;;;:::i;:::-;;;;;;;:39;;;;:::i;:::-;707:53;-1:-1:-1;775:7:11;781:1;707:53;775:7;:::i;674:159::-;810:3;814:11;810:16;;;;;;;;:::i;:::-;;;;;;;803:23;;;390:447;;;:::o;3823:2799:7:-;3947:16;3965:29;4064:48;4129:11;:18;4115:33;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4115:33:7;;4064:84;;4154:44;4215:11;:18;4201:33;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4201:33:7;;4154:80;;4240:37;4296:11;:18;4280:35;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4240:75:7;-1:-1:-1;355:1:2;4321:30:7;4387:375;4411:11;:18;4407:1;:22;4387:375;;;4693:22;4679:37;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4679:37:7;;4655:18;4674:1;4655:21;;;;;;;;:::i;:::-;;;;;;;;;;:61;4744:3;;4387:375;;;;4828:30;4861:36;:34;:36::i;:::-;4828:69;;4903:25;4980:61;5018:22;4980:37;:61::i;:::-;5151:15;5145:22;4934:107;;-1:-1:-1;4934:107:7;;;;;-1:-1:-1;5090:18:7;5221:1187;5275:17;5256:16;:36;5221:1187;;;5368:28;5453:186;5482:11;5503:31;5544:27;5581:18;5609:22;5453:19;:186::i;:::-;5404:235;;-1:-1:-1;5404:235:7;-1:-1:-1;5676:1:7;5652:25;;;5648:84;;5696:27;;;;;;;;;;;;;;5648:84;5768:21;5744:20;:45;5740:285;;5805:21;5830:1;5805:26;5801:216;;5923:20;5899:44;;5801:216;;;5983:23;;;;;;;;;;;;;;5801:216;-1:-1:-1;6322:16:7;6306:33;;6289:15;6282:58;6375:18;;5221:1187;;;;6520:73;6541:18;6561:31;6520:20;:73::i;:::-;6512:105;;;;;;;;;3823:2799;;;:::o;714:434:14:-;823:4;846:10;463:42;846:34;;:82;;-1:-1:-1;890:10:14;566:42;890:38;846:82;:128;;;-1:-1:-1;938:10:14;667:42;938:36;846:128;:170;;;-1:-1:-1;984:10:14;227:42:13;984:32:14;846:170;:215;;;-1:-1:-1;1026:10:14;123:42:13;1026:35:14;846:215;835:291;;;-1:-1:-1;1083:15:14;:36;;714:434::o;835:291::-;-1:-1:-1;1138:5:14;;714:434;-1:-1:-1;714:434:14:o;4983:786:4:-;5090:52;6894:27;5145:33;:45;;;;;;;;;;;;5398:295;;;;;;;;;;;;;;5489:15;5398:295;;;;;;;;;5229:17;5398:295;;;;;;;;;5218:28;;5398:295;;;;;;;5379:314;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5145:45;-1:-1:-1;5398:295:4;;5700:65;;5727:20;;;:31;;;5700:65;5084:685;;4983:786;;;:::o;8734:157::-;8836:50;;;3942:25:15;;;3998:2;3983:18;;3976:34;;;8870:15:4;4026:18:15;;;4019:34;8836:50:4;;;;;;;3930:2:15;8836:50:4;;;8734:157;;:::o;841:750:11:-;937:3;931:10;974:20;969:3;965:30;1046:16;1035:9;1031:32;1020:9;1016:48;1002:62;;1100:9;1071:510;1130:6;1121:7;1118:19;1071:510;;;1256:9;1225:348;1288:7;1279;1276:20;1225:348;;;1408:7;1402:14;1445:7;1439:14;1476:4;1470;1467:14;1464:99;;;1512:4;1503:7;1496:21;1546:4;1537:7;1530:21;1464:99;-1:-1:-1;;1333:16:11;1320:30;1225:348;;;-1:-1:-1;1172:16:11;1159:30;1071:510;;7521:4606:7;7793:34;7829:28;7865:19;7899:23;7930:34;7973:63;8013:22;7973:39;:63::i;:::-;7891:145;;-1:-1:-1;7891:145:7;-1:-1:-1;8111:21:7;;8166:26;8111:21;;1968:2:6;8318:49:7;1246:2:6;7891:145:7;8318:49;:::i;:::-;8299:69;;:15;:69;:::i;:::-;:123;;;;:::i;:::-;8273:149;-1:-1:-1;8501:31:7;8563:88;1655:3:6;8563:22:7;:88;:::i;:::-;8535:117;;:8;:117;:::i;:::-;8501:151;-1:-1:-1;8661:35:7;8761:23;8727:31;972:2:6;8727:22:7;:31;:::i;:::-;:57;;;;:::i;:::-;8699:86;;:8;:86;:::i;:::-;8661:124;;8871:108;8946:23;8907:27;8871:108;:::i;:::-;8854:125;;9093:23;9070:20;9055:13;9051:40;9041:76;9027:90;;9194:23;9181:37;9159:59;;9228:231;;9469:342;9295:15;9289:22;;9322:23;;;9372:20;9428;;;;;9404:45;;;9526:14;;9363:30;9701:10;9681:6;9645:22;9619:104;9752:49;;;9469:342;-1:-1:-1;;;9469:342:7:o;:::-;9850:18;9827:41;;;;9965:102;10008:10;972:2:6;10028:22:7;:31;;;;:::i;:::-;9965:33;:102::i;:::-;9949:118;;10089:39;10114:13;10089:24;:39::i;:::-;10075:53;;;;8103:2032;;;;;;;1810:2:6;10205:22:7;:60;;;;:::i;:::-;10180:85;;10273:27;10308:22;10343;10338:1719;10388:15;10371:14;:32;10338:1719;;;1246:2:6;10441:51:7;10466:26;10441:22;:51;:::i;:::-;:74;;;;:::i;:::-;10416:99;;10637:117;10684:22;10718:26;10637:35;:117::i;:::-;10597:157;;-1:-1:-1;10597:157:7;-1:-1:-1;10781:23:7;10765:1225;10838:11;:18;10820:15;:36;10765:1225;;;10907:11;10919:15;10907:28;;;;;;;;:::i;:::-;;;;;;;10884:19;:51;10880:1035;;10951:34;10988:27;11016:15;10988:44;;;;;;;;:::i;:::-;;;;;;;10951:81;;11067:67;11094:26;11122:11;343:1:10;:13;;333:24;370:14;;;217:172;11067:67:7;11066:68;:224;;;;-1:-1:-1;355:1:2;11212:78:7;;:31;11244:15;11212:48;;;;;;;;:::i;:::-;;;;;;;:78;11066:224;11047:753;;;11440:14;11352:18;11371:15;11352:35;;;;;;;;:::i;:::-;;;;;;;11388:31;11420:15;11388:48;;;;;;;;:::i;:::-;;;;;;;11352:85;;;;;;;;:::i;:::-;;;;;;:102;;;;;11519:31;11551:15;11519:48;;;;;;;;:::i;:::-;;;;;;:50;;;;;;;;:::i;:::-;;;-1:-1:-1;194:1:10;:13;;184:24;;11625:27:7;11653:15;11625:44;;;;;;;;:::i;:::-;;;;;;:160;;;;;11047:753;11897:5;;;10880:1035;11950:17;;10765:1225;;;-1:-1:-1;12022:16:7;;10338:1719;;;;10172:1891;;12077:22;12069:53;;;;;7521:4606;;;;;;;;:::o;12596:898::-;12749:16;12773:33;12823:18;:25;12809:40;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12809:40:7;-1:-1:-1;12773:76:7;-1:-1:-1;355:1:2;12855:30:7;12922:538;12970:18;:25;12954:13;:41;12922:538;;;13059:22;13010:31;13042:13;13010:46;;;;;;;;:::i;:::-;;;;;;;:71;13006:229;;;13145:31;13177:13;13145:46;;;;;;;;:::i;:::-;;;;;;;13203:22;13100:126;;;;;;;;;;;9904:25:15;;;9960:2;9945:18;;9938:34;9892:2;9877:18;;9730:248;13006:229:7;13242:36;13281:50;13297:18;13316:13;13297:33;;;;;;;;:::i;:::-;;;;;;;13281:15;:50::i;:::-;13242:89;;13373:28;13339:16;13356:13;13339:31;;;;;;;;:::i;:::-;;;;;;;;;;:62;-1:-1:-1;13430:15:7;;12922:538;;;-1:-1:-1;13473:16:7;;12596:898;-1:-1:-1;;;;12596:898:7:o;504:1254:12:-;630:21;758:14;754:52;;;818:39;;;924:14;893:46;;951:39;;1026:46;;1092:39;1084:48;;237:2;1281:19;;;;;:42;;-1:-1:-1;1304:19:12;;;275:2;1304:19;;1281:42;1277:98;;;1340:28;;;;;;;;571:25:15;;;544:18;;1340:28:12;425:177:15;1277:98:12;386:66;1533:29;;1529:85;;;1579:28;;;;;;;;571:25:15;;;544:18;;1579:28:12;425:177:15;1529:85:12;1635:30;;;;;;;;;;;;10651:25:15;;;10724:4;10712:17;;10692:18;;;10685:45;;;;10746:18;;;10739:34;;;10789:18;;;10782:34;;;1635:30:12;;10623:19:15;;1635:30:12;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1635:30:12;;;;;;-1:-1:-1;;1675:27:12;;;1671:83;;1719:28;;;;;;;;571:25:15;;;544:18;;1719:28:12;425:177:15;1671:83:12;655:1103;;;504:1254;;;;:::o;4278:674:5:-;4431:27;;;4524:41;4542:23;4524:8;:41;:::i;:::-;4490:75;;4624:23;4611:37;4588:60;;4715:20;4690:23;4686:50;4673:64;4655:82;;4778:2;4752:22;:28;4748:101;;4797:45;;;;;;;;571:25:15;;;544:18;;4797:45:5;425:177:15;4748:101:5;4913:22;4908:2;:27;4939:1;4907:33;4889:14;:51;;4872:68;;4484:468;4278:674;;;;;:::o;14:154:15:-;100:42;93:5;89:54;82:5;79:65;69:93;;158:1;155;148:12;173:247;232:6;285:2;273:9;264:7;260:23;256:32;253:52;;;301:1;298;291:12;253:52;340:9;327:23;359:31;384:5;359:31;:::i;796:180::-;855:6;908:2;896:9;887:7;883:23;879:32;876:52;;;924:1;921;914:12;876:52;-1:-1:-1;947:23:15;;796:180;-1:-1:-1;796:180:15:o;1163:184::-;1215:77;1212:1;1205:88;1312:4;1309:1;1302:15;1336:4;1333:1;1326:15;1352:334;1423:2;1417:9;1479:2;1469:13;;1484:66;1465:86;1453:99;;1582:18;1567:34;;1603:22;;;1564:62;1561:88;;;1629:18;;:::i;:::-;1665:2;1658:22;1352:334;;-1:-1:-1;1352:334:15:o;1691:183::-;1751:4;1784:18;1776:6;1773:30;1770:56;;;1806:18;;:::i;:::-;-1:-1:-1;1851:1:15;1847:14;1863:4;1843:25;;1691:183::o;1879:966::-;1963:6;1994:2;2037;2025:9;2016:7;2012:23;2008:32;2005:52;;;2053:1;2050;2043:12;2005:52;2093:9;2080:23;2126:18;2118:6;2115:30;2112:50;;;2158:1;2155;2148:12;2112:50;2181:22;;2234:4;2226:13;;2222:27;-1:-1:-1;2212:55:15;;2263:1;2260;2253:12;2212:55;2299:2;2286:16;2322:60;2338:43;2378:2;2338:43;:::i;:::-;2322:60;:::i;:::-;2416:15;;;2498:1;2494:10;;;;2486:19;;2482:28;;;2447:12;;;;2522:19;;;2519:39;;;2554:1;2551;2544:12;2519:39;2578:11;;;;2598:217;2614:6;2609:3;2606:15;2598:217;;;2694:3;2681:17;2711:31;2736:5;2711:31;:::i;:::-;2755:18;;2631:12;;;;2793;;;;2598:217;;;2834:5;1879:966;-1:-1:-1;;;;;;;1879:966:15:o;2850:632::-;3021:2;3073:21;;;3143:13;;3046:18;;;3165:22;;;2992:4;;3021:2;3244:15;;;;3218:2;3203:18;;;2992:4;3287:169;3301:6;3298:1;3295:13;3287:169;;;3362:13;;3350:26;;3431:15;;;;3396:12;;;;3323:1;3316:9;3287:169;;;-1:-1:-1;3473:3:15;;2850:632;-1:-1:-1;;;;;;2850:632:15:o;3487:248::-;3555:6;3563;3616:2;3604:9;3595:7;3591:23;3587:32;3584:52;;;3632:1;3629;3622:12;3584:52;-1:-1:-1;;3655:23:15;;;3725:2;3710:18;;;3697:32;;-1:-1:-1;3487:248:15:o;4064:891::-;4148:6;4179:2;4222;4210:9;4201:7;4197:23;4193:32;4190:52;;;4238:1;4235;4228:12;4190:52;4278:9;4265:23;4311:18;4303:6;4300:30;4297:50;;;4343:1;4340;4333:12;4297:50;4366:22;;4419:4;4411:13;;4407:27;-1:-1:-1;4397:55:15;;4448:1;4445;4438:12;4397:55;4484:2;4471:16;4507:60;4523:43;4563:2;4523:43;:::i;4507:60::-;4601:15;;;4683:1;4679:10;;;;4671:19;;4667:28;;;4632:12;;;;4707:19;;;4704:39;;;4739:1;4736;4729:12;4704:39;4763:11;;;;4783:142;4799:6;4794:3;4791:15;4783:142;;;4865:17;;4853:30;;4816:12;;;;4903;;;;4783:142;;4960:861;5199:2;5251:21;;;5321:13;;5224:18;;;5343:22;;;5170:4;;5199:2;5384;;5402:18;;;;5443:15;;;5170:4;5486:309;5500:6;5497:1;5494:13;5486:309;;;5559:13;;5597:9;;5585:22;;5647:11;;;5641:18;5627:12;;;5620:40;5700:11;;5694:18;5680:12;;;5673:40;5742:4;5733:14;;;;5770:15;;;;5522:1;5515:9;5486:309;;;-1:-1:-1;5812:3:15;;4960:861;-1:-1:-1;;;;;;;4960:861:15:o;6722:607::-;6834:4;6863:2;6892;6881:9;6874:21;6924:6;6918:13;6967:6;6962:2;6951:9;6947:18;6940:34;6992:1;7002:140;7016:6;7013:1;7010:13;7002:140;;;7111:14;;;7107:23;;7101:30;7077:17;;;7096:2;7073:26;7066:66;7031:10;;7002:140;;;7006:3;7191:1;7186:2;7177:6;7166:9;7162:22;7158:31;7151:42;7320:2;7250:66;7245:2;7237:6;7233:15;7229:88;7218:9;7214:104;7210:113;7202:121;;;;6722:607;;;;:::o;7750:184::-;7802:77;7799:1;7792:88;7899:4;7896:1;7889:15;7923:4;7920:1;7913:15;7939:184;7991:77;7988:1;7981:88;8088:4;8085:1;8078:15;8112:4;8109:1;8102:15;8128:125;8193:9;;;8214:10;;;8211:36;;;8227:18;;:::i;8258:128::-;8325:9;;;8346:11;;;8343:37;;;8360:18;;:::i;8391:195::-;8430:3;8461:66;8454:5;8451:77;8448:103;;8531:18;;:::i;:::-;-1:-1:-1;8578:1:15;8567:13;;8391:195::o;8591:168::-;8664:9;;;8695;;8712:15;;;8706:22;;8692:37;8682:71;;8733:18;;:::i;8764:251::-;8834:6;8887:2;8875:9;8866:7;8862:23;8858:32;8855:52;;;8903:1;8900;8893:12;8855:52;8935:9;8929:16;8954:31;8979:5;8954:31;:::i;9416:184::-;9468:77;9465:1;9458:88;9565:4;9562:1;9555:15;9589:4;9586:1;9579:15;9605:120;9645:1;9671;9661:35;;9676:18;;:::i;:::-;-1:-1:-1;9710:9:15;;9605:120::o;9983:112::-;10015:1;10041;10031:35;;10046:18;;:::i;:::-;-1:-1:-1;10080:9:15;;9983:112::o","linkReferences":{},"cborAuxdata":{"1":{"value":"0xa2646970667358221220248e9728d98cd627ba97cee8dfd2c0cdc771cd6f76f09b75fdeb25d4629747b964736f6c63430008110033","offset":8539}},"immutableReferences":{},"transformations":[],"transformationValues":{}},"deployment":{"transactionHash":null,"blockNumber":null,"transactionIndex":null,"deployer":null},"sources":{"@redstone-finance/evm-adapters/contracts/custom-integrations/layerbank/ILToken.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\n\npragma solidity ^0.8.17;\n\ninterface ILToken {\n  function underlying() external view returns (address);\n}\n"},"@redstone-finance/evm-adapters/contracts/custom-integrations/layerbank/IPriceCalculator.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.17;\n\ninterface IPriceCalculator {\n  struct ReferenceData {\n    uint256 lastData;\n    uint256 lastUpdated;\n  }\n\n  function priceOf(address asset) external view returns (uint256);\n\n  function pricesOf(\n    address[] memory assets\n  ) external view returns (uint256[] memory);\n\n  function priceOfETH() external view returns (uint256);\n\n  function getUnderlyingPrice(address gToken) external view returns (uint256);\n\n  function getUnderlyingPrices(\n    address[] memory gTokens\n  ) external view returns (uint256[] memory);\n}\n"},"@redstone-finance/evm-adapters/contracts/price-feeds/data-services/MultiFeedAdapterWithoutRoundsPrimaryProd.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\n\npragma solidity ^0.8.17;\n\nimport {MultiFeedAdapterWithoutRounds} from \"../without-rounds/MultiFeedAdapterWithoutRounds.sol\";\n\nabstract contract MultiFeedAdapterWithoutRoundsPrimaryProd is MultiFeedAdapterWithoutRounds {\n  function getUniqueSignersThreshold() public view virtual override returns (uint8) {\n    return 3;\n  }\n\n  function getAuthorisedSignerIndex(\n    address signerAddress\n  ) public view virtual override returns (uint8) {\n    if (signerAddress == 0x8BB8F32Df04c8b654987DAaeD53D6B6091e3B774) { return 0; }\n    else if (signerAddress == 0xdEB22f54738d54976C4c0fe5ce6d408E40d88499) { return 1; }\n    else if (signerAddress == 0x51Ce04Be4b3E32572C4Ec9135221d0691Ba7d202) { return 2; }\n    else if (signerAddress == 0xDD682daEC5A90dD295d14DA4b0bec9281017b5bE) { return 3; }\n    else if (signerAddress == 0x9c5AE89C4Af6aA32cE58588DBaF90d18a855B6de) { return 4; }\n    else {\n      revert SignerNotAuthorised(signerAddress);\n    }\n  }\n}\n"},"@redstone-finance/evm-adapters/contracts/price-feeds/interfaces/IMultiFeedAdapter.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\n\npragma solidity ^0.8.17;\n\ninterface IMultiFeedAdapter {\n\n  event ValueUpdate(uint256 value, bytes32 dataFeedId, uint256 updatedAt);\n  event UpdateSkipDueToBlockTimestamp(bytes32 dataFeedId);\n  event UpdateSkipDueToDataTimestamp(bytes32 dataFeedId);\n  event UpdateSkipDueToInvalidValue(bytes32 dataFeedId);\n\n  function updateDataFeedsValuesPartial(bytes32[] memory dataFeedsIds) external;\n\n  function getLastUpdateDetails(bytes32 dataFeedId) external view returns (uint256 lastDataTimestamp, uint256 lastBlockTimestamp, uint256 lastValue);\n\n  function getLastUpdateDetailsUnsafe(bytes32 dataFeedId) external view returns (uint256 lastDataTimestamp, uint256 lastBlockTimestamp, uint256 lastValue);\n\n  function getValuesForDataFeeds(bytes32[] memory requestedDataFeedIds) external view returns (uint256[] memory values);\n\n  function getValueForDataFeed(bytes32 dataFeedId) external view returns (uint256 dataFeedValue);\n\n  function getDataTimestampFromLatestUpdate(bytes32 dataFeedId) external view returns (uint256 lastDataTimestamp);\n\n  function getBlockTimestampFromLatestUpdate(bytes32 dataFeedId) external view returns (uint256 blockTimestamp);\n}\n"},"@redstone-finance/evm-adapters/contracts/price-feeds/without-rounds/MultiFeedAdapterWithoutRounds.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\n\npragma solidity ^0.8.17;\n\nimport {RedstoneConsumerNumericBase} from \"@redstone-finance/evm-connector/contracts/core/RedstoneConsumerNumericBase.sol\";\nimport {IMultiFeedAdapter} from \"../interfaces/IMultiFeedAdapter.sol\";\nimport {IPriceCalculator} from \"../../custom-integrations/layerbank/IPriceCalculator.sol\";\nimport {ILToken} from \"../../custom-integrations/layerbank/ILToken.sol\";\n\n/**\n * @title MultiFeedAdapterWithoutRounds\n * @author The Redstone Oracles team\n * @dev This abstract contract serves as an adapter for multiple data feeds, facilitating\n * the updating and retrieval of oracle data values independently.\n *\n * Key details about the contract:\n * - Values for data feeds can be updated using the `updateDataFeedsValuesPartial` function\n * - Unlike the previous version (RedstoneAdapterBase), this adapter allows updating any set of data feeds,\n *   with each update being made independently.\n * - Updates are highly independent. Each data feed update is attempted separately, ensuring maximum possible\n *   updates without reverting the entire transaction if some of them fail. Both successful value updates and\n *   update skips due to failed validation are represented in corresponding events.\n * - Efficient storage usage: Related timestamps and values are packed into a single 32-byte slot when possible.\n *   If a value exceeds the slot capacity, it is stored in the next slot, with one bool prop (isValueBigger) indicating the storage method used.\n * - All data packages in the Redstone payload must have the same timestamp. Invalid timestamps (too old or too new) will cause transaction reversion.\n * - The contract includes a built-in IPriceCalculator interface used by LayerBank and other projects\n */\nabstract contract MultiFeedAdapterWithoutRounds is RedstoneConsumerNumericBase, IMultiFeedAdapter, IPriceCalculator {\n  bytes32 internal constant DATA_FEEDS_STORAGE_LOCATION = 0x5e9fb4cb0eb3c2583734d3394f30bb14b241acb9b3a034f7e7ba1a62db4370f1; // keccak256(\"RedStone.MultiFeedAdapterWithoutRounds.dataFeeds\");\n  bytes32 internal constant ETH_DATA_FEED_ID = bytes32(\"ETH\");\n  uint256 internal constant MAX_DATA_STALENESS = 30 hours;\n  uint256 internal constant DEFAULT_DECIMAL_SCALER_LAYERBANK = 1e10;\n\n  error DataTimestampTooLarge(uint256 dataTimestamp);\n  error BlockTimestampTooLarge(uint256 blockTimestamp);\n  error InvalidLastUpdateDetails(bytes32 dataFeedId, uint256 lastDataTimestamp, uint256 lastBlockTimestamp, uint256 lastValue);\n\n  // This struct uses exactly one storage slot (32 bytes)\n  struct DataFeedDetails {\n    uint48 dataTimestamp;\n    uint48 blockTimestamp;\n    uint152 value;\n    bool isValueBigger;\n  }\n\n  struct DataFeedDetailsWithOptionalBigValue {\n    DataFeedDetails details;\n    uint256 biggerValue;\n  }\n\n  // This struct is used only for returning values\n  struct LastUpdateDetails {\n    uint256 dataTimestamp;\n    uint256 blockTimestamp;\n    uint256 value;\n  }\n\n  struct DataFeedsStorage {\n    mapping(bytes32 => DataFeedDetailsWithOptionalBigValue) _dataFeeds;\n  }\n\n  /// This function allows to update any set of data feeds\n  function updateDataFeedsValuesPartial(bytes32[] memory dataFeedsIds) public {\n    (uint256[] memory oracleValues, uint256 extractedDataTimestamp) = getOracleNumericValuesAndTimestampFromTxMsg(dataFeedsIds);\n\n    // Revert if data timestamp doesn't fit within the allowed block timestamp window\n    validateTimestamp(extractedDataTimestamp);\n\n    // Revert if data or block timestamp do not fit into 48 bits reserved in storage for timestamps\n    if (extractedDataTimestamp > type(uint48).max) {\n      revert DataTimestampTooLarge(extractedDataTimestamp);\n    }\n    if (block.timestamp > type(uint48).max) {\n      revert BlockTimestampTooLarge(block.timestamp);\n    }\n\n    // The logic below can fail only in the case when gas limit reached\n    for (uint256 i = 0; i < dataFeedsIds.length;) {\n      // Note, each update is independent. It means that we are trying to update everything we can.\n      // And skip the rest (emitting corresponding events)\n      _tryToUpdateDataFeed(dataFeedsIds[i], oracleValues[i], extractedDataTimestamp);\n      unchecked { i++; } // reduces gas costs\n    }\n  }\n\n  function _tryToUpdateDataFeed(bytes32 dataFeedId, uint256 value, uint256 dataTimestamp) internal virtual {\n    (uint256 lastDataTimestamp, uint256 lastBlockTimestamp, uint256 lastValue) = getLastUpdateDetailsUnsafe(dataFeedId);\n\n    if (!_validateBlockTimestamp(lastBlockTimestamp)) {\n      emit UpdateSkipDueToBlockTimestamp(dataFeedId);\n      return;\n    }\n\n    if (!_validateDataTimestamp(dataTimestamp, lastDataTimestamp)) {\n      emit UpdateSkipDueToDataTimestamp(dataFeedId);\n      return;\n    }\n\n    if (!_validateValueBeforeSave(dataFeedId, value, lastValue)) {\n      emit UpdateSkipDueToInvalidValue(dataFeedId);\n      return;\n    }\n\n    _saveNewUpdateDetails(dataFeedId, value, dataTimestamp);\n    _emitEventAfterValueUpdate(dataFeedId, value);\n  }\n\n  function _saveNewUpdateDetails(bytes32 dataFeedId, uint256 newValue, uint256 dataTimestamp) internal {\n    DataFeedDetailsWithOptionalBigValue storage dataFeed = _getDataFeedsStorage()._dataFeeds[dataFeedId];\n\n    bool isValueBigger = newValue > type(uint152).max;\n\n    // We can safely cast timestamps here, because we checked timestamp values in the `updateDataFeedsValuesPartial` function\n    dataFeed.details = DataFeedDetails({\n      dataTimestamp: uint48(dataTimestamp),\n      blockTimestamp: uint48(block.timestamp),\n      value: uint152(newValue), // we can store anything here is isValueBigger == true, but it's slightly cheaper to always store the same value\n      isValueBigger: isValueBigger\n    });\n\n    if (isValueBigger) {\n      dataFeed.biggerValue = newValue;\n    }\n  }\n\n  function getLastUpdateDetails(bytes32 dataFeedId) public view virtual returns (uint256 lastDataTimestamp, uint256 lastBlockTimestamp, uint256 lastValue) {\n    (lastDataTimestamp, lastBlockTimestamp, lastValue) = getLastUpdateDetailsUnsafe(dataFeedId);\n    if (!_validateLastUpdateDetailsOnRead(dataFeedId, lastDataTimestamp, lastBlockTimestamp, lastValue)) {\n      revert InvalidLastUpdateDetails(dataFeedId, lastDataTimestamp, lastBlockTimestamp, lastValue);\n    }\n  }\n\n  function getLastUpdateDetailsUnsafe(bytes32 dataFeedId) public view virtual returns (uint256 lastDataTimestamp, uint256 lastBlockTimestamp, uint256 lastValue) {\n    DataFeedDetailsWithOptionalBigValue storage dataFeed = _getDataFeedsStorage()._dataFeeds[dataFeedId];\n\n    lastDataTimestamp = dataFeed.details.dataTimestamp;\n    lastBlockTimestamp = dataFeed.details.blockTimestamp;\n\n    if (dataFeed.details.isValueBigger) {\n      lastValue = dataFeed.biggerValue;\n    } else {\n      lastValue = dataFeed.details.value;\n    }\n  }\n\n  function _getDataFeedsStorage() private pure returns (DataFeedsStorage storage $) {\n    assembly {\n      $.slot := DATA_FEEDS_STORAGE_LOCATION\n    }\n  }\n\n  /// This function can be used to implement time-based whitelisting (e.g. whitelisting for only X seconds after the latest update)\n  /// Important! This function should not revert, it should only return bool result of the validation\n  function _validateBlockTimestamp(uint256 lastBlockTimestamp) internal view virtual returns (bool) {\n    // In the default implementation we just check if the block number is higher\n    // To ensure max 1 update for a given data feed in a block\n    return block.timestamp > lastBlockTimestamp;\n  }\n\n  /// Important! This function should not revert, it should only return bool result of the validation\n  function _validateDataTimestamp(uint256 proposedDataTimestamp, uint256 lastDataTimestamp) internal view virtual returns (bool) {\n    return proposedDataTimestamp > lastDataTimestamp;\n  }\n\n  /// Important! This function should not revert, it should only return bool result of the validation\n  /// It can be overridden to handle more specific logic in future\n  function _validateValueBeforeSave(bytes32 /* dataFeedId */, uint256 proposedValue, uint256 /* lastValue */) internal view virtual returns (bool) {\n    return proposedValue > 0;\n  }\n\n  /// This function can be overridden (e.g. value validation and staleness check)\n  /// We've added dataFeedId for being able to implement custom validation per feed\n  function _validateLastUpdateDetailsOnRead(bytes32 /* dataFeedId */, uint256 /* lastDataTimestamp */, uint256 lastBlockTimestamp, uint256 lastValue) internal view virtual returns (bool) {\n    return lastValue > 0 && lastBlockTimestamp + MAX_DATA_STALENESS > block.timestamp;\n  }\n\n  /// Important! This function should not revert, it should only emit an event\n  /// It is a separate function, so that we can specify custom events for specific data feeds\n  function _emitEventAfterValueUpdate(bytes32 dataFeedId, uint256 newValue) internal virtual {\n    emit ValueUpdate(newValue, dataFeedId, block.timestamp);\n  }\n\n\n  ////////////////////////////////////////////////////\n  /////////// Functions for relayers below ///////////\n  ////////////////////////////////////////////////////\n\n  function getLastUpdateDetailsUnsafeForMany(bytes32[] memory dataFeedIds) external view returns (LastUpdateDetails[] memory detailsForFeeds) {\n    detailsForFeeds = new LastUpdateDetails[](dataFeedIds.length);\n    for (uint256 i = 0; i < dataFeedIds.length;) {\n      (detailsForFeeds[i].dataTimestamp, detailsForFeeds[i].blockTimestamp, detailsForFeeds[i].value) = getLastUpdateDetailsUnsafe(dataFeedIds[i]);\n      unchecked { i++; } // reduces gas costs\n    }\n  }\n\n  function getValuesForDataFeeds(bytes32[] memory requestedDataFeedIds) external view returns (uint256[] memory values) {\n    values = new uint256[](requestedDataFeedIds.length);\n    for (uint256 i = 0; i < requestedDataFeedIds.length;) {\n      values[i] = getValueForDataFeed(requestedDataFeedIds[i]);\n      unchecked { i++; } // reduces gas costs\n    }\n  }\n\n  function getValueForDataFeed(bytes32 dataFeedId) public view virtual returns (uint256 dataFeedValue) {\n    (,, dataFeedValue) = getLastUpdateDetails(dataFeedId);\n  }\n\n  function getDataTimestampFromLatestUpdate(bytes32 dataFeedId) external view virtual returns (uint256 lastDataTimestamp) {\n    (lastDataTimestamp, ,) = getLastUpdateDetails(dataFeedId);\n  }\n\n  function getBlockTimestampFromLatestUpdate(bytes32 dataFeedId) external view virtual returns (uint256 blockTimestamp) {\n    (, blockTimestamp, ) = getLastUpdateDetails(dataFeedId);\n  }\n\n  ///////////////////////////////////////////////////////\n  //////////// LayerBank interface functions ////////////\n  ///////////////////////////////////////////////////////\n\n  /// We can connect manager contract here or implement it directly here\n  /// By default, users will be able to use data feed identifiers (casted to addresses) in layerbank functions\n  function getDataFeedIdForAsset(address asset) public view virtual returns(bytes32) {\n    return bytes32(uint256(uint160(asset)));\n  }\n\n  function convertDecimals(bytes32 /* dataFeedId */, uint256 valueFromRedstonePayload) public view virtual returns (uint256) {\n    return valueFromRedstonePayload * DEFAULT_DECIMAL_SCALER_LAYERBANK;\n  }\n\n  function getUnderlyingAsset(address gToken) public view virtual returns(address) {\n    return ILToken(gToken).underlying();\n  }\n\n  function priceOf(address asset) public view virtual returns (uint256) {\n    bytes32 dataFeedId = getDataFeedIdForAsset(asset);\n    uint256 latestValue = getValueForDataFeed(dataFeedId);\n    return convertDecimals(dataFeedId, latestValue);\n  }\n\n  function priceOfETH() public view virtual returns (uint256) {\n    return convertDecimals(ETH_DATA_FEED_ID, getValueForDataFeed(ETH_DATA_FEED_ID));\n  }\n\n  function pricesOf(\n    address[] memory assets\n  ) external view returns (uint256[] memory values) {\n    values = new uint256[](assets.length);\n    for (uint256 i = 0; i < assets.length;) {\n      values[i] = priceOf(assets[i]);\n      unchecked { i++; } // reduces gas costs\n    }\n  }\n\n  function getUnderlyingPrice(address gToken) public view returns (uint256) {\n    return priceOf(getUnderlyingAsset(gToken));\n  }\n\n  function getUnderlyingPrices(\n    address[] memory gTokens\n  ) public view returns (uint256[] memory values) {\n    values = new uint256[](gTokens.length);\n    for (uint256 i = 0; i < gTokens.length;) {\n      values[i] = getUnderlyingPrice(gTokens[i]);\n      unchecked { i++; } // reduces gas costs\n    }\n  }\n}\n"},"@redstone-finance/evm-connector/contracts/core/CalldataExtractor.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\n\npragma solidity ^0.8.17;\n\nimport \"./RedstoneConstants.sol\";\n\n/**\n * @title The base contract with the main logic of data extraction from calldata\n * @author The Redstone Oracles team\n * @dev This contract was created to reuse the same logic in the RedstoneConsumerBase\n * and the ProxyConnector contracts\n */\ncontract CalldataExtractor is RedstoneConstants {\n\n  error DataPackageTimestampMustNotBeZero();\n  error DataPackageTimestampsMustBeEqual();\n  error RedstonePayloadMustHaveAtLeastOneDataPackage();\n  error TooLargeValueByteSize(uint256 valueByteSize);\n\n  function extractTimestampsAndAssertAllAreEqual() public pure returns (uint256 extractedTimestamp) {\n    uint256 calldataNegativeOffset = _extractByteSizeOfUnsignedMetadata();\n    uint256 dataPackagesCount;\n    (dataPackagesCount, calldataNegativeOffset) = _extractDataPackagesCountFromCalldata(calldataNegativeOffset);\n\n    if (dataPackagesCount == 0) {\n      revert RedstonePayloadMustHaveAtLeastOneDataPackage();\n    }\n\n    for (uint256 dataPackageIndex = 0; dataPackageIndex < dataPackagesCount; dataPackageIndex++) {\n      uint256 dataPackageByteSize = _getDataPackageByteSize(calldataNegativeOffset);\n\n      // Extracting timestamp for the current data package\n      uint48 dataPackageTimestamp; // uint48, because timestamp uses 6 bytes\n      uint256 timestampNegativeOffset = (calldataNegativeOffset + TIMESTAMP_NEGATIVE_OFFSET_IN_DATA_PACKAGE_WITH_STANDARD_SLOT_BS);\n      uint256 timestampOffset = msg.data.length - timestampNegativeOffset;\n      assembly {\n        dataPackageTimestamp := calldataload(timestampOffset)\n      }\n\n      if (dataPackageTimestamp == 0) {\n        revert DataPackageTimestampMustNotBeZero();\n      }\n\n      if (extractedTimestamp == 0) {\n        extractedTimestamp = dataPackageTimestamp;\n      } else if (dataPackageTimestamp != extractedTimestamp) {\n        revert DataPackageTimestampsMustBeEqual();\n      }\n\n      calldataNegativeOffset += dataPackageByteSize;\n    }\n  }\n\n  function _getDataPackageByteSize(uint256 calldataNegativeOffset) internal pure returns (uint256) {\n    (\n      uint256 dataPointsCount,\n      uint256 eachDataPointValueByteSize\n    ) = _extractDataPointsDetailsForDataPackage(calldataNegativeOffset);\n\n    return\n      dataPointsCount *\n      (DATA_POINT_SYMBOL_BS + eachDataPointValueByteSize) +\n      DATA_PACKAGE_WITHOUT_DATA_POINTS_BS;\n  }\n\n  function _extractByteSizeOfUnsignedMetadata() internal pure returns (uint256) {\n    // Checking if the calldata ends with the RedStone marker\n    bool hasValidRedstoneMarker;\n    assembly {\n      let calldataLast32Bytes := calldataload(sub(calldatasize(), STANDARD_SLOT_BS))\n      hasValidRedstoneMarker := eq(\n        REDSTONE_MARKER_MASK,\n        and(calldataLast32Bytes, REDSTONE_MARKER_MASK)\n      )\n    }\n    if (!hasValidRedstoneMarker) {\n      revert CalldataMustHaveValidPayload();\n    }\n\n    // Using uint24, because unsigned metadata byte size number has 3 bytes\n    uint24 unsignedMetadataByteSize;\n    if (REDSTONE_MARKER_BS_PLUS_STANDARD_SLOT_BS > msg.data.length) {\n      revert CalldataOverOrUnderFlow();\n    }\n    assembly {\n      unsignedMetadataByteSize := calldataload(\n        sub(calldatasize(), REDSTONE_MARKER_BS_PLUS_STANDARD_SLOT_BS)\n      )\n    }\n    uint256 calldataNegativeOffset = unsignedMetadataByteSize\n      + UNSIGNED_METADATA_BYTE_SIZE_BS\n      + REDSTONE_MARKER_BS;\n    if (calldataNegativeOffset + DATA_PACKAGES_COUNT_BS > msg.data.length) {\n      revert IncorrectUnsignedMetadataSize();\n    }\n    return calldataNegativeOffset;\n  }\n\n  // We return uint16, because unsigned metadata byte size number has 2 bytes\n  function _extractDataPackagesCountFromCalldata(uint256 calldataNegativeOffset)\n    internal\n    pure\n    returns (uint16 dataPackagesCount, uint256 nextCalldataNegativeOffset)\n  {\n    uint256 calldataNegativeOffsetWithStandardSlot = calldataNegativeOffset + STANDARD_SLOT_BS;\n    if (calldataNegativeOffsetWithStandardSlot > msg.data.length) {\n      revert CalldataOverOrUnderFlow();\n    }\n    assembly {\n      dataPackagesCount := calldataload(\n        sub(calldatasize(), calldataNegativeOffsetWithStandardSlot)\n      )\n    }\n    return (dataPackagesCount, calldataNegativeOffset + DATA_PACKAGES_COUNT_BS);\n  }\n\n  function _extractDataPointValueAndDataFeedId(\n    uint256 dataPointNegativeOffset,\n    uint256 dataPointValueByteSize\n  ) internal pure virtual returns (bytes32 dataPointDataFeedId, uint256 dataPointValue) {\n    uint256 dataPointCalldataOffset = msg.data.length - dataPointNegativeOffset;\n    assembly {\n      dataPointDataFeedId := calldataload(dataPointCalldataOffset)\n      dataPointValue := calldataload(add(dataPointCalldataOffset, DATA_POINT_SYMBOL_BS))\n    }\n    if (dataPointValueByteSize >= 33) {\n      revert TooLargeValueByteSize(dataPointValueByteSize);\n    }\n    unchecked {\n      dataPointValue = dataPointValue >> (32 - dataPointValueByteSize) * 8; \n    }\n  }\n\n  function _extractDataPointsDetailsForDataPackage(uint256 calldataNegativeOffsetForDataPackage)\n    internal\n    pure\n    returns (uint256 dataPointsCount, uint256 eachDataPointValueByteSize)\n  {\n    // Using uint24, because data points count byte size number has 3 bytes\n    uint24 dataPointsCount_;\n\n    // Using uint32, because data point value byte size has 4 bytes\n    uint32 eachDataPointValueByteSize_;\n\n    // Extract data points count\n    uint256 calldataOffset = msg.data.length - (calldataNegativeOffsetForDataPackage + SIG_BS + STANDARD_SLOT_BS);\n    assembly {\n      dataPointsCount_ := calldataload(calldataOffset)\n    }\n\n    // Extract each data point value size\n    calldataOffset = calldataOffset - DATA_POINTS_COUNT_BS;\n    assembly {\n      eachDataPointValueByteSize_ := calldataload(calldataOffset)\n    }\n\n    // Prepare returned values\n    dataPointsCount = dataPointsCount_;\n    eachDataPointValueByteSize = eachDataPointValueByteSize_;\n  }\n}\n"},"@redstone-finance/evm-connector/contracts/core/RedstoneConstants.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\n\npragma solidity ^0.8.17;\n\n/**\n * @title The base contract with helpful constants\n * @author The Redstone Oracles team\n * @dev It mainly contains redstone-related values, which improve readability\n * of other contracts (e.g. CalldataExtractor and RedstoneConsumerBase)\n */\ncontract RedstoneConstants {\n  // === Abbreviations ===\n  // BS - Bytes size\n  // PTR - Pointer (memory location)\n  // SIG - Signature\n\n  // Solidity and YUL constants\n  uint256 internal constant STANDARD_SLOT_BS = 32;\n  uint256 internal constant FREE_MEMORY_PTR = 0x40;\n  uint256 internal constant BYTES_ARR_LEN_VAR_BS = 32;\n  uint256 internal constant REVERT_MSG_OFFSET = 68; // Revert message structure described here: https://ethereum.stackexchange.com/a/66173/106364\n  uint256 internal constant STRING_ERR_MESSAGE_MASK = 0x08c379a000000000000000000000000000000000000000000000000000000000;\n\n  // RedStone protocol consts\n  uint256 internal constant SIG_BS = 65;\n  uint256 internal constant TIMESTAMP_BS = 6;\n  uint256 internal constant DATA_PACKAGES_COUNT_BS = 2;\n  uint256 internal constant DATA_POINTS_COUNT_BS = 3;\n  uint256 internal constant DATA_POINT_VALUE_BYTE_SIZE_BS = 4;\n  uint256 internal constant DATA_POINT_SYMBOL_BS = 32;\n  uint256 internal constant UNSIGNED_METADATA_BYTE_SIZE_BS = 3;\n  uint256 internal constant REDSTONE_MARKER_BS = 9; // byte size of 0x000002ed57011e0000\n  uint256 internal constant REDSTONE_MARKER_MASK = 0x0000000000000000000000000000000000000000000000000002ed57011e0000;\n\n  // Derived values (based on consts)\n  uint256 internal constant TIMESTAMP_NEGATIVE_OFFSET_IN_DATA_PACKAGE_WITH_STANDARD_SLOT_BS = 104; // SIG_BS + DATA_POINTS_COUNT_BS + DATA_POINT_VALUE_BYTE_SIZE_BS + STANDARD_SLOT_BS\n  uint256 internal constant DATA_PACKAGE_WITHOUT_DATA_POINTS_BS = 78; // DATA_POINT_VALUE_BYTE_SIZE_BS + TIMESTAMP_BS + DATA_POINTS_COUNT_BS + SIG_BS\n  uint256 internal constant DATA_PACKAGE_WITHOUT_DATA_POINTS_AND_SIG_BS = 13; // DATA_POINT_VALUE_BYTE_SIZE_BS + TIMESTAMP_BS + DATA_POINTS_COUNT_BS\n  uint256 internal constant REDSTONE_MARKER_BS_PLUS_STANDARD_SLOT_BS = 41; // REDSTONE_MARKER_BS + STANDARD_SLOT_BS\n\n  // Error messages\n  error CalldataOverOrUnderFlow();\n  error IncorrectUnsignedMetadataSize();\n  error InsufficientNumberOfUniqueSigners(uint256 receivedSignersCount, uint256 requiredSignersCount);\n  error EachSignerMustProvideTheSameValue();\n  error EmptyCalldataPointersArr();\n  error InvalidCalldataPointer();\n  error CalldataMustHaveValidPayload();\n  error SignerNotAuthorised(address receivedSigner);\n  error DataTimestampCannotBeZero();\n  error TimestampsMustBeEqual();\n}\n"},"@redstone-finance/evm-connector/contracts/core/RedstoneConsumerBase.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\n\npragma solidity ^0.8.17;\n\nimport \"./RedstoneConstants.sol\";\nimport \"./RedstoneDefaultsLib.sol\";\nimport \"./CalldataExtractor.sol\";\nimport \"../libs/BitmapLib.sol\";\nimport \"../libs/SignatureLib.sol\";\n\n/**\n * @title The base contract with the main Redstone logic\n * @author The Redstone Oracles team\n * @dev Do not use this contract directly in consumer contracts, take a\n * look at `RedstoneConsumerNumericBase` and `RedstoneConsumerBytesBase` instead\n */\nabstract contract RedstoneConsumerBase is CalldataExtractor {\n\n  error GetDataServiceIdNotImplemented();\n\n  /* ========== VIRTUAL FUNCTIONS (MAY BE OVERRIDDEN IN CHILD CONTRACTS) ========== */\n\n  /**\n   * @dev This function must be implemented by the child consumer contract.\n   * It should return dataServiceId which DataServiceWrapper will use if not provided explicitly .\n   * If not overridden, value will always have to be provided explicitly in DataServiceWrapper.\n   * @return dataServiceId being consumed by contract\n   */\n  function getDataServiceId() public view virtual returns (string memory) {\n    revert GetDataServiceIdNotImplemented();\n  }\n\n  /**\n   * @dev This function must be implemented by the child consumer contract.\n   * It should return a unique index for a given signer address if the signer\n   * is authorised, otherwise it should revert\n   * @param receivedSigner The address of a signer, recovered from ECDSA signature\n   * @return Unique index for a signer in the range [0..255]\n   */\n  function getAuthorisedSignerIndex(address receivedSigner) public view virtual returns (uint8);\n\n  /**\n   * @dev This function may be overridden by the child consumer contract.\n   * It should validate the timestamp against the current time (block.timestamp)\n   * It should revert with a helpful message if the timestamp is not valid\n   * @param receivedTimestampMilliseconds Timestamp extracted from calldata\n   */\n  function validateTimestamp(uint256 receivedTimestampMilliseconds) public view virtual {\n    RedstoneDefaultsLib.validateTimestamp(receivedTimestampMilliseconds);\n  }\n\n  /**\n   * @dev This function must be implemented by the child consumer contract.\n   * @return The minimum required value of unique authorised signers\n   */\n  function getUniqueSignersThreshold() public view virtual returns (uint8);\n\n  /**\n   * @dev This function may be overridden by the child consumer contract.\n   * It should aggregate values from different signers to a single uint value.\n   * By default, it calculates the median value\n   * @param values An array of uint256 values from different signers\n   * @return Result of the aggregation in the form of a single number\n   */\n  function aggregateValues(uint256[] memory values) public view virtual returns (uint256) {\n    return RedstoneDefaultsLib.aggregateValues(values);\n  }\n\n  /* ========== FUNCTIONS WITH IMPLEMENTATION (CAN NOT BE OVERRIDDEN) ========== */\n\n  /**\n   * @dev This is an internal helpful function for secure extraction oracle values\n   * from the tx calldata. Security is achieved by signatures verification, timestamp\n   * validation, and aggregating values from different authorised signers into a\n   * single numeric value. If any of the required conditions (e.g. packages with different \n   * timestamps or insufficient number of authorised signers) do not match, the function \n   * will revert.\n   *\n   * Note! You should not call this function in a consumer contract. You can use\n   * `getOracleNumericValuesFromTxMsg` or `getOracleNumericValueFromTxMsg` instead.\n   *\n   * @param dataFeedIds An array of unique data feed identifiers\n   * @return An array of the extracted and verified oracle values in the same order\n   * as they are requested in dataFeedIds array\n   * @return dataPackagesTimestamp timestamp equal for all data packages\n   */\n  function _securelyExtractOracleValuesAndTimestampFromTxMsg(bytes32[] memory dataFeedIds)\n    internal\n    view\n    returns (uint256[] memory, uint256 dataPackagesTimestamp)\n  {\n    // Initializing helpful variables and allocating memory\n    uint256[] memory uniqueSignerCountForDataFeedIds = new uint256[](dataFeedIds.length);\n    uint256[] memory signersBitmapForDataFeedIds = new uint256[](dataFeedIds.length);\n    uint256[][] memory valuesForDataFeeds = new uint256[][](dataFeedIds.length);\n    uint256 uniqueSignersThreshold = getUniqueSignersThreshold();\n    for (uint256 i = 0; i < dataFeedIds.length;) {\n      // The line below is commented because newly allocated arrays are filled with zeros\n      // But we left it for better readability\n      // signersBitmapForDataFeedIds[i] = 0; // <- setting to an empty bitmap\n      valuesForDataFeeds[i] = new uint256[](uniqueSignersThreshold);\n      unchecked {\n        i++;\n      }\n    }\n\n    // Extracting the number of data packages from calldata\n    uint256 calldataNegativeOffset = _extractByteSizeOfUnsignedMetadata();\n    uint256 dataPackagesCount;\n    (dataPackagesCount, calldataNegativeOffset) = _extractDataPackagesCountFromCalldata(calldataNegativeOffset);\n\n    // Saving current free memory pointer\n    uint256 freeMemPtr;\n    assembly {\n      freeMemPtr := mload(FREE_MEMORY_PTR)\n    }\n\n    // Data packages extraction in a loop\n    for (uint256 dataPackageIndex = 0; dataPackageIndex < dataPackagesCount;) {\n      // Extract data package details and update calldata offset\n      uint256 dataPackageTimestamp;\n      (calldataNegativeOffset, dataPackageTimestamp) = _extractDataPackage(\n        dataFeedIds,\n        uniqueSignerCountForDataFeedIds,\n        signersBitmapForDataFeedIds,\n        valuesForDataFeeds,\n        calldataNegativeOffset\n      );\n\n      if (dataPackageTimestamp == 0) {\n        revert DataTimestampCannotBeZero();\n      }\n\n      if (dataPackageTimestamp != dataPackagesTimestamp) {\n        if (dataPackagesTimestamp == 0) {\n          // Setting dataPackagesTimestamp first time\n          dataPackagesTimestamp = dataPackageTimestamp;    \n        } else {\n          revert TimestampsMustBeEqual();\n        }\n      }\n\n      // Resetting the memory pointer to the initial \"safe\" value\n      // We add STANDARD_SLOT_BS (32 bytes) to account for potential allocation\n      // of the dataPackageIndex variable, which may or may not be stored in memory\n      assembly {\n        mstore(FREE_MEMORY_PTR, add(freeMemPtr, STANDARD_SLOT_BS))\n      }\n      unchecked {\n        dataPackageIndex++;\n      }\n    }\n\n    // Validating numbers of unique signers and calculating aggregated values for each dataFeedId\n    return (_getAggregatedValues(valuesForDataFeeds, uniqueSignerCountForDataFeedIds), dataPackagesTimestamp);\n  }\n\n  /**\n   * @dev This is a private helpful function, which extracts data for a data package based\n   * on the given negative calldata offset, verifies them, and in the case of successful\n   * verification updates the corresponding data package values in memory\n   *\n   * @param dataFeedIds an array of unique data feed identifiers\n   * @param uniqueSignerCountForDataFeedIds an array with the numbers of unique signers\n   * for each data feed\n   * @param signersBitmapForDataFeedIds an array of signer bitmaps for data feeds\n   * @param valuesForDataFeeds 2-dimensional array, valuesForDataFeeds[i][j] contains\n   * j-th value for the i-th data feed\n   * @param calldataNegativeOffset negative calldata offset for the given data package\n   *\n   * @return nextCalldataNegativeOffset negative calldata offset for the next data package\n   * @return dataPackageTimestamp data package timestamp\n   */\n  function _extractDataPackage(\n    bytes32[] memory dataFeedIds,\n    uint256[] memory uniqueSignerCountForDataFeedIds,\n    uint256[] memory signersBitmapForDataFeedIds,\n    uint256[][] memory valuesForDataFeeds,\n    uint256 calldataNegativeOffset\n  ) private view returns (uint256 nextCalldataNegativeOffset, uint256 dataPackageTimestamp) {\n    uint256 signerIndex;\n\n    (\n      uint256 dataPointsCount,\n      uint256 eachDataPointValueByteSize\n    ) = _extractDataPointsDetailsForDataPackage(calldataNegativeOffset);\n\n    // We use scopes to resolve problem with too deep stack\n    {\n      address signerAddress;\n      bytes32 signedHash;\n      bytes memory signedMessage;\n      uint256 signedMessageBytesCount;\n      uint48 extractedTimestamp;\n\n      signedMessageBytesCount = dataPointsCount * (eachDataPointValueByteSize + DATA_POINT_SYMBOL_BS)\n        + DATA_PACKAGE_WITHOUT_DATA_POINTS_AND_SIG_BS; //DATA_POINT_VALUE_BYTE_SIZE_BS + TIMESTAMP_BS + DATA_POINTS_COUNT_BS\n\n      uint256 timestampCalldataOffset = msg.data.length - \n        (calldataNegativeOffset + TIMESTAMP_NEGATIVE_OFFSET_IN_DATA_PACKAGE_WITH_STANDARD_SLOT_BS);\n\n      uint256 signedMessageCalldataOffset = msg.data.length - \n        (calldataNegativeOffset + SIG_BS + signedMessageBytesCount);\n\n      assembly {\n        // Extracting the signed message\n        signedMessage := extractBytesFromCalldata(\n          signedMessageCalldataOffset,\n          signedMessageBytesCount\n        )\n\n        // Hashing the signed message\n        signedHash := keccak256(add(signedMessage, BYTES_ARR_LEN_VAR_BS), signedMessageBytesCount)\n\n        // Extracting timestamp\n        extractedTimestamp := calldataload(timestampCalldataOffset)\n\n        function initByteArray(bytesCount) -> ptr {\n          ptr := mload(FREE_MEMORY_PTR)\n          mstore(ptr, bytesCount)\n          ptr := add(ptr, BYTES_ARR_LEN_VAR_BS)\n          mstore(FREE_MEMORY_PTR, add(ptr, bytesCount))\n        }\n\n        function extractBytesFromCalldata(offset, bytesCount) -> extractedBytes {\n          let extractedBytesStartPtr := initByteArray(bytesCount)\n          calldatacopy(\n            extractedBytesStartPtr,\n            offset,\n            bytesCount\n          )\n          extractedBytes := sub(extractedBytesStartPtr, BYTES_ARR_LEN_VAR_BS)\n        }\n      }\n\n      dataPackageTimestamp = extractedTimestamp;\n\n      // Verifying the off-chain signature against on-chain hashed data\n      signerAddress = SignatureLib.recoverSignerAddress(\n        signedHash,\n        calldataNegativeOffset + SIG_BS\n      );\n      signerIndex = getAuthorisedSignerIndex(signerAddress);\n    }\n\n    // Updating helpful arrays\n    {\n      calldataNegativeOffset = calldataNegativeOffset + DATA_PACKAGE_WITHOUT_DATA_POINTS_BS;\n      bytes32 dataPointDataFeedId;\n      uint256 dataPointValue;\n      for (uint256 dataPointIndex = 0; dataPointIndex < dataPointsCount;) {\n        calldataNegativeOffset = calldataNegativeOffset + eachDataPointValueByteSize + DATA_POINT_SYMBOL_BS;\n        // Extracting data feed id and value for the current data point\n        (dataPointDataFeedId, dataPointValue) = _extractDataPointValueAndDataFeedId(\n          calldataNegativeOffset,\n          eachDataPointValueByteSize\n        );\n\n        for (\n          uint256 dataFeedIdIndex = 0;\n          dataFeedIdIndex < dataFeedIds.length;\n        ) {\n          if (dataPointDataFeedId == dataFeedIds[dataFeedIdIndex]) {\n            uint256 bitmapSignersForDataFeedId = signersBitmapForDataFeedIds[dataFeedIdIndex];\n\n            if (\n              !BitmapLib.getBitFromBitmap(bitmapSignersForDataFeedId, signerIndex) && /* current signer was not counted for current dataFeedId */\n              uniqueSignerCountForDataFeedIds[dataFeedIdIndex] < getUniqueSignersThreshold()\n            ) {\n              // Add new value\n              valuesForDataFeeds[dataFeedIdIndex][uniqueSignerCountForDataFeedIds[dataFeedIdIndex]] = dataPointValue;\n\n              // Increase unique signer counter\n              uniqueSignerCountForDataFeedIds[dataFeedIdIndex]++;\n\n              // Update signers bitmap\n              signersBitmapForDataFeedIds[dataFeedIdIndex] = BitmapLib.setBitInBitmap(\n                bitmapSignersForDataFeedId,\n                signerIndex\n              );\n            }\n\n            // Breaking, as there couldn't be several indexes for the same feed ID\n            break;\n          }\n          unchecked {\n            dataFeedIdIndex++;\n          }\n        }\n        unchecked {\n           dataPointIndex++;\n        }\n      }\n    }\n\n    return (calldataNegativeOffset, dataPackageTimestamp);\n  }\n\n  /**\n   * @dev This is a private helpful function, which aggregates values from different\n   * authorised signers for the given arrays of values for each data feed\n   *\n   * @param valuesForDataFeeds 2-dimensional array, valuesForDataFeeds[i][j] contains\n   * j-th value for the i-th data feed\n   * @param uniqueSignerCountForDataFeedIds an array with the numbers of unique signers\n   * for each data feed\n   *\n   * @return An array of the aggregated values\n   */\n  function _getAggregatedValues(\n    uint256[][] memory valuesForDataFeeds,\n    uint256[] memory uniqueSignerCountForDataFeedIds\n  ) private view returns (uint256[] memory) {\n    uint256[] memory aggregatedValues = new uint256[](valuesForDataFeeds.length);\n    uint256 uniqueSignersThreshold = getUniqueSignersThreshold();\n\n    for (uint256 dataFeedIndex = 0; dataFeedIndex < valuesForDataFeeds.length;) {\n      if (uniqueSignerCountForDataFeedIds[dataFeedIndex] < uniqueSignersThreshold) {\n        revert InsufficientNumberOfUniqueSigners(\n          uniqueSignerCountForDataFeedIds[dataFeedIndex],\n          uniqueSignersThreshold);\n      }\n      uint256 aggregatedValueForDataFeedId = aggregateValues(valuesForDataFeeds[dataFeedIndex]);\n      aggregatedValues[dataFeedIndex] = aggregatedValueForDataFeedId;\n      unchecked {\n         dataFeedIndex++;\n      }\n    }\n\n    return aggregatedValues;\n  }\n}\n"},"@redstone-finance/evm-connector/contracts/core/RedstoneConsumerNumericBase.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\n\npragma solidity ^0.8.17;\n\nimport \"./RedstoneConsumerBase.sol\";\n\n/**\n * @title The base contract for Redstone consumers' contracts that allows to\n * securely calculate numeric redstone oracle values\n * @author The Redstone Oracles team\n * @dev This contract can extend other contracts to allow them\n * securely fetch Redstone oracle data from transactions calldata\n */\nabstract contract RedstoneConsumerNumericBase is RedstoneConsumerBase {\n  /**\n   * @dev This function can be used in a consumer contract to securely extract an\n   * oracle value for a given data feed id. Security is achieved by\n   * signatures verification, timestamp validation, and aggregating values\n   * from different authorised signers into a single numeric value. If any of the\n   * required conditions do not match, the function will revert.\n   * Note! This function expects that tx calldata contains redstone payload in the end\n   * Learn more about redstone payload here: https://github.com/redstone-finance/redstone-oracles-monorepo/tree/main/packages/evm-connector#readme\n   * @param dataFeedId bytes32 value that uniquely identifies the data feed\n   * @return Extracted and verified numeric oracle value for the given data feed id\n   */\n  function getOracleNumericValueFromTxMsg(bytes32 dataFeedId)\n    internal\n    view\n    virtual\n    returns (uint256)\n  {\n    bytes32[] memory dataFeedIds = new bytes32[](1);\n    dataFeedIds[0] = dataFeedId;\n    return getOracleNumericValuesFromTxMsg(dataFeedIds)[0];\n  }\n\n  /**\n   * @dev This function can be used in a consumer contract to securely extract several\n   * numeric oracle values for a given array of data feed ids. Security is achieved by\n   * signatures verification, timestamp validation, and aggregating values\n   * from different authorised signers into a single numeric value. If any of the\n   * required conditions do not match, the function will revert.\n   * Note! This function expects that tx calldata contains redstone payload in the end\n   * Learn more about redstone payload here: https://github.com/redstone-finance/redstone-oracles-monorepo/tree/main/packages/evm-connector#readme\n   * @param dataFeedIds An array of unique data feed identifiers\n   * @return An array of the extracted and verified oracle values in the same order\n   * as they are requested in the dataFeedIds array\n   */\n  function getOracleNumericValuesFromTxMsg(bytes32[] memory dataFeedIds)\n    internal\n    view\n    virtual\n    returns (uint256[] memory)\n  {\n    (uint256[] memory values, uint256 timestamp) = _securelyExtractOracleValuesAndTimestampFromTxMsg(dataFeedIds);\n    validateTimestamp(timestamp);\n    return values;\n  }\n\n  /**\n   * @dev This function can be used in a consumer contract to securely extract several\n   * numeric oracle values for a given array of data feed ids. Security is achieved by\n   * signatures verification and aggregating values from different authorised signers \n   * into a single numeric value. If any of the required conditions do not match, \n   * the function will revert.\n   * Note! This function returns the timestamp of the packages (it requires it to be \n   * the same for all), but does not validate this timestamp.\n   * Note! This function expects that tx calldata contains redstone payload in the end\n   * Learn more about redstone payload here: https://github.com/redstone-finance/redstone-oracles-monorepo/tree/main/packages/evm-connector#readme\n   * @param dataFeedIds An array of unique data feed identifiers\n   * @return An array of the extracted and verified oracle values in the same order\n   * as they are requested in the dataFeedIds array and data packages timestamp\n   */\n   function getOracleNumericValuesAndTimestampFromTxMsg(bytes32[] memory dataFeedIds)\n    internal\n    view\n    virtual\n    returns (uint256[] memory, uint256)\n  {\n    return _securelyExtractOracleValuesAndTimestampFromTxMsg(dataFeedIds);\n  }\n\n  /**\n   * @dev This function works similarly to the `getOracleNumericValuesFromTxMsg` with the\n   * only difference that it allows to request oracle data for an array of data feeds\n   * that may contain duplicates\n   * \n   * @param dataFeedIdsWithDuplicates An array of data feed identifiers (duplicates are allowed)\n   * @return An array of the extracted and verified oracle values in the same order\n   * as they are requested in the dataFeedIdsWithDuplicates array\n   */\n  function getOracleNumericValuesWithDuplicatesFromTxMsg(bytes32[] memory dataFeedIdsWithDuplicates) internal view returns (uint256[] memory) {\n    // Building an array without duplicates\n    bytes32[] memory dataFeedIdsWithoutDuplicates = new bytes32[](dataFeedIdsWithDuplicates.length);\n    bool alreadyIncluded;\n    uint256 uniqueDataFeedIdsCount = 0;\n\n    for (uint256 indexWithDup = 0; indexWithDup < dataFeedIdsWithDuplicates.length; indexWithDup++) {\n      // Checking if current element is already included in `dataFeedIdsWithoutDuplicates`\n      alreadyIncluded = false;\n      for (uint256 indexWithoutDup = 0; indexWithoutDup < uniqueDataFeedIdsCount; indexWithoutDup++) {\n        if (dataFeedIdsWithoutDuplicates[indexWithoutDup] == dataFeedIdsWithDuplicates[indexWithDup]) {\n          alreadyIncluded = true;\n          break;\n        }\n      }\n\n      // Adding if not included\n      if (!alreadyIncluded) {\n        dataFeedIdsWithoutDuplicates[uniqueDataFeedIdsCount] = dataFeedIdsWithDuplicates[indexWithDup];\n        uniqueDataFeedIdsCount++;\n      }\n    }\n\n    // Overriding dataFeedIdsWithoutDuplicates.length\n    // Equivalent to: dataFeedIdsWithoutDuplicates.length = uniqueDataFeedIdsCount;\n    assembly {\n      mstore(dataFeedIdsWithoutDuplicates, uniqueDataFeedIdsCount)\n    }\n\n    // Requesting oracle values (without duplicates)\n    (uint256[] memory valuesWithoutDuplicates, uint256 timestamp) = _securelyExtractOracleValuesAndTimestampFromTxMsg(dataFeedIdsWithoutDuplicates);\n    validateTimestamp(timestamp);\n\n    // Preparing result values array\n    uint256[] memory valuesWithDuplicates = new uint256[](dataFeedIdsWithDuplicates.length);\n    for (uint256 indexWithDup = 0; indexWithDup < dataFeedIdsWithDuplicates.length; indexWithDup++) {\n      for (uint256 indexWithoutDup = 0; indexWithoutDup < dataFeedIdsWithoutDuplicates.length; indexWithoutDup++) {\n        if (dataFeedIdsWithDuplicates[indexWithDup] == dataFeedIdsWithoutDuplicates[indexWithoutDup]) {\n          valuesWithDuplicates[indexWithDup] = valuesWithoutDuplicates[indexWithoutDup];\n          break;\n        }\n      }\n    }\n\n    return valuesWithDuplicates;\n  }\n}\n"},"@redstone-finance/evm-connector/contracts/core/RedstoneDefaultsLib.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\n\npragma solidity ^0.8.17;\n\nimport \"../libs/NumericArrayLib.sol\";\n\n/**\n * @title Default implementations of virtual redstone consumer base functions\n * @author The Redstone Oracles team\n */\nlibrary RedstoneDefaultsLib {\n  uint256 constant DEFAULT_MAX_DATA_TIMESTAMP_DELAY_SECONDS = 3 minutes;\n  uint256 constant DEFAULT_MAX_DATA_TIMESTAMP_AHEAD_SECONDS = 1 minutes;\n\n  error TimestampFromTooLongFuture(uint256 receivedTimestampSeconds, uint256 blockTimestamp);\n  error TimestampIsTooOld(uint256 receivedTimestampSeconds, uint256 blockTimestamp);\n\n  function validateTimestamp(uint256 receivedTimestampMilliseconds) internal view {\n    // Getting data timestamp from future seems quite unlikely\n    // But we've already spent too much time with different cases\n    // Where block.timestamp was less than dataPackage.timestamp.\n    // Some blockchains may case this problem as well.\n    // That's why we add MAX_BLOCK_TIMESTAMP_DELAY\n    // and allow data \"from future\" but with a small delay\n    uint256 receivedTimestampSeconds = receivedTimestampMilliseconds / 1000;\n\n    if (block.timestamp < receivedTimestampSeconds) {\n      if ((receivedTimestampSeconds - block.timestamp) > DEFAULT_MAX_DATA_TIMESTAMP_AHEAD_SECONDS) {\n        revert TimestampFromTooLongFuture(receivedTimestampSeconds, block.timestamp);\n      }\n    } else if ((block.timestamp - receivedTimestampSeconds) > DEFAULT_MAX_DATA_TIMESTAMP_DELAY_SECONDS) {\n      revert TimestampIsTooOld(receivedTimestampSeconds, block.timestamp);\n    }\n  }\n\n  function aggregateValues(uint256[] memory values) internal pure returns (uint256) {\n    return NumericArrayLib.pickMedian(values);\n  }\n}\n"},"@redstone-finance/evm-connector/contracts/libs/BitmapLib.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.17;\n\nlibrary BitmapLib {\n  function setBitInBitmap(uint256 bitmap, uint256 bitIndex) internal pure returns (uint256) {\n    return bitmap | (1 << bitIndex);\n  }\n\n  function getBitFromBitmap(uint256 bitmap, uint256 bitIndex) internal pure returns (bool) {\n    uint256 bitAtIndex = bitmap & (1 << bitIndex);\n    return bitAtIndex > 0;\n  }\n}\n"},"@redstone-finance/evm-connector/contracts/libs/NumericArrayLib.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.17;\n\nlibrary NumericArrayLib {\n  // This function sort array in memory using bubble sort algorithm,\n  // which performs even better than quick sort for small arrays\n\n  uint256 constant BYTES_ARR_LEN_VAR_BS = 32;\n  uint256 constant UINT256_VALUE_BS = 32;\n\n  error CanNotPickMedianOfEmptyArray();\n\n  // This function modifies the array\n  function pickMedian(uint256[] memory arr) internal pure returns (uint256) {\n    if (arr.length == 2) {\n      return (arr[0] + arr[1]) / 2;\n    }\n    if (arr.length == 0) {\n      revert CanNotPickMedianOfEmptyArray();\n    }\n    sort(arr);\n    uint256 middleIndex = arr.length / 2;\n    if (arr.length % 2 == 0) {\n      uint256 sum = arr[middleIndex - 1] + arr[middleIndex];\n      return sum / 2;\n    } else {\n      return arr[middleIndex];\n    }\n  }\n\n  function sort(uint256[] memory arr) internal pure {\n    assembly {\n      let arrLength := mload(arr)\n      let valuesPtr := add(arr, BYTES_ARR_LEN_VAR_BS)\n      let endPtr := add(valuesPtr, mul(arrLength, UINT256_VALUE_BS))\n      for {\n        let arrIPtr := valuesPtr\n      } lt(arrIPtr, endPtr) {\n        arrIPtr := add(arrIPtr, UINT256_VALUE_BS) // arrIPtr += 32\n      } {\n        for {\n          let arrJPtr := valuesPtr\n        } lt(arrJPtr, arrIPtr) {\n          arrJPtr := add(arrJPtr, UINT256_VALUE_BS) // arrJPtr += 32\n        } {\n          let arrI := mload(arrIPtr)\n          let arrJ := mload(arrJPtr)\n          if lt(arrI, arrJ) {\n            mstore(arrIPtr, arrJ)\n            mstore(arrJPtr, arrI)\n          }\n        }\n      }\n    }\n  }\n}\n"},"@redstone-finance/evm-connector/contracts/libs/SignatureLib.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.17;\n\nlibrary SignatureLib {\n  uint256 constant ECDSA_SIG_R_BS = 32;\n  uint256 constant ECDSA_SIG_S_BS = 32;\n  \n  // Constants for ECDSA recovery ids\n  uint8 constant RECOVERY_ID_27 = 27;\n  uint8 constant RECOVERY_ID_28 = 28;\n\n  // Constant representing half of the curve order (secp256k1n / 2)\n  uint256 constant HALF_CURVE_ORDER = 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0;\n\n  error InvalidSignature(bytes32 signedHash);\n\n  function recoverSignerAddress(bytes32 signedHash, uint256 signatureCalldataNegativeOffset)\n    internal\n    pure\n    returns (address signerAddress)\n  {\n    bytes32 r;\n    bytes32 s;\n    uint8 v;\n    assembly {\n      let signatureCalldataStartPos := sub(calldatasize(), signatureCalldataNegativeOffset)\n      r := calldataload(signatureCalldataStartPos)\n      signatureCalldataStartPos := add(signatureCalldataStartPos, ECDSA_SIG_R_BS)\n      s := calldataload(signatureCalldataStartPos)\n      signatureCalldataStartPos := add(signatureCalldataStartPos, ECDSA_SIG_S_BS)\n      v := byte(0, calldataload(signatureCalldataStartPos)) // last byte of the signature memory array\n    }\n    // 27 and 28 are the only two valid recovery ids used for ECDSA signatures in Ethereum\n    if (v != RECOVERY_ID_27 && v != RECOVERY_ID_28) {\n      revert InvalidSignature(signedHash);\n    }\n    // Ensure that the s value is in the lower half of the secp256k1 curve order (s < secp256k1n/2+1)\n    // to avoid signature malleability issues.\n    if (uint256(s) > HALF_CURVE_ORDER) {\n      revert InvalidSignature(signedHash);\n    }\n    signerAddress = ecrecover(signedHash, v, r, s);\n    if (signerAddress == address(0)) {\n      revert InvalidSignature(signedHash);\n    }\n  }\n}\n"},"contracts/__addresses/Addresses.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\n\npragma solidity ^0.8.4;\n\nlibrary OldGelatoAddress {\n  address constant public ADDR = 0xc4D1AE5E796E6d7561cdc8335F85e6B57a36e097;\n}\n\nlibrary GelatoAddress {\n  address constant public ADDR = 0xCD6BfDA4D95d5C0f3f2882dC221D792392c99714;\n}\n"},"contracts/stableMultiFeed/StableMultiFeedAdapterWithoutRoundsV1.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\n\npragma solidity ^0.8.17;\n\nimport {OldGelatoAddress, GelatoAddress} from \"../__addresses/Addresses.sol\";\nimport {MultiFeedAdapterWithoutRoundsPrimaryProd} from \"@redstone-finance/evm-adapters/contracts/price-feeds/data-services/MultiFeedAdapterWithoutRoundsPrimaryProd.sol\";\n\ncontract StableMultiFeedAdapterWithoutRoundsV1 is\n  MultiFeedAdapterWithoutRoundsPrimaryProd\n{\n  address internal constant MAIN_UPDATER_ADDRESS =\n    0x01726847a184fff6f65AC14A322108260B51e81f;\n  address internal constant FALLBACK_UPDATER_ADDRESS =\n    0x3927a0Ccb6D4D92aa0c6037d00393940B2295968;\n  address internal constant MANUAL_UPDATER_ADDRESS =\n    0xae8474802eCb7D2c03eaB7FE975B1dC65F90d46C;\n\n  function _validateBlockTimestamp(\n    uint256 lastBlockTimestamp\n  ) internal view virtual override returns (bool) {\n    if (\n      msg.sender == MAIN_UPDATER_ADDRESS ||\n      msg.sender == FALLBACK_UPDATER_ADDRESS ||\n      msg.sender == MANUAL_UPDATER_ADDRESS ||\n      msg.sender == GelatoAddress.ADDR ||\n      msg.sender == OldGelatoAddress.ADDR\n    ) {\n      return block.timestamp > lastBlockTimestamp;\n    }\n    return false;\n  }\n}\n"}},"compilation":{"language":"Solidity","compiler":"solc","compilerVersion":"0.8.17+commit.8df45f5f","compilerSettings":{"optimizer":{"runs":10000,"enabled":true}},"name":"StableMultiFeedAdapterWithoutRoundsV1","fullyQualifiedName":"contracts/stableMultiFeed/StableMultiFeedAdapterWithoutRoundsV1.sol:StableMultiFeedAdapterWithoutRoundsV1"},"abi":[{"name":"BlockTimestampTooLarge","type":"error","inputs":[{"name":"blockTimestamp","type":"uint256","internalType":"uint256"}]},{"name":"CalldataMustHaveValidPayload","type":"error","inputs":[]},{"name":"CalldataOverOrUnderFlow","type":"error","inputs":[]},{"name":"CanNotPickMedianOfEmptyArray","type":"error","inputs":[]},{"name":"DataPackageTimestampMustNotBeZero","type":"error","inputs":[]},{"name":"DataPackageTimestampsMustBeEqual","type":"error","inputs":[]},{"name":"DataTimestampCannotBeZero","type":"error","inputs":[]},{"name":"DataTimestampTooLarge","type":"error","inputs":[{"name":"dataTimestamp","type":"uint256","internalType":"uint256"}]},{"name":"EachSignerMustProvideTheSameValue","type":"error","inputs":[]},{"name":"EmptyCalldataPointersArr","type":"error","inputs":[]},{"name":"GetDataServiceIdNotImplemented","type":"error","inputs":[]},{"name":"IncorrectUnsignedMetadataSize","type":"error","inputs":[]},{"name":"InsufficientNumberOfUniqueSigners","type":"error","inputs":[{"name":"receivedSignersCount","type":"uint256","internalType":"uint256"},{"name":"requiredSignersCount","type":"uint256","internalType":"uint256"}]},{"name":"InvalidCalldataPointer","type":"error","inputs":[]},{"name":"InvalidLastUpdateDetails","type":"error","inputs":[{"name":"dataFeedId","type":"bytes32","internalType":"bytes32"},{"name":"lastDataTimestamp","type":"uint256","internalType":"uint256"},{"name":"lastBlockTimestamp","type":"uint256","internalType":"uint256"},{"name":"lastValue","type":"uint256","internalType":"uint256"}]},{"name":"InvalidSignature","type":"error","inputs":[{"name":"signedHash","type":"bytes32","internalType":"bytes32"}]},{"name":"RedstonePayloadMustHaveAtLeastOneDataPackage","type":"error","inputs":[]},{"name":"SignerNotAuthorised","type":"error","inputs":[{"name":"receivedSigner","type":"address","internalType":"address"}]},{"name":"TimestampFromTooLongFuture","type":"error","inputs":[{"name":"receivedTimestampSeconds","type":"uint256","internalType":"uint256"},{"name":"blockTimestamp","type":"uint256","internalType":"uint256"}]},{"name":"TimestampIsTooOld","type":"error","inputs":[{"name":"receivedTimestampSeconds","type":"uint256","internalType":"uint256"},{"name":"blockTimestamp","type":"uint256","internalType":"uint256"}]},{"name":"TimestampsMustBeEqual","type":"error","inputs":[]},{"name":"TooLargeValueByteSize","type":"error","inputs":[{"name":"valueByteSize","type":"uint256","internalType":"uint256"}]},{"name":"UpdateSkipDueToBlockTimestamp","type":"event","inputs":[{"name":"dataFeedId","type":"bytes32","indexed":false,"internalType":"bytes32"}],"anonymous":false},{"name":"UpdateSkipDueToDataTimestamp","type":"event","inputs":[{"name":"dataFeedId","type":"bytes32","indexed":false,"internalType":"bytes32"}],"anonymous":false},{"name":"UpdateSkipDueToInvalidValue","type":"event","inputs":[{"name":"dataFeedId","type":"bytes32","indexed":false,"internalType":"bytes32"}],"anonymous":false},{"name":"ValueUpdate","type":"event","inputs":[{"name":"value","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"dataFeedId","type":"bytes32","indexed":false,"internalType":"bytes32"},{"name":"updatedAt","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"aggregateValues","type":"function","inputs":[{"name":"values","type":"uint256[]","internalType":"uint256[]"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"convertDecimals","type":"function","inputs":[{"name":"","type":"bytes32","internalType":"bytes32"},{"name":"valueFromRedstonePayload","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"extractTimestampsAndAssertAllAreEqual","type":"function","inputs":[],"outputs":[{"name":"extractedTimestamp","type":"uint256","internalType":"uint256"}],"stateMutability":"pure"},{"name":"getAuthorisedSignerIndex","type":"function","inputs":[{"name":"signerAddress","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint8","internalType":"uint8"}],"stateMutability":"view"},{"name":"getBlockTimestampFromLatestUpdate","type":"function","inputs":[{"name":"dataFeedId","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"blockTimestamp","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getDataFeedIdForAsset","type":"function","inputs":[{"name":"asset","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"name":"getDataServiceId","type":"function","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"name":"getDataTimestampFromLatestUpdate","type":"function","inputs":[{"name":"dataFeedId","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"lastDataTimestamp","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getLastUpdateDetails","type":"function","inputs":[{"name":"dataFeedId","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"lastDataTimestamp","type":"uint256","internalType":"uint256"},{"name":"lastBlockTimestamp","type":"uint256","internalType":"uint256"},{"name":"lastValue","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getLastUpdateDetailsUnsafe","type":"function","inputs":[{"name":"dataFeedId","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"lastDataTimestamp","type":"uint256","internalType":"uint256"},{"name":"lastBlockTimestamp","type":"uint256","internalType":"uint256"},{"name":"lastValue","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getLastUpdateDetailsUnsafeForMany","type":"function","inputs":[{"name":"dataFeedIds","type":"bytes32[]","internalType":"bytes32[]"}],"outputs":[{"name":"detailsForFeeds","type":"tuple[]","components":[{"name":"dataTimestamp","type":"uint256","internalType":"uint256"},{"name":"blockTimestamp","type":"uint256","internalType":"uint256"},{"name":"value","type":"uint256","internalType":"uint256"}],"internalType":"struct MultiFeedAdapterWithoutRounds.LastUpdateDetails[]"}],"stateMutability":"view"},{"name":"getUnderlyingAsset","type":"function","inputs":[{"name":"gToken","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"getUnderlyingPrice","type":"function","inputs":[{"name":"gToken","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getUnderlyingPrices","type":"function","inputs":[{"name":"gTokens","type":"address[]","internalType":"address[]"}],"outputs":[{"name":"values","type":"uint256[]","internalType":"uint256[]"}],"stateMutability":"view"},{"name":"getUniqueSignersThreshold","type":"function","inputs":[],"outputs":[{"name":"","type":"uint8","internalType":"uint8"}],"stateMutability":"view"},{"name":"getValueForDataFeed","type":"function","inputs":[{"name":"dataFeedId","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"dataFeedValue","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getValuesForDataFeeds","type":"function","inputs":[{"name":"requestedDataFeedIds","type":"bytes32[]","internalType":"bytes32[]"}],"outputs":[{"name":"values","type":"uint256[]","internalType":"uint256[]"}],"stateMutability":"view"},{"name":"priceOf","type":"function","inputs":[{"name":"asset","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"priceOfETH","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"pricesOf","type":"function","inputs":[{"name":"assets","type":"address[]","internalType":"address[]"}],"outputs":[{"name":"values","type":"uint256[]","internalType":"uint256[]"}],"stateMutability":"view"},{"name":"updateDataFeedsValuesPartial","type":"function","inputs":[{"name":"dataFeedsIds","type":"bytes32[]","internalType":"bytes32[]"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"validateTimestamp","type":"function","inputs":[{"name":"receivedTimestampMilliseconds","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"view"}],"metadata":{"compiler":{"version":"0.8.17+commit.8df45f5f"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"uint256","name":"blockTimestamp","type":"uint256"}],"name":"BlockTimestampTooLarge","type":"error"},{"inputs":[],"name":"CalldataMustHaveValidPayload","type":"error"},{"inputs":[],"name":"CalldataOverOrUnderFlow","type":"error"},{"inputs":[],"name":"CanNotPickMedianOfEmptyArray","type":"error"},{"inputs":[],"name":"DataPackageTimestampMustNotBeZero","type":"error"},{"inputs":[],"name":"DataPackageTimestampsMustBeEqual","type":"error"},{"inputs":[],"name":"DataTimestampCannotBeZero","type":"error"},{"inputs":[{"internalType":"uint256","name":"dataTimestamp","type":"uint256"}],"name":"DataTimestampTooLarge","type":"error"},{"inputs":[],"name":"EachSignerMustProvideTheSameValue","type":"error"},{"inputs":[],"name":"EmptyCalldataPointersArr","type":"error"},{"inputs":[],"name":"GetDataServiceIdNotImplemented","type":"error"},{"inputs":[],"name":"IncorrectUnsignedMetadataSize","type":"error"},{"inputs":[{"internalType":"uint256","name":"receivedSignersCount","type":"uint256"},{"internalType":"uint256","name":"requiredSignersCount","type":"uint256"}],"name":"InsufficientNumberOfUniqueSigners","type":"error"},{"inputs":[],"name":"InvalidCalldataPointer","type":"error"},{"inputs":[{"internalType":"bytes32","name":"dataFeedId","type":"bytes32"},{"internalType":"uint256","name":"lastDataTimestamp","type":"uint256"},{"internalType":"uint256","name":"lastBlockTimestamp","type":"uint256"},{"internalType":"uint256","name":"lastValue","type":"uint256"}],"name":"InvalidLastUpdateDetails","type":"error"},{"inputs":[{"internalType":"bytes32","name":"signedHash","type":"bytes32"}],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"RedstonePayloadMustHaveAtLeastOneDataPackage","type":"error"},{"inputs":[{"internalType":"address","name":"receivedSigner","type":"address"}],"name":"SignerNotAuthorised","type":"error"},{"inputs":[{"internalType":"uint256","name":"receivedTimestampSeconds","type":"uint256"},{"internalType":"uint256","name":"blockTimestamp","type":"uint256"}],"name":"TimestampFromTooLongFuture","type":"error"},{"inputs":[{"internalType":"uint256","name":"receivedTimestampSeconds","type":"uint256"},{"internalType":"uint256","name":"blockTimestamp","type":"uint256"}],"name":"TimestampIsTooOld","type":"error"},{"inputs":[],"name":"TimestampsMustBeEqual","type":"error"},{"inputs":[{"internalType":"uint256","name":"valueByteSize","type":"uint256"}],"name":"TooLargeValueByteSize","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"dataFeedId","type":"bytes32"}],"name":"UpdateSkipDueToBlockTimestamp","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"dataFeedId","type":"bytes32"}],"name":"UpdateSkipDueToDataTimestamp","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"dataFeedId","type":"bytes32"}],"name":"UpdateSkipDueToInvalidValue","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"dataFeedId","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"updatedAt","type":"uint256"}],"name":"ValueUpdate","type":"event"},{"inputs":[{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"aggregateValues","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"},{"internalType":"uint256","name":"valueFromRedstonePayload","type":"uint256"}],"name":"convertDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"extractTimestampsAndAssertAllAreEqual","outputs":[{"internalType":"uint256","name":"extractedTimestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"signerAddress","type":"address"}],"name":"getAuthorisedSignerIndex","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"dataFeedId","type":"bytes32"}],"name":"getBlockTimestampFromLatestUpdate","outputs":[{"internalType":"uint256","name":"blockTimestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"getDataFeedIdForAsset","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDataServiceId","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"dataFeedId","type":"bytes32"}],"name":"getDataTimestampFromLatestUpdate","outputs":[{"internalType":"uint256","name":"lastDataTimestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"dataFeedId","type":"bytes32"}],"name":"getLastUpdateDetails","outputs":[{"internalType":"uint256","name":"lastDataTimestamp","type":"uint256"},{"internalType":"uint256","name":"lastBlockTimestamp","type":"uint256"},{"internalType":"uint256","name":"lastValue","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"dataFeedId","type":"bytes32"}],"name":"getLastUpdateDetailsUnsafe","outputs":[{"internalType":"uint256","name":"lastDataTimestamp","type":"uint256"},{"internalType":"uint256","name":"lastBlockTimestamp","type":"uint256"},{"internalType":"uint256","name":"lastValue","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"dataFeedIds","type":"bytes32[]"}],"name":"getLastUpdateDetailsUnsafeForMany","outputs":[{"components":[{"internalType":"uint256","name":"dataTimestamp","type":"uint256"},{"internalType":"uint256","name":"blockTimestamp","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct MultiFeedAdapterWithoutRounds.LastUpdateDetails[]","name":"detailsForFeeds","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"gToken","type":"address"}],"name":"getUnderlyingAsset","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"gToken","type":"address"}],"name":"getUnderlyingPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"gTokens","type":"address[]"}],"name":"getUnderlyingPrices","outputs":[{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getUniqueSignersThreshold","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"dataFeedId","type":"bytes32"}],"name":"getValueForDataFeed","outputs":[{"internalType":"uint256","name":"dataFeedValue","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"requestedDataFeedIds","type":"bytes32[]"}],"name":"getValuesForDataFeeds","outputs":[{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"priceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceOfETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"assets","type":"address[]"}],"name":"pricesOf","outputs":[{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"dataFeedsIds","type":"bytes32[]"}],"name":"updateDataFeedsValuesPartial","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"receivedTimestampMilliseconds","type":"uint256"}],"name":"validateTimestamp","outputs":[],"stateMutability":"view","type":"function"}],"devdoc":{"kind":"dev","methods":{"aggregateValues(uint256[])":{"details":"This function may be overridden by the child consumer contract. It should aggregate values from different signers to a single uint value. By default, it calculates the median value","params":{"values":"An array of uint256 values from different signers"},"returns":{"_0":"Result of the aggregation in the form of a single number"}},"getDataServiceId()":{"details":"This function must be implemented by the child consumer contract. It should return dataServiceId which DataServiceWrapper will use if not provided explicitly . If not overridden, value will always have to be provided explicitly in DataServiceWrapper.","returns":{"_0":"dataServiceId being consumed by contract"}},"getUniqueSignersThreshold()":{"details":"This function must be implemented by the child consumer contract.","returns":{"_0":"The minimum required value of unique authorised signers"}},"validateTimestamp(uint256)":{"details":"This function may be overridden by the child consumer contract. It should validate the timestamp against the current time (block.timestamp) It should revert with a helpful message if the timestamp is not valid","params":{"receivedTimestampMilliseconds":"Timestamp extracted from calldata"}}},"version":1},"userdoc":{"kind":"user","methods":{"getDataFeedIdForAsset(address)":{"notice":"We can connect manager contract here or implement it directly here By default, users will be able to use data feed identifiers (casted to addresses) in layerbank functions"},"updateDataFeedsValuesPartial(bytes32[])":{"notice":"This function allows to update any set of data feeds"}},"version":1}},"settings":{"compilationTarget":{"contracts/stableMultiFeed/StableMultiFeedAdapterWithoutRoundsV1.sol":"StableMultiFeedAdapterWithoutRoundsV1"},"evmVersion":"london","libraries":{},"metadata":{"bytecodeHash":"ipfs"},"optimizer":{"enabled":true,"runs":10000},"remappings":[]},"sources":{"@redstone-finance/evm-adapters/contracts/custom-integrations/layerbank/ILToken.sol":{"keccak256":"0x1f70a93199a1b38b844148a085947aa451ed34da81b10540ac2d32300a014cd1","license":"BUSL-1.1","urls":["bzz-raw://b5f10875842d52d2c72d93d2667e0e23318b24e21f7c209d983af74d0955a053","dweb:/ipfs/QmehQv8CkRsbafXKL19LXGrbZTSP8MYaWRgBTgCanR7AUf"]},"@redstone-finance/evm-adapters/contracts/custom-integrations/layerbank/IPriceCalculator.sol":{"keccak256":"0xf2e0a00843fb9508f50182cfc3a52aec0b0fbf7d8a92aa2e1c151c15cc0c5d70","license":"UNLICENSED","urls":["bzz-raw://38dd12eb3b5f03b595531be2be080fe7e9f0de2aa6457ac117edc842004cd056","dweb:/ipfs/QmabAELV8kAtFswgPVAFeSZjq25riywYRRzQRHS6LUZTtX"]},"@redstone-finance/evm-adapters/contracts/price-feeds/data-services/MultiFeedAdapterWithoutRoundsPrimaryProd.sol":{"keccak256":"0x3a5f066114894081fc74122cb58760435914cdabdb85cabcbeb7577caef1f055","license":"BUSL-1.1","urls":["bzz-raw://b1bca980f809f91878da06dd8416cf12ba8018b535251fa4a59b4efadf9bccb2","dweb:/ipfs/QmSQiuzSiYXwAYi9mQEVtveQ8EVyZnhVvg4mqNj6WBcsK4"]},"@redstone-finance/evm-adapters/contracts/price-feeds/interfaces/IMultiFeedAdapter.sol":{"keccak256":"0xb2d8ab6365318f15ab083c6979a22f65f3aa442b64c898b7b629f8b6465e4e6e","license":"BUSL-1.1","urls":["bzz-raw://bf1c39202d5278e22e66f9c98cc4f2ff950bf4d59bdfd8c468c8e46638009d13","dweb:/ipfs/QmZK5Nu5ZDvRX8ZoXFdaPHrcSnWo3Df3AsnY26AeF8yFru"]},"@redstone-finance/evm-adapters/contracts/price-feeds/without-rounds/MultiFeedAdapterWithoutRounds.sol":{"keccak256":"0xe5c9a61df4fa3767ead69c3acb9a4514858a9d3b5efb3608c64b9bbae62b3f5e","license":"BUSL-1.1","urls":["bzz-raw://5cd0823b560ea0d945aaf76d553903ebf61f9d87a75730eeb1dd8c8da3c53f4e","dweb:/ipfs/QmUGU2oQcRFyH7qUPJf6WsDmBcUiwrnQ8wgcYyNWHnPitk"]},"@redstone-finance/evm-connector/contracts/core/CalldataExtractor.sol":{"keccak256":"0x7fb8409876e648a1674f2d61e5331ed909d5de65cd03ba5e2f1ca91ea282b0a6","license":"BUSL-1.1","urls":["bzz-raw://e80226c4327c7c648b823727e72dc04ea3d746784d5362e92a94b0878ff08dc2","dweb:/ipfs/QmfAVb9dc9QcECUmP6iMbc7BDGXb7A3Pd9nxrr2eFucy9t"]},"@redstone-finance/evm-connector/contracts/core/RedstoneConstants.sol":{"keccak256":"0x559f114791f291cf4d511833621e6896014138a74944b684a6c9268443ca0715","license":"BUSL-1.1","urls":["bzz-raw://d18cd03beee47c30030477fc93d27fdd706abd2e990651def0b1bf92c88be71d","dweb:/ipfs/QmPTUdADfddBkqjxgabH9vFbNPoVJcarqjP2oKK25NBLuj"]},"@redstone-finance/evm-connector/contracts/core/RedstoneConsumerBase.sol":{"keccak256":"0xba6efc19580f2a6a5c2e48a9513929b43127879d3972dee31db976653234cd76","license":"BUSL-1.1","urls":["bzz-raw://c7d35b671884f58bf6ce2ec5bfd569dc0c8543efcf2b7a049e1f7e1d9b40f1b5","dweb:/ipfs/QmeSMCisNXmGg4AjGjfnx5Cjgnmr4CpJXW6D5R9ArtzBLB"]},"@redstone-finance/evm-connector/contracts/core/RedstoneConsumerNumericBase.sol":{"keccak256":"0x60562e5dccb3807e6e3e0966a96285973977b82859100a5a012dfc6d2f07b300","license":"BUSL-1.1","urls":["bzz-raw://da4a0a2ccfb11bdd322c76e24726fed71d5f91148391d860105ff9a864a7cf34","dweb:/ipfs/Qmd4wWaDwisrMPijz6QgG8RXjVumMo6TtZsnW9oyXa8u9e"]},"@redstone-finance/evm-connector/contracts/core/RedstoneDefaultsLib.sol":{"keccak256":"0x2671397b80164895fde099ab4b5576de2d009fddf72e5185659e4e5fbc34b5d5","license":"BUSL-1.1","urls":["bzz-raw://fd6b47d547d0bb6e580ade5544553eaf445f694bc1fdd2b99d3db8a994102af1","dweb:/ipfs/QmeQqdHDG4Y7kJeuGfWMC5L9w8yazGJ5Q67Y4TShdSjspG"]},"@redstone-finance/evm-connector/contracts/libs/BitmapLib.sol":{"keccak256":"0x4de3defbeb70cd59ce65dbc0be3d4620b4400cc2a665e64501524dc87d807635","license":"MIT","urls":["bzz-raw://15dba9bfd3f2d4e9d4e1b04cbd7a7bb2ec78c260e985e0a5d8017d40d606ee6c","dweb:/ipfs/QmeccN2ojkQZwgqRwexAUzMchrkxutodsp95EsmnVVxpEq"]},"@redstone-finance/evm-connector/contracts/libs/NumericArrayLib.sol":{"keccak256":"0xea7a225601d873602c18add7d08c932865a434c16da2072cf9637a7783facd65","license":"MIT","urls":["bzz-raw://d00b6afb9ca716404dd7c14629b60079d3e85f10c935af2bb19bab8f1ef556b6","dweb:/ipfs/QmcuAWYUvtQSJMRksnWpSPmTC9jaMtuYagKWzZLJsnyomv"]},"@redstone-finance/evm-connector/contracts/libs/SignatureLib.sol":{"keccak256":"0x8f86524f555c4e718eafba4b3a2be62e1f2e16ed6a11ffdec8c3e9dabc9e96c6","license":"MIT","urls":["bzz-raw://f3be8952cc6995d5742a5002c63847e7183706d9d3e39093898dc2921e4e0177","dweb:/ipfs/QmcSXyTzEVddJDrdDyqZrNUqboZUYxDjKZSV89gBYg8SbE"]},"contracts/__addresses/Addresses.sol":{"keccak256":"0x6d88dba6de934537353541aec16b7b166367f9747a169778f49f3ee2321ec39c","license":"BUSL-1.1","urls":["bzz-raw://f49deda2715b524008a8e6d90787c3aa7fee7360e5ed4344499834b4888a8bc2","dweb:/ipfs/Qmejqi7BDTYddZs3FWm8HnyseudLBALaAiJW7rJZLV3YxZ"]},"contracts/stableMultiFeed/StableMultiFeedAdapterWithoutRoundsV1.sol":{"keccak256":"0x962c85374e1ecec115b158b5a3b64e181d2f515e69a5975e8cf2cf79917bd4d3","license":"BUSL-1.1","urls":["bzz-raw://78e62e36adf99c496b31ebc3bb4616fe8b39dc391c3fb160d37a08a2ecd08ab0","dweb:/ipfs/QmYSmcksoBwtyFebi78Tdfj7iUrM455kseTnGtEY3Ls2JL"]}},"version":1},"storageLayout":{"types":null,"storage":[]},"transientStorageLayout":null,"userdoc":{"kind":"user","methods":{"getDataFeedIdForAsset(address)":{"notice":"We can connect manager contract here or implement it directly here By default, users will be able to use data feed identifiers (casted to addresses) in layerbank functions"},"updateDataFeedsValuesPartial(bytes32[])":{"notice":"This function allows to update any set of data feeds"}},"version":1},"devdoc":{"kind":"dev","methods":{"getDataServiceId()":{"details":"This function must be implemented by the child consumer contract. It should return dataServiceId which DataServiceWrapper will use if not provided explicitly . If not overridden, value will always have to be provided explicitly in DataServiceWrapper.","returns":{"_0":"dataServiceId being consumed by contract"}},"aggregateValues(uint256[])":{"params":{"values":"An array of uint256 values from different signers"},"details":"This function may be overridden by the child consumer contract. It should aggregate values from different signers to a single uint value. By default, it calculates the median value","returns":{"_0":"Result of the aggregation in the form of a single number"}},"validateTimestamp(uint256)":{"params":{"receivedTimestampMilliseconds":"Timestamp extracted from calldata"},"details":"This function may be overridden by the child consumer contract. It should validate the timestamp against the current time (block.timestamp) It should revert with a helpful message if the timestamp is not valid"},"getUniqueSignersThreshold()":{"details":"This function must be implemented by the child consumer contract.","returns":{"_0":"The minimum required value of unique authorised signers"}}},"version":1},"sourceIds":{"contracts/__addresses/Addresses.sol":{"id":13},"@redstone-finance/evm-connector/contracts/libs/BitmapLib.sol":{"id":10},"@redstone-finance/evm-connector/contracts/libs/SignatureLib.sol":{"id":12},"@redstone-finance/evm-connector/contracts/libs/NumericArrayLib.sol":{"id":11},"contracts/stableMultiFeed/StableMultiFeedAdapterWithoutRoundsV1.sol":{"id":14},"@redstone-finance/evm-connector/contracts/core/CalldataExtractor.sol":{"id":5},"@redstone-finance/evm-connector/contracts/core/RedstoneConstants.sol":{"id":6},"@redstone-finance/evm-connector/contracts/core/RedstoneDefaultsLib.sol":{"id":9},"@redstone-finance/evm-connector/contracts/core/RedstoneConsumerBase.sol":{"id":7},"@redstone-finance/evm-connector/contracts/core/RedstoneConsumerNumericBase.sol":{"id":8},"@redstone-finance/evm-adapters/contracts/custom-integrations/layerbank/ILToken.sol":{"id":0},"@redstone-finance/evm-adapters/contracts/price-feeds/interfaces/IMultiFeedAdapter.sol":{"id":3},"@redstone-finance/evm-adapters/contracts/custom-integrations/layerbank/IPriceCalculator.sol":{"id":1},"@redstone-finance/evm-adapters/contracts/price-feeds/without-rounds/MultiFeedAdapterWithoutRounds.sol":{"id":4},"@redstone-finance/evm-adapters/contracts/price-feeds/data-services/MultiFeedAdapterWithoutRoundsPrimaryProd.sol":{"id":2}},"additionalInput":null,"stdJsonInput":{"sources":{"contracts/__addresses/Addresses.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\n\npragma solidity ^0.8.4;\n\nlibrary OldGelatoAddress {\n  address constant public ADDR = 0xc4D1AE5E796E6d7561cdc8335F85e6B57a36e097;\n}\n\nlibrary GelatoAddress {\n  address constant public ADDR = 0xCD6BfDA4D95d5C0f3f2882dC221D792392c99714;\n}\n"},"@redstone-finance/evm-connector/contracts/libs/BitmapLib.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.17;\n\nlibrary BitmapLib {\n  function setBitInBitmap(uint256 bitmap, uint256 bitIndex) internal pure returns (uint256) {\n    return bitmap | (1 << bitIndex);\n  }\n\n  function getBitFromBitmap(uint256 bitmap, uint256 bitIndex) internal pure returns (bool) {\n    uint256 bitAtIndex = bitmap & (1 << bitIndex);\n    return bitAtIndex > 0;\n  }\n}\n"},"@redstone-finance/evm-connector/contracts/libs/SignatureLib.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.17;\n\nlibrary SignatureLib {\n  uint256 constant ECDSA_SIG_R_BS = 32;\n  uint256 constant ECDSA_SIG_S_BS = 32;\n  \n  // Constants for ECDSA recovery ids\n  uint8 constant RECOVERY_ID_27 = 27;\n  uint8 constant RECOVERY_ID_28 = 28;\n\n  // Constant representing half of the curve order (secp256k1n / 2)\n  uint256 constant HALF_CURVE_ORDER = 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0;\n\n  error InvalidSignature(bytes32 signedHash);\n\n  function recoverSignerAddress(bytes32 signedHash, uint256 signatureCalldataNegativeOffset)\n    internal\n    pure\n    returns (address signerAddress)\n  {\n    bytes32 r;\n    bytes32 s;\n    uint8 v;\n    assembly {\n      let signatureCalldataStartPos := sub(calldatasize(), signatureCalldataNegativeOffset)\n      r := calldataload(signatureCalldataStartPos)\n      signatureCalldataStartPos := add(signatureCalldataStartPos, ECDSA_SIG_R_BS)\n      s := calldataload(signatureCalldataStartPos)\n      signatureCalldataStartPos := add(signatureCalldataStartPos, ECDSA_SIG_S_BS)\n      v := byte(0, calldataload(signatureCalldataStartPos)) // last byte of the signature memory array\n    }\n    // 27 and 28 are the only two valid recovery ids used for ECDSA signatures in Ethereum\n    if (v != RECOVERY_ID_27 && v != RECOVERY_ID_28) {\n      revert InvalidSignature(signedHash);\n    }\n    // Ensure that the s value is in the lower half of the secp256k1 curve order (s < secp256k1n/2+1)\n    // to avoid signature malleability issues.\n    if (uint256(s) > HALF_CURVE_ORDER) {\n      revert InvalidSignature(signedHash);\n    }\n    signerAddress = ecrecover(signedHash, v, r, s);\n    if (signerAddress == address(0)) {\n      revert InvalidSignature(signedHash);\n    }\n  }\n}\n"},"@redstone-finance/evm-connector/contracts/libs/NumericArrayLib.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.17;\n\nlibrary NumericArrayLib {\n  // This function sort array in memory using bubble sort algorithm,\n  // which performs even better than quick sort for small arrays\n\n  uint256 constant BYTES_ARR_LEN_VAR_BS = 32;\n  uint256 constant UINT256_VALUE_BS = 32;\n\n  error CanNotPickMedianOfEmptyArray();\n\n  // This function modifies the array\n  function pickMedian(uint256[] memory arr) internal pure returns (uint256) {\n    if (arr.length == 2) {\n      return (arr[0] + arr[1]) / 2;\n    }\n    if (arr.length == 0) {\n      revert CanNotPickMedianOfEmptyArray();\n    }\n    sort(arr);\n    uint256 middleIndex = arr.length / 2;\n    if (arr.length % 2 == 0) {\n      uint256 sum = arr[middleIndex - 1] + arr[middleIndex];\n      return sum / 2;\n    } else {\n      return arr[middleIndex];\n    }\n  }\n\n  function sort(uint256[] memory arr) internal pure {\n    assembly {\n      let arrLength := mload(arr)\n      let valuesPtr := add(arr, BYTES_ARR_LEN_VAR_BS)\n      let endPtr := add(valuesPtr, mul(arrLength, UINT256_VALUE_BS))\n      for {\n        let arrIPtr := valuesPtr\n      } lt(arrIPtr, endPtr) {\n        arrIPtr := add(arrIPtr, UINT256_VALUE_BS) // arrIPtr += 32\n      } {\n        for {\n          let arrJPtr := valuesPtr\n        } lt(arrJPtr, arrIPtr) {\n          arrJPtr := add(arrJPtr, UINT256_VALUE_BS) // arrJPtr += 32\n        } {\n          let arrI := mload(arrIPtr)\n          let arrJ := mload(arrJPtr)\n          if lt(arrI, arrJ) {\n            mstore(arrIPtr, arrJ)\n            mstore(arrJPtr, arrI)\n          }\n        }\n      }\n    }\n  }\n}\n"},"contracts/stableMultiFeed/StableMultiFeedAdapterWithoutRoundsV1.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\n\npragma solidity ^0.8.17;\n\nimport {OldGelatoAddress, GelatoAddress} from \"../__addresses/Addresses.sol\";\nimport {MultiFeedAdapterWithoutRoundsPrimaryProd} from \"@redstone-finance/evm-adapters/contracts/price-feeds/data-services/MultiFeedAdapterWithoutRoundsPrimaryProd.sol\";\n\ncontract StableMultiFeedAdapterWithoutRoundsV1 is\n  MultiFeedAdapterWithoutRoundsPrimaryProd\n{\n  address internal constant MAIN_UPDATER_ADDRESS =\n    0x01726847a184fff6f65AC14A322108260B51e81f;\n  address internal constant FALLBACK_UPDATER_ADDRESS =\n    0x3927a0Ccb6D4D92aa0c6037d00393940B2295968;\n  address internal constant MANUAL_UPDATER_ADDRESS =\n    0xae8474802eCb7D2c03eaB7FE975B1dC65F90d46C;\n\n  function _validateBlockTimestamp(\n    uint256 lastBlockTimestamp\n  ) internal view virtual override returns (bool) {\n    if (\n      msg.sender == MAIN_UPDATER_ADDRESS ||\n      msg.sender == FALLBACK_UPDATER_ADDRESS ||\n      msg.sender == MANUAL_UPDATER_ADDRESS ||\n      msg.sender == GelatoAddress.ADDR ||\n      msg.sender == OldGelatoAddress.ADDR\n    ) {\n      return block.timestamp > lastBlockTimestamp;\n    }\n    return false;\n  }\n}\n"},"@redstone-finance/evm-connector/contracts/core/CalldataExtractor.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\n\npragma solidity ^0.8.17;\n\nimport \"./RedstoneConstants.sol\";\n\n/**\n * @title The base contract with the main logic of data extraction from calldata\n * @author The Redstone Oracles team\n * @dev This contract was created to reuse the same logic in the RedstoneConsumerBase\n * and the ProxyConnector contracts\n */\ncontract CalldataExtractor is RedstoneConstants {\n\n  error DataPackageTimestampMustNotBeZero();\n  error DataPackageTimestampsMustBeEqual();\n  error RedstonePayloadMustHaveAtLeastOneDataPackage();\n  error TooLargeValueByteSize(uint256 valueByteSize);\n\n  function extractTimestampsAndAssertAllAreEqual() public pure returns (uint256 extractedTimestamp) {\n    uint256 calldataNegativeOffset = _extractByteSizeOfUnsignedMetadata();\n    uint256 dataPackagesCount;\n    (dataPackagesCount, calldataNegativeOffset) = _extractDataPackagesCountFromCalldata(calldataNegativeOffset);\n\n    if (dataPackagesCount == 0) {\n      revert RedstonePayloadMustHaveAtLeastOneDataPackage();\n    }\n\n    for (uint256 dataPackageIndex = 0; dataPackageIndex < dataPackagesCount; dataPackageIndex++) {\n      uint256 dataPackageByteSize = _getDataPackageByteSize(calldataNegativeOffset);\n\n      // Extracting timestamp for the current data package\n      uint48 dataPackageTimestamp; // uint48, because timestamp uses 6 bytes\n      uint256 timestampNegativeOffset = (calldataNegativeOffset + TIMESTAMP_NEGATIVE_OFFSET_IN_DATA_PACKAGE_WITH_STANDARD_SLOT_BS);\n      uint256 timestampOffset = msg.data.length - timestampNegativeOffset;\n      assembly {\n        dataPackageTimestamp := calldataload(timestampOffset)\n      }\n\n      if (dataPackageTimestamp == 0) {\n        revert DataPackageTimestampMustNotBeZero();\n      }\n\n      if (extractedTimestamp == 0) {\n        extractedTimestamp = dataPackageTimestamp;\n      } else if (dataPackageTimestamp != extractedTimestamp) {\n        revert DataPackageTimestampsMustBeEqual();\n      }\n\n      calldataNegativeOffset += dataPackageByteSize;\n    }\n  }\n\n  function _getDataPackageByteSize(uint256 calldataNegativeOffset) internal pure returns (uint256) {\n    (\n      uint256 dataPointsCount,\n      uint256 eachDataPointValueByteSize\n    ) = _extractDataPointsDetailsForDataPackage(calldataNegativeOffset);\n\n    return\n      dataPointsCount *\n      (DATA_POINT_SYMBOL_BS + eachDataPointValueByteSize) +\n      DATA_PACKAGE_WITHOUT_DATA_POINTS_BS;\n  }\n\n  function _extractByteSizeOfUnsignedMetadata() internal pure returns (uint256) {\n    // Checking if the calldata ends with the RedStone marker\n    bool hasValidRedstoneMarker;\n    assembly {\n      let calldataLast32Bytes := calldataload(sub(calldatasize(), STANDARD_SLOT_BS))\n      hasValidRedstoneMarker := eq(\n        REDSTONE_MARKER_MASK,\n        and(calldataLast32Bytes, REDSTONE_MARKER_MASK)\n      )\n    }\n    if (!hasValidRedstoneMarker) {\n      revert CalldataMustHaveValidPayload();\n    }\n\n    // Using uint24, because unsigned metadata byte size number has 3 bytes\n    uint24 unsignedMetadataByteSize;\n    if (REDSTONE_MARKER_BS_PLUS_STANDARD_SLOT_BS > msg.data.length) {\n      revert CalldataOverOrUnderFlow();\n    }\n    assembly {\n      unsignedMetadataByteSize := calldataload(\n        sub(calldatasize(), REDSTONE_MARKER_BS_PLUS_STANDARD_SLOT_BS)\n      )\n    }\n    uint256 calldataNegativeOffset = unsignedMetadataByteSize\n      + UNSIGNED_METADATA_BYTE_SIZE_BS\n      + REDSTONE_MARKER_BS;\n    if (calldataNegativeOffset + DATA_PACKAGES_COUNT_BS > msg.data.length) {\n      revert IncorrectUnsignedMetadataSize();\n    }\n    return calldataNegativeOffset;\n  }\n\n  // We return uint16, because unsigned metadata byte size number has 2 bytes\n  function _extractDataPackagesCountFromCalldata(uint256 calldataNegativeOffset)\n    internal\n    pure\n    returns (uint16 dataPackagesCount, uint256 nextCalldataNegativeOffset)\n  {\n    uint256 calldataNegativeOffsetWithStandardSlot = calldataNegativeOffset + STANDARD_SLOT_BS;\n    if (calldataNegativeOffsetWithStandardSlot > msg.data.length) {\n      revert CalldataOverOrUnderFlow();\n    }\n    assembly {\n      dataPackagesCount := calldataload(\n        sub(calldatasize(), calldataNegativeOffsetWithStandardSlot)\n      )\n    }\n    return (dataPackagesCount, calldataNegativeOffset + DATA_PACKAGES_COUNT_BS);\n  }\n\n  function _extractDataPointValueAndDataFeedId(\n    uint256 dataPointNegativeOffset,\n    uint256 dataPointValueByteSize\n  ) internal pure virtual returns (bytes32 dataPointDataFeedId, uint256 dataPointValue) {\n    uint256 dataPointCalldataOffset = msg.data.length - dataPointNegativeOffset;\n    assembly {\n      dataPointDataFeedId := calldataload(dataPointCalldataOffset)\n      dataPointValue := calldataload(add(dataPointCalldataOffset, DATA_POINT_SYMBOL_BS))\n    }\n    if (dataPointValueByteSize >= 33) {\n      revert TooLargeValueByteSize(dataPointValueByteSize);\n    }\n    unchecked {\n      dataPointValue = dataPointValue >> (32 - dataPointValueByteSize) * 8; \n    }\n  }\n\n  function _extractDataPointsDetailsForDataPackage(uint256 calldataNegativeOffsetForDataPackage)\n    internal\n    pure\n    returns (uint256 dataPointsCount, uint256 eachDataPointValueByteSize)\n  {\n    // Using uint24, because data points count byte size number has 3 bytes\n    uint24 dataPointsCount_;\n\n    // Using uint32, because data point value byte size has 4 bytes\n    uint32 eachDataPointValueByteSize_;\n\n    // Extract data points count\n    uint256 calldataOffset = msg.data.length - (calldataNegativeOffsetForDataPackage + SIG_BS + STANDARD_SLOT_BS);\n    assembly {\n      dataPointsCount_ := calldataload(calldataOffset)\n    }\n\n    // Extract each data point value size\n    calldataOffset = calldataOffset - DATA_POINTS_COUNT_BS;\n    assembly {\n      eachDataPointValueByteSize_ := calldataload(calldataOffset)\n    }\n\n    // Prepare returned values\n    dataPointsCount = dataPointsCount_;\n    eachDataPointValueByteSize = eachDataPointValueByteSize_;\n  }\n}\n"},"@redstone-finance/evm-connector/contracts/core/RedstoneConstants.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\n\npragma solidity ^0.8.17;\n\n/**\n * @title The base contract with helpful constants\n * @author The Redstone Oracles team\n * @dev It mainly contains redstone-related values, which improve readability\n * of other contracts (e.g. CalldataExtractor and RedstoneConsumerBase)\n */\ncontract RedstoneConstants {\n  // === Abbreviations ===\n  // BS - Bytes size\n  // PTR - Pointer (memory location)\n  // SIG - Signature\n\n  // Solidity and YUL constants\n  uint256 internal constant STANDARD_SLOT_BS = 32;\n  uint256 internal constant FREE_MEMORY_PTR = 0x40;\n  uint256 internal constant BYTES_ARR_LEN_VAR_BS = 32;\n  uint256 internal constant REVERT_MSG_OFFSET = 68; // Revert message structure described here: https://ethereum.stackexchange.com/a/66173/106364\n  uint256 internal constant STRING_ERR_MESSAGE_MASK = 0x08c379a000000000000000000000000000000000000000000000000000000000;\n\n  // RedStone protocol consts\n  uint256 internal constant SIG_BS = 65;\n  uint256 internal constant TIMESTAMP_BS = 6;\n  uint256 internal constant DATA_PACKAGES_COUNT_BS = 2;\n  uint256 internal constant DATA_POINTS_COUNT_BS = 3;\n  uint256 internal constant DATA_POINT_VALUE_BYTE_SIZE_BS = 4;\n  uint256 internal constant DATA_POINT_SYMBOL_BS = 32;\n  uint256 internal constant UNSIGNED_METADATA_BYTE_SIZE_BS = 3;\n  uint256 internal constant REDSTONE_MARKER_BS = 9; // byte size of 0x000002ed57011e0000\n  uint256 internal constant REDSTONE_MARKER_MASK = 0x0000000000000000000000000000000000000000000000000002ed57011e0000;\n\n  // Derived values (based on consts)\n  uint256 internal constant TIMESTAMP_NEGATIVE_OFFSET_IN_DATA_PACKAGE_WITH_STANDARD_SLOT_BS = 104; // SIG_BS + DATA_POINTS_COUNT_BS + DATA_POINT_VALUE_BYTE_SIZE_BS + STANDARD_SLOT_BS\n  uint256 internal constant DATA_PACKAGE_WITHOUT_DATA_POINTS_BS = 78; // DATA_POINT_VALUE_BYTE_SIZE_BS + TIMESTAMP_BS + DATA_POINTS_COUNT_BS + SIG_BS\n  uint256 internal constant DATA_PACKAGE_WITHOUT_DATA_POINTS_AND_SIG_BS = 13; // DATA_POINT_VALUE_BYTE_SIZE_BS + TIMESTAMP_BS + DATA_POINTS_COUNT_BS\n  uint256 internal constant REDSTONE_MARKER_BS_PLUS_STANDARD_SLOT_BS = 41; // REDSTONE_MARKER_BS + STANDARD_SLOT_BS\n\n  // Error messages\n  error CalldataOverOrUnderFlow();\n  error IncorrectUnsignedMetadataSize();\n  error InsufficientNumberOfUniqueSigners(uint256 receivedSignersCount, uint256 requiredSignersCount);\n  error EachSignerMustProvideTheSameValue();\n  error EmptyCalldataPointersArr();\n  error InvalidCalldataPointer();\n  error CalldataMustHaveValidPayload();\n  error SignerNotAuthorised(address receivedSigner);\n  error DataTimestampCannotBeZero();\n  error TimestampsMustBeEqual();\n}\n"},"@redstone-finance/evm-connector/contracts/core/RedstoneDefaultsLib.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\n\npragma solidity ^0.8.17;\n\nimport \"../libs/NumericArrayLib.sol\";\n\n/**\n * @title Default implementations of virtual redstone consumer base functions\n * @author The Redstone Oracles team\n */\nlibrary RedstoneDefaultsLib {\n  uint256 constant DEFAULT_MAX_DATA_TIMESTAMP_DELAY_SECONDS = 3 minutes;\n  uint256 constant DEFAULT_MAX_DATA_TIMESTAMP_AHEAD_SECONDS = 1 minutes;\n\n  error TimestampFromTooLongFuture(uint256 receivedTimestampSeconds, uint256 blockTimestamp);\n  error TimestampIsTooOld(uint256 receivedTimestampSeconds, uint256 blockTimestamp);\n\n  function validateTimestamp(uint256 receivedTimestampMilliseconds) internal view {\n    // Getting data timestamp from future seems quite unlikely\n    // But we've already spent too much time with different cases\n    // Where block.timestamp was less than dataPackage.timestamp.\n    // Some blockchains may case this problem as well.\n    // That's why we add MAX_BLOCK_TIMESTAMP_DELAY\n    // and allow data \"from future\" but with a small delay\n    uint256 receivedTimestampSeconds = receivedTimestampMilliseconds / 1000;\n\n    if (block.timestamp < receivedTimestampSeconds) {\n      if ((receivedTimestampSeconds - block.timestamp) > DEFAULT_MAX_DATA_TIMESTAMP_AHEAD_SECONDS) {\n        revert TimestampFromTooLongFuture(receivedTimestampSeconds, block.timestamp);\n      }\n    } else if ((block.timestamp - receivedTimestampSeconds) > DEFAULT_MAX_DATA_TIMESTAMP_DELAY_SECONDS) {\n      revert TimestampIsTooOld(receivedTimestampSeconds, block.timestamp);\n    }\n  }\n\n  function aggregateValues(uint256[] memory values) internal pure returns (uint256) {\n    return NumericArrayLib.pickMedian(values);\n  }\n}\n"},"@redstone-finance/evm-connector/contracts/core/RedstoneConsumerBase.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\n\npragma solidity ^0.8.17;\n\nimport \"./RedstoneConstants.sol\";\nimport \"./RedstoneDefaultsLib.sol\";\nimport \"./CalldataExtractor.sol\";\nimport \"../libs/BitmapLib.sol\";\nimport \"../libs/SignatureLib.sol\";\n\n/**\n * @title The base contract with the main Redstone logic\n * @author The Redstone Oracles team\n * @dev Do not use this contract directly in consumer contracts, take a\n * look at `RedstoneConsumerNumericBase` and `RedstoneConsumerBytesBase` instead\n */\nabstract contract RedstoneConsumerBase is CalldataExtractor {\n\n  error GetDataServiceIdNotImplemented();\n\n  /* ========== VIRTUAL FUNCTIONS (MAY BE OVERRIDDEN IN CHILD CONTRACTS) ========== */\n\n  /**\n   * @dev This function must be implemented by the child consumer contract.\n   * It should return dataServiceId which DataServiceWrapper will use if not provided explicitly .\n   * If not overridden, value will always have to be provided explicitly in DataServiceWrapper.\n   * @return dataServiceId being consumed by contract\n   */\n  function getDataServiceId() public view virtual returns (string memory) {\n    revert GetDataServiceIdNotImplemented();\n  }\n\n  /**\n   * @dev This function must be implemented by the child consumer contract.\n   * It should return a unique index for a given signer address if the signer\n   * is authorised, otherwise it should revert\n   * @param receivedSigner The address of a signer, recovered from ECDSA signature\n   * @return Unique index for a signer in the range [0..255]\n   */\n  function getAuthorisedSignerIndex(address receivedSigner) public view virtual returns (uint8);\n\n  /**\n   * @dev This function may be overridden by the child consumer contract.\n   * It should validate the timestamp against the current time (block.timestamp)\n   * It should revert with a helpful message if the timestamp is not valid\n   * @param receivedTimestampMilliseconds Timestamp extracted from calldata\n   */\n  function validateTimestamp(uint256 receivedTimestampMilliseconds) public view virtual {\n    RedstoneDefaultsLib.validateTimestamp(receivedTimestampMilliseconds);\n  }\n\n  /**\n   * @dev This function must be implemented by the child consumer contract.\n   * @return The minimum required value of unique authorised signers\n   */\n  function getUniqueSignersThreshold() public view virtual returns (uint8);\n\n  /**\n   * @dev This function may be overridden by the child consumer contract.\n   * It should aggregate values from different signers to a single uint value.\n   * By default, it calculates the median value\n   * @param values An array of uint256 values from different signers\n   * @return Result of the aggregation in the form of a single number\n   */\n  function aggregateValues(uint256[] memory values) public view virtual returns (uint256) {\n    return RedstoneDefaultsLib.aggregateValues(values);\n  }\n\n  /* ========== FUNCTIONS WITH IMPLEMENTATION (CAN NOT BE OVERRIDDEN) ========== */\n\n  /**\n   * @dev This is an internal helpful function for secure extraction oracle values\n   * from the tx calldata. Security is achieved by signatures verification, timestamp\n   * validation, and aggregating values from different authorised signers into a\n   * single numeric value. If any of the required conditions (e.g. packages with different \n   * timestamps or insufficient number of authorised signers) do not match, the function \n   * will revert.\n   *\n   * Note! You should not call this function in a consumer contract. You can use\n   * `getOracleNumericValuesFromTxMsg` or `getOracleNumericValueFromTxMsg` instead.\n   *\n   * @param dataFeedIds An array of unique data feed identifiers\n   * @return An array of the extracted and verified oracle values in the same order\n   * as they are requested in dataFeedIds array\n   * @return dataPackagesTimestamp timestamp equal for all data packages\n   */\n  function _securelyExtractOracleValuesAndTimestampFromTxMsg(bytes32[] memory dataFeedIds)\n    internal\n    view\n    returns (uint256[] memory, uint256 dataPackagesTimestamp)\n  {\n    // Initializing helpful variables and allocating memory\n    uint256[] memory uniqueSignerCountForDataFeedIds = new uint256[](dataFeedIds.length);\n    uint256[] memory signersBitmapForDataFeedIds = new uint256[](dataFeedIds.length);\n    uint256[][] memory valuesForDataFeeds = new uint256[][](dataFeedIds.length);\n    uint256 uniqueSignersThreshold = getUniqueSignersThreshold();\n    for (uint256 i = 0; i < dataFeedIds.length;) {\n      // The line below is commented because newly allocated arrays are filled with zeros\n      // But we left it for better readability\n      // signersBitmapForDataFeedIds[i] = 0; // <- setting to an empty bitmap\n      valuesForDataFeeds[i] = new uint256[](uniqueSignersThreshold);\n      unchecked {\n        i++;\n      }\n    }\n\n    // Extracting the number of data packages from calldata\n    uint256 calldataNegativeOffset = _extractByteSizeOfUnsignedMetadata();\n    uint256 dataPackagesCount;\n    (dataPackagesCount, calldataNegativeOffset) = _extractDataPackagesCountFromCalldata(calldataNegativeOffset);\n\n    // Saving current free memory pointer\n    uint256 freeMemPtr;\n    assembly {\n      freeMemPtr := mload(FREE_MEMORY_PTR)\n    }\n\n    // Data packages extraction in a loop\n    for (uint256 dataPackageIndex = 0; dataPackageIndex < dataPackagesCount;) {\n      // Extract data package details and update calldata offset\n      uint256 dataPackageTimestamp;\n      (calldataNegativeOffset, dataPackageTimestamp) = _extractDataPackage(\n        dataFeedIds,\n        uniqueSignerCountForDataFeedIds,\n        signersBitmapForDataFeedIds,\n        valuesForDataFeeds,\n        calldataNegativeOffset\n      );\n\n      if (dataPackageTimestamp == 0) {\n        revert DataTimestampCannotBeZero();\n      }\n\n      if (dataPackageTimestamp != dataPackagesTimestamp) {\n        if (dataPackagesTimestamp == 0) {\n          // Setting dataPackagesTimestamp first time\n          dataPackagesTimestamp = dataPackageTimestamp;    \n        } else {\n          revert TimestampsMustBeEqual();\n        }\n      }\n\n      // Resetting the memory pointer to the initial \"safe\" value\n      // We add STANDARD_SLOT_BS (32 bytes) to account for potential allocation\n      // of the dataPackageIndex variable, which may or may not be stored in memory\n      assembly {\n        mstore(FREE_MEMORY_PTR, add(freeMemPtr, STANDARD_SLOT_BS))\n      }\n      unchecked {\n        dataPackageIndex++;\n      }\n    }\n\n    // Validating numbers of unique signers and calculating aggregated values for each dataFeedId\n    return (_getAggregatedValues(valuesForDataFeeds, uniqueSignerCountForDataFeedIds), dataPackagesTimestamp);\n  }\n\n  /**\n   * @dev This is a private helpful function, which extracts data for a data package based\n   * on the given negative calldata offset, verifies them, and in the case of successful\n   * verification updates the corresponding data package values in memory\n   *\n   * @param dataFeedIds an array of unique data feed identifiers\n   * @param uniqueSignerCountForDataFeedIds an array with the numbers of unique signers\n   * for each data feed\n   * @param signersBitmapForDataFeedIds an array of signer bitmaps for data feeds\n   * @param valuesForDataFeeds 2-dimensional array, valuesForDataFeeds[i][j] contains\n   * j-th value for the i-th data feed\n   * @param calldataNegativeOffset negative calldata offset for the given data package\n   *\n   * @return nextCalldataNegativeOffset negative calldata offset for the next data package\n   * @return dataPackageTimestamp data package timestamp\n   */\n  function _extractDataPackage(\n    bytes32[] memory dataFeedIds,\n    uint256[] memory uniqueSignerCountForDataFeedIds,\n    uint256[] memory signersBitmapForDataFeedIds,\n    uint256[][] memory valuesForDataFeeds,\n    uint256 calldataNegativeOffset\n  ) private view returns (uint256 nextCalldataNegativeOffset, uint256 dataPackageTimestamp) {\n    uint256 signerIndex;\n\n    (\n      uint256 dataPointsCount,\n      uint256 eachDataPointValueByteSize\n    ) = _extractDataPointsDetailsForDataPackage(calldataNegativeOffset);\n\n    // We use scopes to resolve problem with too deep stack\n    {\n      address signerAddress;\n      bytes32 signedHash;\n      bytes memory signedMessage;\n      uint256 signedMessageBytesCount;\n      uint48 extractedTimestamp;\n\n      signedMessageBytesCount = dataPointsCount * (eachDataPointValueByteSize + DATA_POINT_SYMBOL_BS)\n        + DATA_PACKAGE_WITHOUT_DATA_POINTS_AND_SIG_BS; //DATA_POINT_VALUE_BYTE_SIZE_BS + TIMESTAMP_BS + DATA_POINTS_COUNT_BS\n\n      uint256 timestampCalldataOffset = msg.data.length - \n        (calldataNegativeOffset + TIMESTAMP_NEGATIVE_OFFSET_IN_DATA_PACKAGE_WITH_STANDARD_SLOT_BS);\n\n      uint256 signedMessageCalldataOffset = msg.data.length - \n        (calldataNegativeOffset + SIG_BS + signedMessageBytesCount);\n\n      assembly {\n        // Extracting the signed message\n        signedMessage := extractBytesFromCalldata(\n          signedMessageCalldataOffset,\n          signedMessageBytesCount\n        )\n\n        // Hashing the signed message\n        signedHash := keccak256(add(signedMessage, BYTES_ARR_LEN_VAR_BS), signedMessageBytesCount)\n\n        // Extracting timestamp\n        extractedTimestamp := calldataload(timestampCalldataOffset)\n\n        function initByteArray(bytesCount) -> ptr {\n          ptr := mload(FREE_MEMORY_PTR)\n          mstore(ptr, bytesCount)\n          ptr := add(ptr, BYTES_ARR_LEN_VAR_BS)\n          mstore(FREE_MEMORY_PTR, add(ptr, bytesCount))\n        }\n\n        function extractBytesFromCalldata(offset, bytesCount) -> extractedBytes {\n          let extractedBytesStartPtr := initByteArray(bytesCount)\n          calldatacopy(\n            extractedBytesStartPtr,\n            offset,\n            bytesCount\n          )\n          extractedBytes := sub(extractedBytesStartPtr, BYTES_ARR_LEN_VAR_BS)\n        }\n      }\n\n      dataPackageTimestamp = extractedTimestamp;\n\n      // Verifying the off-chain signature against on-chain hashed data\n      signerAddress = SignatureLib.recoverSignerAddress(\n        signedHash,\n        calldataNegativeOffset + SIG_BS\n      );\n      signerIndex = getAuthorisedSignerIndex(signerAddress);\n    }\n\n    // Updating helpful arrays\n    {\n      calldataNegativeOffset = calldataNegativeOffset + DATA_PACKAGE_WITHOUT_DATA_POINTS_BS;\n      bytes32 dataPointDataFeedId;\n      uint256 dataPointValue;\n      for (uint256 dataPointIndex = 0; dataPointIndex < dataPointsCount;) {\n        calldataNegativeOffset = calldataNegativeOffset + eachDataPointValueByteSize + DATA_POINT_SYMBOL_BS;\n        // Extracting data feed id and value for the current data point\n        (dataPointDataFeedId, dataPointValue) = _extractDataPointValueAndDataFeedId(\n          calldataNegativeOffset,\n          eachDataPointValueByteSize\n        );\n\n        for (\n          uint256 dataFeedIdIndex = 0;\n          dataFeedIdIndex < dataFeedIds.length;\n        ) {\n          if (dataPointDataFeedId == dataFeedIds[dataFeedIdIndex]) {\n            uint256 bitmapSignersForDataFeedId = signersBitmapForDataFeedIds[dataFeedIdIndex];\n\n            if (\n              !BitmapLib.getBitFromBitmap(bitmapSignersForDataFeedId, signerIndex) && /* current signer was not counted for current dataFeedId */\n              uniqueSignerCountForDataFeedIds[dataFeedIdIndex] < getUniqueSignersThreshold()\n            ) {\n              // Add new value\n              valuesForDataFeeds[dataFeedIdIndex][uniqueSignerCountForDataFeedIds[dataFeedIdIndex]] = dataPointValue;\n\n              // Increase unique signer counter\n              uniqueSignerCountForDataFeedIds[dataFeedIdIndex]++;\n\n              // Update signers bitmap\n              signersBitmapForDataFeedIds[dataFeedIdIndex] = BitmapLib.setBitInBitmap(\n                bitmapSignersForDataFeedId,\n                signerIndex\n              );\n            }\n\n            // Breaking, as there couldn't be several indexes for the same feed ID\n            break;\n          }\n          unchecked {\n            dataFeedIdIndex++;\n          }\n        }\n        unchecked {\n           dataPointIndex++;\n        }\n      }\n    }\n\n    return (calldataNegativeOffset, dataPackageTimestamp);\n  }\n\n  /**\n   * @dev This is a private helpful function, which aggregates values from different\n   * authorised signers for the given arrays of values for each data feed\n   *\n   * @param valuesForDataFeeds 2-dimensional array, valuesForDataFeeds[i][j] contains\n   * j-th value for the i-th data feed\n   * @param uniqueSignerCountForDataFeedIds an array with the numbers of unique signers\n   * for each data feed\n   *\n   * @return An array of the aggregated values\n   */\n  function _getAggregatedValues(\n    uint256[][] memory valuesForDataFeeds,\n    uint256[] memory uniqueSignerCountForDataFeedIds\n  ) private view returns (uint256[] memory) {\n    uint256[] memory aggregatedValues = new uint256[](valuesForDataFeeds.length);\n    uint256 uniqueSignersThreshold = getUniqueSignersThreshold();\n\n    for (uint256 dataFeedIndex = 0; dataFeedIndex < valuesForDataFeeds.length;) {\n      if (uniqueSignerCountForDataFeedIds[dataFeedIndex] < uniqueSignersThreshold) {\n        revert InsufficientNumberOfUniqueSigners(\n          uniqueSignerCountForDataFeedIds[dataFeedIndex],\n          uniqueSignersThreshold);\n      }\n      uint256 aggregatedValueForDataFeedId = aggregateValues(valuesForDataFeeds[dataFeedIndex]);\n      aggregatedValues[dataFeedIndex] = aggregatedValueForDataFeedId;\n      unchecked {\n         dataFeedIndex++;\n      }\n    }\n\n    return aggregatedValues;\n  }\n}\n"},"@redstone-finance/evm-connector/contracts/core/RedstoneConsumerNumericBase.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\n\npragma solidity ^0.8.17;\n\nimport \"./RedstoneConsumerBase.sol\";\n\n/**\n * @title The base contract for Redstone consumers' contracts that allows to\n * securely calculate numeric redstone oracle values\n * @author The Redstone Oracles team\n * @dev This contract can extend other contracts to allow them\n * securely fetch Redstone oracle data from transactions calldata\n */\nabstract contract RedstoneConsumerNumericBase is RedstoneConsumerBase {\n  /**\n   * @dev This function can be used in a consumer contract to securely extract an\n   * oracle value for a given data feed id. Security is achieved by\n   * signatures verification, timestamp validation, and aggregating values\n   * from different authorised signers into a single numeric value. If any of the\n   * required conditions do not match, the function will revert.\n   * Note! This function expects that tx calldata contains redstone payload in the end\n   * Learn more about redstone payload here: https://github.com/redstone-finance/redstone-oracles-monorepo/tree/main/packages/evm-connector#readme\n   * @param dataFeedId bytes32 value that uniquely identifies the data feed\n   * @return Extracted and verified numeric oracle value for the given data feed id\n   */\n  function getOracleNumericValueFromTxMsg(bytes32 dataFeedId)\n    internal\n    view\n    virtual\n    returns (uint256)\n  {\n    bytes32[] memory dataFeedIds = new bytes32[](1);\n    dataFeedIds[0] = dataFeedId;\n    return getOracleNumericValuesFromTxMsg(dataFeedIds)[0];\n  }\n\n  /**\n   * @dev This function can be used in a consumer contract to securely extract several\n   * numeric oracle values for a given array of data feed ids. Security is achieved by\n   * signatures verification, timestamp validation, and aggregating values\n   * from different authorised signers into a single numeric value. If any of the\n   * required conditions do not match, the function will revert.\n   * Note! This function expects that tx calldata contains redstone payload in the end\n   * Learn more about redstone payload here: https://github.com/redstone-finance/redstone-oracles-monorepo/tree/main/packages/evm-connector#readme\n   * @param dataFeedIds An array of unique data feed identifiers\n   * @return An array of the extracted and verified oracle values in the same order\n   * as they are requested in the dataFeedIds array\n   */\n  function getOracleNumericValuesFromTxMsg(bytes32[] memory dataFeedIds)\n    internal\n    view\n    virtual\n    returns (uint256[] memory)\n  {\n    (uint256[] memory values, uint256 timestamp) = _securelyExtractOracleValuesAndTimestampFromTxMsg(dataFeedIds);\n    validateTimestamp(timestamp);\n    return values;\n  }\n\n  /**\n   * @dev This function can be used in a consumer contract to securely extract several\n   * numeric oracle values for a given array of data feed ids. Security is achieved by\n   * signatures verification and aggregating values from different authorised signers \n   * into a single numeric value. If any of the required conditions do not match, \n   * the function will revert.\n   * Note! This function returns the timestamp of the packages (it requires it to be \n   * the same for all), but does not validate this timestamp.\n   * Note! This function expects that tx calldata contains redstone payload in the end\n   * Learn more about redstone payload here: https://github.com/redstone-finance/redstone-oracles-monorepo/tree/main/packages/evm-connector#readme\n   * @param dataFeedIds An array of unique data feed identifiers\n   * @return An array of the extracted and verified oracle values in the same order\n   * as they are requested in the dataFeedIds array and data packages timestamp\n   */\n   function getOracleNumericValuesAndTimestampFromTxMsg(bytes32[] memory dataFeedIds)\n    internal\n    view\n    virtual\n    returns (uint256[] memory, uint256)\n  {\n    return _securelyExtractOracleValuesAndTimestampFromTxMsg(dataFeedIds);\n  }\n\n  /**\n   * @dev This function works similarly to the `getOracleNumericValuesFromTxMsg` with the\n   * only difference that it allows to request oracle data for an array of data feeds\n   * that may contain duplicates\n   * \n   * @param dataFeedIdsWithDuplicates An array of data feed identifiers (duplicates are allowed)\n   * @return An array of the extracted and verified oracle values in the same order\n   * as they are requested in the dataFeedIdsWithDuplicates array\n   */\n  function getOracleNumericValuesWithDuplicatesFromTxMsg(bytes32[] memory dataFeedIdsWithDuplicates) internal view returns (uint256[] memory) {\n    // Building an array without duplicates\n    bytes32[] memory dataFeedIdsWithoutDuplicates = new bytes32[](dataFeedIdsWithDuplicates.length);\n    bool alreadyIncluded;\n    uint256 uniqueDataFeedIdsCount = 0;\n\n    for (uint256 indexWithDup = 0; indexWithDup < dataFeedIdsWithDuplicates.length; indexWithDup++) {\n      // Checking if current element is already included in `dataFeedIdsWithoutDuplicates`\n      alreadyIncluded = false;\n      for (uint256 indexWithoutDup = 0; indexWithoutDup < uniqueDataFeedIdsCount; indexWithoutDup++) {\n        if (dataFeedIdsWithoutDuplicates[indexWithoutDup] == dataFeedIdsWithDuplicates[indexWithDup]) {\n          alreadyIncluded = true;\n          break;\n        }\n      }\n\n      // Adding if not included\n      if (!alreadyIncluded) {\n        dataFeedIdsWithoutDuplicates[uniqueDataFeedIdsCount] = dataFeedIdsWithDuplicates[indexWithDup];\n        uniqueDataFeedIdsCount++;\n      }\n    }\n\n    // Overriding dataFeedIdsWithoutDuplicates.length\n    // Equivalent to: dataFeedIdsWithoutDuplicates.length = uniqueDataFeedIdsCount;\n    assembly {\n      mstore(dataFeedIdsWithoutDuplicates, uniqueDataFeedIdsCount)\n    }\n\n    // Requesting oracle values (without duplicates)\n    (uint256[] memory valuesWithoutDuplicates, uint256 timestamp) = _securelyExtractOracleValuesAndTimestampFromTxMsg(dataFeedIdsWithoutDuplicates);\n    validateTimestamp(timestamp);\n\n    // Preparing result values array\n    uint256[] memory valuesWithDuplicates = new uint256[](dataFeedIdsWithDuplicates.length);\n    for (uint256 indexWithDup = 0; indexWithDup < dataFeedIdsWithDuplicates.length; indexWithDup++) {\n      for (uint256 indexWithoutDup = 0; indexWithoutDup < dataFeedIdsWithoutDuplicates.length; indexWithoutDup++) {\n        if (dataFeedIdsWithDuplicates[indexWithDup] == dataFeedIdsWithoutDuplicates[indexWithoutDup]) {\n          valuesWithDuplicates[indexWithDup] = valuesWithoutDuplicates[indexWithoutDup];\n          break;\n        }\n      }\n    }\n\n    return valuesWithDuplicates;\n  }\n}\n"},"@redstone-finance/evm-adapters/contracts/custom-integrations/layerbank/ILToken.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\n\npragma solidity ^0.8.17;\n\ninterface ILToken {\n  function underlying() external view returns (address);\n}\n"},"@redstone-finance/evm-adapters/contracts/price-feeds/interfaces/IMultiFeedAdapter.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\n\npragma solidity ^0.8.17;\n\ninterface IMultiFeedAdapter {\n\n  event ValueUpdate(uint256 value, bytes32 dataFeedId, uint256 updatedAt);\n  event UpdateSkipDueToBlockTimestamp(bytes32 dataFeedId);\n  event UpdateSkipDueToDataTimestamp(bytes32 dataFeedId);\n  event UpdateSkipDueToInvalidValue(bytes32 dataFeedId);\n\n  function updateDataFeedsValuesPartial(bytes32[] memory dataFeedsIds) external;\n\n  function getLastUpdateDetails(bytes32 dataFeedId) external view returns (uint256 lastDataTimestamp, uint256 lastBlockTimestamp, uint256 lastValue);\n\n  function getLastUpdateDetailsUnsafe(bytes32 dataFeedId) external view returns (uint256 lastDataTimestamp, uint256 lastBlockTimestamp, uint256 lastValue);\n\n  function getValuesForDataFeeds(bytes32[] memory requestedDataFeedIds) external view returns (uint256[] memory values);\n\n  function getValueForDataFeed(bytes32 dataFeedId) external view returns (uint256 dataFeedValue);\n\n  function getDataTimestampFromLatestUpdate(bytes32 dataFeedId) external view returns (uint256 lastDataTimestamp);\n\n  function getBlockTimestampFromLatestUpdate(bytes32 dataFeedId) external view returns (uint256 blockTimestamp);\n}\n"},"@redstone-finance/evm-adapters/contracts/custom-integrations/layerbank/IPriceCalculator.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.17;\n\ninterface IPriceCalculator {\n  struct ReferenceData {\n    uint256 lastData;\n    uint256 lastUpdated;\n  }\n\n  function priceOf(address asset) external view returns (uint256);\n\n  function pricesOf(\n    address[] memory assets\n  ) external view returns (uint256[] memory);\n\n  function priceOfETH() external view returns (uint256);\n\n  function getUnderlyingPrice(address gToken) external view returns (uint256);\n\n  function getUnderlyingPrices(\n    address[] memory gTokens\n  ) external view returns (uint256[] memory);\n}\n"},"@redstone-finance/evm-adapters/contracts/price-feeds/without-rounds/MultiFeedAdapterWithoutRounds.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\n\npragma solidity ^0.8.17;\n\nimport {RedstoneConsumerNumericBase} from \"@redstone-finance/evm-connector/contracts/core/RedstoneConsumerNumericBase.sol\";\nimport {IMultiFeedAdapter} from \"../interfaces/IMultiFeedAdapter.sol\";\nimport {IPriceCalculator} from \"../../custom-integrations/layerbank/IPriceCalculator.sol\";\nimport {ILToken} from \"../../custom-integrations/layerbank/ILToken.sol\";\n\n/**\n * @title MultiFeedAdapterWithoutRounds\n * @author The Redstone Oracles team\n * @dev This abstract contract serves as an adapter for multiple data feeds, facilitating\n * the updating and retrieval of oracle data values independently.\n *\n * Key details about the contract:\n * - Values for data feeds can be updated using the `updateDataFeedsValuesPartial` function\n * - Unlike the previous version (RedstoneAdapterBase), this adapter allows updating any set of data feeds,\n *   with each update being made independently.\n * - Updates are highly independent. Each data feed update is attempted separately, ensuring maximum possible\n *   updates without reverting the entire transaction if some of them fail. Both successful value updates and\n *   update skips due to failed validation are represented in corresponding events.\n * - Efficient storage usage: Related timestamps and values are packed into a single 32-byte slot when possible.\n *   If a value exceeds the slot capacity, it is stored in the next slot, with one bool prop (isValueBigger) indicating the storage method used.\n * - All data packages in the Redstone payload must have the same timestamp. Invalid timestamps (too old or too new) will cause transaction reversion.\n * - The contract includes a built-in IPriceCalculator interface used by LayerBank and other projects\n */\nabstract contract MultiFeedAdapterWithoutRounds is RedstoneConsumerNumericBase, IMultiFeedAdapter, IPriceCalculator {\n  bytes32 internal constant DATA_FEEDS_STORAGE_LOCATION = 0x5e9fb4cb0eb3c2583734d3394f30bb14b241acb9b3a034f7e7ba1a62db4370f1; // keccak256(\"RedStone.MultiFeedAdapterWithoutRounds.dataFeeds\");\n  bytes32 internal constant ETH_DATA_FEED_ID = bytes32(\"ETH\");\n  uint256 internal constant MAX_DATA_STALENESS = 30 hours;\n  uint256 internal constant DEFAULT_DECIMAL_SCALER_LAYERBANK = 1e10;\n\n  error DataTimestampTooLarge(uint256 dataTimestamp);\n  error BlockTimestampTooLarge(uint256 blockTimestamp);\n  error InvalidLastUpdateDetails(bytes32 dataFeedId, uint256 lastDataTimestamp, uint256 lastBlockTimestamp, uint256 lastValue);\n\n  // This struct uses exactly one storage slot (32 bytes)\n  struct DataFeedDetails {\n    uint48 dataTimestamp;\n    uint48 blockTimestamp;\n    uint152 value;\n    bool isValueBigger;\n  }\n\n  struct DataFeedDetailsWithOptionalBigValue {\n    DataFeedDetails details;\n    uint256 biggerValue;\n  }\n\n  // This struct is used only for returning values\n  struct LastUpdateDetails {\n    uint256 dataTimestamp;\n    uint256 blockTimestamp;\n    uint256 value;\n  }\n\n  struct DataFeedsStorage {\n    mapping(bytes32 => DataFeedDetailsWithOptionalBigValue) _dataFeeds;\n  }\n\n  /// This function allows to update any set of data feeds\n  function updateDataFeedsValuesPartial(bytes32[] memory dataFeedsIds) public {\n    (uint256[] memory oracleValues, uint256 extractedDataTimestamp) = getOracleNumericValuesAndTimestampFromTxMsg(dataFeedsIds);\n\n    // Revert if data timestamp doesn't fit within the allowed block timestamp window\n    validateTimestamp(extractedDataTimestamp);\n\n    // Revert if data or block timestamp do not fit into 48 bits reserved in storage for timestamps\n    if (extractedDataTimestamp > type(uint48).max) {\n      revert DataTimestampTooLarge(extractedDataTimestamp);\n    }\n    if (block.timestamp > type(uint48).max) {\n      revert BlockTimestampTooLarge(block.timestamp);\n    }\n\n    // The logic below can fail only in the case when gas limit reached\n    for (uint256 i = 0; i < dataFeedsIds.length;) {\n      // Note, each update is independent. It means that we are trying to update everything we can.\n      // And skip the rest (emitting corresponding events)\n      _tryToUpdateDataFeed(dataFeedsIds[i], oracleValues[i], extractedDataTimestamp);\n      unchecked { i++; } // reduces gas costs\n    }\n  }\n\n  function _tryToUpdateDataFeed(bytes32 dataFeedId, uint256 value, uint256 dataTimestamp) internal virtual {\n    (uint256 lastDataTimestamp, uint256 lastBlockTimestamp, uint256 lastValue) = getLastUpdateDetailsUnsafe(dataFeedId);\n\n    if (!_validateBlockTimestamp(lastBlockTimestamp)) {\n      emit UpdateSkipDueToBlockTimestamp(dataFeedId);\n      return;\n    }\n\n    if (!_validateDataTimestamp(dataTimestamp, lastDataTimestamp)) {\n      emit UpdateSkipDueToDataTimestamp(dataFeedId);\n      return;\n    }\n\n    if (!_validateValueBeforeSave(dataFeedId, value, lastValue)) {\n      emit UpdateSkipDueToInvalidValue(dataFeedId);\n      return;\n    }\n\n    _saveNewUpdateDetails(dataFeedId, value, dataTimestamp);\n    _emitEventAfterValueUpdate(dataFeedId, value);\n  }\n\n  function _saveNewUpdateDetails(bytes32 dataFeedId, uint256 newValue, uint256 dataTimestamp) internal {\n    DataFeedDetailsWithOptionalBigValue storage dataFeed = _getDataFeedsStorage()._dataFeeds[dataFeedId];\n\n    bool isValueBigger = newValue > type(uint152).max;\n\n    // We can safely cast timestamps here, because we checked timestamp values in the `updateDataFeedsValuesPartial` function\n    dataFeed.details = DataFeedDetails({\n      dataTimestamp: uint48(dataTimestamp),\n      blockTimestamp: uint48(block.timestamp),\n      value: uint152(newValue), // we can store anything here is isValueBigger == true, but it's slightly cheaper to always store the same value\n      isValueBigger: isValueBigger\n    });\n\n    if (isValueBigger) {\n      dataFeed.biggerValue = newValue;\n    }\n  }\n\n  function getLastUpdateDetails(bytes32 dataFeedId) public view virtual returns (uint256 lastDataTimestamp, uint256 lastBlockTimestamp, uint256 lastValue) {\n    (lastDataTimestamp, lastBlockTimestamp, lastValue) = getLastUpdateDetailsUnsafe(dataFeedId);\n    if (!_validateLastUpdateDetailsOnRead(dataFeedId, lastDataTimestamp, lastBlockTimestamp, lastValue)) {\n      revert InvalidLastUpdateDetails(dataFeedId, lastDataTimestamp, lastBlockTimestamp, lastValue);\n    }\n  }\n\n  function getLastUpdateDetailsUnsafe(bytes32 dataFeedId) public view virtual returns (uint256 lastDataTimestamp, uint256 lastBlockTimestamp, uint256 lastValue) {\n    DataFeedDetailsWithOptionalBigValue storage dataFeed = _getDataFeedsStorage()._dataFeeds[dataFeedId];\n\n    lastDataTimestamp = dataFeed.details.dataTimestamp;\n    lastBlockTimestamp = dataFeed.details.blockTimestamp;\n\n    if (dataFeed.details.isValueBigger) {\n      lastValue = dataFeed.biggerValue;\n    } else {\n      lastValue = dataFeed.details.value;\n    }\n  }\n\n  function _getDataFeedsStorage() private pure returns (DataFeedsStorage storage $) {\n    assembly {\n      $.slot := DATA_FEEDS_STORAGE_LOCATION\n    }\n  }\n\n  /// This function can be used to implement time-based whitelisting (e.g. whitelisting for only X seconds after the latest update)\n  /// Important! This function should not revert, it should only return bool result of the validation\n  function _validateBlockTimestamp(uint256 lastBlockTimestamp) internal view virtual returns (bool) {\n    // In the default implementation we just check if the block number is higher\n    // To ensure max 1 update for a given data feed in a block\n    return block.timestamp > lastBlockTimestamp;\n  }\n\n  /// Important! This function should not revert, it should only return bool result of the validation\n  function _validateDataTimestamp(uint256 proposedDataTimestamp, uint256 lastDataTimestamp) internal view virtual returns (bool) {\n    return proposedDataTimestamp > lastDataTimestamp;\n  }\n\n  /// Important! This function should not revert, it should only return bool result of the validation\n  /// It can be overridden to handle more specific logic in future\n  function _validateValueBeforeSave(bytes32 /* dataFeedId */, uint256 proposedValue, uint256 /* lastValue */) internal view virtual returns (bool) {\n    return proposedValue > 0;\n  }\n\n  /// This function can be overridden (e.g. value validation and staleness check)\n  /// We've added dataFeedId for being able to implement custom validation per feed\n  function _validateLastUpdateDetailsOnRead(bytes32 /* dataFeedId */, uint256 /* lastDataTimestamp */, uint256 lastBlockTimestamp, uint256 lastValue) internal view virtual returns (bool) {\n    return lastValue > 0 && lastBlockTimestamp + MAX_DATA_STALENESS > block.timestamp;\n  }\n\n  /// Important! This function should not revert, it should only emit an event\n  /// It is a separate function, so that we can specify custom events for specific data feeds\n  function _emitEventAfterValueUpdate(bytes32 dataFeedId, uint256 newValue) internal virtual {\n    emit ValueUpdate(newValue, dataFeedId, block.timestamp);\n  }\n\n\n  ////////////////////////////////////////////////////\n  /////////// Functions for relayers below ///////////\n  ////////////////////////////////////////////////////\n\n  function getLastUpdateDetailsUnsafeForMany(bytes32[] memory dataFeedIds) external view returns (LastUpdateDetails[] memory detailsForFeeds) {\n    detailsForFeeds = new LastUpdateDetails[](dataFeedIds.length);\n    for (uint256 i = 0; i < dataFeedIds.length;) {\n      (detailsForFeeds[i].dataTimestamp, detailsForFeeds[i].blockTimestamp, detailsForFeeds[i].value) = getLastUpdateDetailsUnsafe(dataFeedIds[i]);\n      unchecked { i++; } // reduces gas costs\n    }\n  }\n\n  function getValuesForDataFeeds(bytes32[] memory requestedDataFeedIds) external view returns (uint256[] memory values) {\n    values = new uint256[](requestedDataFeedIds.length);\n    for (uint256 i = 0; i < requestedDataFeedIds.length;) {\n      values[i] = getValueForDataFeed(requestedDataFeedIds[i]);\n      unchecked { i++; } // reduces gas costs\n    }\n  }\n\n  function getValueForDataFeed(bytes32 dataFeedId) public view virtual returns (uint256 dataFeedValue) {\n    (,, dataFeedValue) = getLastUpdateDetails(dataFeedId);\n  }\n\n  function getDataTimestampFromLatestUpdate(bytes32 dataFeedId) external view virtual returns (uint256 lastDataTimestamp) {\n    (lastDataTimestamp, ,) = getLastUpdateDetails(dataFeedId);\n  }\n\n  function getBlockTimestampFromLatestUpdate(bytes32 dataFeedId) external view virtual returns (uint256 blockTimestamp) {\n    (, blockTimestamp, ) = getLastUpdateDetails(dataFeedId);\n  }\n\n  ///////////////////////////////////////////////////////\n  //////////// LayerBank interface functions ////////////\n  ///////////////////////////////////////////////////////\n\n  /// We can connect manager contract here or implement it directly here\n  /// By default, users will be able to use data feed identifiers (casted to addresses) in layerbank functions\n  function getDataFeedIdForAsset(address asset) public view virtual returns(bytes32) {\n    return bytes32(uint256(uint160(asset)));\n  }\n\n  function convertDecimals(bytes32 /* dataFeedId */, uint256 valueFromRedstonePayload) public view virtual returns (uint256) {\n    return valueFromRedstonePayload * DEFAULT_DECIMAL_SCALER_LAYERBANK;\n  }\n\n  function getUnderlyingAsset(address gToken) public view virtual returns(address) {\n    return ILToken(gToken).underlying();\n  }\n\n  function priceOf(address asset) public view virtual returns (uint256) {\n    bytes32 dataFeedId = getDataFeedIdForAsset(asset);\n    uint256 latestValue = getValueForDataFeed(dataFeedId);\n    return convertDecimals(dataFeedId, latestValue);\n  }\n\n  function priceOfETH() public view virtual returns (uint256) {\n    return convertDecimals(ETH_DATA_FEED_ID, getValueForDataFeed(ETH_DATA_FEED_ID));\n  }\n\n  function pricesOf(\n    address[] memory assets\n  ) external view returns (uint256[] memory values) {\n    values = new uint256[](assets.length);\n    for (uint256 i = 0; i < assets.length;) {\n      values[i] = priceOf(assets[i]);\n      unchecked { i++; } // reduces gas costs\n    }\n  }\n\n  function getUnderlyingPrice(address gToken) public view returns (uint256) {\n    return priceOf(getUnderlyingAsset(gToken));\n  }\n\n  function getUnderlyingPrices(\n    address[] memory gTokens\n  ) public view returns (uint256[] memory values) {\n    values = new uint256[](gTokens.length);\n    for (uint256 i = 0; i < gTokens.length;) {\n      values[i] = getUnderlyingPrice(gTokens[i]);\n      unchecked { i++; } // reduces gas costs\n    }\n  }\n}\n"},"@redstone-finance/evm-adapters/contracts/price-feeds/data-services/MultiFeedAdapterWithoutRoundsPrimaryProd.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\n\npragma solidity ^0.8.17;\n\nimport {MultiFeedAdapterWithoutRounds} from \"../without-rounds/MultiFeedAdapterWithoutRounds.sol\";\n\nabstract contract MultiFeedAdapterWithoutRoundsPrimaryProd is MultiFeedAdapterWithoutRounds {\n  function getUniqueSignersThreshold() public view virtual override returns (uint8) {\n    return 3;\n  }\n\n  function getAuthorisedSignerIndex(\n    address signerAddress\n  ) public view virtual override returns (uint8) {\n    if (signerAddress == 0x8BB8F32Df04c8b654987DAaeD53D6B6091e3B774) { return 0; }\n    else if (signerAddress == 0xdEB22f54738d54976C4c0fe5ce6d408E40d88499) { return 1; }\n    else if (signerAddress == 0x51Ce04Be4b3E32572C4Ec9135221d0691Ba7d202) { return 2; }\n    else if (signerAddress == 0xDD682daEC5A90dD295d14DA4b0bec9281017b5bE) { return 3; }\n    else if (signerAddress == 0x9c5AE89C4Af6aA32cE58588DBaF90d18a855B6de) { return 4; }\n    else {\n      revert SignerNotAuthorised(signerAddress);\n    }\n  }\n}\n"}},"language":"Solidity","settings":{"optimizer":{"runs":10000,"enabled":true}}},"stdJsonOutput":{"sources":{"contracts/__addresses/Addresses.sol":{"id":13},"@redstone-finance/evm-connector/contracts/libs/BitmapLib.sol":{"id":10},"@redstone-finance/evm-connector/contracts/libs/SignatureLib.sol":{"id":12},"@redstone-finance/evm-connector/contracts/libs/NumericArrayLib.sol":{"id":11},"contracts/stableMultiFeed/StableMultiFeedAdapterWithoutRoundsV1.sol":{"id":14},"@redstone-finance/evm-connector/contracts/core/CalldataExtractor.sol":{"id":5},"@redstone-finance/evm-connector/contracts/core/RedstoneConstants.sol":{"id":6},"@redstone-finance/evm-connector/contracts/core/RedstoneDefaultsLib.sol":{"id":9},"@redstone-finance/evm-connector/contracts/core/RedstoneConsumerBase.sol":{"id":7},"@redstone-finance/evm-connector/contracts/core/RedstoneConsumerNumericBase.sol":{"id":8},"@redstone-finance/evm-adapters/contracts/custom-integrations/layerbank/ILToken.sol":{"id":0},"@redstone-finance/evm-adapters/contracts/price-feeds/interfaces/IMultiFeedAdapter.sol":{"id":3},"@redstone-finance/evm-adapters/contracts/custom-integrations/layerbank/IPriceCalculator.sol":{"id":1},"@redstone-finance/evm-adapters/contracts/price-feeds/without-rounds/MultiFeedAdapterWithoutRounds.sol":{"id":4},"@redstone-finance/evm-adapters/contracts/price-feeds/data-services/MultiFeedAdapterWithoutRoundsPrimaryProd.sol":{"id":2}},"contracts":{"contracts/stableMultiFeed/StableMultiFeedAdapterWithoutRoundsV1.sol":{"StableMultiFeedAdapterWithoutRoundsV1":{"abi":[{"name":"BlockTimestampTooLarge","type":"error","inputs":[{"name":"blockTimestamp","type":"uint256","internalType":"uint256"}]},{"name":"CalldataMustHaveValidPayload","type":"error","inputs":[]},{"name":"CalldataOverOrUnderFlow","type":"error","inputs":[]},{"name":"CanNotPickMedianOfEmptyArray","type":"error","inputs":[]},{"name":"DataPackageTimestampMustNotBeZero","type":"error","inputs":[]},{"name":"DataPackageTimestampsMustBeEqual","type":"error","inputs":[]},{"name":"DataTimestampCannotBeZero","type":"error","inputs":[]},{"name":"DataTimestampTooLarge","type":"error","inputs":[{"name":"dataTimestamp","type":"uint256","internalType":"uint256"}]},{"name":"EachSignerMustProvideTheSameValue","type":"error","inputs":[]},{"name":"EmptyCalldataPointersArr","type":"error","inputs":[]},{"name":"GetDataServiceIdNotImplemented","type":"error","inputs":[]},{"name":"IncorrectUnsignedMetadataSize","type":"error","inputs":[]},{"name":"InsufficientNumberOfUniqueSigners","type":"error","inputs":[{"name":"receivedSignersCount","type":"uint256","internalType":"uint256"},{"name":"requiredSignersCount","type":"uint256","internalType":"uint256"}]},{"name":"InvalidCalldataPointer","type":"error","inputs":[]},{"name":"InvalidLastUpdateDetails","type":"error","inputs":[{"name":"dataFeedId","type":"bytes32","internalType":"bytes32"},{"name":"lastDataTimestamp","type":"uint256","internalType":"uint256"},{"name":"lastBlockTimestamp","type":"uint256","internalType":"uint256"},{"name":"lastValue","type":"uint256","internalType":"uint256"}]},{"name":"InvalidSignature","type":"error","inputs":[{"name":"signedHash","type":"bytes32","internalType":"bytes32"}]},{"name":"RedstonePayloadMustHaveAtLeastOneDataPackage","type":"error","inputs":[]},{"name":"SignerNotAuthorised","type":"error","inputs":[{"name":"receivedSigner","type":"address","internalType":"address"}]},{"name":"TimestampFromTooLongFuture","type":"error","inputs":[{"name":"receivedTimestampSeconds","type":"uint256","internalType":"uint256"},{"name":"blockTimestamp","type":"uint256","internalType":"uint256"}]},{"name":"TimestampIsTooOld","type":"error","inputs":[{"name":"receivedTimestampSeconds","type":"uint256","internalType":"uint256"},{"name":"blockTimestamp","type":"uint256","internalType":"uint256"}]},{"name":"TimestampsMustBeEqual","type":"error","inputs":[]},{"name":"TooLargeValueByteSize","type":"error","inputs":[{"name":"valueByteSize","type":"uint256","internalType":"uint256"}]},{"name":"UpdateSkipDueToBlockTimestamp","type":"event","inputs":[{"name":"dataFeedId","type":"bytes32","indexed":false,"internalType":"bytes32"}],"anonymous":false},{"name":"UpdateSkipDueToDataTimestamp","type":"event","inputs":[{"name":"dataFeedId","type":"bytes32","indexed":false,"internalType":"bytes32"}],"anonymous":false},{"name":"UpdateSkipDueToInvalidValue","type":"event","inputs":[{"name":"dataFeedId","type":"bytes32","indexed":false,"internalType":"bytes32"}],"anonymous":false},{"name":"ValueUpdate","type":"event","inputs":[{"name":"value","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"dataFeedId","type":"bytes32","indexed":false,"internalType":"bytes32"},{"name":"updatedAt","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"aggregateValues","type":"function","inputs":[{"name":"values","type":"uint256[]","internalType":"uint256[]"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"convertDecimals","type":"function","inputs":[{"name":"","type":"bytes32","internalType":"bytes32"},{"name":"valueFromRedstonePayload","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"extractTimestampsAndAssertAllAreEqual","type":"function","inputs":[],"outputs":[{"name":"extractedTimestamp","type":"uint256","internalType":"uint256"}],"stateMutability":"pure"},{"name":"getAuthorisedSignerIndex","type":"function","inputs":[{"name":"signerAddress","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint8","internalType":"uint8"}],"stateMutability":"view"},{"name":"getBlockTimestampFromLatestUpdate","type":"function","inputs":[{"name":"dataFeedId","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"blockTimestamp","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getDataFeedIdForAsset","type":"function","inputs":[{"name":"asset","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"name":"getDataServiceId","type":"function","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"name":"getDataTimestampFromLatestUpdate","type":"function","inputs":[{"name":"dataFeedId","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"lastDataTimestamp","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getLastUpdateDetails","type":"function","inputs":[{"name":"dataFeedId","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"lastDataTimestamp","type":"uint256","internalType":"uint256"},{"name":"lastBlockTimestamp","type":"uint256","internalType":"uint256"},{"name":"lastValue","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getLastUpdateDetailsUnsafe","type":"function","inputs":[{"name":"dataFeedId","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"lastDataTimestamp","type":"uint256","internalType":"uint256"},{"name":"lastBlockTimestamp","type":"uint256","internalType":"uint256"},{"name":"lastValue","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getLastUpdateDetailsUnsafeForMany","type":"function","inputs":[{"name":"dataFeedIds","type":"bytes32[]","internalType":"bytes32[]"}],"outputs":[{"name":"detailsForFeeds","type":"tuple[]","components":[{"name":"dataTimestamp","type":"uint256","internalType":"uint256"},{"name":"blockTimestamp","type":"uint256","internalType":"uint256"},{"name":"value","type":"uint256","internalType":"uint256"}],"internalType":"struct MultiFeedAdapterWithoutRounds.LastUpdateDetails[]"}],"stateMutability":"view"},{"name":"getUnderlyingAsset","type":"function","inputs":[{"name":"gToken","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"getUnderlyingPrice","type":"function","inputs":[{"name":"gToken","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getUnderlyingPrices","type":"function","inputs":[{"name":"gTokens","type":"address[]","internalType":"address[]"}],"outputs":[{"name":"values","type":"uint256[]","internalType":"uint256[]"}],"stateMutability":"view"},{"name":"getUniqueSignersThreshold","type":"function","inputs":[],"outputs":[{"name":"","type":"uint8","internalType":"uint8"}],"stateMutability":"view"},{"name":"getValueForDataFeed","type":"function","inputs":[{"name":"dataFeedId","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"dataFeedValue","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getValuesForDataFeeds","type":"function","inputs":[{"name":"requestedDataFeedIds","type":"bytes32[]","internalType":"bytes32[]"}],"outputs":[{"name":"values","type":"uint256[]","internalType":"uint256[]"}],"stateMutability":"view"},{"name":"priceOf","type":"function","inputs":[{"name":"asset","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"priceOfETH","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"pricesOf","type":"function","inputs":[{"name":"assets","type":"address[]","internalType":"address[]"}],"outputs":[{"name":"values","type":"uint256[]","internalType":"uint256[]"}],"stateMutability":"view"},{"name":"updateDataFeedsValuesPartial","type":"function","inputs":[{"name":"dataFeedsIds","type":"bytes32[]","internalType":"bytes32[]"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"validateTimestamp","type":"function","inputs":[{"name":"receivedTimestampMilliseconds","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"view"}],"metadata":"{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"blockTimestamp\",\"type\":\"uint256\"}],\"name\":\"BlockTimestampTooLarge\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CalldataMustHaveValidPayload\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CalldataOverOrUnderFlow\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CanNotPickMedianOfEmptyArray\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"DataPackageTimestampMustNotBeZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"DataPackageTimestampsMustBeEqual\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"DataTimestampCannotBeZero\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dataTimestamp\",\"type\":\"uint256\"}],\"name\":\"DataTimestampTooLarge\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EachSignerMustProvideTheSameValue\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EmptyCalldataPointersArr\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"GetDataServiceIdNotImplemented\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"IncorrectUnsignedMetadataSize\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"receivedSignersCount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"requiredSignersCount\",\"type\":\"uint256\"}],\"name\":\"InsufficientNumberOfUniqueSigners\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidCalldataPointer\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"lastDataTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lastBlockTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lastValue\",\"type\":\"uint256\"}],\"name\":\"InvalidLastUpdateDetails\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"signedHash\",\"type\":\"bytes32\"}],\"name\":\"InvalidSignature\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"RedstonePayloadMustHaveAtLeastOneDataPackage\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receivedSigner\",\"type\":\"address\"}],\"name\":\"SignerNotAuthorised\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"receivedTimestampSeconds\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"blockTimestamp\",\"type\":\"uint256\"}],\"name\":\"TimestampFromTooLongFuture\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"receivedTimestampSeconds\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"blockTimestamp\",\"type\":\"uint256\"}],\"name\":\"TimestampIsTooOld\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TimestampsMustBeEqual\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"valueByteSize\",\"type\":\"uint256\"}],\"name\":\"TooLargeValueByteSize\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"UpdateSkipDueToBlockTimestamp\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"UpdateSkipDueToDataTimestamp\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"UpdateSkipDueToInvalidValue\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"updatedAt\",\"type\":\"uint256\"}],\"name\":\"ValueUpdate\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"values\",\"type\":\"uint256[]\"}],\"name\":\"aggregateValues\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"valueFromRedstonePayload\",\"type\":\"uint256\"}],\"name\":\"convertDecimals\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"extractTimestampsAndAssertAllAreEqual\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"extractedTimestamp\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"signerAddress\",\"type\":\"address\"}],\"name\":\"getAuthorisedSignerIndex\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"getBlockTimestampFromLatestUpdate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"blockTimestamp\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"}],\"name\":\"getDataFeedIdForAsset\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getDataServiceId\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"getDataTimestampFromLatestUpdate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"lastDataTimestamp\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"getLastUpdateDetails\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"lastDataTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lastBlockTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lastValue\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"getLastUpdateDetailsUnsafe\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"lastDataTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lastBlockTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lastValue\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"dataFeedIds\",\"type\":\"bytes32[]\"}],\"name\":\"getLastUpdateDetailsUnsafeForMany\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"dataTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"blockTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct MultiFeedAdapterWithoutRounds.LastUpdateDetails[]\",\"name\":\"detailsForFeeds\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"gToken\",\"type\":\"address\"}],\"name\":\"getUnderlyingAsset\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"gToken\",\"type\":\"address\"}],\"name\":\"getUnderlyingPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"gTokens\",\"type\":\"address[]\"}],\"name\":\"getUnderlyingPrices\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"values\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getUniqueSignersThreshold\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"getValueForDataFeed\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"dataFeedValue\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"requestedDataFeedIds\",\"type\":\"bytes32[]\"}],\"name\":\"getValuesForDataFeeds\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"values\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"}],\"name\":\"priceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"priceOfETH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"assets\",\"type\":\"address[]\"}],\"name\":\"pricesOf\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"values\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"dataFeedsIds\",\"type\":\"bytes32[]\"}],\"name\":\"updateDataFeedsValuesPartial\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"receivedTimestampMilliseconds\",\"type\":\"uint256\"}],\"name\":\"validateTimestamp\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"aggregateValues(uint256[])\":{\"details\":\"This function may be overridden by the child consumer contract. It should aggregate values from different signers to a single uint value. By default, it calculates the median value\",\"params\":{\"values\":\"An array of uint256 values from different signers\"},\"returns\":{\"_0\":\"Result of the aggregation in the form of a single number\"}},\"getDataServiceId()\":{\"details\":\"This function must be implemented by the child consumer contract. It should return dataServiceId which DataServiceWrapper will use if not provided explicitly . If not overridden, value will always have to be provided explicitly in DataServiceWrapper.\",\"returns\":{\"_0\":\"dataServiceId being consumed by contract\"}},\"getUniqueSignersThreshold()\":{\"details\":\"This function must be implemented by the child consumer contract.\",\"returns\":{\"_0\":\"The minimum required value of unique authorised signers\"}},\"validateTimestamp(uint256)\":{\"details\":\"This function may be overridden by the child consumer contract. It should validate the timestamp against the current time (block.timestamp) It should revert with a helpful message if the timestamp is not valid\",\"params\":{\"receivedTimestampMilliseconds\":\"Timestamp extracted from calldata\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"getDataFeedIdForAsset(address)\":{\"notice\":\"We can connect manager contract here or implement it directly here By default, users will be able to use data feed identifiers (casted to addresses) in layerbank functions\"},\"updateDataFeedsValuesPartial(bytes32[])\":{\"notice\":\"This function allows to update any set of data feeds\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/stableMultiFeed/StableMultiFeedAdapterWithoutRoundsV1.sol\":\"StableMultiFeedAdapterWithoutRoundsV1\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"@redstone-finance/evm-adapters/contracts/custom-integrations/layerbank/ILToken.sol\":{\"keccak256\":\"0x1f70a93199a1b38b844148a085947aa451ed34da81b10540ac2d32300a014cd1\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://b5f10875842d52d2c72d93d2667e0e23318b24e21f7c209d983af74d0955a053\",\"dweb:/ipfs/QmehQv8CkRsbafXKL19LXGrbZTSP8MYaWRgBTgCanR7AUf\"]},\"@redstone-finance/evm-adapters/contracts/custom-integrations/layerbank/IPriceCalculator.sol\":{\"keccak256\":\"0xf2e0a00843fb9508f50182cfc3a52aec0b0fbf7d8a92aa2e1c151c15cc0c5d70\",\"license\":\"UNLICENSED\",\"urls\":[\"bzz-raw://38dd12eb3b5f03b595531be2be080fe7e9f0de2aa6457ac117edc842004cd056\",\"dweb:/ipfs/QmabAELV8kAtFswgPVAFeSZjq25riywYRRzQRHS6LUZTtX\"]},\"@redstone-finance/evm-adapters/contracts/price-feeds/data-services/MultiFeedAdapterWithoutRoundsPrimaryProd.sol\":{\"keccak256\":\"0x3a5f066114894081fc74122cb58760435914cdabdb85cabcbeb7577caef1f055\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://b1bca980f809f91878da06dd8416cf12ba8018b535251fa4a59b4efadf9bccb2\",\"dweb:/ipfs/QmSQiuzSiYXwAYi9mQEVtveQ8EVyZnhVvg4mqNj6WBcsK4\"]},\"@redstone-finance/evm-adapters/contracts/price-feeds/interfaces/IMultiFeedAdapter.sol\":{\"keccak256\":\"0xb2d8ab6365318f15ab083c6979a22f65f3aa442b64c898b7b629f8b6465e4e6e\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://bf1c39202d5278e22e66f9c98cc4f2ff950bf4d59bdfd8c468c8e46638009d13\",\"dweb:/ipfs/QmZK5Nu5ZDvRX8ZoXFdaPHrcSnWo3Df3AsnY26AeF8yFru\"]},\"@redstone-finance/evm-adapters/contracts/price-feeds/without-rounds/MultiFeedAdapterWithoutRounds.sol\":{\"keccak256\":\"0xe5c9a61df4fa3767ead69c3acb9a4514858a9d3b5efb3608c64b9bbae62b3f5e\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://5cd0823b560ea0d945aaf76d553903ebf61f9d87a75730eeb1dd8c8da3c53f4e\",\"dweb:/ipfs/QmUGU2oQcRFyH7qUPJf6WsDmBcUiwrnQ8wgcYyNWHnPitk\"]},\"@redstone-finance/evm-connector/contracts/core/CalldataExtractor.sol\":{\"keccak256\":\"0x7fb8409876e648a1674f2d61e5331ed909d5de65cd03ba5e2f1ca91ea282b0a6\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://e80226c4327c7c648b823727e72dc04ea3d746784d5362e92a94b0878ff08dc2\",\"dweb:/ipfs/QmfAVb9dc9QcECUmP6iMbc7BDGXb7A3Pd9nxrr2eFucy9t\"]},\"@redstone-finance/evm-connector/contracts/core/RedstoneConstants.sol\":{\"keccak256\":\"0x559f114791f291cf4d511833621e6896014138a74944b684a6c9268443ca0715\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://d18cd03beee47c30030477fc93d27fdd706abd2e990651def0b1bf92c88be71d\",\"dweb:/ipfs/QmPTUdADfddBkqjxgabH9vFbNPoVJcarqjP2oKK25NBLuj\"]},\"@redstone-finance/evm-connector/contracts/core/RedstoneConsumerBase.sol\":{\"keccak256\":\"0xba6efc19580f2a6a5c2e48a9513929b43127879d3972dee31db976653234cd76\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://c7d35b671884f58bf6ce2ec5bfd569dc0c8543efcf2b7a049e1f7e1d9b40f1b5\",\"dweb:/ipfs/QmeSMCisNXmGg4AjGjfnx5Cjgnmr4CpJXW6D5R9ArtzBLB\"]},\"@redstone-finance/evm-connector/contracts/core/RedstoneConsumerNumericBase.sol\":{\"keccak256\":\"0x60562e5dccb3807e6e3e0966a96285973977b82859100a5a012dfc6d2f07b300\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://da4a0a2ccfb11bdd322c76e24726fed71d5f91148391d860105ff9a864a7cf34\",\"dweb:/ipfs/Qmd4wWaDwisrMPijz6QgG8RXjVumMo6TtZsnW9oyXa8u9e\"]},\"@redstone-finance/evm-connector/contracts/core/RedstoneDefaultsLib.sol\":{\"keccak256\":\"0x2671397b80164895fde099ab4b5576de2d009fddf72e5185659e4e5fbc34b5d5\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://fd6b47d547d0bb6e580ade5544553eaf445f694bc1fdd2b99d3db8a994102af1\",\"dweb:/ipfs/QmeQqdHDG4Y7kJeuGfWMC5L9w8yazGJ5Q67Y4TShdSjspG\"]},\"@redstone-finance/evm-connector/contracts/libs/BitmapLib.sol\":{\"keccak256\":\"0x4de3defbeb70cd59ce65dbc0be3d4620b4400cc2a665e64501524dc87d807635\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://15dba9bfd3f2d4e9d4e1b04cbd7a7bb2ec78c260e985e0a5d8017d40d606ee6c\",\"dweb:/ipfs/QmeccN2ojkQZwgqRwexAUzMchrkxutodsp95EsmnVVxpEq\"]},\"@redstone-finance/evm-connector/contracts/libs/NumericArrayLib.sol\":{\"keccak256\":\"0xea7a225601d873602c18add7d08c932865a434c16da2072cf9637a7783facd65\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d00b6afb9ca716404dd7c14629b60079d3e85f10c935af2bb19bab8f1ef556b6\",\"dweb:/ipfs/QmcuAWYUvtQSJMRksnWpSPmTC9jaMtuYagKWzZLJsnyomv\"]},\"@redstone-finance/evm-connector/contracts/libs/SignatureLib.sol\":{\"keccak256\":\"0x8f86524f555c4e718eafba4b3a2be62e1f2e16ed6a11ffdec8c3e9dabc9e96c6\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f3be8952cc6995d5742a5002c63847e7183706d9d3e39093898dc2921e4e0177\",\"dweb:/ipfs/QmcSXyTzEVddJDrdDyqZrNUqboZUYxDjKZSV89gBYg8SbE\"]},\"contracts/__addresses/Addresses.sol\":{\"keccak256\":\"0x6d88dba6de934537353541aec16b7b166367f9747a169778f49f3ee2321ec39c\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://f49deda2715b524008a8e6d90787c3aa7fee7360e5ed4344499834b4888a8bc2\",\"dweb:/ipfs/Qmejqi7BDTYddZs3FWm8HnyseudLBALaAiJW7rJZLV3YxZ\"]},\"contracts/stableMultiFeed/StableMultiFeedAdapterWithoutRoundsV1.sol\":{\"keccak256\":\"0x962c85374e1ecec115b158b5a3b64e181d2f515e69a5975e8cf2cf79917bd4d3\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://78e62e36adf99c496b31ebc3bb4616fe8b39dc391c3fb160d37a08a2ecd08ab0\",\"dweb:/ipfs/QmYSmcksoBwtyFebi78Tdfj7iUrM455kseTnGtEY3Ls2JL\"]}},\"version\":1}","userdoc":{"kind":"user","methods":{"getDataFeedIdForAsset(address)":{"notice":"We can connect manager contract here or implement it directly here By default, users will be able to use data feed identifiers (casted to addresses) in layerbank functions"},"updateDataFeedsValuesPartial(bytes32[])":{"notice":"This function allows to update any set of data feeds"}},"version":1},"devdoc":{"kind":"dev","methods":{"getDataServiceId()":{"details":"This function must be implemented by the child consumer contract. It should return dataServiceId which DataServiceWrapper will use if not provided explicitly . If not overridden, value will always have to be provided explicitly in DataServiceWrapper.","returns":{"_0":"dataServiceId being consumed by contract"}},"aggregateValues(uint256[])":{"params":{"values":"An array of uint256 values from different signers"},"details":"This function may be overridden by the child consumer contract. It should aggregate values from different signers to a single uint value. By default, it calculates the median value","returns":{"_0":"Result of the aggregation in the form of a single number"}},"validateTimestamp(uint256)":{"params":{"receivedTimestampMilliseconds":"Timestamp extracted from calldata"},"details":"This function may be overridden by the child consumer contract. It should validate the timestamp against the current time (block.timestamp) It should revert with a helpful message if the timestamp is not valid"},"getUniqueSignersThreshold()":{"details":"This function must be implemented by the child consumer contract.","returns":{"_0":"The minimum required value of unique authorised signers"}}},"version":1},"storageLayout":{"types":null,"storage":[]},"transientStorageLayout":null,"evm":{"bytecode":{"object":"608060405234801561001057600080fd5b50612190806100206000396000f3fe608060405234801561001057600080fd5b50600436106101825760003560e01c80639037ecae116100d8578063c274583a1161008c578063f90c492411610066578063f90c492414610371578063fb2eeb3b14610378578063fc57d4df1461038b57600080fd5b8063c274583a14610311578063e8689daa14610326578063f50b2efe1461035e57600080fd5b8063b24ebfcc116100bd578063b24ebfcc146102d6578063b7a16251146102e9578063b95ed06f146102fe57600080fd5b80639037ecae146102b0578063971b9c03146102c357600080fd5b806355a547d51161013a5780637de92016116101145780637de9201614610275578063858b033d1461028857806386a8a7221461029057600080fd5b806355a547d51461022c578063612f56bb14610234578063729bfda41461024757600080fd5b806343ba8cad1161016b57806343ba8cad146101e657806344e02982146101f957806348a1371b1461020c57600080fd5b806302b9c828146101875780633ce142f5146101c1575b600080fd5b6101ae610195366004611ceb565b73ffffffffffffffffffffffffffffffffffffffff1690565b6040519081526020015b60405180910390f35b6101d46101cf366004611ceb565b61039e565b60405160ff90911681526020016101b8565b6101ae6101f4366004611d08565b61050c565b6101ae610207366004611d08565b61051f565b61021f61021a366004611dc3565b610532565b6040516101b89190611e62565b6101ae6105d3565b6101ae610242366004611ea6565b61072c565b61025a610255366004611d08565b610746565b604080519384526020840192909252908201526060016101b8565b61021f610283366004611dc3565b6107f9565b6101ae610894565b6102a361029e366004611ec8565b6108e8565b6040516101b89190611f4e565b6101ae6102be366004611d08565b6109f4565b61021f6102d1366004611ec8565b610a08565b6101ae6102e4366004611ec8565b610aa3565b6102fc6102f7366004611ec8565b610aae565b005b6101ae61030c366004611ceb565b610ba3565b610319610bd2565b6040516101b89190611fa7565b610339610334366004611ceb565b610c06565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101b8565b6102fc61036c366004611d08565b610c77565b60036101d4565b61025a610386366004611d08565b610c83565b6101ae610399366004611ceb565b610cf9565b600073ffffffffffffffffffffffffffffffffffffffff8216738bb8f32df04c8b654987daaed53d6b6091e3b774036103d957506000919050565b73ffffffffffffffffffffffffffffffffffffffff821673deb22f54738d54976c4c0fe5ce6d408e40d884990361041257506001919050565b73ffffffffffffffffffffffffffffffffffffffff82167351ce04be4b3e32572c4ec9135221d0691ba7d2020361044b57506002919050565b73ffffffffffffffffffffffffffffffffffffffff821673dd682daec5a90dd295d14da4b0bec9281017b5be0361048457506003919050565b73ffffffffffffffffffffffffffffffffffffffff8216739c5ae89c4af6aa32ce58588dbaf90d18a855b6de036104bd57506004919050565b6040517fec459bc000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff831660048201526024015b60405180910390fd5b600061051782610c83565b509392505050565b600061052a82610c83565b949350505050565b6060815167ffffffffffffffff81111561054e5761054e611d21565b604051908082528060200260200182016040528015610577578160200160208202803683370190505b50905060005b82518110156105cd576105a883828151811061059b5761059b612013565b6020026020010151610cf9565b8282815181106105ba576105ba612013565b602090810291909101015260010161057d565b50919050565b6000806105de610d07565b905060006105eb82610e3c565b925061ffff169050600081900361062e576040517f8552ff3c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8181101561072657600061064484610ea4565b9050600080610654606887612071565b905060006106628236612084565b9050803592508265ffffffffffff166000036106aa576040517f336dc9d000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b876000036106c2578265ffffffffffff169750610703565b878365ffffffffffff1614610703576040517fd9d1f46500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61070d8488612071565b965050505050808061071e90612097565b915050610631565b50505090565b600061073d6402540be400836120cf565b90505b92915050565b60008181527f5e9fb4cb0eb3c2583734d3394f30bb14b241acb9b3a034f7e7ba1a62db4370f160205260408120805465ffffffffffff80821693660100000000000083049091169290917f0100000000000000000000000000000000000000000000000000000000000000900460ff16156107c757806001015491506107f1565b80546c01000000000000000000000000900472ffffffffffffffffffffffffffffffffffffff1691505b509193909250565b6060815167ffffffffffffffff81111561081557610815611d21565b60405190808252806020026020018201604052801561083e578160200160208202803683370190505b50905060005b82518110156105cd5761086f83828151811061086257610862612013565b6020026020010151610ba3565b82828151811061088157610881612013565b6020908102919091010152600101610844565b60006108e37f45544800000000000000000000000000000000000000000000000000000000006102427f455448000000000000000000000000000000000000000000000000000000000061051f565b905090565b6060815167ffffffffffffffff81111561090457610904611d21565b60405190808252806020026020018201604052801561095957816020015b61094660405180606001604052806000815260200160008152602001600081525090565b8152602001906001900390816109225790505b50905060005b82518110156105cd5761098a83828151811061097d5761097d612013565b6020026020010151610746565b84848151811061099c5761099c612013565b60200260200101516000018585815181106109b9576109b9612013565b60200260200101516020018686815181106109d6576109d6612013565b6020908102919091010151604001929092529190525260010161095f565b60006109ff82610c83565b50909392505050565b6060815167ffffffffffffffff811115610a2457610a24611d21565b604051908082528060200260200182016040528015610a4d578160200160208202803683370190505b50905060005b82518110156105cd57610a7e838281518110610a7157610a71612013565b602002602001015161051f565b828281518110610a9057610a90612013565b6020908102919091010152600101610a53565b600061074082610ed8565b600080610aba83610ee3565b91509150610ac781610c77565b65ffffffffffff811115610b0a576040517f48f06f0800000000000000000000000000000000000000000000000000000000815260048101829052602401610503565b65ffffffffffff421115610b4c576040517f5cf61159000000000000000000000000000000000000000000000000000000008152426004820152602401610503565b60005b8351811015610b9d57610b95848281518110610b6d57610b6d612013565b6020026020010151848381518110610b8757610b87612013565b602002602001015184610ef9565b600101610b4f565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff821681610bc68261051f565b905061052a828261072c565b60606040517f608b530700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff16636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c53573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074091906120e6565b610c8081610fdf565b50565b6000806000610c9184610746565b91945092509050610ca484848484611095565b610cf2576040517f4f319ffe00000000000000000000000000000000000000000000000000000000815260048101859052602481018490526044810183905260648101829052608401610503565b9193909250565b600061074061030c83610c06565b60006602ed57011e00007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe036013581161480610d6f576040517fe7764c9e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60003660291115610dac576040517f5796f78a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd736013560006009610de5600362ffffff8516612071565b610def9190612071565b905036610dfd600283612071565b1115610e35576040517fc30a7bd700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b9392505050565b60008080610e4b602085612071565b905036811115610e87576040517f5796f78a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3681900335925082610e9a600286612071565b9250925050915091565b6000806000610eb2846110ba565b9092509050604e610ec4826020612071565b610ece90846120cf565b61052a9190612071565b60006107408261110d565b60606000610ef08361124a565b91509150915091565b6000806000610f0786610746565b925092509250610f1682611497565b610f56576040518681527fd2fed36e637cb43fd01b51ddf3b0ca9d9966df112183894d5699cd9a16f85eb5906020015b60405180910390a1505050505050565b838310610f8d576040518681527ff34a55619bad9bd385340bece69770212d10a808ac72a95e6454acf05462ac1b90602001610f46565b84610fc2576040518681527fad6ebdc3909f212583bf7e8a0f31338c8c92f403f2fd37d23014fb3fd34e310290602001610f46565b610fcd86868661153b565b610fd78686611669565b505050505050565b6000610fed6103e883612132565b90508042101561104857603c6110034283612084565b1115611044576040517fb6b0916d00000000000000000000000000000000000000000000000000000000815260048101829052426024820152604401610503565b5050565b60b46110548242612084565b1115611044576040517f0321d0b500000000000000000000000000000000000000000000000000000000815260048101829052426024820152604401610503565b600080821180156110b15750426110af6201a5e085612071565b115b95945050505050565b60008080808060206110cd604188612071565b6110d79190612071565b6110e19036612084565b8035935090506110f2600382612084565b62ffffff9390931696923563ffffffff169550919350505050565b600081516002036111645760028260018151811061112d5761112d612013565b60200260200101518360008151811061114857611148612013565b602002602001015161115a9190612071565b6107409190612132565b815160000361119f576040517f9e198af900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111a8826116ac565b6000600283516111b89190612132565b9050600283516111c89190612146565b6000036112285760008382815181106111e3576111e3612013565b6020026020010151846001846111f99190612084565b8151811061120957611209612013565b602002602001015161121b9190612071565b905061052a600282612132565b82818151811061123a5761123a612013565b6020026020010151915050919050565b6060600080835167ffffffffffffffff81111561126957611269611d21565b604051908082528060200260200182016040528015611292578160200160208202803683370190505b5090506000845167ffffffffffffffff8111156112b1576112b1611d21565b6040519080825280602002602001820160405280156112da578160200160208202803683370190505b5090506000855167ffffffffffffffff8111156112f9576112f9611d21565b60405190808252806020026020018201604052801561132c57816020015b60608152602001906001900390816113175790505b509050600360005b87518110156113a5578167ffffffffffffffff81111561135657611356611d21565b60405190808252806020026020018201604052801561137f578160200160208202803683370190505b5083828151811061139257611392612013565b6020908102919091010152600101611334565b5060006113b0610d07565b905060006113bd82610e3c565b60405190935061ffff909116915060005b8281101561147e5760006113e58c8a8a8a896116f4565b90955090506000819003611425576040517fdfb25a7900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b89811461146e578960000361143c5780995061146e565b6040517f4cbc474200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50602082016040526001016113ce565b50611489858861199d565b985050505050505050915091565b6000337301726847a184fff6f65ac14a322108260b51e81f14806114ce575033733927a0ccb6d4d92aa0c6037d00393940b2295968145b806114ec57503373ae8474802ecb7d2c03eab7fe975b1dc65f90d46c145b8061150a57503373cd6bfda4d95d5c0f3f2882dc221d792392c99714145b8061152857503373c4d1ae5e796e6d7561cdc8335f85e6b57a36e097145b156115335750421190565b506000919050565b60007f5e9fb4cb0eb3c2583734d3394f30bb14b241acb9b3a034f7e7ba1a62db4370f160008581526020918252604090819020815160808101835265ffffffffffff8681168083524290911694820185905272ffffffffffffffffffffffffffffffffffffff8881169483018590528811606090920182905282547fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016176601000000000000909402939093176bffffffffffffffffffffffff166c010000000000000000000000009092027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16919091177f010000000000000000000000000000000000000000000000000000000000000083021781559150801561166257600182018490555b5050505050565b6040805182815260208101849052428183015290517ff36866d965ee70c8632ff558f5cf8d41ee9ca1d0d0bc7700786e57be607473909181900360600190a15050565b8051602082016020820281019150805b82811015610b9d57815b818110156116eb5781518151808210156116e1578084528183525b50506020016116c6565b506020016116bc565b6000806000806000611705866110ba565b909250905060008060608180600d61171e602088612071565b61172890896120cf565b6117329190612071565b9150600061174160688d612071565b61174b9036612084565b905060008361175b60418f612071565b6117659190612071565b61176f9036612084565b905061177b848261178e565b94508360208601209550813592506117d0565b604080518381526020818501810190925260009101838382377fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0019392505050565b8265ffffffffffff169a506117f18660418f6117ec9190612071565b611ac5565b96506117fc8761039e565b60ff16995050505050505050604e866118159190612071565b955060008060005b8481101561198a576020611831858b612071565b61183b9190612071565b98506118478985611c5d565b909350915060005b8d51811015611981578d818151811061186a5761186a612013565b602002602001015184036119795760008c828151811061188c5761188c612013565b602002602001015190506118a581896001901b16151590565b1580156118ce5750600360ff168e83815181106118c4576118c4612013565b6020026020010151105b1561197357838c83815181106118e6576118e6612013565b60200260200101518f848151811061190057611900612013565b60200260200101518151811061191857611918612013565b6020026020010181815250508d828151811061193657611936612013565b60200260200101805180919061194b90612097565b9052506001881b81178d838151811061196657611966612013565b6020026020010181815250505b50611981565b60010161184f565b5060010161181d565b5050508594505050509550959350505050565b60606000835167ffffffffffffffff8111156119bb576119bb611d21565b6040519080825280602002602001820160405280156119e4578160200160208202803683370190505b509050600360005b8551811015611abb5781858281518110611a0857611a08612013565b60200260200101511015611a6e57848181518110611a2857611a28612013565b6020026020010151826040517f2b13aef5000000000000000000000000000000000000000000000000000000008152600401610503929190918252602082015260400190565b6000611a92878381518110611a8557611a85612013565b6020026020010151610aa3565b905080848381518110611aa757611aa7612013565b6020908102919091010152506001016119ec565b5090949350505050565b60003682900380359060208101359060400135831a601b8114801590611aef575060ff8116601c14155b15611b29576040517f666b7cba00000000000000000000000000000000000000000000000000000000815260048101879052602401610503565b7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115611b86576040517f666b7cba00000000000000000000000000000000000000000000000000000000815260048101879052602401610503565b60408051600081526020810180835288905260ff831691810191909152606081018490526080810183905260019060a0016020604051602081039080840390855afa158015611bd9573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015194505073ffffffffffffffffffffffffffffffffffffffff8416611c54576040517f666b7cba00000000000000000000000000000000000000000000000000000000815260048101879052602401610503565b50505092915050565b60008080611c6b8536612084565b9050803592506020810135915060218410611cb5576040517fc000fc4200000000000000000000000000000000000000000000000000000000815260048101859052602401610503565b8360200360080282901c9150509250929050565b73ffffffffffffffffffffffffffffffffffffffff81168114610c8057600080fd5b600060208284031215611cfd57600080fd5b8135610e3581611cc9565b600060208284031215611d1a57600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715611d9757611d97611d21565b604052919050565b600067ffffffffffffffff821115611db957611db9611d21565b5060051b60200190565b60006020808385031215611dd657600080fd5b823567ffffffffffffffff811115611ded57600080fd5b8301601f81018513611dfe57600080fd5b8035611e11611e0c82611d9f565b611d50565b81815260059190911b82018301908381019087831115611e3057600080fd5b928401925b82841015611e57578335611e4881611cc9565b82529284019290840190611e35565b979650505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611e9a57835183529284019291840191600101611e7e565b50909695505050505050565b60008060408385031215611eb957600080fd5b50508035926020909101359150565b60006020808385031215611edb57600080fd5b823567ffffffffffffffff811115611ef257600080fd5b8301601f81018513611f0357600080fd5b8035611f11611e0c82611d9f565b81815260059190911b82018301908381019087831115611f3057600080fd5b928401925b82841015611e5757833582529284019290840190611f35565b602080825282518282018190526000919060409081850190868401855b82811015611f9a5781518051855286810151878601528501518585015260609093019290850190600101611f6b565b5091979650505050505050565b600060208083528351808285015260005b81811015611fd457858101830151858201604001528201611fb8565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082018082111561074057610740612042565b8181038181111561074057610740612042565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036120c8576120c8612042565b5060010190565b808202811582820484141761074057610740612042565b6000602082840312156120f857600080fd5b8151610e3581611cc9565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008261214157612141612103565b500490565b60008261215557612155612103565b50069056fea2646970667358221220248e9728d98cd627ba97cee8dfd2c0cdc771cd6f76f09b75fdeb25d4629747b964736f6c63430008110033","sourceMap":"313:837:14:-:0;;;;;;;;;;;;;;;;;;;","linkReferences":{}},"deployedBytecode":{"object":"608060405234801561001057600080fd5b50600436106101825760003560e01c80639037ecae116100d8578063c274583a1161008c578063f90c492411610066578063f90c492414610371578063fb2eeb3b14610378578063fc57d4df1461038b57600080fd5b8063c274583a14610311578063e8689daa14610326578063f50b2efe1461035e57600080fd5b8063b24ebfcc116100bd578063b24ebfcc146102d6578063b7a16251146102e9578063b95ed06f146102fe57600080fd5b80639037ecae146102b0578063971b9c03146102c357600080fd5b806355a547d51161013a5780637de92016116101145780637de9201614610275578063858b033d1461028857806386a8a7221461029057600080fd5b806355a547d51461022c578063612f56bb14610234578063729bfda41461024757600080fd5b806343ba8cad1161016b57806343ba8cad146101e657806344e02982146101f957806348a1371b1461020c57600080fd5b806302b9c828146101875780633ce142f5146101c1575b600080fd5b6101ae610195366004611ceb565b73ffffffffffffffffffffffffffffffffffffffff1690565b6040519081526020015b60405180910390f35b6101d46101cf366004611ceb565b61039e565b60405160ff90911681526020016101b8565b6101ae6101f4366004611d08565b61050c565b6101ae610207366004611d08565b61051f565b61021f61021a366004611dc3565b610532565b6040516101b89190611e62565b6101ae6105d3565b6101ae610242366004611ea6565b61072c565b61025a610255366004611d08565b610746565b604080519384526020840192909252908201526060016101b8565b61021f610283366004611dc3565b6107f9565b6101ae610894565b6102a361029e366004611ec8565b6108e8565b6040516101b89190611f4e565b6101ae6102be366004611d08565b6109f4565b61021f6102d1366004611ec8565b610a08565b6101ae6102e4366004611ec8565b610aa3565b6102fc6102f7366004611ec8565b610aae565b005b6101ae61030c366004611ceb565b610ba3565b610319610bd2565b6040516101b89190611fa7565b610339610334366004611ceb565b610c06565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101b8565b6102fc61036c366004611d08565b610c77565b60036101d4565b61025a610386366004611d08565b610c83565b6101ae610399366004611ceb565b610cf9565b600073ffffffffffffffffffffffffffffffffffffffff8216738bb8f32df04c8b654987daaed53d6b6091e3b774036103d957506000919050565b73ffffffffffffffffffffffffffffffffffffffff821673deb22f54738d54976c4c0fe5ce6d408e40d884990361041257506001919050565b73ffffffffffffffffffffffffffffffffffffffff82167351ce04be4b3e32572c4ec9135221d0691ba7d2020361044b57506002919050565b73ffffffffffffffffffffffffffffffffffffffff821673dd682daec5a90dd295d14da4b0bec9281017b5be0361048457506003919050565b73ffffffffffffffffffffffffffffffffffffffff8216739c5ae89c4af6aa32ce58588dbaf90d18a855b6de036104bd57506004919050565b6040517fec459bc000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff831660048201526024015b60405180910390fd5b600061051782610c83565b509392505050565b600061052a82610c83565b949350505050565b6060815167ffffffffffffffff81111561054e5761054e611d21565b604051908082528060200260200182016040528015610577578160200160208202803683370190505b50905060005b82518110156105cd576105a883828151811061059b5761059b612013565b6020026020010151610cf9565b8282815181106105ba576105ba612013565b602090810291909101015260010161057d565b50919050565b6000806105de610d07565b905060006105eb82610e3c565b925061ffff169050600081900361062e576040517f8552ff3c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8181101561072657600061064484610ea4565b9050600080610654606887612071565b905060006106628236612084565b9050803592508265ffffffffffff166000036106aa576040517f336dc9d000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b876000036106c2578265ffffffffffff169750610703565b878365ffffffffffff1614610703576040517fd9d1f46500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61070d8488612071565b965050505050808061071e90612097565b915050610631565b50505090565b600061073d6402540be400836120cf565b90505b92915050565b60008181527f5e9fb4cb0eb3c2583734d3394f30bb14b241acb9b3a034f7e7ba1a62db4370f160205260408120805465ffffffffffff80821693660100000000000083049091169290917f0100000000000000000000000000000000000000000000000000000000000000900460ff16156107c757806001015491506107f1565b80546c01000000000000000000000000900472ffffffffffffffffffffffffffffffffffffff1691505b509193909250565b6060815167ffffffffffffffff81111561081557610815611d21565b60405190808252806020026020018201604052801561083e578160200160208202803683370190505b50905060005b82518110156105cd5761086f83828151811061086257610862612013565b6020026020010151610ba3565b82828151811061088157610881612013565b6020908102919091010152600101610844565b60006108e37f45544800000000000000000000000000000000000000000000000000000000006102427f455448000000000000000000000000000000000000000000000000000000000061051f565b905090565b6060815167ffffffffffffffff81111561090457610904611d21565b60405190808252806020026020018201604052801561095957816020015b61094660405180606001604052806000815260200160008152602001600081525090565b8152602001906001900390816109225790505b50905060005b82518110156105cd5761098a83828151811061097d5761097d612013565b6020026020010151610746565b84848151811061099c5761099c612013565b60200260200101516000018585815181106109b9576109b9612013565b60200260200101516020018686815181106109d6576109d6612013565b6020908102919091010151604001929092529190525260010161095f565b60006109ff82610c83565b50909392505050565b6060815167ffffffffffffffff811115610a2457610a24611d21565b604051908082528060200260200182016040528015610a4d578160200160208202803683370190505b50905060005b82518110156105cd57610a7e838281518110610a7157610a71612013565b602002602001015161051f565b828281518110610a9057610a90612013565b6020908102919091010152600101610a53565b600061074082610ed8565b600080610aba83610ee3565b91509150610ac781610c77565b65ffffffffffff811115610b0a576040517f48f06f0800000000000000000000000000000000000000000000000000000000815260048101829052602401610503565b65ffffffffffff421115610b4c576040517f5cf61159000000000000000000000000000000000000000000000000000000008152426004820152602401610503565b60005b8351811015610b9d57610b95848281518110610b6d57610b6d612013565b6020026020010151848381518110610b8757610b87612013565b602002602001015184610ef9565b600101610b4f565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff821681610bc68261051f565b905061052a828261072c565b60606040517f608b530700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff16636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c53573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074091906120e6565b610c8081610fdf565b50565b6000806000610c9184610746565b91945092509050610ca484848484611095565b610cf2576040517f4f319ffe00000000000000000000000000000000000000000000000000000000815260048101859052602481018490526044810183905260648101829052608401610503565b9193909250565b600061074061030c83610c06565b60006602ed57011e00007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe036013581161480610d6f576040517fe7764c9e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60003660291115610dac576040517f5796f78a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd736013560006009610de5600362ffffff8516612071565b610def9190612071565b905036610dfd600283612071565b1115610e35576040517fc30a7bd700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b9392505050565b60008080610e4b602085612071565b905036811115610e87576040517f5796f78a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3681900335925082610e9a600286612071565b9250925050915091565b6000806000610eb2846110ba565b9092509050604e610ec4826020612071565b610ece90846120cf565b61052a9190612071565b60006107408261110d565b60606000610ef08361124a565b91509150915091565b6000806000610f0786610746565b925092509250610f1682611497565b610f56576040518681527fd2fed36e637cb43fd01b51ddf3b0ca9d9966df112183894d5699cd9a16f85eb5906020015b60405180910390a1505050505050565b838310610f8d576040518681527ff34a55619bad9bd385340bece69770212d10a808ac72a95e6454acf05462ac1b90602001610f46565b84610fc2576040518681527fad6ebdc3909f212583bf7e8a0f31338c8c92f403f2fd37d23014fb3fd34e310290602001610f46565b610fcd86868661153b565b610fd78686611669565b505050505050565b6000610fed6103e883612132565b90508042101561104857603c6110034283612084565b1115611044576040517fb6b0916d00000000000000000000000000000000000000000000000000000000815260048101829052426024820152604401610503565b5050565b60b46110548242612084565b1115611044576040517f0321d0b500000000000000000000000000000000000000000000000000000000815260048101829052426024820152604401610503565b600080821180156110b15750426110af6201a5e085612071565b115b95945050505050565b60008080808060206110cd604188612071565b6110d79190612071565b6110e19036612084565b8035935090506110f2600382612084565b62ffffff9390931696923563ffffffff169550919350505050565b600081516002036111645760028260018151811061112d5761112d612013565b60200260200101518360008151811061114857611148612013565b602002602001015161115a9190612071565b6107409190612132565b815160000361119f576040517f9e198af900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111a8826116ac565b6000600283516111b89190612132565b9050600283516111c89190612146565b6000036112285760008382815181106111e3576111e3612013565b6020026020010151846001846111f99190612084565b8151811061120957611209612013565b602002602001015161121b9190612071565b905061052a600282612132565b82818151811061123a5761123a612013565b6020026020010151915050919050565b6060600080835167ffffffffffffffff81111561126957611269611d21565b604051908082528060200260200182016040528015611292578160200160208202803683370190505b5090506000845167ffffffffffffffff8111156112b1576112b1611d21565b6040519080825280602002602001820160405280156112da578160200160208202803683370190505b5090506000855167ffffffffffffffff8111156112f9576112f9611d21565b60405190808252806020026020018201604052801561132c57816020015b60608152602001906001900390816113175790505b509050600360005b87518110156113a5578167ffffffffffffffff81111561135657611356611d21565b60405190808252806020026020018201604052801561137f578160200160208202803683370190505b5083828151811061139257611392612013565b6020908102919091010152600101611334565b5060006113b0610d07565b905060006113bd82610e3c565b60405190935061ffff909116915060005b8281101561147e5760006113e58c8a8a8a896116f4565b90955090506000819003611425576040517fdfb25a7900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b89811461146e578960000361143c5780995061146e565b6040517f4cbc474200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50602082016040526001016113ce565b50611489858861199d565b985050505050505050915091565b6000337301726847a184fff6f65ac14a322108260b51e81f14806114ce575033733927a0ccb6d4d92aa0c6037d00393940b2295968145b806114ec57503373ae8474802ecb7d2c03eab7fe975b1dc65f90d46c145b8061150a57503373cd6bfda4d95d5c0f3f2882dc221d792392c99714145b8061152857503373c4d1ae5e796e6d7561cdc8335f85e6b57a36e097145b156115335750421190565b506000919050565b60007f5e9fb4cb0eb3c2583734d3394f30bb14b241acb9b3a034f7e7ba1a62db4370f160008581526020918252604090819020815160808101835265ffffffffffff8681168083524290911694820185905272ffffffffffffffffffffffffffffffffffffff8881169483018590528811606090920182905282547fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016176601000000000000909402939093176bffffffffffffffffffffffff166c010000000000000000000000009092027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16919091177f010000000000000000000000000000000000000000000000000000000000000083021781559150801561166257600182018490555b5050505050565b6040805182815260208101849052428183015290517ff36866d965ee70c8632ff558f5cf8d41ee9ca1d0d0bc7700786e57be607473909181900360600190a15050565b8051602082016020820281019150805b82811015610b9d57815b818110156116eb5781518151808210156116e1578084528183525b50506020016116c6565b506020016116bc565b6000806000806000611705866110ba565b909250905060008060608180600d61171e602088612071565b61172890896120cf565b6117329190612071565b9150600061174160688d612071565b61174b9036612084565b905060008361175b60418f612071565b6117659190612071565b61176f9036612084565b905061177b848261178e565b94508360208601209550813592506117d0565b604080518381526020818501810190925260009101838382377fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0019392505050565b8265ffffffffffff169a506117f18660418f6117ec9190612071565b611ac5565b96506117fc8761039e565b60ff16995050505050505050604e866118159190612071565b955060008060005b8481101561198a576020611831858b612071565b61183b9190612071565b98506118478985611c5d565b909350915060005b8d51811015611981578d818151811061186a5761186a612013565b602002602001015184036119795760008c828151811061188c5761188c612013565b602002602001015190506118a581896001901b16151590565b1580156118ce5750600360ff168e83815181106118c4576118c4612013565b6020026020010151105b1561197357838c83815181106118e6576118e6612013565b60200260200101518f848151811061190057611900612013565b60200260200101518151811061191857611918612013565b6020026020010181815250508d828151811061193657611936612013565b60200260200101805180919061194b90612097565b9052506001881b81178d838151811061196657611966612013565b6020026020010181815250505b50611981565b60010161184f565b5060010161181d565b5050508594505050509550959350505050565b60606000835167ffffffffffffffff8111156119bb576119bb611d21565b6040519080825280602002602001820160405280156119e4578160200160208202803683370190505b509050600360005b8551811015611abb5781858281518110611a0857611a08612013565b60200260200101511015611a6e57848181518110611a2857611a28612013565b6020026020010151826040517f2b13aef5000000000000000000000000000000000000000000000000000000008152600401610503929190918252602082015260400190565b6000611a92878381518110611a8557611a85612013565b6020026020010151610aa3565b905080848381518110611aa757611aa7612013565b6020908102919091010152506001016119ec565b5090949350505050565b60003682900380359060208101359060400135831a601b8114801590611aef575060ff8116601c14155b15611b29576040517f666b7cba00000000000000000000000000000000000000000000000000000000815260048101879052602401610503565b7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115611b86576040517f666b7cba00000000000000000000000000000000000000000000000000000000815260048101879052602401610503565b60408051600081526020810180835288905260ff831691810191909152606081018490526080810183905260019060a0016020604051602081039080840390855afa158015611bd9573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015194505073ffffffffffffffffffffffffffffffffffffffff8416611c54576040517f666b7cba00000000000000000000000000000000000000000000000000000000815260048101879052602401610503565b50505092915050565b60008080611c6b8536612084565b9050803592506020810135915060218410611cb5576040517fc000fc4200000000000000000000000000000000000000000000000000000000815260048101859052602401610503565b8360200360080282901c9150509250929050565b73ffffffffffffffffffffffffffffffffffffffff81168114610c8057600080fd5b600060208284031215611cfd57600080fd5b8135610e3581611cc9565b600060208284031215611d1a57600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715611d9757611d97611d21565b604052919050565b600067ffffffffffffffff821115611db957611db9611d21565b5060051b60200190565b60006020808385031215611dd657600080fd5b823567ffffffffffffffff811115611ded57600080fd5b8301601f81018513611dfe57600080fd5b8035611e11611e0c82611d9f565b611d50565b81815260059190911b82018301908381019087831115611e3057600080fd5b928401925b82841015611e57578335611e4881611cc9565b82529284019290840190611e35565b979650505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611e9a57835183529284019291840191600101611e7e565b50909695505050505050565b60008060408385031215611eb957600080fd5b50508035926020909101359150565b60006020808385031215611edb57600080fd5b823567ffffffffffffffff811115611ef257600080fd5b8301601f81018513611f0357600080fd5b8035611f11611e0c82611d9f565b81815260059190911b82018301908381019087831115611f3057600080fd5b928401925b82841015611e5757833582529284019290840190611f35565b602080825282518282018190526000919060409081850190868401855b82811015611f9a5781518051855286810151878601528501518585015260609093019290850190600101611f6b565b5091979650505050505050565b600060208083528351808285015260005b81811015611fd457858101830151858201604001528201611fb8565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082018082111561074057610740612042565b8181038181111561074057610740612042565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036120c8576120c8612042565b5060010190565b808202811582820484141761074057610740612042565b6000602082840312156120f857600080fd5b8151610e3581611cc9565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008261214157612141612103565b500490565b60008261215557612155612103565b50069056fea2646970667358221220248e9728d98cd627ba97cee8dfd2c0cdc771cd6f76f09b75fdeb25d4629747b964736f6c63430008110033","sourceMap":"313:837:14:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10797:133:4;;;;;;:::i;:::-;10901:23;;;10797:133;;;;571:25:15;;;559:2;544:18;10797:133:4;;;;;;;;365:616:2;;;;;;:::i;:::-;;:::i;:::-;;;779:4:15;767:17;;;749:36;;737:2;722:18;365:616:2;607:184:15;10250::4;;;;;;:::i;:::-;;:::i;9889:165::-;;;;;;:::i;:::-;;:::i;12087:307::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;600:1411:5:-;;;:::i;10934:200:4:-;;;;;;:::i;:::-;;:::i;6246:529::-;;;;;;:::i;:::-;;:::i;:::-;;;;3942:25:15;;;3998:2;3983:18;;3976:34;;;;4026:18;;;4019:34;3930:2;3915:18;6246:529:4;3740:319:15;11669:283:4;;;;;;:::i;:::-;;:::i;11515:150::-;;;:::i;9062:463::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;10058:188::-;;;;;;:::i;:::-;;:::i;9529:356::-;;;;;;:::i;:::-;;:::i;2678:149:7:-;;;;;;:::i;:::-;;:::i;3125:1092:4:-;;;;;;:::i;:::-;;:::i;:::-;;11269:242;;;;;;:::i;:::-;;:::i;1024:122:7:-;;;:::i;:::-;;;;;;;:::i;11138:127:4:-;;;;;;:::i;:::-;;:::i;:::-;;;7510:42:15;7498:55;;;7480:74;;7468:2;7453:18;11138:127:4;7334:226:15;1923:165:7;;;;;;:::i;:::-;;:::i;260:101:2:-;355:1;260:101;;5773:469:4;;;;;;:::i;:::-;;:::i;11956:127::-;;;;;;:::i;:::-;;:::i;365:616:2:-;468:5;485:59;;;502:42;485:59;481:496;;-1:-1:-1;555:1:2;;365:616;-1:-1:-1;365:616:2:o;481:496::-;573:59;;;590:42;573:59;569:408;;-1:-1:-1;643:1:2;;365:616;-1:-1:-1;365:616:2:o;569:408::-;661:59;;;678:42;661:59;657:320;;-1:-1:-1;731:1:2;;365:616;-1:-1:-1;365:616:2:o;657:320::-;749:59;;;766:42;749:59;745:232;;-1:-1:-1;819:1:2;;365:616;-1:-1:-1;365:616:2:o;745:232::-;837:59;;;854:42;837:59;833:144;;-1:-1:-1;907:1:2;;365:616;-1:-1:-1;365:616:2:o;833:144::-;936:34;;;;;7510:42:15;7498:55;;936:34:2;;;7480:74:15;7453:18;;936:34:2;;;;;;;;10250:184:4;10344:22;10397:32;10418:10;10397:20;:32::i;:::-;-1:-1:-1;10374:55:4;10250:184;-1:-1:-1;;;10250:184:4:o;9889:165::-;9967:21;10017:32;10038:10;10017:20;:32::i;:::-;9996:53;9889:165;-1:-1:-1;;;;9889:165:4:o;12087:307::-;12171:23;12225:7;:14;12211:29;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12211:29:4;;12202:38;;12251:9;12246:144;12270:7;:14;12266:1;:18;12246:144;;;12307:30;12326:7;12334:1;12326:10;;;;;;;;:::i;:::-;;;;;;;12307:18;:30::i;:::-;12295:6;12302:1;12295:9;;;;;;;;:::i;:::-;;;;;;;;;;:42;12357:3;;12246:144;;;;12087:307;;;:::o;600:1411:5:-;670:26;704:30;737:36;:34;:36::i;:::-;704:69;;779:25;856:61;894:22;856:37;:61::i;:::-;810:107;-1:-1:-1;810:107:5;;;-1:-1:-1;949:1:5;928:22;;;924:96;;967:46;;;;;;;;;;;;;;924:96;1031:24;1026:981;1080:17;1061:16;:36;1026:981;;;1127:27;1157:47;1181:22;1157:23;:47::i;:::-;1127:77;-1:-1:-1;1272:27:5;;1384:88;1655:3:6;1384:22:5;:88;:::i;:::-;1349:124;-1:-1:-1;1481:23:5;1507:41;1349:124;1507:8;:41;:::i;:::-;1481:67;;1612:15;1599:29;1575:53;;1648:20;:25;;1672:1;1648:25;1644:92;;1692:35;;;;;;;;;;;;;;1644:92;1748:18;1770:1;1748:23;1744:203;;1804:20;1783:41;;;;1744:203;;;1867:18;1843:20;:42;;;1839:108;;1904:34;;;;;;;;;;;;;;1839:108;1955:45;1981:19;1955:45;;:::i;:::-;;;1119:888;;;;1099:18;;;;;:::i;:::-;;;;1026:981;;;;698:1313;;600:1411;:::o;10934:200:4:-;11048:7;11070:59;2262:4;11070:24;:59;:::i;:::-;11063:66;;10934:200;;;;;:::o;6246:529::-;6331:25;6466:45;;;6894:27;6466:45;;;;;6538:30;;;;;;;6595:31;;;;;;;6331:25;;6637:30;;;;;6633:138;;;6689:8;:20;;;6677:32;;6633:138;;;6742:22;;;;;;;;-1:-1:-1;6633:138:4;6405:370;6246:529;;;;;:::o;11669:283::-;11743:23;11797:6;:13;11783:28;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11783:28:4;;11774:37;;11822:9;11817:131;11841:6;:13;11837:1;:17;11817:131;;;11877:18;11885:6;11892:1;11885:9;;;;;;;;:::i;:::-;;;;;;;11877:7;:18::i;:::-;11865:6;11872:1;11865:9;;;;;;;;:::i;:::-;;;;;;;;;;:30;11915:3;;11817:131;;11515:150;11566:7;11588:72;2124:14;11622:37;2124:14;11622:19;:37::i;11588:72::-;11581:79;;11515:150;:::o;9062:463::-;9158:42;9250:11;:18;9226:43;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;9226:43:4;;;;;;;;;;;;;;;;;9208:61;;9280:9;9275:246;9299:11;:18;9295:1;:22;9275:246;;;9426:42;9453:11;9465:1;9453:14;;;;;;;;:::i;:::-;;;;;;;9426:26;:42::i;:::-;9329:15;9345:1;9329:18;;;;;;;;:::i;:::-;;;;;;;:32;;9363:15;9379:1;9363:18;;;;;;;;:::i;:::-;;;;;;;:33;;9398:15;9414:1;9398:18;;;;;;;;:::i;:::-;;;;;;;;;;;:24;;9328:140;;;;;;;;9488:3;;9275:246;;10058:188;10151:25;10209:32;10230:10;10209:20;:32::i;:::-;-1:-1:-1;10184:57:4;;10058:188;-1:-1:-1;;;10058:188:4:o;9529:356::-;9622:23;9676:20;:27;9662:42;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;9662:42:4;;9653:51;;9715:9;9710:171;9734:20;:27;9730:1;:31;9710:171;;;9784:44;9804:20;9825:1;9804:23;;;;;;;;:::i;:::-;;;;;;;9784:19;:44::i;:::-;9772:6;9779:1;9772:9;;;;;;;;:::i;:::-;;;;;;;;;;:56;9848:3;;9710:171;;2678:149:7;2757:7;2779:43;2815:6;2779:35;:43::i;3125:1092:4:-;3208:29;3239:30;3273:57;3317:12;3273:43;:57::i;:::-;3207:123;;;;3423:41;3441:22;3423:17;:41::i;:::-;3600:16;3575:41;;3571:114;;;3633:45;;;;;;;;571:25:15;;;544:18;;3633:45:4;425:177:15;3571:114:4;3712:16;3694:15;:34;3690:101;;;3745:39;;;;;3768:15;3745:39;;;571:25:15;544:18;;3745:39:4;425:177:15;3690:101:4;3874:9;3869:344;3893:12;:19;3889:1;:23;3869:344;;;4082:78;4103:12;4116:1;4103:15;;;;;;;;:::i;:::-;;;;;;;4120:12;4133:1;4120:15;;;;;;;;:::i;:::-;;;;;;;4137:22;4082:20;:78::i;:::-;4180:3;;3869:344;;;;3201:1016;;3125:1092;:::o;11269:242::-;11330:7;10901:23;;;11330:7;11422:31;10901:23;11422:19;:31::i;:::-;11400:53;;11466:40;11482:10;11494:11;11466:15;:40::i;1024:122:7:-;1081:13;1109:32;;;;;;;;;;;;;;11138:127:4;11210:7;11240:6;11232:26;;;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;1923:165:7:-;2015:68;2053:29;2015:37;:68::i;:::-;1923:165;:::o;5773:469:4:-;5852:25;5879:26;5907:17;5985:38;6012:10;5985:26;:38::i;:::-;5932:91;;-1:-1:-1;5932:91:4;-1:-1:-1;5932:91:4;-1:-1:-1;6034:94:4;6067:10;5932:91;;;6034:32;:94::i;:::-;6029:209;;6145:86;;;;;;;;9251:25:15;;;9292:18;;;9285:34;;;9335:18;;;9328:34;;;9378:18;;;9371:34;;;9223:19;;6145:86:4;9020:391:15;6029:209:4;5773:469;;;;;:::o;11956:127::-;12021:7;12043:35;12051:26;12070:6;12051:18;:26::i;2411:1169:5:-;2480:7;2785:20;2647:37;2651:14;2647:37;2634:51;2760:46;;2718:96;;2825:81;;2869:30;;;;;;;;;;;;;;2825:81;2988:31;3072:8;2114:2:6;3029:58:5;3025:111;;;3104:25;;;;;;;;;;;;;;3025:111;-1:-1:-1;3208:61:5;3212:14;3208:61;3186:91;3288:30;1363:1:6;3321:63:5;1311:1:6;3321:63:5;;;;:::i;:::-;:90;;;;:::i;:::-;3288:123;-1:-1:-1;3471:8:5;3421:47;1075:1:6;3288:123:5;3421:47;:::i;:::-;:65;3417:124;;;3503:31;;;;;;;;;;;;;;3417:124;3553:22;2411:1169;-1:-1:-1;;;2411:1169:5:o;3662:612::-;3776:24;;;3895:41;525:2:6;3895:22:5;:41;:::i;:::-;3846:90;-1:-1:-1;3987:8:5;3946:56;;3942:109;;;4019:25;;;;;;;;;;;;;;3942:109;4120:14;4116:59;;;4094:89;;-1:-1:-1;4094:89:5;4221:47;1075:1:6;4221:22:5;:47;:::i;:::-;4194:75;;;;;3662:612;;;:::o;2015:392::-;2103:7;2126:23;2157:34;2200:63;2240:22;2200:39;:63::i;:::-;2118:145;;-1:-1:-1;2118:145:5;-1:-1:-1;1810:2:6;2308:49:5;2118:145;1246:2:6;2308:49:5;:::i;:::-;2283:75;;:15;:75;:::i;:::-;:119;;;;:::i;1548:134:9:-;1621:7;1643:34;1670:6;1643:26;:34::i;3688:239:8:-;3818:16;3836:7;3860:62;3910:11;3860:49;:62::i;:::-;3853:69;;;;3688:239;;;:::o;4221:758:4:-;4333:25;4360:26;4388:17;4409:38;4436:10;4409:26;:38::i;:::-;4332:115;;;;;;4459:43;4483:18;4459:23;:43::i;:::-;4454:125;;4517:41;;571:25:15;;;4517:41:4;;559:2:15;544:18;4517:41:4;;;;;;;;4566:7;;;4221:758;;;:::o;4454:125::-;-1:-1:-1;;;4585:137:4;;4661:40;;571:25:15;;;4661:40:4;;559:2:15;544:18;4661:40:4;425:177:15;4585:137:4;8088:17;4728:134;;4802:39;;571:25:15;;;4802:39:4;;559:2:15;544:18;4802:39:4;425:177:15;4728:134:4;4868:55;4890:10;4902:5;4909:13;4868:21;:55::i;:::-;4929:45;4956:10;4968:5;4929:26;:45::i;:::-;4326:653;;;4221:758;;;:::o;585:959:9:-;1031:32;1066:36;1098:4;1066:29;:36;:::i;:::-;1031:71;;1131:24;1113:15;:42;1109:431;;;391:9;1170:42;1197:15;1170:24;:42;:::i;:::-;1169:87;1165:188;;;1275:69;;;;;;;;9904:25:15;;;1328:15:9;9945:18:15;;;9938:34;9877:18;;1275:69:9;9730:248:15;1165:188:9;665:879;585:959;:::o;1109:431::-;318:9;1370:42;1388:24;1370:15;:42;:::i;:::-;1369:87;1365:175;;;1473:60;;;;;;;;9904:25:15;;;1517:15:9;9945:18:15;;;9938:34;9877:18;;1473:60:9;9730:248:15;8280:277:4;8459:4;8490:1;8478:9;:13;:74;;;;-1:-1:-1;8537:15:4;8495:39;2189:8;8495:18;:39;:::i;:::-;:57;8478:74;8471:81;8280:277;-1:-1:-1;;;;;8280:277:4:o;4956:961:5:-;5086:23;;;;;525:2:6;5447:45:5;972:2:6;5447:36:5;:45;:::i;:::-;:64;;;;:::i;:::-;5428:84;;:8;:84;:::i;:::-;5555:28;;;-1:-1:-1;5403:109:5;-1:-1:-1;5654:37:5;1129:1:6;5403:109:5;5654:37;:::i;:::-;5816:34;;;;;;5745:28;;5856:56;;;-1:-1:-1;5816:34:5;;-1:-1:-1;;;;4956:961:5:o;390:447:11:-;455:7;474:3;:10;488:1;474:15;470:64;;526:1;516:3;520:1;516:6;;;;;;;;:::i;:::-;;;;;;;507:3;511:1;507:6;;;;;;;;:::i;:::-;;;;;;;:15;;;;:::i;:::-;506:21;;;;:::i;470:64::-;543:3;:10;557:1;543:15;539:73;;575:30;;;;;;;;;;;;;;539:73;617:9;622:3;617:4;:9::i;:::-;632:19;667:1;654:3;:10;:14;;;;:::i;:::-;632:36;;691:1;678:3;:10;:14;;;;:::i;:::-;696:1;678:19;674:159;;707:11;744:3;748:11;744:16;;;;;;;;:::i;:::-;;;;;;;721:3;739:1;725:11;:15;;;;:::i;:::-;721:20;;;;;;;;:::i;:::-;;;;;;;:39;;;;:::i;:::-;707:53;-1:-1:-1;775:7:11;781:1;707:53;775:7;:::i;674:159::-;810:3;814:11;810:16;;;;;;;;:::i;:::-;;;;;;;803:23;;;390:447;;;:::o;3823:2799:7:-;3947:16;3965:29;4064:48;4129:11;:18;4115:33;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4115:33:7;;4064:84;;4154:44;4215:11;:18;4201:33;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4201:33:7;;4154:80;;4240:37;4296:11;:18;4280:35;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4240:75:7;-1:-1:-1;355:1:2;4321:30:7;4387:375;4411:11;:18;4407:1;:22;4387:375;;;4693:22;4679:37;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4679:37:7;;4655:18;4674:1;4655:21;;;;;;;;:::i;:::-;;;;;;;;;;:61;4744:3;;4387:375;;;;4828:30;4861:36;:34;:36::i;:::-;4828:69;;4903:25;4980:61;5018:22;4980:37;:61::i;:::-;5151:15;5145:22;4934:107;;-1:-1:-1;4934:107:7;;;;;-1:-1:-1;5090:18:7;5221:1187;5275:17;5256:16;:36;5221:1187;;;5368:28;5453:186;5482:11;5503:31;5544:27;5581:18;5609:22;5453:19;:186::i;:::-;5404:235;;-1:-1:-1;5404:235:7;-1:-1:-1;5676:1:7;5652:25;;;5648:84;;5696:27;;;;;;;;;;;;;;5648:84;5768:21;5744:20;:45;5740:285;;5805:21;5830:1;5805:26;5801:216;;5923:20;5899:44;;5801:216;;;5983:23;;;;;;;;;;;;;;5801:216;-1:-1:-1;6322:16:7;6306:33;;6289:15;6282:58;6375:18;;5221:1187;;;;6520:73;6541:18;6561:31;6520:20;:73::i;:::-;6512:105;;;;;;;;;3823:2799;;;:::o;714:434:14:-;823:4;846:10;463:42;846:34;;:82;;-1:-1:-1;890:10:14;566:42;890:38;846:82;:128;;;-1:-1:-1;938:10:14;667:42;938:36;846:128;:170;;;-1:-1:-1;984:10:14;227:42:13;984:32:14;846:170;:215;;;-1:-1:-1;1026:10:14;123:42:13;1026:35:14;846:215;835:291;;;-1:-1:-1;1083:15:14;:36;;714:434::o;835:291::-;-1:-1:-1;1138:5:14;;714:434;-1:-1:-1;714:434:14:o;4983:786:4:-;5090:52;6894:27;5145:33;:45;;;;;;;;;;;;5398:295;;;;;;;;;;;;;;5489:15;5398:295;;;;;;;;;5229:17;5398:295;;;;;;;;;5218:28;;5398:295;;;;;;;5379:314;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5145:45;-1:-1:-1;5398:295:4;;5700:65;;5727:20;;;:31;;;5700:65;5084:685;;4983:786;;;:::o;8734:157::-;8836:50;;;3942:25:15;;;3998:2;3983:18;;3976:34;;;8870:15:4;4026:18:15;;;4019:34;8836:50:4;;;;;;;3930:2:15;8836:50:4;;;8734:157;;:::o;841:750:11:-;937:3;931:10;974:20;969:3;965:30;1046:16;1035:9;1031:32;1020:9;1016:48;1002:62;;1100:9;1071:510;1130:6;1121:7;1118:19;1071:510;;;1256:9;1225:348;1288:7;1279;1276:20;1225:348;;;1408:7;1402:14;1445:7;1439:14;1476:4;1470;1467:14;1464:99;;;1512:4;1503:7;1496:21;1546:4;1537:7;1530:21;1464:99;-1:-1:-1;;1333:16:11;1320:30;1225:348;;;-1:-1:-1;1172:16:11;1159:30;1071:510;;7521:4606:7;7793:34;7829:28;7865:19;7899:23;7930:34;7973:63;8013:22;7973:39;:63::i;:::-;7891:145;;-1:-1:-1;7891:145:7;-1:-1:-1;8111:21:7;;8166:26;8111:21;;1968:2:6;8318:49:7;1246:2:6;7891:145:7;8318:49;:::i;:::-;8299:69;;:15;:69;:::i;:::-;:123;;;;:::i;:::-;8273:149;-1:-1:-1;8501:31:7;8563:88;1655:3:6;8563:22:7;:88;:::i;:::-;8535:117;;:8;:117;:::i;:::-;8501:151;-1:-1:-1;8661:35:7;8761:23;8727:31;972:2:6;8727:22:7;:31;:::i;:::-;:57;;;;:::i;:::-;8699:86;;:8;:86;:::i;:::-;8661:124;;8871:108;8946:23;8907:27;8871:108;:::i;:::-;8854:125;;9093:23;9070:20;9055:13;9051:40;9041:76;9027:90;;9194:23;9181:37;9159:59;;9228:231;;9469:342;9295:15;9289:22;;9322:23;;;9372:20;9428;;;;;9404:45;;;9526:14;;9363:30;9701:10;9681:6;9645:22;9619:104;9752:49;;;9469:342;-1:-1:-1;;;9469:342:7:o;:::-;9850:18;9827:41;;;;9965:102;10008:10;972:2:6;10028:22:7;:31;;;;:::i;:::-;9965:33;:102::i;:::-;9949:118;;10089:39;10114:13;10089:24;:39::i;:::-;10075:53;;;;8103:2032;;;;;;;1810:2:6;10205:22:7;:60;;;;:::i;:::-;10180:85;;10273:27;10308:22;10343;10338:1719;10388:15;10371:14;:32;10338:1719;;;1246:2:6;10441:51:7;10466:26;10441:22;:51;:::i;:::-;:74;;;;:::i;:::-;10416:99;;10637:117;10684:22;10718:26;10637:35;:117::i;:::-;10597:157;;-1:-1:-1;10597:157:7;-1:-1:-1;10781:23:7;10765:1225;10838:11;:18;10820:15;:36;10765:1225;;;10907:11;10919:15;10907:28;;;;;;;;:::i;:::-;;;;;;;10884:19;:51;10880:1035;;10951:34;10988:27;11016:15;10988:44;;;;;;;;:::i;:::-;;;;;;;10951:81;;11067:67;11094:26;11122:11;343:1:10;:13;;333:24;370:14;;;217:172;11067:67:7;11066:68;:224;;;;-1:-1:-1;355:1:2;11212:78:7;;:31;11244:15;11212:48;;;;;;;;:::i;:::-;;;;;;;:78;11066:224;11047:753;;;11440:14;11352:18;11371:15;11352:35;;;;;;;;:::i;:::-;;;;;;;11388:31;11420:15;11388:48;;;;;;;;:::i;:::-;;;;;;;11352:85;;;;;;;;:::i;:::-;;;;;;:102;;;;;11519:31;11551:15;11519:48;;;;;;;;:::i;:::-;;;;;;:50;;;;;;;;:::i;:::-;;;-1:-1:-1;194:1:10;:13;;184:24;;11625:27:7;11653:15;11625:44;;;;;;;;:::i;:::-;;;;;;:160;;;;;11047:753;11897:5;;;10880:1035;11950:17;;10765:1225;;;-1:-1:-1;12022:16:7;;10338:1719;;;;10172:1891;;12077:22;12069:53;;;;;7521:4606;;;;;;;;:::o;12596:898::-;12749:16;12773:33;12823:18;:25;12809:40;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12809:40:7;-1:-1:-1;12773:76:7;-1:-1:-1;355:1:2;12855:30:7;12922:538;12970:18;:25;12954:13;:41;12922:538;;;13059:22;13010:31;13042:13;13010:46;;;;;;;;:::i;:::-;;;;;;;:71;13006:229;;;13145:31;13177:13;13145:46;;;;;;;;:::i;:::-;;;;;;;13203:22;13100:126;;;;;;;;;;;9904:25:15;;;9960:2;9945:18;;9938:34;9892:2;9877:18;;9730:248;13006:229:7;13242:36;13281:50;13297:18;13316:13;13297:33;;;;;;;;:::i;:::-;;;;;;;13281:15;:50::i;:::-;13242:89;;13373:28;13339:16;13356:13;13339:31;;;;;;;;:::i;:::-;;;;;;;;;;:62;-1:-1:-1;13430:15:7;;12922:538;;;-1:-1:-1;13473:16:7;;12596:898;-1:-1:-1;;;;12596:898:7:o;504:1254:12:-;630:21;758:14;754:52;;;818:39;;;924:14;893:46;;951:39;;1026:46;;1092:39;1084:48;;237:2;1281:19;;;;;:42;;-1:-1:-1;1304:19:12;;;275:2;1304:19;;1281:42;1277:98;;;1340:28;;;;;;;;571:25:15;;;544:18;;1340:28:12;425:177:15;1277:98:12;386:66;1533:29;;1529:85;;;1579:28;;;;;;;;571:25:15;;;544:18;;1579:28:12;425:177:15;1529:85:12;1635:30;;;;;;;;;;;;10651:25:15;;;10724:4;10712:17;;10692:18;;;10685:45;;;;10746:18;;;10739:34;;;10789:18;;;10782:34;;;1635:30:12;;10623:19:15;;1635:30:12;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1635:30:12;;;;;;-1:-1:-1;;1675:27:12;;;1671:83;;1719:28;;;;;;;;571:25:15;;;544:18;;1719:28:12;425:177:15;1671:83:12;655:1103;;;504:1254;;;;:::o;4278:674:5:-;4431:27;;;4524:41;4542:23;4524:8;:41;:::i;:::-;4490:75;;4624:23;4611:37;4588:60;;4715:20;4690:23;4686:50;4673:64;4655:82;;4778:2;4752:22;:28;4748:101;;4797:45;;;;;;;;571:25:15;;;544:18;;4797:45:5;425:177:15;4748:101:5;4913:22;4908:2;:27;4939:1;4907:33;4889:14;:51;;4872:68;;4484:468;4278:674;;;;;:::o;14:154:15:-;100:42;93:5;89:54;82:5;79:65;69:93;;158:1;155;148:12;173:247;232:6;285:2;273:9;264:7;260:23;256:32;253:52;;;301:1;298;291:12;253:52;340:9;327:23;359:31;384:5;359:31;:::i;796:180::-;855:6;908:2;896:9;887:7;883:23;879:32;876:52;;;924:1;921;914:12;876:52;-1:-1:-1;947:23:15;;796:180;-1:-1:-1;796:180:15:o;1163:184::-;1215:77;1212:1;1205:88;1312:4;1309:1;1302:15;1336:4;1333:1;1326:15;1352:334;1423:2;1417:9;1479:2;1469:13;;1484:66;1465:86;1453:99;;1582:18;1567:34;;1603:22;;;1564:62;1561:88;;;1629:18;;:::i;:::-;1665:2;1658:22;1352:334;;-1:-1:-1;1352:334:15:o;1691:183::-;1751:4;1784:18;1776:6;1773:30;1770:56;;;1806:18;;:::i;:::-;-1:-1:-1;1851:1:15;1847:14;1863:4;1843:25;;1691:183::o;1879:966::-;1963:6;1994:2;2037;2025:9;2016:7;2012:23;2008:32;2005:52;;;2053:1;2050;2043:12;2005:52;2093:9;2080:23;2126:18;2118:6;2115:30;2112:50;;;2158:1;2155;2148:12;2112:50;2181:22;;2234:4;2226:13;;2222:27;-1:-1:-1;2212:55:15;;2263:1;2260;2253:12;2212:55;2299:2;2286:16;2322:60;2338:43;2378:2;2338:43;:::i;:::-;2322:60;:::i;:::-;2416:15;;;2498:1;2494:10;;;;2486:19;;2482:28;;;2447:12;;;;2522:19;;;2519:39;;;2554:1;2551;2544:12;2519:39;2578:11;;;;2598:217;2614:6;2609:3;2606:15;2598:217;;;2694:3;2681:17;2711:31;2736:5;2711:31;:::i;:::-;2755:18;;2631:12;;;;2793;;;;2598:217;;;2834:5;1879:966;-1:-1:-1;;;;;;;1879:966:15:o;2850:632::-;3021:2;3073:21;;;3143:13;;3046:18;;;3165:22;;;2992:4;;3021:2;3244:15;;;;3218:2;3203:18;;;2992:4;3287:169;3301:6;3298:1;3295:13;3287:169;;;3362:13;;3350:26;;3431:15;;;;3396:12;;;;3323:1;3316:9;3287:169;;;-1:-1:-1;3473:3:15;;2850:632;-1:-1:-1;;;;;;2850:632:15:o;3487:248::-;3555:6;3563;3616:2;3604:9;3595:7;3591:23;3587:32;3584:52;;;3632:1;3629;3622:12;3584:52;-1:-1:-1;;3655:23:15;;;3725:2;3710:18;;;3697:32;;-1:-1:-1;3487:248:15:o;4064:891::-;4148:6;4179:2;4222;4210:9;4201:7;4197:23;4193:32;4190:52;;;4238:1;4235;4228:12;4190:52;4278:9;4265:23;4311:18;4303:6;4300:30;4297:50;;;4343:1;4340;4333:12;4297:50;4366:22;;4419:4;4411:13;;4407:27;-1:-1:-1;4397:55:15;;4448:1;4445;4438:12;4397:55;4484:2;4471:16;4507:60;4523:43;4563:2;4523:43;:::i;4507:60::-;4601:15;;;4683:1;4679:10;;;;4671:19;;4667:28;;;4632:12;;;;4707:19;;;4704:39;;;4739:1;4736;4729:12;4704:39;4763:11;;;;4783:142;4799:6;4794:3;4791:15;4783:142;;;4865:17;;4853:30;;4816:12;;;;4903;;;;4783:142;;4960:861;5199:2;5251:21;;;5321:13;;5224:18;;;5343:22;;;5170:4;;5199:2;5384;;5402:18;;;;5443:15;;;5170:4;5486:309;5500:6;5497:1;5494:13;5486:309;;;5559:13;;5597:9;;5585:22;;5647:11;;;5641:18;5627:12;;;5620:40;5700:11;;5694:18;5680:12;;;5673:40;5742:4;5733:14;;;;5770:15;;;;5522:1;5515:9;5486:309;;;-1:-1:-1;5812:3:15;;4960:861;-1:-1:-1;;;;;;;4960:861:15:o;6722:607::-;6834:4;6863:2;6892;6881:9;6874:21;6924:6;6918:13;6967:6;6962:2;6951:9;6947:18;6940:34;6992:1;7002:140;7016:6;7013:1;7010:13;7002:140;;;7111:14;;;7107:23;;7101:30;7077:17;;;7096:2;7073:26;7066:66;7031:10;;7002:140;;;7006:3;7191:1;7186:2;7177:6;7166:9;7162:22;7158:31;7151:42;7320:2;7250:66;7245:2;7237:6;7233:15;7229:88;7218:9;7214:104;7210:113;7202:121;;;;6722:607;;;;:::o;7750:184::-;7802:77;7799:1;7792:88;7899:4;7896:1;7889:15;7923:4;7920:1;7913:15;7939:184;7991:77;7988:1;7981:88;8088:4;8085:1;8078:15;8112:4;8109:1;8102:15;8128:125;8193:9;;;8214:10;;;8211:36;;;8227:18;;:::i;8258:128::-;8325:9;;;8346:11;;;8343:37;;;8360:18;;:::i;8391:195::-;8430:3;8461:66;8454:5;8451:77;8448:103;;8531:18;;:::i;:::-;-1:-1:-1;8578:1:15;8567:13;;8391:195::o;8591:168::-;8664:9;;;8695;;8712:15;;;8706:22;;8692:37;8682:71;;8733:18;;:::i;8764:251::-;8834:6;8887:2;8875:9;8866:7;8862:23;8858:32;8855:52;;;8903:1;8900;8893:12;8855:52;8935:9;8929:16;8954:31;8979:5;8954:31;:::i;9416:184::-;9468:77;9465:1;9458:88;9565:4;9562:1;9555:15;9589:4;9586:1;9579:15;9605:120;9645:1;9671;9661:35;;9676:18;;:::i;:::-;-1:-1:-1;9710:9:15;;9605:120::o;9983:112::-;10015:1;10041;10031:35;;10046:18;;:::i;:::-;-1:-1:-1;10080:9:15;;9983:112::o","linkReferences":{},"immutableReferences":{}}}}}}},"signatures":{"function":[{"signature":"aggregateValues(uint256[])","signatureHash4":"0xb24ebfcc","signatureHash32":"0xb24ebfcc2a41e79e4f7df5b95ba26391ec903f0bec71c955508a9902fd2abb1d"},{"signature":"convertDecimals(bytes32,uint256)","signatureHash4":"0x612f56bb","signatureHash32":"0x612f56bb0da983ca1987197d0fabc6c2b8a10e22cf18072234ff5cc9c86a1303"},{"signature":"extractTimestampsAndAssertAllAreEqual()","signatureHash4":"0x55a547d5","signatureHash32":"0x55a547d591e0809b798b0eeb3d872627f18c299edb63988ce40b76204d2ef98a"},{"signature":"getAuthorisedSignerIndex(address)","signatureHash4":"0x3ce142f5","signatureHash32":"0x3ce142f5eca6ba18bc7b524f4f871920c77ccae721282b7f69003094ca674dc9"},{"signature":"getBlockTimestampFromLatestUpdate(bytes32)","signatureHash4":"0x43ba8cad","signatureHash32":"0x43ba8cadc8528cc60b768a35613da1cedccc40201b428afcc31e112e0111c0ef"},{"signature":"getDataFeedIdForAsset(address)","signatureHash4":"0x02b9c828","signatureHash32":"0x02b9c82814b51b8d5b93568bb9ae8accb82b54c4e87aa16ad194d5be851cab19"},{"signature":"getDataServiceId()","signatureHash4":"0xc274583a","signatureHash32":"0xc274583adb2a0a46e32b2852d31013985629d3d2d6293f6c8c71d95159b6d4fa"},{"signature":"getDataTimestampFromLatestUpdate(bytes32)","signatureHash4":"0x9037ecae","signatureHash32":"0x9037ecae5f05890a34fca76e762e21caa69bf8dca37f1d2bd887f1ef4be1ebeb"},{"signature":"getLastUpdateDetails(bytes32)","signatureHash4":"0xfb2eeb3b","signatureHash32":"0xfb2eeb3bcaae26825724341f18f2b03da9039516a31159ad878460b642876dc3"},{"signature":"getLastUpdateDetailsUnsafe(bytes32)","signatureHash4":"0x729bfda4","signatureHash32":"0x729bfda4d700f6fd78a970e8215fe6463ce6eb5428434edb61613e02f6f07474"},{"signature":"getLastUpdateDetailsUnsafeForMany(bytes32[])","signatureHash4":"0x86a8a722","signatureHash32":"0x86a8a722fd4fe604656a449a4309157f3f5e8252c22a468547a7fda44bbf917c"},{"signature":"getUnderlyingAsset(address)","signatureHash4":"0xe8689daa","signatureHash32":"0xe8689daab1be1012097120e35f27a27bdd9476a8c408237adbbbd09c8a9a66a8"},{"signature":"getUnderlyingPrice(address)","signatureHash4":"0xfc57d4df","signatureHash32":"0xfc57d4df1d8d96dff1c0f8e04ddf354775a21df95bf22dddd03b4fbb3514dfbe"},{"signature":"getUnderlyingPrices(address[])","signatureHash4":"0x48a1371b","signatureHash32":"0x48a1371bb56e00d2d846ed7e6cd3403f7d1b6f3207e936ab4a416ed8df8355e4"},{"signature":"getUniqueSignersThreshold()","signatureHash4":"0xf90c4924","signatureHash32":"0xf90c4924852dc25a5f6033a20028db78d890802e6905709ba343203daba58a68"},{"signature":"getValueForDataFeed(bytes32)","signatureHash4":"0x44e02982","signatureHash32":"0x44e02982967f73c05f6b76325183aea05d39ef3fb0b224828cb09dd9522b42f8"},{"signature":"getValuesForDataFeeds(bytes32[])","signatureHash4":"0x971b9c03","signatureHash32":"0x971b9c03d7e53bcc8a61f9e47e120c7ce22cdd6787da7bf31fdb80cebff10d8d"},{"signature":"priceOf(address)","signatureHash4":"0xb95ed06f","signatureHash32":"0xb95ed06fb894347ad60e6cd87f10b7e4251d16e580c84125f74286c5496ae6e5"},{"signature":"priceOfETH()","signatureHash4":"0x858b033d","signatureHash32":"0x858b033d27b390e68f5085fb6ff0dfeebd92dce10b573a9d037ffb8a8150fe6f"},{"signature":"pricesOf(address[])","signatureHash4":"0x7de92016","signatureHash32":"0x7de9201646c913338cb98be47428803a29038dea25c1cf19637d148e876c7139"},{"signature":"updateDataFeedsValuesPartial(bytes32[])","signatureHash4":"0xb7a16251","signatureHash32":"0xb7a1625110da03ab7caccbc7ec949ffb2a7679096d9a12a4d429a683715225f0"},{"signature":"validateTimestamp(uint256)","signatureHash4":"0xf50b2efe","signatureHash32":"0xf50b2efe1faca8d62d13861f912cb8eb8665c7e8a197890d40120d858e815ed6"}],"event":[{"signature":"UpdateSkipDueToBlockTimestamp(bytes32)","signatureHash4":"0xd2fed36e","signatureHash32":"0xd2fed36e637cb43fd01b51ddf3b0ca9d9966df112183894d5699cd9a16f85eb5"},{"signature":"UpdateSkipDueToDataTimestamp(bytes32)","signatureHash4":"0xf34a5561","signatureHash32":"0xf34a55619bad9bd385340bece69770212d10a808ac72a95e6454acf05462ac1b"},{"signature":"UpdateSkipDueToInvalidValue(bytes32)","signatureHash4":"0xad6ebdc3","signatureHash32":"0xad6ebdc3909f212583bf7e8a0f31338c8c92f403f2fd37d23014fb3fd34e3102"},{"signature":"ValueUpdate(uint256,bytes32,uint256)","signatureHash4":"0xf36866d9","signatureHash32":"0xf36866d965ee70c8632ff558f5cf8d41ee9ca1d0d0bc7700786e57be60747390"}],"error":[{"signature":"BlockTimestampTooLarge(uint256)","signatureHash4":"0x5cf61159","signatureHash32":"0x5cf61159291ead2f5178d0615ef55de06150fab7b4cfe80fd6ec413f60a8cd17"},{"signature":"CalldataMustHaveValidPayload()","signatureHash4":"0xe7764c9e","signatureHash32":"0xe7764c9e8e0caa7ff5b20e6f3065a6816f3e1be01d10790878af38007164e2da"},{"signature":"CalldataOverOrUnderFlow()","signatureHash4":"0x5796f78a","signatureHash32":"0x5796f78a52824208b9c59aa4ea6a172cbe542ecc3198660c040f96765907dbb4"},{"signature":"CanNotPickMedianOfEmptyArray()","signatureHash4":"0x9e198af9","signatureHash32":"0x9e198af9c94e344de06ea5b08f22c53c6ae18625a5aa3ff9ad8f246f356de035"},{"signature":"DataPackageTimestampMustNotBeZero()","signatureHash4":"0x336dc9d0","signatureHash32":"0x336dc9d071870a1b8d5e42b6db4b3a878390103758aabeadd7338dfd0753f316"},{"signature":"DataPackageTimestampsMustBeEqual()","signatureHash4":"0xd9d1f465","signatureHash32":"0xd9d1f4651889c0b346d3b62c7e0eb8b14322c5f14dffccdeabeea4e4f50682ba"},{"signature":"DataTimestampCannotBeZero()","signatureHash4":"0xdfb25a79","signatureHash32":"0xdfb25a79cad62b89b7e8ce6836ecfeed6784cbd493e31afd94a2eb87f7685eac"},{"signature":"DataTimestampTooLarge(uint256)","signatureHash4":"0x48f06f08","signatureHash32":"0x48f06f080239d17ae76b3d45b6b80bdaf6257d8d589e038026a592336778a48f"},{"signature":"EachSignerMustProvideTheSameValue()","signatureHash4":"0xece458ec","signatureHash32":"0xece458ec83d7a18944d481a346ea85ee6a86d7f984bd4c6acf1a59ea8d267c75"},{"signature":"EmptyCalldataPointersArr()","signatureHash4":"0x6c2325dc","signatureHash32":"0x6c2325dc21a05ea5c93c615d61ac9b242371edffe4432e725326cb80111f7409"},{"signature":"GetDataServiceIdNotImplemented()","signatureHash4":"0x608b5307","signatureHash32":"0x608b5307d57d60f41b862238c9fa2bd7c5c67130b7cd48e63255c15ebe041142"},{"signature":"IncorrectUnsignedMetadataSize()","signatureHash4":"0xc30a7bd7","signatureHash32":"0xc30a7bd79ae58b3376eee0583848bba17d7381a8ed2924118a3b588367f8de08"},{"signature":"InsufficientNumberOfUniqueSigners(uint256,uint256)","signatureHash4":"0x2b13aef5","signatureHash32":"0x2b13aef51436e37db0ebf10aa5df2b1f452aae20ad834f63b5953fc8fda60d0a"},{"signature":"InvalidCalldataPointer()","signatureHash4":"0xb0e86e51","signatureHash32":"0xb0e86e51a282fb52d6c1dbabec48ed92f81df6aa367fa871ceaf71c019f2cf4a"},{"signature":"InvalidLastUpdateDetails(bytes32,uint256,uint256,uint256)","signatureHash4":"0x4f319ffe","signatureHash32":"0x4f319ffedb0f9eac58e0e4cfb3f9878745a053633d62cb581064acdb6c9f6995"},{"signature":"InvalidSignature(bytes32)","signatureHash4":"0x666b7cba","signatureHash32":"0x666b7cba1c1e18e9729cc96bc32dad18492fd8ee8fcb6327b7a2337ed37534f6"},{"signature":"RedstonePayloadMustHaveAtLeastOneDataPackage()","signatureHash4":"0x8552ff3c","signatureHash32":"0x8552ff3c2ee1dc1a2065b8213b2ae07ba0af63a093f9b94e37eec560e7c2db10"},{"signature":"SignerNotAuthorised(address)","signatureHash4":"0xec459bc0","signatureHash32":"0xec459bc05285e5b716796daffa940a2f1e2daf552dcda6cc9bc70577f533fce3"},{"signature":"TimestampFromTooLongFuture(uint256,uint256)","signatureHash4":"0xb6b0916d","signatureHash32":"0xb6b0916d36f78340ee5c06f513af9e20984692a4bde4eaf4be072bfa6089de90"},{"signature":"TimestampIsTooOld(uint256,uint256)","signatureHash4":"0x0321d0b5","signatureHash32":"0x0321d0b5b1ea0b5b678f54bffda902de00e8e7dc2a7257325feb9740c0d8a6d6"},{"signature":"TimestampsMustBeEqual()","signatureHash4":"0x4cbc4742","signatureHash32":"0x4cbc4742aa642e552d3094ab8187d27efcff7abd1047ac67e374330b798fd830"},{"signature":"TooLargeValueByteSize(uint256)","signatureHash4":"0xc000fc42","signatureHash32":"0xc000fc42deb431e500942408b9894a5625c9fbc62cb538fa5315c3f468f79639"}]},"proxyResolution":{"isProxy":false,"proxyType":null,"implementations":[]},"match":"exact_match","chainId":"988","address":"0xbd7178ABFBa583730deB86dB2ba5E7ea167158c0"}