diff --git a/.gitignore b/.gitignore index ce4eaa1..48aa20f 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,3 @@ lerna-debug.log /dist /dev /build -.project.json diff --git a/.project.json b/.project.json new file mode 100644 index 0000000..44674d0 --- /dev/null +++ b/.project.json @@ -0,0 +1,217 @@ +{ + "fullNodeVersion": "v3.1.2", + "compilerOptionsUsed": { + "ignoreUnusedConstantsWarnings": true, + "ignoreUnusedVariablesWarnings": false, + "ignoreUnusedFieldsWarnings": false, + "ignoreUnusedPrivateFunctionsWarnings": false, + "ignoreUpdateFieldsCheckWarnings": false, + "ignoreCheckExternalCallerWarnings": false + }, + "infos": { + "AddLiquidity": { + "sourceFile": "scripts/add_liquidity.ral", + "sourceCodeHash": "ae7c7a47ec7728436f5b56c039f277705fe3a71e64709d6ba40d8d802e3f6fbe", + "bytecodeDebugPatch": "", + "codeHashDebug": "", + "warnings": [ + "The return values of the function \"Router.addLiquidity\" are not used. If this is intentional, consider using anonymous variables to suppress this warning." + ] + }, + "Burn": { + "sourceFile": "scripts/burn.ral", + "sourceCodeHash": "28aacad8f388d36812349552df3bcf44278bffeebc35223d98868e7d380af791", + "bytecodeDebugPatch": "", + "codeHashDebug": "", + "warnings": [ + "The return values of the function \"TokenPair.burn\" are not used. If this is intentional, consider using anonymous variables to suppress this warning." + ] + }, + "CollectFee": { + "sourceFile": "scripts/collect_fee.ral", + "sourceCodeHash": "1bf50ae9e84e3a698bf955f0ce7bfb14d2b05ac250255b7e0712dc523b6e44dc", + "bytecodeDebugPatch": "", + "codeHashDebug": "", + "warnings": [] + }, + "Constants": { + "sourceFile": "dex/constants.ral", + "sourceCodeHash": "de716344afeac3e83450b8a8b0a0a9e97f056cd95d4b6e29476ddb93960c8140", + "bytecodeDebugPatch": "", + "codeHashDebug": "", + "warnings": [] + }, + "CreatePair": { + "sourceFile": "scripts/create_pair.ral", + "sourceCodeHash": "27d25c96dc9797d46e427721f5fa8803adb9e35305f9895dce09f9ee68e6e811", + "bytecodeDebugPatch": "", + "codeHashDebug": "", + "warnings": [] + }, + "EnableFeeCollector": { + "sourceFile": "scripts/enable_fee_collector.ral", + "sourceCodeHash": "d910bff218027c5b1f43bcafcb53a11213f5fff26be50f3cda85c5484b4d8888", + "bytecodeDebugPatch": "", + "codeHashDebug": "", + "warnings": [] + }, + "ExampleOracleSimple": { + "sourceFile": "examples/example_oracle_simple.ral", + "sourceCodeHash": "2b330617826658a6336ab325956bc44df89c251c6183e1b2d10805f26d0c8746", + "bytecodeDebugPatch": "", + "codeHashDebug": "77c214087d18764740b2479fc13342959a21a02a36977c0d998667644200071a", + "warnings": [] + }, + "FeeCollectorFactory": { + "sourceFile": "dex/fee_collector_factory.ral", + "sourceCodeHash": "44c41462b5814731ef8f83248b9ee77b8260b0e4f8bf17aebe53bc7260d38df2", + "bytecodeDebugPatch": "", + "codeHashDebug": "", + "warnings": [] + }, + "FeeCollectorFactoryImpl": { + "sourceFile": "examples/fee_collector_factory_impl.ral", + "sourceCodeHash": "792272912b2ff021c5fc1a185617c4ee57370f92f76ac1f18c0351e843c2e295", + "bytecodeDebugPatch": "", + "codeHashDebug": "966f75cddefe774a87dbf778012f4f3f494b3a860f4c975d0c5262a1be185d49", + "warnings": [] + }, + "FeeCollectorPerTokenPair": { + "sourceFile": "dex/fee_collector_per_token_pair.ral", + "sourceCodeHash": "1a0c1bb3ac308845730af303de241bc0436b2133daa7074636662a20713ed84b", + "bytecodeDebugPatch": "", + "codeHashDebug": "", + "warnings": [] + }, + "FeeCollectorPerTokenPairImpl": { + "sourceFile": "examples/fee_collector_per_token_pair_impl.ral", + "sourceCodeHash": "12030965f27aedb1e593ea659314be67a7caf9a604885f4b8fc54f7303e95487", + "bytecodeDebugPatch": "", + "codeHashDebug": "393eee49cd23c00d61848a8b2272e848f5278cc17f8c0b2333e2ed744edf5b79", + "warnings": [] + }, + "FullMath": { + "sourceFile": "examples/full_math.ral", + "sourceCodeHash": "bad6926fafb2fd8c587896482505281d5a9b2250c036de46d2bbd47efbbc9434", + "bytecodeDebugPatch": "", + "codeHashDebug": "", + "warnings": [] + }, + "FullMathTest": { + "sourceFile": "examples/full_math_test.ral", + "sourceCodeHash": "0e2e55075a2b663409743948d49459826e8e8ebdd0c881cb1fefd8d11686cfe5", + "bytecodeDebugPatch": "", + "codeHashDebug": "d6834220b59d306adb6cd548433f9e1ab4f20c155cad9c80ef89be27cb82a286", + "warnings": [] + }, + "GetToken": { + "sourceFile": "test/get_token.ral", + "sourceCodeHash": "1e61b4573ed08acb31d54177295b4388e17c6f927a7fe0da74af032e9daed4dc", + "bytecodeDebugPatch": "", + "codeHashDebug": "", + "warnings": [] + }, + "IFungibleToken": { + "sourceFile": "../node_modules/@alephium/web3/std/fungible_token_interface.ral", + "sourceCodeHash": "62910bf11e1eeb6cb2fd468626ff606a9b06306b2b81590c3b10f6deb5966bde", + "bytecodeDebugPatch": "", + "codeHashDebug": "", + "warnings": [] + }, + "Math": { + "sourceFile": "dex/math.ral", + "sourceCodeHash": "4be2abb3b39ed86d4714b9459e40c2050b3593601ed9e51db97f2f1a95d5129a", + "bytecodeDebugPatch": "", + "codeHashDebug": "", + "warnings": [] + }, + "MathTest": { + "sourceFile": "test/math_test.ral", + "sourceCodeHash": "7f307735569bf071f47a34a3abfe87c9529c53890765d90c1aabf6bdb8494a81", + "bytecodeDebugPatch": "", + "codeHashDebug": "085c8183210ec7296681e12ab74e37bebee9d495e78e24cc9b3cd1b110d6df2a", + "warnings": [] + }, + "Mint": { + "sourceFile": "scripts/mint.ral", + "sourceCodeHash": "20250bff8040a0260e1980607150116ee2d6aef9bdf39254316fcf0eaccb39f0", + "bytecodeDebugPatch": "", + "codeHashDebug": "", + "warnings": [ + "The return values of the function \"TokenPair.mint\" are not used. If this is intentional, consider using anonymous variables to suppress this warning." + ] + }, + "OracleErrors": { + "sourceFile": "examples/errors.ral", + "sourceCodeHash": "4d0ed85fbd224324446d1ddd22f5b4c87bb48a1fa0c5e1c3f0f4e48257a50e59", + "bytecodeDebugPatch": "", + "codeHashDebug": "", + "warnings": [] + }, + "RemoveLiquidity": { + "sourceFile": "scripts/remove_liquidity.ral", + "sourceCodeHash": "a37e6c625f753ee67a3ac20bd4d71d19985d1a34381acf8833ea2a193378eb2e", + "bytecodeDebugPatch": "", + "codeHashDebug": "", + "warnings": [ + "The return values of the function \"Router.removeLiquidity\" are not used. If this is intentional, consider using anonymous variables to suppress this warning." + ] + }, + "Router": { + "sourceFile": "dex/router.ral", + "sourceCodeHash": "c954ad981c2457825654144d2930cf07266efeb0013603532ac925ca85db2eca", + "bytecodeDebugPatch": "", + "codeHashDebug": "5b325453e5506a90851742af5f7797303703acecb523830220a105a88273b1b0", + "warnings": [] + }, + "SetFeeCollectorFactory": { + "sourceFile": "scripts/set_fee_collector_factory.ral", + "sourceCodeHash": "44709be4a8a58f2dbbbf9d8bb8b09c9654e3ef14a177fe44fdc451c072ba588d", + "bytecodeDebugPatch": "", + "codeHashDebug": "", + "warnings": [] + }, + "Swap": { + "sourceFile": "scripts/swap.ral", + "sourceCodeHash": "d84c3a3bb054954d9023b4b02884659c126684fba2984ef944ab8aec9eb76416", + "bytecodeDebugPatch": "", + "codeHashDebug": "", + "warnings": [] + }, + "SwapMaxIn": { + "sourceFile": "scripts/swap_max_in.ral", + "sourceCodeHash": "91c41026f47cf9d75e56b00b24925031ad271ef30ad1717430d05835480b0aa5", + "bytecodeDebugPatch": "", + "codeHashDebug": "", + "warnings": [] + }, + "SwapMinOut": { + "sourceFile": "scripts/swap_min_out.ral", + "sourceCodeHash": "846256348cfa6d306cacffa94c8c0108faa85d50c4a9e28b163c63be6ca26a63", + "bytecodeDebugPatch": "", + "codeHashDebug": "", + "warnings": [] + }, + "TestToken": { + "sourceFile": "test/test_token.ral", + "sourceCodeHash": "cf585aa37720c2530bf4ba7493268a0c499bd5e9269cbb11423ba72ded571654", + "bytecodeDebugPatch": "", + "codeHashDebug": "0831d766037e7873066276e891997881e8787f4fb4bd9d154925d80869efa129", + "warnings": [] + }, + "TokenPair": { + "sourceFile": "dex/token_pair.ral", + "sourceCodeHash": "fe3049c8d6472fce53015f300c82cefc0d3cac80550bd1afb428b9c39ce8c12b", + "bytecodeDebugPatch": "", + "codeHashDebug": "44cb575528fd174a595daf0a095f1b0f2e6b234213a99449173542520f63222e", + "warnings": [] + }, + "TokenPairFactory": { + "sourceFile": "dex/token_pair_factory.ral", + "sourceCodeHash": "19388715466d7a867264ca64b362f4c1aeac7aad99816acd7e660358ee6b6095", + "bytecodeDebugPatch": "", + "codeHashDebug": "44144899a2b71465a80654889afa8a2bf4a8f3cd0f30ad1880d2ffc7c12ad18b", + "warnings": [] + } + } +} \ No newline at end of file diff --git a/alephium.config.ts b/alephium.config.ts index 80edd1e..8043e4e 100644 --- a/alephium.config.ts +++ b/alephium.config.ts @@ -8,7 +8,7 @@ export type Settings = { const configuration: Configuration = { networks: { devnet: { - nodeUrl: 'http://localhost:22973', + nodeUrl: 'http://127.0.0.1:22973', privateKeys: ['a642942e67258589cd2b1822c631506632db5a12aabcf413604e785300d762a5'], settings: { feeSetter: '1DrDyTr9RpRsQnDnXo2YRiPzPW4ooHX5LLoqXrqfMrpQH' } }, diff --git a/artifacts/.deployments.devnet.json b/artifacts/.deployments.devnet.json index 3064a13..27905ad 100644 --- a/artifacts/.deployments.devnet.json +++ b/artifacts/.deployments.devnet.json @@ -2,72 +2,72 @@ "deployerAddress": "1DrDyTr9RpRsQnDnXo2YRiPzPW4ooHX5LLoqXrqfMrpQH", "contracts": { "TokenPair": { - "txId": "f49088809d49b74612571fdd36ce0c55b9c102d61ac54ac55d8073735960f229", - "unsignedTx": "000401010103000000081500bee85f379545a2ed9f6cceb331288842f378cf0f04012ad4ac8824aae7d6f80a13c40de0b6b3a7640000a21443c20c13114022402b40344046407c408d409840a340ac40b540be41244182422f42a24355437a439b0100000001021408414c50482d444558020100000001021408414c50482d44455802010000000102131202010000000102a0050201000202010816000d1340703b2c16012d0201000103011f16000f334c191600170116000e2d0d2a170216021601314c0b16021701160016022d16022a0e2d17024a311601020d02010001010007b3ce004113107b1600a107010000000203ce01ce0202010000000203a000a00102010000000102a00202010000000102a00302010000000102a004020000020500403b0d1340703b1702160016023116011602311a0c7b561343e82d0d13203b2e17031603a0022b170416040c33a0000c331aa0010c331a4c10a003a001a000000416042c35a103a004a000a001000416042c35a1041600a1001601a1011603a102000002080240320c1702a007140042170316034c4025a0060c304c4020160016012c00051704a0060005170516041605334c14a005160416052b2c17061604112c16052a1707160616072d1702a00516022aa1054a020ca106160316020201010311014062a000a001000d170417030c1705a0050c2f4c17160116022c0005170616061343e8330d7b16061343e82b1705a0051343e82aa105b2b11343e8bd4a141601a0052ca0002d17071602a0052ca0012d170816071608334c0216084a011607170516050c330e7b1600b11605ab1600ce011601ac1600ce021602aca00516052aa105a00016012aa00116022a000c16034c06b2b11604a3160400120516001601160216056116050201010206024042a000a001000d170317021601a0002ca0052d17041601a0012ca0052d170516040c3316050c331a0f7b1600b11601ac1600ce011604ab1600ce021605aba00516012ba105a00016042ba00116052b000c16024c06b2b11603a3160300120616001604160516016116041605020101060b00406a160048107b16040c3316050c331b13097b1604a000311605a001311a117ba00016022a16042b1706a00116032a16052b170716061343e82c16020f2c2b170816071343e82c16030f2c2b1709a000a0012c13800f42402c170a160816092c160a3413087b16020c334c041600ce011602ac16030c334c041600ce021603ac16040c334c041601ce011604ab16050c334c041601ce021605ab16061607000c0716001602160316041605160174010200020013b3a0074113107ba000a001000d17011700160013117bb2b11601a31601001200030101001216000c334c0ab2b11600a3b216000e0ca0070100a000a0012ca106140f040300030003000306414c5048000114110802000200020002000200020002000300ad188000e735c1174876e8000137a444479fa782e8b88d4f95e28b3b2417e5bc30d33a5ae8486d4a8885b82b224259c1e6000381818e63bd9e35a5489b52a430accefc608fd60aa2c7c0d1b393b5239aedf6b001c6d3c20dd90f04ada5f80000bee85f379545a2ed9f6cceb331288842f378cf0f04012ad4ac8824aae7d6f80a00000000000000000000", - "signature": "55d39449d97e8531f4195ea1aa3b1aec8f86d739c551f645e533c5d661eabd401a1ba9317db9b194c654620d6718113e0559c5256c324b8586dfc1cd185ca756", + "txId": "cadd864a9a59a864e59e1c8519ab25d56d8dd6ecf67456d18ff6bf180c2fbcf6", + "unsignedTx": "000401010103000000081500bee85f379545a2ed9f6cceb331288842f378cf0f04012ad4ac8824aae7d6f80a13c4016345785d8a0000a21443c20c13114022402b40344046407c408d409840a340ac40b540be41244182422f42a24355437a439b0100000001021408414c50482d444558020100000001021408414c50482d44455802010000000102131202010000000102a0050201000202010816000d1340703b2c16012d0201000103011f16000f334c191600170116000e2d0d2a170216021601314c0b16021701160016022d16022a0e2d17024a311601020d02010001010007b3ce004113107b1600a107010000000203ce01ce0202010000000203a000a00102010000000102a00202010000000102a00302010000000102a004020000020500403b0d1340703b1702160016023116011602311a0c7b561343e82d0d13203b2e17031603a0022b170416040c33a0000c331aa0010c331a4c10a003a001a000000416042c35a103a004a000a001000416042c35a1041600a1001601a1011603a102000002080240320c1702a007140042170316034c4025a0060c304c4020160016012c00051704a0060005170516041605334c14a005160416052b2c17061604112c16052a1707160616072d1702a00516022aa1054a020ca106160316020201010311014062a000a001000d170417030c1705a0050c2f4c17160116022c0005170616061343e8330d7b16061343e82b1705a0051343e82aa105b2b11343e8bd4a141601a0052ca0002d17071602a0052ca0012d170816071608334c0216084a011607170516050c330e7b1600b11605ab1600ce011601ac1600ce021602aca00516052aa105a00016012aa00116022a000c16034c06b2b11604a3160400120516001601160216056116050201010206024042a000a001000d170317021601a0002ca0052d17041601a0012ca0052d170516040c3316050c331a0f7b1600b11601ac1600ce011604ab1600ce021605aba00516012ba105a00016042ba00116052b000c16024c06b2b11603a3160300120616001604160516016116041605020101060b00406a160048107b16040c3316050c331b13097b1604a000311605a001311a117ba00016022a16042b1706a00116032a16052b170716061343e82c16020f2c2b170816071343e82c16030f2c2b1709a000a0012c13800f42402c170a160816092c160a3413087b16020c334c041600ce011602ac16030c334c041600ce021603ac16040c334c041601ce011604ab16050c334c041601ce021605ab16061607000c0716001602160316041605160174010200020013b3a0074113107ba000a001000d17011700160013117bb2b11601a31601001200030101001216000c334c0ab2b11600a3b216000e0ca0070100a000a0012ca106140f040300030003000306414c5048000114110802000200020002000200020002000300ad188000e735c1174876e8000137a444479fa782e8b88d4f95e28b3b2417e5bc30d33a5ae8486d4a8885b82b224259c1e6000381818e63bd9e35a5489b52a430accefc608fd60aa2c7c0d1b393b5239aedf6b001c6d3c21a56803ff77ff80000bee85f379545a2ed9f6cceb331288842f378cf0f04012ad4ac8824aae7d6f80a00000000000000000000", + "signature": "7eed0c170d0b5e1f66c152d755aa27d3ceda3ee3f2d4b8d88f92949313828cb24f9f2fcb742f24a560381ad7ee29f5dcbfd512a9ba37460bb175950933fe314f", "gasPrice": "100000000000", "gasAmount": 59189, - "blockHash": "a444f36e4c5f5793f3954a6dee7f7d94f2e79e74d43372a5e6f6c7f095a11390", + "blockHash": "9832e6db90e3f51e16868b4069c85b9eefc7830154a8edaabb961b3897a94680", "codeHash": "72d08b8028698517696526ed4e96f8e253b32c1d7b15aae7bdf11800921ad8ff", "contractInstance": { - "address": "26d97zFotq5qahSHZu2NCQaUSeQqEQ69o968k213ZqV4b", - "contractId": "b1525e0951266fd8228e7827c5747f2971a4cc5c4bf669df59f475147bb88500", + "address": "21Do1rv98rZ4brdaBWT1uyh2fJsgX82ASvL3ccwZo2Fuy", + "contractId": "610cd7304fe0b9425793d6b8e1583ec91fe7f02935a21ed6d5354bbd80a94700", "groupIndex": 0 } }, "TokenPairFactory": { - "txId": "4f9a806a821905d14ed1738221a5fab6340c728d837883416ac22d69e512f2ce", - "unsignedTx": "000401010103000000081500bee85f379545a2ed9f6cceb331288842f378cf0f04012ad4ac8824aae7d6f80a13c40de0b6b3a7640000a214410f0407114022402b4057406c408d4100010001010007b4a0014513107b1600a102010001010007b4a0014513107b1600a101010000000102a00102010302040017b417021602a0014513107b16021601a21602160116000f0da0020100170316030d0c1600010601000202000ab4a0014513107b16010d0c160001060000020402101600711702160171170316021603314c03160016010216011600020103040900404116001602a50c3316001603a50c331a130f7b1602160342130b7b16021603000517051704b1160416051406414c504800011304640c0c0c0c0c0c0c14001308641707170616001601a21604160544ce00160616070d1340ff3bc2170805160416051608a00061a0000d2aa10014402401034020b1525e0951266fd8228e7827c5747f2971a4cc5c4bf669df59f475147bb885001440270302000400bee85f379545a2ed9f6cceb331288842f378cf0f04012ad4ac8824aae7d6f80a0300ad188000e176c1174876e8000137a444477cdd8cd64b8f84eb9f865fbae3c9380c6a3bb09f415ed76314750eb2085aa3ac000381818e63bd9e35a5489b52a430accefc608fd60aa2c7c0d1b393b5239aedf6b001c6d3c1ffe3d6e51d8b080000bee85f379545a2ed9f6cceb331288842f378cf0f04012ad4ac8824aae7d6f80a00000000000000000000", - "signature": "200f184155b15c315e37337edef3f7ad628857d4cc228f5345064b1a9bbd5d2654271e3a46a8d7448bf796071af22ca2b5ead68bd7d24dad83e2a0b30cb884be", + "txId": "8904ca14eba8e8a5f67d43c2e6508cc19e56268a246eb34d2472745499120019", + "unsignedTx": "000401010103000000081500bee85f379545a2ed9f6cceb331288842f378cf0f04012ad4ac8824aae7d6f80a13c4016345785d8a0000a214410f0407114022402b4057406c408d4100010001010007b4a0014513107b1600a102010001010007b4a0014513107b1600a101010000000102a00102010302040017b417021602a0014513107b16021601a21602160116000f0da0020100170316030d0c1600010601000202000ab4a0014513107b16010d0c160001060000020402101600711702160171170316021603314c03160016010216011600020103040900404116001602a50c3316001603a50c331a130f7b1602160342130b7b16021603000517051704b1160416051406414c504800011304640c0c0c0c0c0c0c14001308641707170616001601a21604160544ce00160616070d1340ff3bc2170805160416051608a00061a0000d2aa10014402401034020610cd7304fe0b9425793d6b8e1583ec91fe7f02935a21ed6d5354bbd80a947001440270302000400bee85f379545a2ed9f6cceb331288842f378cf0f04012ad4ac8824aae7d6f80a0300ad188000e176c1174876e8000137a4444701823771044af4c42ff28f1d8c31b1a4022de5cc2c96242b4cfb0ceaddbf5787000381818e63bd9e35a5489b52a430accefc608fd60aa2c7c0d1b393b5239aedf6b001c6d3c218deb95bb13f080000bee85f379545a2ed9f6cceb331288842f378cf0f04012ad4ac8824aae7d6f80a00000000000000000000", + "signature": "9c8319f2a21258bd5a9a439a66a2ca690607f05cc77ba958a4b82b80051c6bf74f8c9524fbb6fb91309eb586fe661cea7f9914c021365ceeab1b81d7213f48b1", "gasPrice": "100000000000", "gasAmount": 57718, - "blockHash": "7bb6d849e72bed4301a7cc6a54f1769621a1420f06cac8c93abcc564a5099050", - "codeHash": "37a0c05e29e05ca4f679266ea54f01121f57ee11ac93dc9ad801f1d4e972d877", + "blockHash": "73199ec7d5f666c5cd130118add2568c5489f0b4d03036a6223b4c138f213b20", + "codeHash": "4f04cd1311c81de1a189085a40373d8837503e054a531b55357ecaebb18ba21c", "contractInstance": { - "address": "vJ3vJSuHeZQw3cC4K1qFT8UUGyQyACKm369DX72tHn9D", - "contractId": "17d994d372acf18a4274fca08b0d66e94dbca055eb40131b07161fca0089a400", + "address": "2A8xm6JhxCQ9FXe23QP3fT2vRD4wfxgjCFX8gPpTSuS8w", + "contractId": "e589235308ae939cff96cd18eef65760f2a4d45f196fbf3add05b0e08e549500", "groupIndex": 0 } }, "Router": { - "txId": "22171a6205b3642478679588a9e72fb50d447edcd65bd4e7ef4bbfb37f3ac006", - "unsignedTx": "000401010103000000081500bee85f379545a2ed9f6cceb331288842f378cf0f04012ad4ac8824aae7d6f80a13c40de0b6b3a7640000a21441fc0007405240a840df4109415741a341ec0000060802402f16000c2f16010c2f1a4c031602160302160216012c16002d170616061603324c081606160534130e7b1602160602160316002c16012d1707160716043416071602321a130d7b16071603020103071603402e16065634130c7b0c0e16000107170817070c0e16000108170a17091609160a16021603160416050000170c170b16017a1607160ba31608160ca31601160b160c0f0d1600010e170d160b160c160d0201030608021e16055634130c7b160116001602a3160116020e0e1600010f170717061606160334130d7b1607160434130e7b16061607020000020502160c0e16000108170317020c0e1600010718170416011604414c03160216030216031602020103070b00402816065634130c7b160016020003170817071343e516032c1709160916082c16091343e816072c2a2d170a160a16043413097b160116021603a316001601160516021603160a00060103070a00402816065634130c7b16001602000317081707160716042c1343e82c160816042b1343e52c2d0d2a17091609160332130a7b160116021609a316001601160516021609160400060003061c0040270c0e1600010718170616031606414c0f160116031604a31601160216040c0c160513060c160001104a0e160116031604a3160116020c160416050c13060c16000110140100140100ad188000e2a5c1174876e8000137a444478339a760d8a2aa1b5cc159adb5361169b22451f5dce272a5e57b01ede3e40f43000381818e63bd9e35a5489b52a430accefc608fd60aa2c7c0d1b393b5239aedf6b001c6d3c1f1ee8336c8b3800000bee85f379545a2ed9f6cceb331288842f378cf0f04012ad4ac8824aae7d6f80a00000000000000000000", - "signature": "2a6833db0092651df8af9dfed9177be73bef402319e579ff8cb49e0b6c805c3c34f7ccbfa2d54c7301a2940fbc4501884b5347f2bd1f8c7897b7f23fdae0bdf3", + "txId": "460aa42f8e71114068e629d4ee41d3c2a18a77e22a3e7c3f77cf659237966a05", + "unsignedTx": "000401010103000000081500bee85f379545a2ed9f6cceb331288842f378cf0f04012ad4ac8824aae7d6f80a13c4016345785d8a0000a21441fc0007405240a840df4109415741a341ec0000060802402f16000c2f16010c2f1a4c031602160302160216012c16002d170616061603324c081606160534130e7b1602160602160316002c16012d1707160716043416071602321a130d7b16071603020103071603402e16065634130c7b0c0e16000107170817070c0e16000108170a17091609160a16021603160416050000170c170b16017a1607160ba31608160ca31601160b160c0f0d1600010e170d160b160c160d0201030608021e16055634130c7b160116001602a3160116020e0e1600010f170717061606160334130d7b1607160434130e7b16061607020000020502160c0e16000108170317020c0e1600010718170416011604414c03160216030216031602020103070b00402816065634130c7b160016020003170817071343e516032c1709160916082c16091343e816072c2a2d170a160a16043413097b160116021603a316001601160516021603160a00060103070a00402816065634130c7b16001602000317081707160716042c1343e82c160816042b1343e52c2d0d2a17091609160332130a7b160116021609a316001601160516021609160400060003061c0040270c0e1600010718170616031606414c0f160116031604a31601160216040c0c160513060c160001104a0e160116031604a3160116020c160416050c13060c16000110140100140100ad188000e2a5c1174876e8000137a444474c9b82d9abec96301326218740a03181c25b374fd06d2654f9d61ce5129ad650000381818e63bd9e35a5489b52a430accefc608fd60aa2c7c0d1b393b5239aedf6b001c6d3c21766d6e8a641800000bee85f379545a2ed9f6cceb331288842f378cf0f04012ad4ac8824aae7d6f80a00000000000000000000", + "signature": "7080a356f2dbd793a916e12b4ccc69cc17e1a2727e4fe2541c9b88c6128db1023614d82fd9e6f28f3f75ef57fd8096198d2693bd17f22f919a8d0e2ea6433228", "gasPrice": "100000000000", "gasAmount": 58021, - "blockHash": "195b96a677d777733653ab3d2f9d6276aabc1a1b2d3578467b8a1cc92a0b1d90", + "blockHash": "fde2514cbd57cd5f985f02b242b4a765a1e846f24539041974b1c8b72e9f1700", "codeHash": "babd39b34dabc7739f736637eaa7b5e3accab5b393ea7352910429235493cf22", "contractInstance": { - "address": "27g9MrsLmyZ8MM84EuGyPDoExiT8S1tQLbMs7YmBxmv39", - "contractId": "c0f3112f581eaf6e397b679cba68ab6a92495b59156dc01878d122f26b5b4100", + "address": "vTsAR9YrbpMC49hXXwD44xWUP5jMJiw9eXpwBG6zE695", + "contractId": "1a5d3a1505929160577b5d2d146f462b1c031eaa6319fd2e5d75f83a1a25cf00", "groupIndex": 0 } }, "FeeCollectorPerTokenPairImpl": { - "txId": "2d90ef5cbeee9d3905f406d8d2b6d30580997fdc6e89996673df7dc93954216e", - "unsignedTx": "000401010103000000081500bee85f379545a2ed9f6cceb331288842f378cf0f04012ad4ac8824aae7d6f80a13c40de0b6b3a7640000a2144061020415402d4041405801010202000ab3ce014113107b1600b2ce011601aa01020202000cb40c0dce0001024513107b1600ce011601ab01020101000ab40c0dce0001024513107b1600b001000000000cb40c0dce0001024513107b0c0cce01011114050203000300140100ad188000df73c1174876e8000137a4444734049d7476e9526ba99906b23f377f61773ecb757b8502a8eb3e20d2b153ba2e000381818e63bd9e35a5489b52a430accefc608fd60aa2c7c0d1b393b5239aedf6b001c6d3c1e3f979edffcd480000bee85f379545a2ed9f6cceb331288842f378cf0f04012ad4ac8824aae7d6f80a00000000000000000000", - "signature": "2361d2b8dc35015e0f6ce0e2873cea1ec525ae5f890f2cb3a2879ba6dcd4509259e459030405b81492f4f7eb2224833fab9f7e947178612a656ce36fd2252eb7", + "txId": "15d233d0d5b1e7964e17b690bfc38971d0f96f736c7834fed875dee44662f2df", + "unsignedTx": "000401010103000000081500bee85f379545a2ed9f6cceb331288842f378cf0f04012ad4ac8824aae7d6f80a13c4016345785d8a0000a2144061020415402d4041405801010202000ab3ce014113107b1600b2ce011601aa01020202000cb40c0dce0001024513107b1600ce011601ab01020101000ab40c0dce0001024513107b1600b001000000000cb40c0dce0001024513107b0c0cce01011114050203000300140100ad188000df73c1174876e8000137a44447661d2457aa9608fbc4b1b4f1c16cd2efc4869833ad12a041d58adc9b36d96e29000381818e63bd9e35a5489b52a430accefc608fd60aa2c7c0d1b393b5239aedf6b001c6d3c215ef3edb2735480000bee85f379545a2ed9f6cceb331288842f378cf0f04012ad4ac8824aae7d6f80a00000000000000000000", + "signature": "bd5a8a7f3e72deca041b08874667a36c8be12c258b19b61eca0ba830faec6f681fc075bf804c1227cac3df7c54073a4e8013ba998b876b832f8ad2f87b0ca5bb", "gasPrice": "100000000000", "gasAmount": 57203, - "blockHash": "5a2d0f68932cb882ed0a4f888d394c2845c71683c5450a8b133b6e8ba8af07e0", + "blockHash": "eeca4279a0f0df6a929b10c793e333cfcf98384d79ce86ec81e49b88df57c6d0", "codeHash": "f2fea7629b9833aa51b76c65ff823c3d54e6f0d38f6f44102ad7553564b04feb", "contractInstance": { - "address": "xR2UHPbci2xqtYWjNw5X7C2yTTmMBUwaoPUmhXFW6gS3", - "contractId": "375a620876fa397e3a089eeb01767819ac07445147a8ae28d73a22cd6fb0f400", + "address": "wbXpabjLPuHT7yZdGaeQYsPmyoPZqdXL3iyKW3HHiBd9", + "contractId": "2b2fb0b0786c61a464d2d5efaf2a0f8f1ff932a75db7209d1504059b3915ea00", "groupIndex": 0 } }, "FeeCollectorFactoryImpl": { - "txId": "44f83b1aebdb3ca230f6867bbbf5fde5c12a4ce80d57a794731ab9021c5125db", - "unsignedTx": "000401010103000000081500bee85f379545a2ed9f6cceb331288842f378cf0f04012ad4ac8824aae7d6f80a13c40de0b6b3a7640000a214402e0201402a010303050116b3ce014113107bce0116021302641300641704170316001601a21602ce0016031604c10214404702034020375a620876fa397e3a089eeb01767819ac07445147a8ae28d73a22cd6fb0f40003402017d994d372acf18a4274fca08b0d66e94dbca055eb40131b07161fca0089a400140100ad188000df90c1174876e8000137a44447d49885786c4bca47e2fb361d955d4e7b6b9f5cab0527a549f737d20fe6ca8b78000381818e63bd9e35a5489b52a430accefc608fd60aa2c7c0d1b393b5239aedf6b001c6d3c1d6046e02016ec80000bee85f379545a2ed9f6cceb331288842f378cf0f04012ad4ac8824aae7d6f80a00000000000000000000", - "signature": "9035ae1d825d675d7a9e4c0ebcae0b89bfe93b03542741c8805cb7757b9a6ae8551c8a7fd10185a81c7eee86d6e30f2353a885c542393d554a07e9bfac90a03d", + "txId": "1fb84c82ead3f766d604e24deca3c39e955dc839b916d0a4f21f5b6fb3cb528f", + "unsignedTx": "000401010103000000081500bee85f379545a2ed9f6cceb331288842f378cf0f04012ad4ac8824aae7d6f80a13c4016345785d8a0000a214402e0201402a010303050116b3ce014113107bce0116021302641300641704170316001601a21602ce0016031604c102144047020340202b2fb0b0786c61a464d2d5efaf2a0f8f1ff932a75db7209d1504059b3915ea00034020e589235308ae939cff96cd18eef65760f2a4d45f196fbf3add05b0e08e549500140100ad188000df90c1174876e8000137a44447317faa54b3913ccba42588c324547f919dd1850c5aeb32fa5adde0f280d59bbc000381818e63bd9e35a5489b52a430accefc608fd60aa2c7c0d1b393b5239aedf6b001c6d3c21477a42a72b0c80000bee85f379545a2ed9f6cceb331288842f378cf0f04012ad4ac8824aae7d6f80a00000000000000000000", + "signature": "81a6332eb176cc079598058c3fef6b351a5881ba12e211bed0ebc5c8589d50c34a4aeabcc48bdc6bb9adadc8b61840178a8d47fd01b252b94611830cd1fc1273", "gasPrice": "100000000000", "gasAmount": 57232, - "blockHash": "09e15caff8b80678b2caf25cfa73eb6182f74e322abe32c0e762430e3932ba40", - "codeHash": "78d554dc4c71e552ba1e7ccfe52c208cde12cb6f5a73ab57bea2846713c5927d", + "blockHash": "fa6001a4c517f9738ffe47e34383ca35b1e0af6a16b4c1c0bb3b7582f3963890", + "codeHash": "0719b58beec3aaed8262fac83a4d91cbbaa0cb3fd3f5e16799843b5037723f61", "contractInstance": { - "address": "2BnAfGHT3gQ6uWXYf5MdNRoH5xDswS3Sk3xcCvBPHwfZy", - "contractId": "fdecc509776e828243ff754f835368a3e06e313e1152ef767462354e98ee6c00", + "address": "wffkR5dwvbT55HvfBR8W4gHxyEtNi2nz8V1RHgyrjPaF", + "contractId": "2c3efa56448d57f7b44ee29d84c26dc89ec0f8a85399de392ed4a9b471201a00", "groupIndex": 0 } } diff --git a/artifacts/dex/TokenPair.ral.json b/artifacts/dex/TokenPair.ral.json index 68755f7..5859578 100644 --- a/artifacts/dex/TokenPair.ral.json +++ b/artifacts/dex/TokenPair.ral.json @@ -1,8 +1,8 @@ { - "version": "v2.5.3", + "version": "v3.1.2", "name": "TokenPair", - "bytecode": "0c13114022402b40344046407c408d409840a340ac40b540be41244182422f42a24355437a439b0100000001021408414c50482d444558020100000001021408414c50482d44455802010000000102131202010000000102a0050201000202010816000d1340703b2c16012d0201000103011f16000f334c191600170116000e2d0d2a170216021601314c0b16021701160016022d16022a0e2d17024a311601020d02010001010007b3ce004113107b1600a107010000000203ce01ce0202010000000203a000a00102010000000102a00202010000000102a00302010000000102a004020000020500403b0d1340703b1702160016023116011602311a0c7b561343e82d0d13203b2e17031603a0022b170416040c33a0000c331aa0010c331a4c10a003a001a000000416042c35a103a004a000a001000416042c35a1041600a1001601a1011603a102000002080240320c1702a007140042170316034c4025a0060c304c4020160016012c00051704a0060005170516041605334c14a005160416052b2c17061604112c16052a1707160616072d1702a00516022aa1054a020ca106160316020201010311014062a000a001000d170417030c1705a0050c2f4c17160116022c0005170616061343e8330d7b16061343e82b1705a0051343e82aa105b2b11343e8bd4a141601a0052ca0002d17071602a0052ca0012d170816071608334c0216084a011607170516050c330e7b1600b11605ab1600ce011601ac1600ce021602aca00516052aa105a00016012aa00116022a000c16034c06b2b11604a3160400120516001601160216056116050201010206024042a000a001000d170317021601a0002ca0052d17041601a0012ca0052d170516040c3316050c331a0f7b1600b11601ac1600ce011604ab1600ce021605aba00516012ba105a00016042ba00116052b000c16024c06b2b11603a3160300120616001604160516016116041605020101060b00406a160048107b16040c3316050c331b13097b1604a000311605a001311a117ba00016022a16042b1706a00116032a16052b170716061343e82c16020f2c2b170816071343e82c16030f2c2b1709a000a0012c13800f42402c170a160816092c160a3413087b16020c334c041600ce011602ac16030c334c041600ce021603ac16040c334c041601ce011604ab16050c334c041601ce021605ab16061607000c0716001602160316041605160174010200020013b3a0074113107ba000a001000d17011700160013117bb2b11601a31601001200030101001216000c334c0ab2b11600a3b216000e0ca0070100a000a0012ca106", - "codeHash": "4a98763809adb6e899e3e7864e6d5dcb60c6fd0806f1264c3596b482021035f2", + "bytecode": "0c13114022402b4034404b4087409d40ad40bd40cb40d940e7414d41ab425d42d5438843b243d30100000001021408414c50482d444558020100000001021408414c50482d44455802010000000102131202010000000102a00502010002020109d38c844efd16000d1340703b2c16012d0201000103014020d36ae1998016000f334c191600170116000e2d0d2a170216021601314c0b16021701160016022d16022a0e2d17024a311601020d02010001010008d347fff8f4b3ce004113107b1600a107010000000204d373c3e78fce01ce0202010000000204d37de99ed1a000a00102010000000103d355097b37a00202010000000103d3d3cf0c5aa00302010000000103d37fe75f5ba004020000020500403b0d1340703b1702160016023116011602311a0c7b561343e82d0d13203b2e17031603a0022b170416040c33a0000c331aa0010c331a4c10a003a001a000000416042c35a103a004a000a001000416042c35a1041600a1001601a1011603a102000002080240320c1702a007140042170316034c4025a0060c304c4020160016012c00051704a0060005170516041605334c14a005160416052b2c17061604112c16052a1707160616072d1702a00516022aa1054a020ca106160316020201010311014063d393ef503ea000a001000d170417030c1705a0050c2f4c17160116022c0005170616061343e8330d7b16061343e82b1705a0051343e82aa105b2b11343e8bd4a141601a0052ca0002d17071602a0052ca0012d170816071608334c0216084a011607170516050c330e7b1600b11605ab1600ce011601ac1600ce021602aca00516052aa105a00016012aa00116022a000c16034c06b2b11604a3160400120516001601160216056116050201010206024043d349c452fda000a001000d170317021601a0002ca0052d17041601a0012ca0052d170516040c3316050c331a0f7b1600b11601ac1600ce011604ab1600ce021605aba00516012ba105a00016042ba00116052b000c16024c06b2b11603a3160300120616001604160516016116041605020101060b004067d32570119d16040c3316050c331b13097b1604a000311605a001311a117ba00016022a16042b1706a00116032a16052b170716061343e82c16020f2c2b170816071343e82c16030f2c2b1709a000a0012c13800f42402c170a160816092c160a3413087b16020c334c041600ce011602ac16030c334c041600ce021603ac16040c334c041601ce011604ab16050c334c041601ce021605ab16061607000c0716001602160316041605160174010200020014d3f2c71c4bb3a0074113107ba000a001000d17011700160013117bb2b11601a31601001200030101001216000c334c0ab2b11600a3b216000e0ca0070100a000a0012ca106", + "codeHash": "44cb575528fd174a595daf0a095f1b0f2e6b234213a99449173542520f63222e", "fieldsSig": { "names": [ "tokenPairFactory", @@ -19,7 +19,7 @@ "__stdInterfaceId" ], "types": [ - "ByteVec", + "TokenPairFactory", "ByteVec", "ByteVec", "U256", @@ -101,9 +101,6 @@ "functions": [ { "name": "getSymbol", - "usePreapprovedAssets": false, - "useAssetsInContract": false, - "isPublic": true, "paramNames": [], "paramTypes": [], "paramIsMutable": [], @@ -113,9 +110,6 @@ }, { "name": "getName", - "usePreapprovedAssets": false, - "useAssetsInContract": false, - "isPublic": true, "paramNames": [], "paramTypes": [], "paramIsMutable": [], @@ -125,9 +119,6 @@ }, { "name": "getDecimals", - "usePreapprovedAssets": false, - "useAssetsInContract": false, - "isPublic": true, "paramNames": [], "paramTypes": [], "paramIsMutable": [], @@ -137,9 +128,6 @@ }, { "name": "getTotalSupply", - "usePreapprovedAssets": false, - "useAssetsInContract": false, - "isPublic": true, "paramNames": [], "paramTypes": [], "paramIsMutable": [], @@ -149,9 +137,6 @@ }, { "name": "uqdiv", - "usePreapprovedAssets": false, - "useAssetsInContract": false, - "isPublic": true, "paramNames": [ "a", "b" @@ -170,9 +155,6 @@ }, { "name": "sqrt", - "usePreapprovedAssets": false, - "useAssetsInContract": false, - "isPublic": true, "paramNames": [ "y" ], @@ -188,9 +170,6 @@ }, { "name": "setFeeCollectorId", - "usePreapprovedAssets": false, - "useAssetsInContract": false, - "isPublic": true, "paramNames": [ "id" ], @@ -204,9 +183,6 @@ }, { "name": "getTokenPair", - "usePreapprovedAssets": false, - "useAssetsInContract": false, - "isPublic": true, "paramNames": [], "paramTypes": [], "paramIsMutable": [], @@ -217,9 +193,6 @@ }, { "name": "getReserves", - "usePreapprovedAssets": false, - "useAssetsInContract": false, - "isPublic": true, "paramNames": [], "paramTypes": [], "paramIsMutable": [], @@ -230,9 +203,6 @@ }, { "name": "getBlockTimeStampLast", - "usePreapprovedAssets": false, - "useAssetsInContract": false, - "isPublic": true, "paramNames": [], "paramTypes": [], "paramIsMutable": [], @@ -242,9 +212,6 @@ }, { "name": "getPrice0CumulativeLast", - "usePreapprovedAssets": false, - "useAssetsInContract": false, - "isPublic": true, "paramNames": [], "paramTypes": [], "paramIsMutable": [], @@ -254,9 +221,6 @@ }, { "name": "getPrice1CumulativeLast", - "usePreapprovedAssets": false, - "useAssetsInContract": false, - "isPublic": true, "paramNames": [], "paramTypes": [], "paramIsMutable": [], @@ -266,9 +230,6 @@ }, { "name": "update", - "usePreapprovedAssets": false, - "useAssetsInContract": false, - "isPublic": false, "paramNames": [ "newReserve0", "newReserve1" @@ -285,9 +246,6 @@ }, { "name": "mintFee", - "usePreapprovedAssets": false, - "useAssetsInContract": false, - "isPublic": false, "paramNames": [ "reserve0_", "reserve1_" @@ -307,9 +265,6 @@ }, { "name": "mint", - "usePreapprovedAssets": true, - "useAssetsInContract": true, - "isPublic": true, "paramNames": [ "sender", "amount0", @@ -331,9 +286,6 @@ }, { "name": "burn", - "usePreapprovedAssets": true, - "useAssetsInContract": true, - "isPublic": true, "paramNames": [ "sender", "liquidity" @@ -353,9 +305,6 @@ }, { "name": "swap", - "usePreapprovedAssets": true, - "useAssetsInContract": true, - "isPublic": true, "paramNames": [ "sender", "to", @@ -384,9 +333,6 @@ }, { "name": "collectFeeManually", - "usePreapprovedAssets": false, - "useAssetsInContract": true, - "isPublic": true, "paramNames": [], "paramTypes": [], "paramIsMutable": [], @@ -394,9 +340,6 @@ }, { "name": "collectFeeAndUpdateKLast", - "usePreapprovedAssets": true, - "useAssetsInContract": false, - "isPublic": false, "paramNames": [ "feeAmount" ], diff --git a/artifacts/scripts/Sync.ral.json b/artifacts/scripts/Sync.ral.json deleted file mode 100644 index 09496a2..0000000 --- a/artifacts/scripts/Sync.ral.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "version": "v2.3.3", - "name": "Sync", - "bytecodeTemplate": "010103000000040c0c{0}0111", - "fieldsSig": { - "names": [ - "tokenPair" - ], - "types": [ - "ByteVec" - ], - "isMutable": [ - false - ] - }, - "functions": [ - { - "name": "main", - "usePreapprovedAssets": true, - "useAssetsInContract": false, - "isPublic": true, - "paramNames": [], - "paramTypes": [], - "paramIsMutable": [], - "returnTypes": [] - } - ] -} \ No newline at end of file diff --git a/artifacts/ts/ExampleOracleSimple.ts b/artifacts/ts/ExampleOracleSimple.ts index 73cb568..a36e9ec 100644 --- a/artifacts/ts/ExampleOracleSimple.ts +++ b/artifacts/ts/ExampleOracleSimple.ts @@ -23,6 +23,13 @@ import { fetchContractState, ContractInstance, getContractEventsCurrentCount, + TestContractParamsWithoutMaps, + TestContractResultWithoutMaps, + SignExecuteContractMethodParams, + SignExecuteScriptTxResult, + signExecuteMethod, + addStdIdToFields, + encodeContractFields, } from "@alephium/web3"; import { default as ExampleOracleSimpleContractJson } from "../examples/ExampleOracleSimple.ral.json"; import { getContractByCodeHash } from "./contracts"; @@ -53,6 +60,10 @@ export namespace ExampleOracleSimpleTypes { params: CallContractParams<{ numerator: bigint; denominator: bigint }>; result: CallContractResult; }; + update: { + params: Omit, "args">; + result: CallContractResult; + }; consult: { params: CallContractParams<{ tokenId: HexString; amountIn: bigint }>; result: CallContractResult; @@ -70,12 +81,57 @@ export namespace ExampleOracleSimpleTypes { ? CallMethodTable[MaybeName]["result"] : undefined; }; + + export interface SignExecuteMethodTable { + fullMul: { + params: SignExecuteContractMethodParams<{ x: bigint; y: bigint }>; + result: SignExecuteScriptTxResult; + }; + mulDiv: { + params: SignExecuteContractMethodParams<{ + a: bigint; + b: bigint; + denominator: bigint; + }>; + result: SignExecuteScriptTxResult; + }; + fraction: { + params: SignExecuteContractMethodParams<{ + numerator: bigint; + denominator: bigint; + }>; + result: SignExecuteScriptTxResult; + }; + update: { + params: Omit, "args">; + result: SignExecuteScriptTxResult; + }; + consult: { + params: SignExecuteContractMethodParams<{ + tokenId: HexString; + amountIn: bigint; + }>; + result: SignExecuteScriptTxResult; + }; + } + export type SignExecuteMethodParams = + SignExecuteMethodTable[T]["params"]; + export type SignExecuteMethodResult = + SignExecuteMethodTable[T]["result"]; } class Factory extends ContractFactory< ExampleOracleSimpleInstance, ExampleOracleSimpleTypes.Fields > { + encodeFields(fields: ExampleOracleSimpleTypes.Fields) { + return encodeContractFields( + addStdIdToFields(this.contract, fields), + this.contract.fieldsSig, + [] + ); + } + getInitialFieldsWithDefaultValues() { return this.contract.getInitialFieldsWithDefaultValues() as ExampleOracleSimpleTypes.Fields; } @@ -98,52 +154,57 @@ class Factory extends ContractFactory< tests = { fullMul: async ( - params: TestContractParams< + params: TestContractParamsWithoutMaps< ExampleOracleSimpleTypes.Fields, { x: bigint; y: bigint } > - ): Promise> => { - return testMethod(this, "fullMul", params); + ): Promise> => { + return testMethod(this, "fullMul", params, getContractByCodeHash); }, mulDiv: async ( - params: TestContractParams< + params: TestContractParamsWithoutMaps< ExampleOracleSimpleTypes.Fields, { a: bigint; b: bigint; denominator: bigint } > - ): Promise> => { - return testMethod(this, "mulDiv", params); + ): Promise> => { + return testMethod(this, "mulDiv", params, getContractByCodeHash); }, fraction: async ( - params: TestContractParams< + params: TestContractParamsWithoutMaps< ExampleOracleSimpleTypes.Fields, { numerator: bigint; denominator: bigint } > - ): Promise> => { - return testMethod(this, "fraction", params); + ): Promise> => { + return testMethod(this, "fraction", params, getContractByCodeHash); }, currentCumulativePrices: async ( - params: TestContractParams< + params: TestContractParamsWithoutMaps< ExampleOracleSimpleTypes.Fields, { currentBlockTimeStamp: bigint } > - ): Promise> => { - return testMethod(this, "currentCumulativePrices", params); + ): Promise> => { + return testMethod( + this, + "currentCumulativePrices", + params, + getContractByCodeHash + ); }, update: async ( params: Omit< - TestContractParams, + TestContractParamsWithoutMaps, "testArgs" > - ): Promise> => { - return testMethod(this, "update", params); + ): Promise> => { + return testMethod(this, "update", params, getContractByCodeHash); }, consult: async ( - params: TestContractParams< + params: TestContractParamsWithoutMaps< ExampleOracleSimpleTypes.Fields, { tokenId: HexString; amountIn: bigint } > - ): Promise> => { - return testMethod(this, "consult", params); + ): Promise> => { + return testMethod(this, "consult", params, getContractByCodeHash); }, }; } @@ -153,7 +214,8 @@ export const ExampleOracleSimple = new Factory( Contract.fromJson( ExampleOracleSimpleContractJson, "", - "77c214087d18764740b2479fc13342959a21a02a36977c0d998667644200071a" + "77c214087d18764740b2479fc13342959a21a02a36977c0d998667644200071a", + [] ) ); @@ -201,6 +263,17 @@ export class ExampleOracleSimpleInstance extends ContractInstance { getContractByCodeHash ); }, + update: async ( + params?: ExampleOracleSimpleTypes.CallMethodParams<"update"> + ): Promise> => { + return callMethod( + ExampleOracleSimple, + this, + "update", + params === undefined ? {} : params, + getContractByCodeHash + ); + }, consult: async ( params: ExampleOracleSimpleTypes.CallMethodParams<"consult"> ): Promise> => { @@ -214,6 +287,38 @@ export class ExampleOracleSimpleInstance extends ContractInstance { }, }; + view = this.methods; + + transact = { + fullMul: async ( + params: ExampleOracleSimpleTypes.SignExecuteMethodParams<"fullMul"> + ): Promise> => { + return signExecuteMethod(ExampleOracleSimple, this, "fullMul", params); + }, + mulDiv: async ( + params: ExampleOracleSimpleTypes.SignExecuteMethodParams<"mulDiv"> + ): Promise> => { + return signExecuteMethod(ExampleOracleSimple, this, "mulDiv", params); + }, + fraction: async ( + params: ExampleOracleSimpleTypes.SignExecuteMethodParams<"fraction"> + ): Promise< + ExampleOracleSimpleTypes.SignExecuteMethodResult<"fraction"> + > => { + return signExecuteMethod(ExampleOracleSimple, this, "fraction", params); + }, + update: async ( + params: ExampleOracleSimpleTypes.SignExecuteMethodParams<"update"> + ): Promise> => { + return signExecuteMethod(ExampleOracleSimple, this, "update", params); + }, + consult: async ( + params: ExampleOracleSimpleTypes.SignExecuteMethodParams<"consult"> + ): Promise> => { + return signExecuteMethod(ExampleOracleSimple, this, "consult", params); + }, + }; + async multicall( calls: Calls ): Promise> { diff --git a/artifacts/ts/FeeCollectorFactoryImpl.ts b/artifacts/ts/FeeCollectorFactoryImpl.ts index 21a6f97..add4817 100644 --- a/artifacts/ts/FeeCollectorFactoryImpl.ts +++ b/artifacts/ts/FeeCollectorFactoryImpl.ts @@ -23,6 +23,13 @@ import { fetchContractState, ContractInstance, getContractEventsCurrentCount, + TestContractParamsWithoutMaps, + TestContractResultWithoutMaps, + SignExecuteContractMethodParams, + SignExecuteScriptTxResult, + signExecuteMethod, + addStdIdToFields, + encodeContractFields, } from "@alephium/web3"; import { default as FeeCollectorFactoryImplContractJson } from "../examples/FeeCollectorFactoryImpl.ral.json"; import { getContractByCodeHash } from "./contracts"; @@ -58,12 +65,35 @@ export namespace FeeCollectorFactoryImplTypes { ? CallMethodTable[MaybeName]["result"] : undefined; }; + + export interface SignExecuteMethodTable { + createFeeCollector: { + params: SignExecuteContractMethodParams<{ + caller: Address; + alphAmount: bigint; + tokenPair: HexString; + }>; + result: SignExecuteScriptTxResult; + }; + } + export type SignExecuteMethodParams = + SignExecuteMethodTable[T]["params"]; + export type SignExecuteMethodResult = + SignExecuteMethodTable[T]["result"]; } class Factory extends ContractFactory< FeeCollectorFactoryImplInstance, FeeCollectorFactoryImplTypes.Fields > { + encodeFields(fields: FeeCollectorFactoryImplTypes.Fields) { + return encodeContractFields( + addStdIdToFields(this.contract, fields), + this.contract.fieldsSig, + [] + ); + } + getInitialFieldsWithDefaultValues() { return this.contract.getInitialFieldsWithDefaultValues() as FeeCollectorFactoryImplTypes.Fields; } @@ -97,12 +127,17 @@ class Factory extends ContractFactory< tests = { createFeeCollector: async ( - params: TestContractParams< + params: TestContractParamsWithoutMaps< FeeCollectorFactoryImplTypes.Fields, { caller: Address; alphAmount: bigint; tokenPair: HexString } > - ): Promise> => { - return testMethod(this, "createFeeCollector", params); + ): Promise> => { + return testMethod( + this, + "createFeeCollector", + params, + getContractByCodeHash + ); }, }; } @@ -112,7 +147,8 @@ export const FeeCollectorFactoryImpl = new Factory( Contract.fromJson( FeeCollectorFactoryImplContractJson, "", - "966f75cddefe774a87dbf778012f4f3f494b3a860f4c975d0c5262a1be185d49" + "966f75cddefe774a87dbf778012f4f3f494b3a860f4c975d0c5262a1be185d49", + [] ) ); @@ -142,6 +178,23 @@ export class FeeCollectorFactoryImplInstance extends ContractInstance { }, }; + view = this.methods; + + transact = { + createFeeCollector: async ( + params: FeeCollectorFactoryImplTypes.SignExecuteMethodParams<"createFeeCollector"> + ): Promise< + FeeCollectorFactoryImplTypes.SignExecuteMethodResult<"createFeeCollector"> + > => { + return signExecuteMethod( + FeeCollectorFactoryImpl, + this, + "createFeeCollector", + params + ); + }, + }; + async multicall( calls: Calls ): Promise> { diff --git a/artifacts/ts/FeeCollectorPerTokenPairImpl.ts b/artifacts/ts/FeeCollectorPerTokenPairImpl.ts index 97fbb21..0577f51 100644 --- a/artifacts/ts/FeeCollectorPerTokenPairImpl.ts +++ b/artifacts/ts/FeeCollectorPerTokenPairImpl.ts @@ -23,6 +23,13 @@ import { fetchContractState, ContractInstance, getContractEventsCurrentCount, + TestContractParamsWithoutMaps, + TestContractResultWithoutMaps, + SignExecuteContractMethodParams, + SignExecuteScriptTxResult, + signExecuteMethod, + addStdIdToFields, + encodeContractFields, } from "@alephium/web3"; import { default as FeeCollectorPerTokenPairImplContractJson } from "../examples/FeeCollectorPerTokenPairImpl.ral.json"; import { getContractByCodeHash } from "./contracts"; @@ -35,12 +42,77 @@ export namespace FeeCollectorPerTokenPairImplTypes { }; export type State = ContractState; + + export interface CallMethodTable { + collectFee: { + params: CallContractParams<{ from: Address; amount: bigint }>; + result: CallContractResult; + }; + withdraw: { + params: CallContractParams<{ to: Address; amount: bigint }>; + result: CallContractResult; + }; + destroy: { + params: CallContractParams<{ to: Address }>; + result: CallContractResult; + }; + collectFeeManually: { + params: Omit, "args">; + result: CallContractResult; + }; + } + export type CallMethodParams = + CallMethodTable[T]["params"]; + export type CallMethodResult = + CallMethodTable[T]["result"]; + export type MultiCallParams = Partial<{ + [Name in keyof CallMethodTable]: CallMethodTable[Name]["params"]; + }>; + export type MultiCallResults = { + [MaybeName in keyof T]: MaybeName extends keyof CallMethodTable + ? CallMethodTable[MaybeName]["result"] + : undefined; + }; + + export interface SignExecuteMethodTable { + collectFee: { + params: SignExecuteContractMethodParams<{ + from: Address; + amount: bigint; + }>; + result: SignExecuteScriptTxResult; + }; + withdraw: { + params: SignExecuteContractMethodParams<{ to: Address; amount: bigint }>; + result: SignExecuteScriptTxResult; + }; + destroy: { + params: SignExecuteContractMethodParams<{ to: Address }>; + result: SignExecuteScriptTxResult; + }; + collectFeeManually: { + params: Omit, "args">; + result: SignExecuteScriptTxResult; + }; + } + export type SignExecuteMethodParams = + SignExecuteMethodTable[T]["params"]; + export type SignExecuteMethodResult = + SignExecuteMethodTable[T]["result"]; } class Factory extends ContractFactory< FeeCollectorPerTokenPairImplInstance, FeeCollectorPerTokenPairImplTypes.Fields > { + encodeFields(fields: FeeCollectorPerTokenPairImplTypes.Fields) { + return encodeContractFields( + addStdIdToFields(this.contract, fields), + this.contract.fieldsSig, + [] + ); + } + getInitialFieldsWithDefaultValues() { return this.contract.getInitialFieldsWithDefaultValues() as FeeCollectorPerTokenPairImplTypes.Fields; } @@ -74,36 +146,44 @@ class Factory extends ContractFactory< tests = { collectFee: async ( - params: TestContractParams< + params: TestContractParamsWithoutMaps< FeeCollectorPerTokenPairImplTypes.Fields, { from: Address; amount: bigint } > - ): Promise> => { - return testMethod(this, "collectFee", params); + ): Promise> => { + return testMethod(this, "collectFee", params, getContractByCodeHash); }, withdraw: async ( - params: TestContractParams< + params: TestContractParamsWithoutMaps< FeeCollectorPerTokenPairImplTypes.Fields, { to: Address; amount: bigint } > - ): Promise> => { - return testMethod(this, "withdraw", params); + ): Promise> => { + return testMethod(this, "withdraw", params, getContractByCodeHash); }, destroy: async ( - params: TestContractParams< + params: TestContractParamsWithoutMaps< FeeCollectorPerTokenPairImplTypes.Fields, { to: Address } > - ): Promise> => { - return testMethod(this, "destroy", params); + ): Promise> => { + return testMethod(this, "destroy", params, getContractByCodeHash); }, collectFeeManually: async ( params: Omit< - TestContractParams, + TestContractParamsWithoutMaps< + FeeCollectorPerTokenPairImplTypes.Fields, + never + >, "testArgs" > - ): Promise> => { - return testMethod(this, "collectFeeManually", params); + ): Promise> => { + return testMethod( + this, + "collectFeeManually", + params, + getContractByCodeHash + ); }, }; } @@ -113,7 +193,8 @@ export const FeeCollectorPerTokenPairImpl = new Factory( Contract.fromJson( FeeCollectorPerTokenPairImplContractJson, "", - "393eee49cd23c00d61848a8b2272e848f5278cc17f8c0b2333e2ed744edf5b79" + "393eee49cd23c00d61848a8b2272e848f5278cc17f8c0b2333e2ed744edf5b79", + [] ) ); @@ -126,4 +207,112 @@ export class FeeCollectorPerTokenPairImplInstance extends ContractInstance { async fetchState(): Promise { return fetchContractState(FeeCollectorPerTokenPairImpl, this); } + + methods = { + collectFee: async ( + params: FeeCollectorPerTokenPairImplTypes.CallMethodParams<"collectFee"> + ): Promise< + FeeCollectorPerTokenPairImplTypes.CallMethodResult<"collectFee"> + > => { + return callMethod( + FeeCollectorPerTokenPairImpl, + this, + "collectFee", + params, + getContractByCodeHash + ); + }, + withdraw: async ( + params: FeeCollectorPerTokenPairImplTypes.CallMethodParams<"withdraw"> + ): Promise< + FeeCollectorPerTokenPairImplTypes.CallMethodResult<"withdraw"> + > => { + return callMethod( + FeeCollectorPerTokenPairImpl, + this, + "withdraw", + params, + getContractByCodeHash + ); + }, + destroy: async ( + params: FeeCollectorPerTokenPairImplTypes.CallMethodParams<"destroy"> + ): Promise< + FeeCollectorPerTokenPairImplTypes.CallMethodResult<"destroy"> + > => { + return callMethod( + FeeCollectorPerTokenPairImpl, + this, + "destroy", + params, + getContractByCodeHash + ); + }, + collectFeeManually: async ( + params?: FeeCollectorPerTokenPairImplTypes.CallMethodParams<"collectFeeManually"> + ): Promise< + FeeCollectorPerTokenPairImplTypes.CallMethodResult<"collectFeeManually"> + > => { + return callMethod( + FeeCollectorPerTokenPairImpl, + this, + "collectFeeManually", + params === undefined ? {} : params, + getContractByCodeHash + ); + }, + }; + + view = this.methods; + + transact = { + collectFee: async ( + params: FeeCollectorPerTokenPairImplTypes.SignExecuteMethodParams<"collectFee"> + ): Promise< + FeeCollectorPerTokenPairImplTypes.SignExecuteMethodResult<"collectFee"> + > => { + return signExecuteMethod( + FeeCollectorPerTokenPairImpl, + this, + "collectFee", + params + ); + }, + withdraw: async ( + params: FeeCollectorPerTokenPairImplTypes.SignExecuteMethodParams<"withdraw"> + ): Promise< + FeeCollectorPerTokenPairImplTypes.SignExecuteMethodResult<"withdraw"> + > => { + return signExecuteMethod( + FeeCollectorPerTokenPairImpl, + this, + "withdraw", + params + ); + }, + destroy: async ( + params: FeeCollectorPerTokenPairImplTypes.SignExecuteMethodParams<"destroy"> + ): Promise< + FeeCollectorPerTokenPairImplTypes.SignExecuteMethodResult<"destroy"> + > => { + return signExecuteMethod( + FeeCollectorPerTokenPairImpl, + this, + "destroy", + params + ); + }, + collectFeeManually: async ( + params: FeeCollectorPerTokenPairImplTypes.SignExecuteMethodParams<"collectFeeManually"> + ): Promise< + FeeCollectorPerTokenPairImplTypes.SignExecuteMethodResult<"collectFeeManually"> + > => { + return signExecuteMethod( + FeeCollectorPerTokenPairImpl, + this, + "collectFeeManually", + params + ); + }, + }; } diff --git a/artifacts/ts/FullMathTest.ts b/artifacts/ts/FullMathTest.ts index 1d46ea0..434f619 100644 --- a/artifacts/ts/FullMathTest.ts +++ b/artifacts/ts/FullMathTest.ts @@ -23,6 +23,13 @@ import { fetchContractState, ContractInstance, getContractEventsCurrentCount, + TestContractParamsWithoutMaps, + TestContractResultWithoutMaps, + SignExecuteContractMethodParams, + SignExecuteScriptTxResult, + signExecuteMethod, + addStdIdToFields, + encodeContractFields, } from "@alephium/web3"; import { default as FullMathTestContractJson } from "../examples/FullMathTest.ral.json"; import { getContractByCodeHash } from "./contracts"; @@ -57,9 +64,39 @@ export namespace FullMathTestTypes { ? CallMethodTable[MaybeName]["result"] : undefined; }; + + export interface SignExecuteMethodTable { + fullMul: { + params: SignExecuteContractMethodParams<{ x: bigint; y: bigint }>; + result: SignExecuteScriptTxResult; + }; + mulDiv: { + params: SignExecuteContractMethodParams<{ + a: bigint; + b: bigint; + denominator: bigint; + }>; + result: SignExecuteScriptTxResult; + }; + fraction: { + params: SignExecuteContractMethodParams<{ + numerator: bigint; + denominator: bigint; + }>; + result: SignExecuteScriptTxResult; + }; + } + export type SignExecuteMethodParams = + SignExecuteMethodTable[T]["params"]; + export type SignExecuteMethodResult = + SignExecuteMethodTable[T]["result"]; } class Factory extends ContractFactory { + encodeFields() { + return encodeContractFields({}, this.contract.fieldsSig, []); + } + consts = { Resolution: BigInt(112), ErrorCodes: { @@ -78,30 +115,33 @@ class Factory extends ContractFactory { tests = { fullMul: async ( params: Omit< - TestContractParams, + TestContractParamsWithoutMaps, "initialFields" > - ): Promise> => { - return testMethod(this, "fullMul", params); + ): Promise> => { + return testMethod(this, "fullMul", params, getContractByCodeHash); }, mulDiv: async ( params: Omit< - TestContractParams< + TestContractParamsWithoutMaps< never, { a: bigint; b: bigint; denominator: bigint } >, "initialFields" > - ): Promise> => { - return testMethod(this, "mulDiv", params); + ): Promise> => { + return testMethod(this, "mulDiv", params, getContractByCodeHash); }, fraction: async ( params: Omit< - TestContractParams, + TestContractParamsWithoutMaps< + never, + { numerator: bigint; denominator: bigint } + >, "initialFields" > - ): Promise> => { - return testMethod(this, "fraction", params); + ): Promise> => { + return testMethod(this, "fraction", params, getContractByCodeHash); }, }; } @@ -111,7 +151,8 @@ export const FullMathTest = new Factory( Contract.fromJson( FullMathTestContractJson, "", - "d6834220b59d306adb6cd548433f9e1ab4f20c155cad9c80ef89be27cb82a286" + "d6834220b59d306adb6cd548433f9e1ab4f20c155cad9c80ef89be27cb82a286", + [] ) ); @@ -161,6 +202,26 @@ export class FullMathTestInstance extends ContractInstance { }, }; + view = this.methods; + + transact = { + fullMul: async ( + params: FullMathTestTypes.SignExecuteMethodParams<"fullMul"> + ): Promise> => { + return signExecuteMethod(FullMathTest, this, "fullMul", params); + }, + mulDiv: async ( + params: FullMathTestTypes.SignExecuteMethodParams<"mulDiv"> + ): Promise> => { + return signExecuteMethod(FullMathTest, this, "mulDiv", params); + }, + fraction: async ( + params: FullMathTestTypes.SignExecuteMethodParams<"fraction"> + ): Promise> => { + return signExecuteMethod(FullMathTest, this, "fraction", params); + }, + }; + async multicall( calls: Calls ): Promise> { diff --git a/artifacts/ts/MathTest.ts b/artifacts/ts/MathTest.ts index 25830ed..ec33208 100644 --- a/artifacts/ts/MathTest.ts +++ b/artifacts/ts/MathTest.ts @@ -23,6 +23,13 @@ import { fetchContractState, ContractInstance, getContractEventsCurrentCount, + TestContractParamsWithoutMaps, + TestContractResultWithoutMaps, + SignExecuteContractMethodParams, + SignExecuteScriptTxResult, + signExecuteMethod, + addStdIdToFields, + encodeContractFields, } from "@alephium/web3"; import { default as MathTestContractJson } from "../test/MathTest.ral.json"; import { getContractByCodeHash } from "./contracts"; @@ -53,9 +60,28 @@ export namespace MathTestTypes { ? CallMethodTable[MaybeName]["result"] : undefined; }; + + export interface SignExecuteMethodTable { + uqdiv: { + params: SignExecuteContractMethodParams<{ a: bigint; b: bigint }>; + result: SignExecuteScriptTxResult; + }; + sqrt: { + params: SignExecuteContractMethodParams<{ y: bigint }>; + result: SignExecuteScriptTxResult; + }; + } + export type SignExecuteMethodParams = + SignExecuteMethodTable[T]["params"]; + export type SignExecuteMethodResult = + SignExecuteMethodTable[T]["result"]; } class Factory extends ContractFactory { + encodeFields() { + return encodeContractFields({}, this.contract.fieldsSig, []); + } + at(address: string): MathTestInstance { return new MathTestInstance(address); } @@ -63,16 +89,19 @@ class Factory extends ContractFactory { tests = { uqdiv: async ( params: Omit< - TestContractParams, + TestContractParamsWithoutMaps, "initialFields" > - ): Promise> => { - return testMethod(this, "uqdiv", params); + ): Promise> => { + return testMethod(this, "uqdiv", params, getContractByCodeHash); }, sqrt: async ( - params: Omit, "initialFields"> - ): Promise> => { - return testMethod(this, "sqrt", params); + params: Omit< + TestContractParamsWithoutMaps, + "initialFields" + > + ): Promise> => { + return testMethod(this, "sqrt", params, getContractByCodeHash); }, }; } @@ -82,7 +111,8 @@ export const MathTest = new Factory( Contract.fromJson( MathTestContractJson, "", - "085c8183210ec7296681e12ab74e37bebee9d495e78e24cc9b3cd1b110d6df2a" + "085c8183210ec7296681e12ab74e37bebee9d495e78e24cc9b3cd1b110d6df2a", + [] ) ); @@ -109,6 +139,21 @@ export class MathTestInstance extends ContractInstance { }, }; + view = this.methods; + + transact = { + uqdiv: async ( + params: MathTestTypes.SignExecuteMethodParams<"uqdiv"> + ): Promise> => { + return signExecuteMethod(MathTest, this, "uqdiv", params); + }, + sqrt: async ( + params: MathTestTypes.SignExecuteMethodParams<"sqrt"> + ): Promise> => { + return signExecuteMethod(MathTest, this, "sqrt", params); + }, + }; + async multicall( calls: Calls ): Promise> { diff --git a/artifacts/ts/Router.ts b/artifacts/ts/Router.ts index d9e5df1..a82457b 100644 --- a/artifacts/ts/Router.ts +++ b/artifacts/ts/Router.ts @@ -23,6 +23,13 @@ import { fetchContractState, ContractInstance, getContractEventsCurrentCount, + TestContractParamsWithoutMaps, + TestContractResultWithoutMaps, + SignExecuteContractMethodParams, + SignExecuteScriptTxResult, + signExecuteMethod, + addStdIdToFields, + encodeContractFields, } from "@alephium/web3"; import { default as RouterContractJson } from "../dex/Router.ral.json"; import { getContractByCodeHash } from "./contracts"; @@ -55,6 +62,30 @@ export namespace RouterTypes { }>; result: CallContractResult<[bigint, bigint]>; }; + swapExactTokenForToken: { + params: CallContractParams<{ + tokenPair: HexString; + sender: Address; + tokenInId: HexString; + amountIn: bigint; + amountOutMin: bigint; + to: Address; + deadline: bigint; + }>; + result: CallContractResult; + }; + swapTokenForExactToken: { + params: CallContractParams<{ + tokenPair: HexString; + sender: Address; + tokenInId: HexString; + amountInMax: bigint; + amountOut: bigint; + to: Address; + deadline: bigint; + }>; + result: CallContractResult; + }; } export type CallMethodParams = CallMethodTable[T]["params"]; @@ -68,9 +99,67 @@ export namespace RouterTypes { ? CallMethodTable[MaybeName]["result"] : undefined; }; + + export interface SignExecuteMethodTable { + addLiquidity: { + params: SignExecuteContractMethodParams<{ + tokenPair: HexString; + sender: Address; + amount0Desired: bigint; + amount1Desired: bigint; + amount0Min: bigint; + amount1Min: bigint; + deadline: bigint; + }>; + result: SignExecuteScriptTxResult; + }; + removeLiquidity: { + params: SignExecuteContractMethodParams<{ + tokenPairId: HexString; + sender: Address; + liquidity: bigint; + amount0Min: bigint; + amount1Min: bigint; + deadline: bigint; + }>; + result: SignExecuteScriptTxResult; + }; + swapExactTokenForToken: { + params: SignExecuteContractMethodParams<{ + tokenPair: HexString; + sender: Address; + tokenInId: HexString; + amountIn: bigint; + amountOutMin: bigint; + to: Address; + deadline: bigint; + }>; + result: SignExecuteScriptTxResult; + }; + swapTokenForExactToken: { + params: SignExecuteContractMethodParams<{ + tokenPair: HexString; + sender: Address; + tokenInId: HexString; + amountInMax: bigint; + amountOut: bigint; + to: Address; + deadline: bigint; + }>; + result: SignExecuteScriptTxResult; + }; + } + export type SignExecuteMethodParams = + SignExecuteMethodTable[T]["params"]; + export type SignExecuteMethodResult = + SignExecuteMethodTable[T]["result"]; } class Factory extends ContractFactory { + encodeFields() { + return encodeContractFields({}, this.contract.fieldsSig, []); + } + consts = { ErrorCodes: { ReserveOverflow: BigInt(0), @@ -101,7 +190,7 @@ class Factory extends ContractFactory { tests = { addLiquidity_: async ( params: Omit< - TestContractParams< + TestContractParamsWithoutMaps< never, { reserve0: bigint; @@ -114,12 +203,12 @@ class Factory extends ContractFactory { >, "initialFields" > - ): Promise> => { - return testMethod(this, "addLiquidity_", params); + ): Promise> => { + return testMethod(this, "addLiquidity_", params, getContractByCodeHash); }, addLiquidity: async ( params: Omit< - TestContractParams< + TestContractParamsWithoutMaps< never, { tokenPair: HexString; @@ -133,12 +222,12 @@ class Factory extends ContractFactory { >, "initialFields" > - ): Promise> => { - return testMethod(this, "addLiquidity", params); + ): Promise> => { + return testMethod(this, "addLiquidity", params, getContractByCodeHash); }, removeLiquidity: async ( params: Omit< - TestContractParams< + TestContractParamsWithoutMaps< never, { tokenPairId: HexString; @@ -151,23 +240,28 @@ class Factory extends ContractFactory { >, "initialFields" > - ): Promise> => { - return testMethod(this, "removeLiquidity", params); + ): Promise> => { + return testMethod(this, "removeLiquidity", params, getContractByCodeHash); }, getReserveInAndReserveOut: async ( params: Omit< - TestContractParams< + TestContractParamsWithoutMaps< never, { tokenPair: HexString; tokenInId: HexString } >, "initialFields" > - ): Promise> => { - return testMethod(this, "getReserveInAndReserveOut", params); + ): Promise> => { + return testMethod( + this, + "getReserveInAndReserveOut", + params, + getContractByCodeHash + ); }, swapExactTokenForToken: async ( params: Omit< - TestContractParams< + TestContractParamsWithoutMaps< never, { tokenPair: HexString; @@ -181,12 +275,17 @@ class Factory extends ContractFactory { >, "initialFields" > - ): Promise> => { - return testMethod(this, "swapExactTokenForToken", params); + ): Promise> => { + return testMethod( + this, + "swapExactTokenForToken", + params, + getContractByCodeHash + ); }, swapTokenForExactToken: async ( params: Omit< - TestContractParams< + TestContractParamsWithoutMaps< never, { tokenPair: HexString; @@ -200,12 +299,17 @@ class Factory extends ContractFactory { >, "initialFields" > - ): Promise> => { - return testMethod(this, "swapTokenForExactToken", params); + ): Promise> => { + return testMethod( + this, + "swapTokenForExactToken", + params, + getContractByCodeHash + ); }, swap: async ( params: Omit< - TestContractParams< + TestContractParamsWithoutMaps< never, { tokenPair: HexString; @@ -218,8 +322,8 @@ class Factory extends ContractFactory { >, "initialFields" > - ): Promise> => { - return testMethod(this, "swap", params); + ): Promise> => { + return testMethod(this, "swap", params, getContractByCodeHash); }, }; } @@ -229,7 +333,8 @@ export const Router = new Factory( Contract.fromJson( RouterContractJson, "", - "5b325453e5506a90851742af5f7797303703acecb523830220a105a88273b1b0" + "5b325453e5506a90851742af5f7797303703acecb523830220a105a88273b1b0", + [] ) ); @@ -266,6 +371,57 @@ export class RouterInstance extends ContractInstance { getContractByCodeHash ); }, + swapExactTokenForToken: async ( + params: RouterTypes.CallMethodParams<"swapExactTokenForToken"> + ): Promise> => { + return callMethod( + Router, + this, + "swapExactTokenForToken", + params, + getContractByCodeHash + ); + }, + swapTokenForExactToken: async ( + params: RouterTypes.CallMethodParams<"swapTokenForExactToken"> + ): Promise> => { + return callMethod( + Router, + this, + "swapTokenForExactToken", + params, + getContractByCodeHash + ); + }, + }; + + view = this.methods; + + transact = { + addLiquidity: async ( + params: RouterTypes.SignExecuteMethodParams<"addLiquidity"> + ): Promise> => { + return signExecuteMethod(Router, this, "addLiquidity", params); + }, + removeLiquidity: async ( + params: RouterTypes.SignExecuteMethodParams<"removeLiquidity"> + ): Promise> => { + return signExecuteMethod(Router, this, "removeLiquidity", params); + }, + swapExactTokenForToken: async ( + params: RouterTypes.SignExecuteMethodParams<"swapExactTokenForToken"> + ): Promise< + RouterTypes.SignExecuteMethodResult<"swapExactTokenForToken"> + > => { + return signExecuteMethod(Router, this, "swapExactTokenForToken", params); + }, + swapTokenForExactToken: async ( + params: RouterTypes.SignExecuteMethodParams<"swapTokenForExactToken"> + ): Promise< + RouterTypes.SignExecuteMethodResult<"swapTokenForExactToken"> + > => { + return signExecuteMethod(Router, this, "swapTokenForExactToken", params); + }, }; async multicall( diff --git a/artifacts/ts/TestToken.ts b/artifacts/ts/TestToken.ts index 9036745..edc4b27 100644 --- a/artifacts/ts/TestToken.ts +++ b/artifacts/ts/TestToken.ts @@ -23,6 +23,13 @@ import { fetchContractState, ContractInstance, getContractEventsCurrentCount, + TestContractParamsWithoutMaps, + TestContractResultWithoutMaps, + SignExecuteContractMethodParams, + SignExecuteScriptTxResult, + signExecuteMethod, + addStdIdToFields, + encodeContractFields, } from "@alephium/web3"; import { default as TestTokenContractJson } from "../test/TestToken.ral.json"; import { getContractByCodeHash } from "./contracts"; @@ -55,6 +62,10 @@ export namespace TestTokenTypes { params: Omit, "args">; result: CallContractResult; }; + getToken: { + params: CallContractParams<{ sender: Address; amount: bigint }>; + result: CallContractResult; + }; } export type CallMethodParams = CallMethodTable[T]["params"]; @@ -68,12 +79,50 @@ export namespace TestTokenTypes { ? CallMethodTable[MaybeName]["result"] : undefined; }; + + export interface SignExecuteMethodTable { + getSymbol: { + params: Omit, "args">; + result: SignExecuteScriptTxResult; + }; + getName: { + params: Omit, "args">; + result: SignExecuteScriptTxResult; + }; + getDecimals: { + params: Omit, "args">; + result: SignExecuteScriptTxResult; + }; + getTotalSupply: { + params: Omit, "args">; + result: SignExecuteScriptTxResult; + }; + getToken: { + params: SignExecuteContractMethodParams<{ + sender: Address; + amount: bigint; + }>; + result: SignExecuteScriptTxResult; + }; + } + export type SignExecuteMethodParams = + SignExecuteMethodTable[T]["params"]; + export type SignExecuteMethodResult = + SignExecuteMethodTable[T]["result"]; } class Factory extends ContractFactory< TestTokenInstance, TestTokenTypes.Fields > { + encodeFields(fields: TestTokenTypes.Fields) { + return encodeContractFields( + addStdIdToFields(this.contract, fields), + this.contract.fieldsSig, + [] + ); + } + getInitialFieldsWithDefaultValues() { return this.contract.getInitialFieldsWithDefaultValues() as TestTokenTypes.Fields; } @@ -84,32 +133,44 @@ class Factory extends ContractFactory< tests = { getSymbol: async ( - params: Omit, "testArgs"> - ): Promise> => { - return testMethod(this, "getSymbol", params); + params: Omit< + TestContractParamsWithoutMaps, + "testArgs" + > + ): Promise> => { + return testMethod(this, "getSymbol", params, getContractByCodeHash); }, getName: async ( - params: Omit, "testArgs"> - ): Promise> => { - return testMethod(this, "getName", params); + params: Omit< + TestContractParamsWithoutMaps, + "testArgs" + > + ): Promise> => { + return testMethod(this, "getName", params, getContractByCodeHash); }, getDecimals: async ( - params: Omit, "testArgs"> - ): Promise> => { - return testMethod(this, "getDecimals", params); + params: Omit< + TestContractParamsWithoutMaps, + "testArgs" + > + ): Promise> => { + return testMethod(this, "getDecimals", params, getContractByCodeHash); }, getTotalSupply: async ( - params: Omit, "testArgs"> - ): Promise> => { - return testMethod(this, "getTotalSupply", params); + params: Omit< + TestContractParamsWithoutMaps, + "testArgs" + > + ): Promise> => { + return testMethod(this, "getTotalSupply", params, getContractByCodeHash); }, getToken: async ( - params: TestContractParams< + params: TestContractParamsWithoutMaps< TestTokenTypes.Fields, { sender: Address; amount: bigint } > - ): Promise> => { - return testMethod(this, "getToken", params); + ): Promise> => { + return testMethod(this, "getToken", params, getContractByCodeHash); }, }; } @@ -119,7 +180,8 @@ export const TestToken = new Factory( Contract.fromJson( TestTokenContractJson, "", - "0831d766037e7873066276e891997881e8787f4fb4bd9d154925d80869efa129" + "0831d766037e7873066276e891997881e8787f4fb4bd9d154925d80869efa129", + [] ) ); @@ -178,6 +240,47 @@ export class TestTokenInstance extends ContractInstance { getContractByCodeHash ); }, + getToken: async ( + params: TestTokenTypes.CallMethodParams<"getToken"> + ): Promise> => { + return callMethod( + TestToken, + this, + "getToken", + params, + getContractByCodeHash + ); + }, + }; + + view = this.methods; + + transact = { + getSymbol: async ( + params: TestTokenTypes.SignExecuteMethodParams<"getSymbol"> + ): Promise> => { + return signExecuteMethod(TestToken, this, "getSymbol", params); + }, + getName: async ( + params: TestTokenTypes.SignExecuteMethodParams<"getName"> + ): Promise> => { + return signExecuteMethod(TestToken, this, "getName", params); + }, + getDecimals: async ( + params: TestTokenTypes.SignExecuteMethodParams<"getDecimals"> + ): Promise> => { + return signExecuteMethod(TestToken, this, "getDecimals", params); + }, + getTotalSupply: async ( + params: TestTokenTypes.SignExecuteMethodParams<"getTotalSupply"> + ): Promise> => { + return signExecuteMethod(TestToken, this, "getTotalSupply", params); + }, + getToken: async ( + params: TestTokenTypes.SignExecuteMethodParams<"getToken"> + ): Promise> => { + return signExecuteMethod(TestToken, this, "getToken", params); + }, }; async multicall( diff --git a/artifacts/ts/TokenPair.ts b/artifacts/ts/TokenPair.ts index eae9bbd..75697ba 100644 --- a/artifacts/ts/TokenPair.ts +++ b/artifacts/ts/TokenPair.ts @@ -23,6 +23,13 @@ import { fetchContractState, ContractInstance, getContractEventsCurrentCount, + TestContractParamsWithoutMaps, + TestContractResultWithoutMaps, + SignExecuteContractMethodParams, + SignExecuteScriptTxResult, + signExecuteMethod, + addStdIdToFields, + encodeContractFields, } from "@alephium/web3"; import { default as TokenPairContractJson } from "../dex/TokenPair.ral.json"; import { getContractByCodeHash } from "./contracts"; @@ -91,6 +98,10 @@ export namespace TokenPairTypes { params: CallContractParams<{ y: bigint }>; result: CallContractResult; }; + setFeeCollectorId: { + params: CallContractParams<{ id: HexString }>; + result: CallContractResult; + }; getTokenPair: { params: Omit, "args">; result: CallContractResult<[HexString, HexString]>; @@ -123,6 +134,21 @@ export namespace TokenPairTypes { params: CallContractParams<{ sender: Address; liquidity: bigint }>; result: CallContractResult<[bigint, bigint]>; }; + swap: { + params: CallContractParams<{ + sender: Address; + to: Address; + amount0In: bigint; + amount1In: bigint; + amount0Out: bigint; + amount1Out: bigint; + }>; + result: CallContractResult; + }; + collectFeeManually: { + params: Omit, "args">; + result: CallContractResult; + }; } export type CallMethodParams = CallMethodTable[T]["params"]; @@ -136,12 +162,105 @@ export namespace TokenPairTypes { ? CallMethodTable[MaybeName]["result"] : undefined; }; + + export interface SignExecuteMethodTable { + getSymbol: { + params: Omit, "args">; + result: SignExecuteScriptTxResult; + }; + getName: { + params: Omit, "args">; + result: SignExecuteScriptTxResult; + }; + getDecimals: { + params: Omit, "args">; + result: SignExecuteScriptTxResult; + }; + getTotalSupply: { + params: Omit, "args">; + result: SignExecuteScriptTxResult; + }; + uqdiv: { + params: SignExecuteContractMethodParams<{ a: bigint; b: bigint }>; + result: SignExecuteScriptTxResult; + }; + sqrt: { + params: SignExecuteContractMethodParams<{ y: bigint }>; + result: SignExecuteScriptTxResult; + }; + setFeeCollectorId: { + params: SignExecuteContractMethodParams<{ id: HexString }>; + result: SignExecuteScriptTxResult; + }; + getTokenPair: { + params: Omit, "args">; + result: SignExecuteScriptTxResult; + }; + getReserves: { + params: Omit, "args">; + result: SignExecuteScriptTxResult; + }; + getBlockTimeStampLast: { + params: Omit, "args">; + result: SignExecuteScriptTxResult; + }; + getPrice0CumulativeLast: { + params: Omit, "args">; + result: SignExecuteScriptTxResult; + }; + getPrice1CumulativeLast: { + params: Omit, "args">; + result: SignExecuteScriptTxResult; + }; + mint: { + params: SignExecuteContractMethodParams<{ + sender: Address; + amount0: bigint; + amount1: bigint; + }>; + result: SignExecuteScriptTxResult; + }; + burn: { + params: SignExecuteContractMethodParams<{ + sender: Address; + liquidity: bigint; + }>; + result: SignExecuteScriptTxResult; + }; + swap: { + params: SignExecuteContractMethodParams<{ + sender: Address; + to: Address; + amount0In: bigint; + amount1In: bigint; + amount0Out: bigint; + amount1Out: bigint; + }>; + result: SignExecuteScriptTxResult; + }; + collectFeeManually: { + params: Omit, "args">; + result: SignExecuteScriptTxResult; + }; + } + export type SignExecuteMethodParams = + SignExecuteMethodTable[T]["params"]; + export type SignExecuteMethodResult = + SignExecuteMethodTable[T]["result"]; } class Factory extends ContractFactory< TokenPairInstance, TokenPairTypes.Fields > { + encodeFields(fields: TokenPairTypes.Fields) { + return encodeContractFields( + addStdIdToFields(this.contract, fields), + this.contract.fieldsSig, + [] + ); + } + getInitialFieldsWithDefaultValues() { return this.contract.getInitialFieldsWithDefaultValues() as TokenPairTypes.Fields; } @@ -177,102 +296,155 @@ class Factory extends ContractFactory< tests = { getSymbol: async ( - params: Omit, "testArgs"> - ): Promise> => { - return testMethod(this, "getSymbol", params); + params: Omit< + TestContractParamsWithoutMaps, + "testArgs" + > + ): Promise> => { + return testMethod(this, "getSymbol", params, getContractByCodeHash); }, getName: async ( - params: Omit, "testArgs"> - ): Promise> => { - return testMethod(this, "getName", params); + params: Omit< + TestContractParamsWithoutMaps, + "testArgs" + > + ): Promise> => { + return testMethod(this, "getName", params, getContractByCodeHash); }, getDecimals: async ( - params: Omit, "testArgs"> - ): Promise> => { - return testMethod(this, "getDecimals", params); + params: Omit< + TestContractParamsWithoutMaps, + "testArgs" + > + ): Promise> => { + return testMethod(this, "getDecimals", params, getContractByCodeHash); }, getTotalSupply: async ( - params: Omit, "testArgs"> - ): Promise> => { - return testMethod(this, "getTotalSupply", params); + params: Omit< + TestContractParamsWithoutMaps, + "testArgs" + > + ): Promise> => { + return testMethod(this, "getTotalSupply", params, getContractByCodeHash); }, uqdiv: async ( - params: TestContractParams< + params: TestContractParamsWithoutMaps< TokenPairTypes.Fields, { a: bigint; b: bigint } > - ): Promise> => { - return testMethod(this, "uqdiv", params); + ): Promise> => { + return testMethod(this, "uqdiv", params, getContractByCodeHash); }, sqrt: async ( - params: TestContractParams - ): Promise> => { - return testMethod(this, "sqrt", params); + params: TestContractParamsWithoutMaps< + TokenPairTypes.Fields, + { y: bigint } + > + ): Promise> => { + return testMethod(this, "sqrt", params, getContractByCodeHash); }, setFeeCollectorId: async ( - params: TestContractParams - ): Promise> => { - return testMethod(this, "setFeeCollectorId", params); + params: TestContractParamsWithoutMaps< + TokenPairTypes.Fields, + { id: HexString } + > + ): Promise> => { + return testMethod( + this, + "setFeeCollectorId", + params, + getContractByCodeHash + ); }, getTokenPair: async ( - params: Omit, "testArgs"> - ): Promise> => { - return testMethod(this, "getTokenPair", params); + params: Omit< + TestContractParamsWithoutMaps, + "testArgs" + > + ): Promise> => { + return testMethod(this, "getTokenPair", params, getContractByCodeHash); }, getReserves: async ( - params: Omit, "testArgs"> - ): Promise> => { - return testMethod(this, "getReserves", params); + params: Omit< + TestContractParamsWithoutMaps, + "testArgs" + > + ): Promise> => { + return testMethod(this, "getReserves", params, getContractByCodeHash); }, getBlockTimeStampLast: async ( - params: Omit, "testArgs"> - ): Promise> => { - return testMethod(this, "getBlockTimeStampLast", params); + params: Omit< + TestContractParamsWithoutMaps, + "testArgs" + > + ): Promise> => { + return testMethod( + this, + "getBlockTimeStampLast", + params, + getContractByCodeHash + ); }, getPrice0CumulativeLast: async ( - params: Omit, "testArgs"> - ): Promise> => { - return testMethod(this, "getPrice0CumulativeLast", params); + params: Omit< + TestContractParamsWithoutMaps, + "testArgs" + > + ): Promise> => { + return testMethod( + this, + "getPrice0CumulativeLast", + params, + getContractByCodeHash + ); }, getPrice1CumulativeLast: async ( - params: Omit, "testArgs"> - ): Promise> => { - return testMethod(this, "getPrice1CumulativeLast", params); + params: Omit< + TestContractParamsWithoutMaps, + "testArgs" + > + ): Promise> => { + return testMethod( + this, + "getPrice1CumulativeLast", + params, + getContractByCodeHash + ); }, update: async ( - params: TestContractParams< + params: TestContractParamsWithoutMaps< TokenPairTypes.Fields, { newReserve0: bigint; newReserve1: bigint } > - ): Promise> => { - return testMethod(this, "update", params); + ): Promise> => { + return testMethod(this, "update", params, getContractByCodeHash); }, mintFee: async ( - params: TestContractParams< + params: TestContractParamsWithoutMaps< TokenPairTypes.Fields, { reserve0_: bigint; reserve1_: bigint } > - ): Promise> => { - return testMethod(this, "mintFee", params); + ): Promise> => { + return testMethod(this, "mintFee", params, getContractByCodeHash); }, mint: async ( - params: TestContractParams< + params: TestContractParamsWithoutMaps< TokenPairTypes.Fields, { sender: Address; amount0: bigint; amount1: bigint } > - ): Promise> => { - return testMethod(this, "mint", params); + ): Promise> => { + return testMethod(this, "mint", params, getContractByCodeHash); }, burn: async ( - params: TestContractParams< + params: TestContractParamsWithoutMaps< TokenPairTypes.Fields, { sender: Address; liquidity: bigint } > - ): Promise> => { - return testMethod(this, "burn", params); + ): Promise> => { + return testMethod(this, "burn", params, getContractByCodeHash); }, swap: async ( - params: TestContractParams< + params: TestContractParamsWithoutMaps< TokenPairTypes.Fields, { sender: Address; @@ -283,18 +455,34 @@ class Factory extends ContractFactory< amount1Out: bigint; } > - ): Promise> => { - return testMethod(this, "swap", params); + ): Promise> => { + return testMethod(this, "swap", params, getContractByCodeHash); }, collectFeeManually: async ( - params: Omit, "testArgs"> - ): Promise> => { - return testMethod(this, "collectFeeManually", params); + params: Omit< + TestContractParamsWithoutMaps, + "testArgs" + > + ): Promise> => { + return testMethod( + this, + "collectFeeManually", + params, + getContractByCodeHash + ); }, collectFeeAndUpdateKLast: async ( - params: TestContractParams - ): Promise> => { - return testMethod(this, "collectFeeAndUpdateKLast", params); + params: TestContractParamsWithoutMaps< + TokenPairTypes.Fields, + { feeAmount: bigint } + > + ): Promise> => { + return testMethod( + this, + "collectFeeAndUpdateKLast", + params, + getContractByCodeHash + ); }, }; } @@ -304,7 +492,8 @@ export const TokenPair = new Factory( Contract.fromJson( TokenPairContractJson, "", - "4a98763809adb6e899e3e7864e6d5dcb60c6fd0806f1264c3596b482021035f2" + "44cb575528fd174a595daf0a095f1b0f2e6b234213a99449173542520f63222e", + [] ) ); @@ -438,6 +627,17 @@ export class TokenPairInstance extends ContractInstance { ): Promise> => { return callMethod(TokenPair, this, "sqrt", params, getContractByCodeHash); }, + setFeeCollectorId: async ( + params: TokenPairTypes.CallMethodParams<"setFeeCollectorId"> + ): Promise> => { + return callMethod( + TokenPair, + this, + "setFeeCollectorId", + params, + getContractByCodeHash + ); + }, getTokenPair: async ( params?: TokenPairTypes.CallMethodParams<"getTokenPair"> ): Promise> => { @@ -503,6 +703,130 @@ export class TokenPairInstance extends ContractInstance { ): Promise> => { return callMethod(TokenPair, this, "burn", params, getContractByCodeHash); }, + swap: async ( + params: TokenPairTypes.CallMethodParams<"swap"> + ): Promise> => { + return callMethod(TokenPair, this, "swap", params, getContractByCodeHash); + }, + collectFeeManually: async ( + params?: TokenPairTypes.CallMethodParams<"collectFeeManually"> + ): Promise> => { + return callMethod( + TokenPair, + this, + "collectFeeManually", + params === undefined ? {} : params, + getContractByCodeHash + ); + }, + }; + + view = this.methods; + + transact = { + getSymbol: async ( + params: TokenPairTypes.SignExecuteMethodParams<"getSymbol"> + ): Promise> => { + return signExecuteMethod(TokenPair, this, "getSymbol", params); + }, + getName: async ( + params: TokenPairTypes.SignExecuteMethodParams<"getName"> + ): Promise> => { + return signExecuteMethod(TokenPair, this, "getName", params); + }, + getDecimals: async ( + params: TokenPairTypes.SignExecuteMethodParams<"getDecimals"> + ): Promise> => { + return signExecuteMethod(TokenPair, this, "getDecimals", params); + }, + getTotalSupply: async ( + params: TokenPairTypes.SignExecuteMethodParams<"getTotalSupply"> + ): Promise> => { + return signExecuteMethod(TokenPair, this, "getTotalSupply", params); + }, + uqdiv: async ( + params: TokenPairTypes.SignExecuteMethodParams<"uqdiv"> + ): Promise> => { + return signExecuteMethod(TokenPair, this, "uqdiv", params); + }, + sqrt: async ( + params: TokenPairTypes.SignExecuteMethodParams<"sqrt"> + ): Promise> => { + return signExecuteMethod(TokenPair, this, "sqrt", params); + }, + setFeeCollectorId: async ( + params: TokenPairTypes.SignExecuteMethodParams<"setFeeCollectorId"> + ): Promise> => { + return signExecuteMethod(TokenPair, this, "setFeeCollectorId", params); + }, + getTokenPair: async ( + params: TokenPairTypes.SignExecuteMethodParams<"getTokenPair"> + ): Promise> => { + return signExecuteMethod(TokenPair, this, "getTokenPair", params); + }, + getReserves: async ( + params: TokenPairTypes.SignExecuteMethodParams<"getReserves"> + ): Promise> => { + return signExecuteMethod(TokenPair, this, "getReserves", params); + }, + getBlockTimeStampLast: async ( + params: TokenPairTypes.SignExecuteMethodParams<"getBlockTimeStampLast"> + ): Promise< + TokenPairTypes.SignExecuteMethodResult<"getBlockTimeStampLast"> + > => { + return signExecuteMethod( + TokenPair, + this, + "getBlockTimeStampLast", + params + ); + }, + getPrice0CumulativeLast: async ( + params: TokenPairTypes.SignExecuteMethodParams<"getPrice0CumulativeLast"> + ): Promise< + TokenPairTypes.SignExecuteMethodResult<"getPrice0CumulativeLast"> + > => { + return signExecuteMethod( + TokenPair, + this, + "getPrice0CumulativeLast", + params + ); + }, + getPrice1CumulativeLast: async ( + params: TokenPairTypes.SignExecuteMethodParams<"getPrice1CumulativeLast"> + ): Promise< + TokenPairTypes.SignExecuteMethodResult<"getPrice1CumulativeLast"> + > => { + return signExecuteMethod( + TokenPair, + this, + "getPrice1CumulativeLast", + params + ); + }, + mint: async ( + params: TokenPairTypes.SignExecuteMethodParams<"mint"> + ): Promise> => { + return signExecuteMethod(TokenPair, this, "mint", params); + }, + burn: async ( + params: TokenPairTypes.SignExecuteMethodParams<"burn"> + ): Promise> => { + return signExecuteMethod(TokenPair, this, "burn", params); + }, + swap: async ( + params: TokenPairTypes.SignExecuteMethodParams<"swap"> + ): Promise> => { + return signExecuteMethod(TokenPair, this, "swap", params); + }, + collectFeeManually: async ( + params: TokenPairTypes.SignExecuteMethodParams<"collectFeeManually"> + ): Promise< + TokenPairTypes.SignExecuteMethodResult<"collectFeeManually"> + > => { + return signExecuteMethod(TokenPair, this, "collectFeeManually", params); + }, }; async multicall( diff --git a/artifacts/ts/TokenPairFactory.ts b/artifacts/ts/TokenPairFactory.ts index 65e089b..d4f92e8 100644 --- a/artifacts/ts/TokenPairFactory.ts +++ b/artifacts/ts/TokenPairFactory.ts @@ -23,6 +23,13 @@ import { fetchContractState, ContractInstance, getContractEventsCurrentCount, + TestContractParamsWithoutMaps, + TestContractResultWithoutMaps, + SignExecuteContractMethodParams, + SignExecuteScriptTxResult, + signExecuteMethod, + addStdIdToFields, + encodeContractFields, } from "@alephium/web3"; import { default as TokenPairFactoryContractJson } from "../dex/TokenPairFactory.ral.json"; import { getContractByCodeHash } from "./contracts"; @@ -46,10 +53,38 @@ export namespace TokenPairFactoryTypes { }>; export interface CallMethodTable { + setFeeCollectorFactory: { + params: CallContractParams<{ factory: HexString }>; + result: CallContractResult; + }; + updateFeeSetter: { + params: CallContractParams<{ newFeeSetter: Address }>; + result: CallContractResult; + }; getFeeSetter: { params: Omit, "args">; result: CallContractResult
; }; + enableFeeCollector: { + params: CallContractParams<{ tokenPair: HexString; alphAmount: bigint }>; + result: CallContractResult; + }; + updateFeeCollector: { + params: CallContractParams<{ + tokenPair: HexString; + newFeeCollectorId: HexString; + }>; + result: CallContractResult; + }; + createPair: { + params: CallContractParams<{ + payer: Address; + alphAmount: bigint; + tokenAId: HexString; + tokenBId: HexString; + }>; + result: CallContractResult; + }; } export type CallMethodParams = CallMethodTable[T]["params"]; @@ -63,12 +98,62 @@ export namespace TokenPairFactoryTypes { ? CallMethodTable[MaybeName]["result"] : undefined; }; + + export interface SignExecuteMethodTable { + setFeeCollectorFactory: { + params: SignExecuteContractMethodParams<{ factory: HexString }>; + result: SignExecuteScriptTxResult; + }; + updateFeeSetter: { + params: SignExecuteContractMethodParams<{ newFeeSetter: Address }>; + result: SignExecuteScriptTxResult; + }; + getFeeSetter: { + params: Omit, "args">; + result: SignExecuteScriptTxResult; + }; + enableFeeCollector: { + params: SignExecuteContractMethodParams<{ + tokenPair: HexString; + alphAmount: bigint; + }>; + result: SignExecuteScriptTxResult; + }; + updateFeeCollector: { + params: SignExecuteContractMethodParams<{ + tokenPair: HexString; + newFeeCollectorId: HexString; + }>; + result: SignExecuteScriptTxResult; + }; + createPair: { + params: SignExecuteContractMethodParams<{ + payer: Address; + alphAmount: bigint; + tokenAId: HexString; + tokenBId: HexString; + }>; + result: SignExecuteScriptTxResult; + }; + } + export type SignExecuteMethodParams = + SignExecuteMethodTable[T]["params"]; + export type SignExecuteMethodResult = + SignExecuteMethodTable[T]["result"]; } class Factory extends ContractFactory< TokenPairFactoryInstance, TokenPairFactoryTypes.Fields > { + encodeFields(fields: TokenPairFactoryTypes.Fields) { + return encodeContractFields( + addStdIdToFields(this.contract, fields), + this.contract.fieldsSig, + [] + ); + } + getInitialFieldsWithDefaultValues() { return this.contract.getInitialFieldsWithDefaultValues() as TokenPairFactoryTypes.Fields; } @@ -103,55 +188,70 @@ class Factory extends ContractFactory< tests = { setFeeCollectorFactory: async ( - params: TestContractParams< + params: TestContractParamsWithoutMaps< TokenPairFactoryTypes.Fields, { factory: HexString } > - ): Promise> => { - return testMethod(this, "setFeeCollectorFactory", params); + ): Promise> => { + return testMethod( + this, + "setFeeCollectorFactory", + params, + getContractByCodeHash + ); }, updateFeeSetter: async ( - params: TestContractParams< + params: TestContractParamsWithoutMaps< TokenPairFactoryTypes.Fields, { newFeeSetter: Address } > - ): Promise> => { - return testMethod(this, "updateFeeSetter", params); + ): Promise> => { + return testMethod(this, "updateFeeSetter", params, getContractByCodeHash); }, getFeeSetter: async ( params: Omit< - TestContractParams, + TestContractParamsWithoutMaps, "testArgs" > - ): Promise> => { - return testMethod(this, "getFeeSetter", params); + ): Promise> => { + return testMethod(this, "getFeeSetter", params, getContractByCodeHash); }, enableFeeCollector: async ( - params: TestContractParams< + params: TestContractParamsWithoutMaps< TokenPairFactoryTypes.Fields, { tokenPair: HexString; alphAmount: bigint } > - ): Promise> => { - return testMethod(this, "enableFeeCollector", params); + ): Promise> => { + return testMethod( + this, + "enableFeeCollector", + params, + getContractByCodeHash + ); }, updateFeeCollector: async ( - params: TestContractParams< + params: TestContractParamsWithoutMaps< TokenPairFactoryTypes.Fields, { tokenPair: HexString; newFeeCollectorId: HexString } > - ): Promise> => { - return testMethod(this, "updateFeeCollector", params); + ): Promise> => { + return testMethod( + this, + "updateFeeCollector", + params, + getContractByCodeHash + ); }, sortTokens: async ( - params: TestContractParams< + params: TestContractParamsWithoutMaps< TokenPairFactoryTypes.Fields, { tokenA: HexString; tokenB: HexString } > - ): Promise> => { - return testMethod(this, "sortTokens", params); + ): Promise> => { + return testMethod(this, "sortTokens", params, getContractByCodeHash); }, createPair: async ( - params: TestContractParams< + params: TestContractParamsWithoutMaps< TokenPairFactoryTypes.Fields, { payer: Address; @@ -160,8 +260,8 @@ class Factory extends ContractFactory< tokenBId: HexString; } > - ): Promise> => { - return testMethod(this, "createPair", params); + ): Promise> => { + return testMethod(this, "createPair", params, getContractByCodeHash); }, }; } @@ -171,7 +271,8 @@ export const TokenPairFactory = new Factory( Contract.fromJson( TokenPairFactoryContractJson, "", - "44144899a2b71465a80654889afa8a2bf4a8f3cd0f30ad1880d2ffc7c12ad18b" + "44144899a2b71465a80654889afa8a2bf4a8f3cd0f30ad1880d2ffc7c12ad18b", + [] ) ); @@ -203,6 +304,30 @@ export class TokenPairFactoryInstance extends ContractInstance { } methods = { + setFeeCollectorFactory: async ( + params: TokenPairFactoryTypes.CallMethodParams<"setFeeCollectorFactory"> + ): Promise< + TokenPairFactoryTypes.CallMethodResult<"setFeeCollectorFactory"> + > => { + return callMethod( + TokenPairFactory, + this, + "setFeeCollectorFactory", + params, + getContractByCodeHash + ); + }, + updateFeeSetter: async ( + params: TokenPairFactoryTypes.CallMethodParams<"updateFeeSetter"> + ): Promise> => { + return callMethod( + TokenPairFactory, + this, + "updateFeeSetter", + params, + getContractByCodeHash + ); + }, getFeeSetter: async ( params?: TokenPairFactoryTypes.CallMethodParams<"getFeeSetter"> ): Promise> => { @@ -214,6 +339,108 @@ export class TokenPairFactoryInstance extends ContractInstance { getContractByCodeHash ); }, + enableFeeCollector: async ( + params: TokenPairFactoryTypes.CallMethodParams<"enableFeeCollector"> + ): Promise< + TokenPairFactoryTypes.CallMethodResult<"enableFeeCollector"> + > => { + return callMethod( + TokenPairFactory, + this, + "enableFeeCollector", + params, + getContractByCodeHash + ); + }, + updateFeeCollector: async ( + params: TokenPairFactoryTypes.CallMethodParams<"updateFeeCollector"> + ): Promise< + TokenPairFactoryTypes.CallMethodResult<"updateFeeCollector"> + > => { + return callMethod( + TokenPairFactory, + this, + "updateFeeCollector", + params, + getContractByCodeHash + ); + }, + createPair: async ( + params: TokenPairFactoryTypes.CallMethodParams<"createPair"> + ): Promise> => { + return callMethod( + TokenPairFactory, + this, + "createPair", + params, + getContractByCodeHash + ); + }, + }; + + view = this.methods; + + transact = { + setFeeCollectorFactory: async ( + params: TokenPairFactoryTypes.SignExecuteMethodParams<"setFeeCollectorFactory"> + ): Promise< + TokenPairFactoryTypes.SignExecuteMethodResult<"setFeeCollectorFactory"> + > => { + return signExecuteMethod( + TokenPairFactory, + this, + "setFeeCollectorFactory", + params + ); + }, + updateFeeSetter: async ( + params: TokenPairFactoryTypes.SignExecuteMethodParams<"updateFeeSetter"> + ): Promise< + TokenPairFactoryTypes.SignExecuteMethodResult<"updateFeeSetter"> + > => { + return signExecuteMethod( + TokenPairFactory, + this, + "updateFeeSetter", + params + ); + }, + getFeeSetter: async ( + params: TokenPairFactoryTypes.SignExecuteMethodParams<"getFeeSetter"> + ): Promise< + TokenPairFactoryTypes.SignExecuteMethodResult<"getFeeSetter"> + > => { + return signExecuteMethod(TokenPairFactory, this, "getFeeSetter", params); + }, + enableFeeCollector: async ( + params: TokenPairFactoryTypes.SignExecuteMethodParams<"enableFeeCollector"> + ): Promise< + TokenPairFactoryTypes.SignExecuteMethodResult<"enableFeeCollector"> + > => { + return signExecuteMethod( + TokenPairFactory, + this, + "enableFeeCollector", + params + ); + }, + updateFeeCollector: async ( + params: TokenPairFactoryTypes.SignExecuteMethodParams<"updateFeeCollector"> + ): Promise< + TokenPairFactoryTypes.SignExecuteMethodResult<"updateFeeCollector"> + > => { + return signExecuteMethod( + TokenPairFactory, + this, + "updateFeeCollector", + params + ); + }, + createPair: async ( + params: TokenPairFactoryTypes.SignExecuteMethodParams<"createPair"> + ): Promise> => { + return signExecuteMethod(TokenPairFactory, this, "createPair", params); + }, }; async multicall( diff --git a/artifacts/ts/deployments.ts b/artifacts/ts/deployments.ts index 17f5454..58fecc1 100644 --- a/artifacts/ts/deployments.ts +++ b/artifacts/ts/deployments.ts @@ -82,7 +82,7 @@ export function loadDeployments( if (deployments === undefined) { throw Error("The contract has not been deployed to the " + networkId); } - const allDeployments = Array.isArray(deployments) + const allDeployments: any[] = Array.isArray(deployments) ? deployments : [deployments]; if (deployerAddress === undefined) { diff --git a/artifacts/ts/scripts.ts b/artifacts/ts/scripts.ts index 880bd2e..2b1a1d0 100644 --- a/artifacts/ts/scripts.ts +++ b/artifacts/ts/scripts.ts @@ -33,37 +33,44 @@ export const AddLiquidity = new ExecutableScript<{ amount0Min: bigint; amount1Min: bigint; deadline: bigint; -}>(Script.fromJson(AddLiquidityScriptJson)); +}>(Script.fromJson(AddLiquidityScriptJson, "", [])); + export const Burn = new ExecutableScript<{ tokenPair: HexString; sender: Address; liquidity: bigint; -}>(Script.fromJson(BurnScriptJson)); +}>(Script.fromJson(BurnScriptJson, "", [])); + export const CollectFee = new ExecutableScript<{ feeCollector: HexString }>( - Script.fromJson(CollectFeeScriptJson) + Script.fromJson(CollectFeeScriptJson, "", []) ); + export const CreatePair = new ExecutableScript<{ payer: Address; factory: HexString; alphAmount: bigint; tokenAId: HexString; tokenBId: HexString; -}>(Script.fromJson(CreatePairScriptJson)); +}>(Script.fromJson(CreatePairScriptJson, "", [])); + export const EnableFeeCollector = new ExecutableScript<{ tokenPairFactory: HexString; tokenPair: HexString; -}>(Script.fromJson(EnableFeeCollectorScriptJson)); +}>(Script.fromJson(EnableFeeCollectorScriptJson, "", [])); + export const GetToken = new ExecutableScript<{ token: HexString; sender: Address; amount: bigint; -}>(Script.fromJson(GetTokenScriptJson)); +}>(Script.fromJson(GetTokenScriptJson, "", [])); + export const Mint = new ExecutableScript<{ tokenPair: HexString; sender: Address; amount0: bigint; amount1: bigint; -}>(Script.fromJson(MintScriptJson)); +}>(Script.fromJson(MintScriptJson, "", [])); + export const RemoveLiquidity = new ExecutableScript<{ sender: Address; router: HexString; @@ -72,11 +79,13 @@ export const RemoveLiquidity = new ExecutableScript<{ amount0Min: bigint; amount1Min: bigint; deadline: bigint; -}>(Script.fromJson(RemoveLiquidityScriptJson)); +}>(Script.fromJson(RemoveLiquidityScriptJson, "", [])); + export const SetFeeCollectorFactory = new ExecutableScript<{ tokenPairFactory: HexString; feeCollectorFactory: HexString; -}>(Script.fromJson(SetFeeCollectorFactoryScriptJson)); +}>(Script.fromJson(SetFeeCollectorFactoryScriptJson, "", [])); + export const Swap = new ExecutableScript<{ tokenPair: HexString; sender: Address; @@ -85,7 +94,8 @@ export const Swap = new ExecutableScript<{ amount1In: bigint; amount0Out: bigint; amount1Out: bigint; -}>(Script.fromJson(SwapScriptJson)); +}>(Script.fromJson(SwapScriptJson, "", [])); + export const SwapMaxIn = new ExecutableScript<{ sender: Address; router: HexString; @@ -94,7 +104,8 @@ export const SwapMaxIn = new ExecutableScript<{ amountInMax: bigint; amountOut: bigint; deadline: bigint; -}>(Script.fromJson(SwapMaxInScriptJson)); +}>(Script.fromJson(SwapMaxInScriptJson, "", [])); + export const SwapMinOut = new ExecutableScript<{ sender: Address; router: HexString; @@ -103,4 +114,4 @@ export const SwapMinOut = new ExecutableScript<{ amountIn: bigint; amountOutMin: bigint; deadline: bigint; -}>(Script.fromJson(SwapMinOutScriptJson)); +}>(Script.fromJson(SwapMinOutScriptJson, "", [])); diff --git a/contracts/dex/fee_collector_factory.ral b/contracts/dex/fee_collector_factory.ral index 777c016..27d7237 100644 --- a/contracts/dex/fee_collector_factory.ral +++ b/contracts/dex/fee_collector_factory.ral @@ -1,3 +1,4 @@ +@using(methodSelector = false) Interface FeeCollectorFactory { @using(preapprovedAssets = true) pub fn createFeeCollector(caller: Address, alphAmount: U256, tokenPair: TokenPair) -> ByteVec diff --git a/contracts/dex/fee_collector_per_token_pair.ral b/contracts/dex/fee_collector_per_token_pair.ral index d4a2b38..2cd1b7d 100644 --- a/contracts/dex/fee_collector_per_token_pair.ral +++ b/contracts/dex/fee_collector_per_token_pair.ral @@ -1,3 +1,4 @@ +@using(methodSelector = false) Interface FeeCollectorPerTokenPair { @using(preapprovedAssets = true, assetsInContract = true) pub fn collectFee(from: Address, amount: U256) -> () diff --git a/contracts/dex/token_pair.ral b/contracts/dex/token_pair.ral index d871bf9..8cfd709 100644 --- a/contracts/dex/token_pair.ral +++ b/contracts/dex/token_pair.ral @@ -157,7 +157,6 @@ Contract TokenPair( @using(preapprovedAssets = true, assetsInContract = true, checkExternalCaller = false) pub fn swap(sender: Address, to: Address, amount0In: U256, amount1In: U256, amount0Out: U256, amount1Out: U256) -> () { - assert!(isAssetAddress!(sender), ErrorCodes.InvalidToAddress) assert!(amount0Out > 0 || amount1Out > 0, ErrorCodes.InsufficientOutputAmount) assert!(amount0Out < reserve0 && amount1Out < reserve1, ErrorCodes.InsufficientLiquidity) diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml index d7a7138..5463349 100644 --- a/docker/docker-compose.yaml +++ b/docker/docker-compose.yaml @@ -2,7 +2,7 @@ version: "3.3" services: alephium: - image: alephium/alephium:v2.5.3 + image: alephium/alephium:v3.1.2 restart: "no" ports: - 19973:19973/tcp @@ -53,7 +53,7 @@ services: explorer-backend: container_name: alephium_explorer_backend - image: alephium/explorer-backend:v1.13.4 + image: alephium/explorer-backend:v1.17.3 depends_on: postgres: condition: service_healthy diff --git a/package-lock.json b/package-lock.json index 83ffe0d..c117c94 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,12 +9,10 @@ "version": "0.1.0", "license": "GPL", "dependencies": { - "@alephium/cli": "^0.28.1", "@alephium/token-list": "0.0.11", - "@alephium/web3": "^0.28.1", - "@alephium/web3-react": "^0.28.1", - "@alephium/web3-test": "^0.28.1", - "@alephium/web3-wallet": "^0.28.1", + "@alephium/web3": "^1.0.1", + "@alephium/web3-react": "^1.0.1", + "@alephium/web3-wallet": "^1.0.1", "@material-ui/core": "^4.12.2", "@material-ui/icons": "^4.11.2", "@material-ui/lab": "^4.0.0-alpha.60", @@ -35,6 +33,8 @@ "typescript": "^4.4.2" }, "devDependencies": { + "@alephium/cli": "^1.0.1", + "@alephium/web3-test": "^1.0.1", "@types/elliptic": "^6.4.13", "@types/jest": "^27.5.1", "@types/lodash-es": "^4.17.6", @@ -82,22 +82,21 @@ } }, "node_modules/@alephium/cli": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@alephium/cli/-/cli-0.28.1.tgz", - "integrity": "sha512-bcqbmXVk+gk6onb9WMYVeIFwcV0xtsaX0qG+7M+lfLSwmGHi+N2dUS7Qrnvp9UE8BHRvBB4YoaH9JOpQqr/1KQ==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@alephium/cli/-/cli-1.0.1.tgz", + "integrity": "sha512-AsVBxFOLVTlohW9IWoAk8P5DDmAp/6wiO8vO5KQ61uWVHvg3WHvRFH9IzwAMumc7y7ONOCCzo+F3OijBKVTwLA==", + "dev": true, "dependencies": { - "@alephium/web3": "^0.28.1", - "@alephium/web3-wallet": "^0.28.1", + "@alephium/web3": "^1.0.1", + "@alephium/web3-wallet": "^1.0.1", + "@swc/core": "^1.4.1", "commander": "^9.5.0", "cross-fetch": "^3.1.5", - "crypto-js": "^4.1.1", + "crypto-js": "^4.2.0", "fetch-retry": "^5.0.6", "fs-extra": "^10.1.0", - "ipfs-http-client": "^56.0.0", "jest": "^28.1.3", - "openai": "^3.3.0", - "prettier": "^2.8.7", - "yaml": "^2.3.1" + "prettier": "^2.8.7" }, "bin": { "cli": "cli.js" @@ -107,20 +106,12 @@ "npm": ">=7.0.0" } }, - "node_modules/@alephium/cli/node_modules/yaml": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.1.tgz", - "integrity": "sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==", - "engines": { - "node": ">= 14" - } - }, "node_modules/@alephium/get-extension-wallet": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@alephium/get-extension-wallet/-/get-extension-wallet-0.28.1.tgz", - "integrity": "sha512-J23e2JJk6V9qTNp7qn5qaW+EpJycZd+KSVNgJOUojIkmBKHidg9VwoEE0VX8fuo4TI2j6CI58tomgiIXtaK80Q==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@alephium/get-extension-wallet/-/get-extension-wallet-1.0.1.tgz", + "integrity": "sha512-cik1zQThPQx0+52EGb8JzpeTYLshfpsQ1StbDiBVypYKWxgYFolQ4QCqVS12SqO1K+EXyzCPtKrWkXKi+/0pwg==", "dependencies": { - "@alephium/web3": "^0.28.1", + "@alephium/web3": "^1.0.1", "bowser": "^2.11.0" } }, @@ -137,17 +128,18 @@ } }, "node_modules/@alephium/walletconnect-provider": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@alephium/walletconnect-provider/-/walletconnect-provider-0.28.1.tgz", - "integrity": "sha512-11rrzJKb1DwWLno7jUpFJ5hQsVU3vY6lRu061wKDPGiODgm9m+tcmcCuKKZXasz/Yp6OjtWsFSUojMvWuubNsw==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@alephium/walletconnect-provider/-/walletconnect-provider-1.0.1.tgz", + "integrity": "sha512-VhtGYDqDMH7FC7Rx30EG7t6w9Y4D7Kr8Cr36/FDm02xH3xoZ7k2nqx5OupPfqcAVgaJ/nEdvRxZEyViYt61iAw==", "dependencies": { - "@alephium/web3": "^0.28.1", - "@alephium/web3-wallet": "^0.28.1", - "@walletconnect/core": "2.11.0", + "@alephium/web3": "^1.0.1", + "@alephium/web3-wallet": "^1.0.1", + "@walletconnect/core": "2.11.3", "@walletconnect/keyvaluestorage": "1.1.1", - "@walletconnect/sign-client": "2.11.0", - "@walletconnect/types": "2.11.0", - "@walletconnect/utils": "2.11.0", + "@walletconnect/sign-client": "2.11.3", + "@walletconnect/types": "2.11.3", + "@walletconnect/utils": "2.11.3", + "async-sema": "^3.1.1", "eventemitter3": "^4.0.7" }, "engines": { @@ -456,16 +448,16 @@ } }, "node_modules/@alephium/web3": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@alephium/web3/-/web3-0.28.1.tgz", - "integrity": "sha512-AYBdoV2O6Whz/ZklkAvC3dpVb35q7KMLJpmHMD+XCsDqQaAB3AIV38FJsWVhq87OMJpnbRMbcy+yWEsNzdcX1Q==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@alephium/web3/-/web3-1.0.1.tgz", + "integrity": "sha512-DKPscVULkv924k6eQ4yZ69F1rm4WFAg4y4CglAWLgaRXjjcinnLevLtAbUItU25WoyDseD8pQHSmJov82YdG0g==", "dependencies": { "@noble/secp256k1": "1.7.1", "base-x": "4.0.0", "bignumber.js": "^9.1.1", + "binary-parser": "2.2.1", "blakejs": "1.2.1", "bn.js": "5.2.1", - "buffer": "^6.0.3", "cross-fetch": "^3.1.5", "crypto-browserify": "^3.12.0", "elliptic": "6.5.4", @@ -479,12 +471,12 @@ } }, "node_modules/@alephium/web3-react": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@alephium/web3-react/-/web3-react-0.28.1.tgz", - "integrity": "sha512-q6+LqNkz9abJtdR+eUJhb1P2l2vjuhlrTUMgmMsxRygtFJxn2XvnHiizMatRoIjrkG8DTNBQp0DsH3R3ZpdTIg==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@alephium/web3-react/-/web3-react-1.0.1.tgz", + "integrity": "sha512-Ot9WeykFQN+rAhlsXlyjHRJOw8ilOl5t9NuICKqJZBMvcwqbZ3iidK8fgRxYVeeDV0xqDq79BguvOge0VhXb6Q==", "dependencies": { - "@alephium/get-extension-wallet": "^0.28.1", - "@alephium/walletconnect-provider": "^0.28.1", + "@alephium/get-extension-wallet": "^1.0.1", + "@alephium/walletconnect-provider": "^1.0.1", "@alephium/walletconnect-qrcode-modal": "^0.1.0", "buffer": "^6.0.3", "detect-browser": "^5.3.0", @@ -504,12 +496,13 @@ } }, "node_modules/@alephium/web3-test": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@alephium/web3-test/-/web3-test-0.28.1.tgz", - "integrity": "sha512-97Cj3tTGKOgPKt2jl3FSh8VETFrWdHUFaWJZdZ+bLBMUsUIFd3JiLXOZ6HLhxWjv9AfworiWZXi4Crt39JMHAA==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@alephium/web3-test/-/web3-test-1.0.1.tgz", + "integrity": "sha512-UQxw80WpXIunkmG6WLvlymZBbZ/Gra5SMtgCbesoaSfh2Me+IVx1KGDN4USuf2dKLCjyYPMKw7yZPQHtgSdAhw==", + "dev": true, "dependencies": { - "@alephium/web3": "^0.28.1", - "@alephium/web3-wallet": "^0.28.1" + "@alephium/web3": "^1.0.1", + "@alephium/web3-wallet": "^1.0.1" }, "engines": { "node": ">=14.0.0", @@ -517,16 +510,15 @@ } }, "node_modules/@alephium/web3-wallet": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@alephium/web3-wallet/-/web3-wallet-0.28.1.tgz", - "integrity": "sha512-ToznpP0ogBivs2JqbWSH8TjIt0HHjnFhJfnz46pIn2KZ1Y6x57s1zN9cvWOQTVW9JkJ61DFxdu6kTgtJL8iD0Q==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@alephium/web3-wallet/-/web3-wallet-1.0.1.tgz", + "integrity": "sha512-C6tuoNhF08R4b8Ipm8z17uh4HulkwzANycu4s+Rt7uOxWtKMQ5qfidQeN3VuAuPBLc828LpvRSdJriVxNackDw==", "dependencies": { - "@alephium/web3": "^0.28.1", + "@alephium/web3": "^1.0.1", "@noble/secp256k1": "1.7.1", "@types/node": "^16.18.23", "bip32": "3.1.0", "bip39": "3.0.4", - "buffer": "^6.0.3", "elliptic": "6.5.4", "fs-extra": "10.0.1" }, @@ -3857,37 +3849,6 @@ "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==" }, - "node_modules/@ioredis/commands": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@ioredis/commands/-/commands-1.2.0.tgz", - "integrity": "sha512-Sx1pU8EM64o2BrqNpEO1CNLtKQwyhuXuqyfH7oGKCk+1a33d2r5saW8zNwm3j6BTExtjrv2BxTgzzkMwts6vGg==" - }, - "node_modules/@ipld/dag-cbor": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/@ipld/dag-cbor/-/dag-cbor-7.0.3.tgz", - "integrity": "sha512-1VVh2huHsuohdXC1bGJNE8WR72slZ9XE2T3wbBBq31dm7ZBatmKLLxrB+XAqafxfRFjv08RZmj/W/ZqaM13AuA==", - "dependencies": { - "cborg": "^1.6.0", - "multiformats": "^9.5.4" - } - }, - "node_modules/@ipld/dag-json": { - "version": "8.0.11", - "resolved": "https://registry.npmjs.org/@ipld/dag-json/-/dag-json-8.0.11.tgz", - "integrity": "sha512-Pea7JXeYHTWXRTIhBqBlhw7G53PJ7yta3G/sizGEZyzdeEwhZRr0od5IQ0r2ZxOt1Do+2czddjeEPp+YTxDwCA==", - "dependencies": { - "cborg": "^1.5.4", - "multiformats": "^9.5.4" - } - }, - "node_modules/@ipld/dag-pb": { - "version": "2.1.18", - "resolved": "https://registry.npmjs.org/@ipld/dag-pb/-/dag-pb-2.1.18.tgz", - "integrity": "sha512-ZBnf2fuX9y3KccADURG5vb9FaOeMjFkCrNysB0PtftME/4iCTjxfaLoNq/IAh5fTqUOMXvryN6Jyka4ZGuMLIg==", - "dependencies": { - "multiformats": "^9.5.4" - } - }, "node_modules/@istanbuljs/load-nyc-config": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", @@ -4607,10 +4568,9 @@ } }, "node_modules/@parcel/watcher": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.3.0.tgz", - "integrity": "sha512-pW7QaFiL11O0BphO+bq3MgqeX/INAk9jgBldVDYjlQPO4VddoZnF22TcF9onMhnLVHuNqBJeRf+Fj7eezi/+rQ==", - "hasInstallScript": true, + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.4.1.tgz", + "integrity": "sha512-HNjmfLQEVRZmHRET336f20H/8kOozUGwk7yajvsonjNxbj2wBTK1WsQuHkD5yYh9RxFGL2EyDHryOihOwUoKDA==", "dependencies": { "detect-libc": "^1.0.3", "is-glob": "^4.0.3", @@ -4625,24 +4585,24 @@ "url": "https://opencollective.com/parcel" }, "optionalDependencies": { - "@parcel/watcher-android-arm64": "2.3.0", - "@parcel/watcher-darwin-arm64": "2.3.0", - "@parcel/watcher-darwin-x64": "2.3.0", - "@parcel/watcher-freebsd-x64": "2.3.0", - "@parcel/watcher-linux-arm-glibc": "2.3.0", - "@parcel/watcher-linux-arm64-glibc": "2.3.0", - "@parcel/watcher-linux-arm64-musl": "2.3.0", - "@parcel/watcher-linux-x64-glibc": "2.3.0", - "@parcel/watcher-linux-x64-musl": "2.3.0", - "@parcel/watcher-win32-arm64": "2.3.0", - "@parcel/watcher-win32-ia32": "2.3.0", - "@parcel/watcher-win32-x64": "2.3.0" + "@parcel/watcher-android-arm64": "2.4.1", + "@parcel/watcher-darwin-arm64": "2.4.1", + "@parcel/watcher-darwin-x64": "2.4.1", + "@parcel/watcher-freebsd-x64": "2.4.1", + "@parcel/watcher-linux-arm-glibc": "2.4.1", + "@parcel/watcher-linux-arm64-glibc": "2.4.1", + "@parcel/watcher-linux-arm64-musl": "2.4.1", + "@parcel/watcher-linux-x64-glibc": "2.4.1", + "@parcel/watcher-linux-x64-musl": "2.4.1", + "@parcel/watcher-win32-arm64": "2.4.1", + "@parcel/watcher-win32-ia32": "2.4.1", + "@parcel/watcher-win32-x64": "2.4.1" } }, "node_modules/@parcel/watcher-android-arm64": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.3.0.tgz", - "integrity": "sha512-f4o9eA3dgk0XRT3XhB0UWpWpLnKgrh1IwNJKJ7UJek7eTYccQ8LR7XUWFKqw6aEq5KUNlCcGvSzKqSX/vtWVVA==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.4.1.tgz", + "integrity": "sha512-LOi/WTbbh3aTn2RYddrO8pnapixAziFl6SMxHM69r3tvdSm94JtCenaKgk1GRg5FJ5wpMCpHeW+7yqPlvZv7kg==", "cpu": [ "arm64" ], @@ -4659,9 +4619,9 @@ } }, "node_modules/@parcel/watcher-darwin-arm64": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.3.0.tgz", - "integrity": "sha512-mKY+oijI4ahBMc/GygVGvEdOq0L4DxhYgwQqYAz/7yPzuGi79oXrZG52WdpGA1wLBPrYb0T8uBaGFo7I6rvSKw==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.4.1.tgz", + "integrity": "sha512-ln41eihm5YXIY043vBrrHfn94SIBlqOWmoROhsMVTSXGh0QahKGy77tfEywQ7v3NywyxBBkGIfrWRHm0hsKtzA==", "cpu": [ "arm64" ], @@ -4678,9 +4638,9 @@ } }, "node_modules/@parcel/watcher-darwin-x64": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.3.0.tgz", - "integrity": "sha512-20oBj8LcEOnLE3mgpy6zuOq8AplPu9NcSSSfyVKgfOhNAc4eF4ob3ldj0xWjGGbOF7Dcy1Tvm6ytvgdjlfUeow==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.4.1.tgz", + "integrity": "sha512-yrw81BRLjjtHyDu7J61oPuSoeYWR3lDElcPGJyOvIXmor6DEo7/G2u1o7I38cwlcoBHQFULqF6nesIX3tsEXMg==", "cpu": [ "x64" ], @@ -4697,9 +4657,9 @@ } }, "node_modules/@parcel/watcher-freebsd-x64": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.3.0.tgz", - "integrity": "sha512-7LftKlaHunueAEiojhCn+Ef2CTXWsLgTl4hq0pkhkTBFI3ssj2bJXmH2L67mKpiAD5dz66JYk4zS66qzdnIOgw==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.4.1.tgz", + "integrity": "sha512-TJa3Pex/gX3CWIx/Co8k+ykNdDCLx+TuZj3f3h7eOjgpdKM+Mnix37RYsYU4LHhiYJz3DK5nFCCra81p6g050w==", "cpu": [ "x64" ], @@ -4716,9 +4676,9 @@ } }, "node_modules/@parcel/watcher-linux-arm-glibc": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.3.0.tgz", - "integrity": "sha512-1apPw5cD2xBv1XIHPUlq0cO6iAaEUQ3BcY0ysSyD9Kuyw4MoWm1DV+W9mneWI+1g6OeP6dhikiFE6BlU+AToTQ==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.4.1.tgz", + "integrity": "sha512-4rVYDlsMEYfa537BRXxJ5UF4ddNwnr2/1O4MHM5PjI9cvV2qymvhwZSFgXqbS8YoTk5i/JR0L0JDs69BUn45YA==", "cpu": [ "arm" ], @@ -4735,9 +4695,9 @@ } }, "node_modules/@parcel/watcher-linux-arm64-glibc": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.3.0.tgz", - "integrity": "sha512-mQ0gBSQEiq1k/MMkgcSB0Ic47UORZBmWoAWlMrTW6nbAGoLZP+h7AtUM7H3oDu34TBFFvjy4JCGP43JlylkTQA==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.4.1.tgz", + "integrity": "sha512-BJ7mH985OADVLpbrzCLgrJ3TOpiZggE9FMblfO65PlOCdG++xJpKUJ0Aol74ZUIYfb8WsRlUdgrZxKkz3zXWYA==", "cpu": [ "arm64" ], @@ -4754,9 +4714,9 @@ } }, "node_modules/@parcel/watcher-linux-arm64-musl": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.3.0.tgz", - "integrity": "sha512-LXZAExpepJew0Gp8ZkJ+xDZaTQjLHv48h0p0Vw2VMFQ8A+RKrAvpFuPVCVwKJCr5SE+zvaG+Etg56qXvTDIedw==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.4.1.tgz", + "integrity": "sha512-p4Xb7JGq3MLgAfYhslU2SjoV9G0kI0Xry0kuxeG/41UfpjHGOhv7UoUDAz/jb1u2elbhazy4rRBL8PegPJFBhA==", "cpu": [ "arm64" ], @@ -4773,9 +4733,9 @@ } }, "node_modules/@parcel/watcher-linux-x64-glibc": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.3.0.tgz", - "integrity": "sha512-P7Wo91lKSeSgMTtG7CnBS6WrA5otr1K7shhSjKHNePVmfBHDoAOHYRXgUmhiNfbcGk0uMCHVcdbfxtuiZCHVow==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.4.1.tgz", + "integrity": "sha512-s9O3fByZ/2pyYDPoLM6zt92yu6P4E39a03zvO0qCHOTjxmt3GHRMLuRZEWhWLASTMSrrnVNWdVI/+pUElJBBBg==", "cpu": [ "x64" ], @@ -4792,9 +4752,9 @@ } }, "node_modules/@parcel/watcher-linux-x64-musl": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.3.0.tgz", - "integrity": "sha512-+kiRE1JIq8QdxzwoYY+wzBs9YbJ34guBweTK8nlzLKimn5EQ2b2FSC+tAOpq302BuIMjyuUGvBiUhEcLIGMQ5g==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.4.1.tgz", + "integrity": "sha512-L2nZTYR1myLNST0O632g0Dx9LyMNHrn6TOt76sYxWLdff3cB22/GZX2UPtJnaqQPdCRoszoY5rcOj4oMTtp5fQ==", "cpu": [ "x64" ], @@ -4811,9 +4771,9 @@ } }, "node_modules/@parcel/watcher-wasm": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-wasm/-/watcher-wasm-2.3.0.tgz", - "integrity": "sha512-ejBAX8H0ZGsD8lSICDNyMbSEtPMWgDL0WFCt/0z7hyf5v8Imz4rAM8xY379mBsECkq/Wdqa5WEDLqtjZ+6NxfA==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-wasm/-/watcher-wasm-2.4.1.tgz", + "integrity": "sha512-/ZR0RxqxU/xxDGzbzosMjh4W6NdYFMqq2nvo2b8SLi7rsl/4jkL8S5stIikorNkdR50oVDvqb/3JT05WM+CRRA==", "bundleDependencies": [ "napi-wasm" ], @@ -4836,9 +4796,9 @@ "license": "MIT" }, "node_modules/@parcel/watcher-win32-arm64": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.3.0.tgz", - "integrity": "sha512-35gXCnaz1AqIXpG42evcoP2+sNL62gZTMZne3IackM+6QlfMcJLy3DrjuL6Iks7Czpd3j4xRBzez3ADCj1l7Aw==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.4.1.tgz", + "integrity": "sha512-Uq2BPp5GWhrq/lcuItCHoqxjULU1QYEcyjSO5jqqOK8RNFDBQnenMMx4gAl3v8GiWa59E9+uDM7yZ6LxwUIfRg==", "cpu": [ "arm64" ], @@ -4855,9 +4815,9 @@ } }, "node_modules/@parcel/watcher-win32-ia32": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-ia32/-/watcher-win32-ia32-2.3.0.tgz", - "integrity": "sha512-FJS/IBQHhRpZ6PiCjFt1UAcPr0YmCLHRbTc00IBTrelEjlmmgIVLeOx4MSXzx2HFEy5Jo5YdhGpxCuqCyDJ5ow==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-ia32/-/watcher-win32-ia32-2.4.1.tgz", + "integrity": "sha512-maNRit5QQV2kgHFSYwftmPBxiuK5u4DXjbXx7q6eKjq5dsLXZ4FJiVvlcw35QXzk0KrUecJmuVFbj4uV9oYrcw==", "cpu": [ "ia32" ], @@ -4874,9 +4834,9 @@ } }, "node_modules/@parcel/watcher-win32-x64": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.3.0.tgz", - "integrity": "sha512-dLx+0XRdMnVI62kU3wbXvbIRhLck4aE28bIGKbRGS7BJNt54IIj9+c/Dkqb+7DJEbHUZAX1bwaoM8PqVlHJmCA==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.4.1.tgz", + "integrity": "sha512-+DvS92F9ezicfswqrvIRM2njcYJbd5mb9CUgtrHCHmvn7pPPa+nMDRu1o1bYYz/l5IB2NVGNJWiH7h1E58IF2A==", "cpu": [ "x64" ], @@ -4893,9 +4853,12 @@ } }, "node_modules/@parcel/watcher/node_modules/node-addon-api": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.0.0.tgz", - "integrity": "sha512-vgbBJTS4m5/KkE16t5Ly0WW9hz46swAstv0hYYwMtbG7AznRhNyfLRe8HZAiWIpcHzoO7HxhLuBQj9rJ/Ho0ZA==" + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.0.tgz", + "integrity": "sha512-mNcltoe1R8o7STTegSOHdnJNN7s5EUvhoS7ShnTHDyOSd+8H+UdWODq6qSv67PjC8Zc5JRT8+oLAMCr0SIXw7g==", + "engines": { + "node": "^16 || ^18 || >= 20" + } }, "node_modules/@pmmmwh/react-refresh-webpack-plugin": { "version": "0.5.10", @@ -5000,27 +4963,37 @@ "node_modules/@protobufjs/aspromise": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", - "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==" + "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==", + "dev": true, + "optional": true }, "node_modules/@protobufjs/base64": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", - "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==", + "dev": true, + "optional": true }, "node_modules/@protobufjs/codegen": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", - "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==", + "dev": true, + "optional": true }, "node_modules/@protobufjs/eventemitter": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", - "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==" + "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==", + "dev": true, + "optional": true }, "node_modules/@protobufjs/fetch": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", + "dev": true, + "optional": true, "dependencies": { "@protobufjs/aspromise": "^1.1.1", "@protobufjs/inquire": "^1.1.0" @@ -5029,27 +5002,37 @@ "node_modules/@protobufjs/float": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", - "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==" + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==", + "dev": true, + "optional": true }, "node_modules/@protobufjs/inquire": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", - "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==" + "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==", + "dev": true, + "optional": true }, "node_modules/@protobufjs/path": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", - "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==" + "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==", + "dev": true, + "optional": true }, "node_modules/@protobufjs/pool": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", - "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==" + "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==", + "dev": true, + "optional": true }, "node_modules/@protobufjs/utf8": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", - "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==" + "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==", + "dev": true, + "optional": true }, "node_modules/@redux-saga/core": { "version": "1.2.2", @@ -5643,6 +5626,219 @@ "url": "https://github.com/sponsors/gregberge" } }, + "node_modules/@swc/core": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.5.5.tgz", + "integrity": "sha512-M8O22EEgdSONLd+7KRrXj8pn+RdAZZ7ISnPjE9KCQQlI0kkFNEquWR+uFdlFxQfwlyCe/Zb6uGXGDvtcov4IMg==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "@swc/counter": "^0.1.2", + "@swc/types": "^0.1.5" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/swc" + }, + "optionalDependencies": { + "@swc/core-darwin-arm64": "1.5.5", + "@swc/core-darwin-x64": "1.5.5", + "@swc/core-linux-arm-gnueabihf": "1.5.5", + "@swc/core-linux-arm64-gnu": "1.5.5", + "@swc/core-linux-arm64-musl": "1.5.5", + "@swc/core-linux-x64-gnu": "1.5.5", + "@swc/core-linux-x64-musl": "1.5.5", + "@swc/core-win32-arm64-msvc": "1.5.5", + "@swc/core-win32-ia32-msvc": "1.5.5", + "@swc/core-win32-x64-msvc": "1.5.5" + }, + "peerDependencies": { + "@swc/helpers": "^0.5.0" + }, + "peerDependenciesMeta": { + "@swc/helpers": { + "optional": true + } + } + }, + "node_modules/@swc/core-darwin-arm64": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.5.5.tgz", + "integrity": "sha512-Ol5ZwZYdTOZsv2NwjcT/qVVALKzVFeh+IJ4GNarr3P99+38Dkwi81OqCI1o/WaDXQYKAQC/V+CzMbkEuJJfq9Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-darwin-x64": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.5.5.tgz", + "integrity": "sha512-XHWpKBIPKYLgh5/lV2PYjO84lkzf5JR51kjiloyz2Pa9HIV8tHoAP8bYdJwm4nUp2I7KcEh3pPH0AVu5LpxMKw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-arm-gnueabihf": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.5.5.tgz", + "integrity": "sha512-vtoWNCWAe+CNSqtqIwFnIH48qgPPlUZKoQ4EVFeMM+7/kDi6SeNxoh5TierJs5bKAWxD49VkPvRoWFCk6V62mA==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-arm64-gnu": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.5.5.tgz", + "integrity": "sha512-L4l7M78U6h/rCAxId+y5Vu+1KfDRF6dJZtitFcaT293guiUQFwJv8gLxI4Jh5wFtZ0fYd0QaCuvh2Ip79CzGMg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-arm64-musl": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.5.5.tgz", + "integrity": "sha512-DkzJc13ukXa7oJpyn24BjIgsiOybYrc+IxjsQyfNlDrrs1QXP4elStcpkD02SsIuSyHjZV8Hw2HFBMQB3OHPrA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-x64-gnu": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.5.5.tgz", + "integrity": "sha512-kj4ZwWJGeBEUzHrRQP2VudN+kkkYH7OI1dPVDc6kWQx5X4329JeKOas4qY0l7gDVjBbRwN9IbbPI6TIn2KfAug==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-x64-musl": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.5.5.tgz", + "integrity": "sha512-6pTorCs4mYhPhYtC4jNOnhGgjNd3DZcRoZ9P0tzXXP69aCbYjvlgNH/NRvAROp9AaVFeZ7a7PmCWb6+Rbe7NKg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-win32-arm64-msvc": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.5.5.tgz", + "integrity": "sha512-o0/9pstmEjwZyrY/bA+mymF0zH7E+GT/XCVqdKeWW9Wn3gTTyWa5MZnrFgI2THQ+AXwdglMB/Zo76ARQPaz/+A==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-win32-ia32-msvc": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.5.5.tgz", + "integrity": "sha512-B+nypUwsmCuaH6RtKWgiPCb+ENjxstJPPJeMJvBqlJqyCaIkZzN4M07Ozi3xVv1VG21SRkd6G3xIqRoalrNc0Q==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-win32-x64-msvc": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.5.5.tgz", + "integrity": "sha512-ry83ki9ZX0Q+GWGnqc2J618Z+FvKE8Ajn42F8EYi8Wj0q6Jz3mj+pJzgzakk2INm2ldEZ+FaRPipn4ozsZDcBg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/counter": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@swc/counter/-/counter-0.1.3.tgz", + "integrity": "sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==", + "dev": true + }, + "node_modules/@swc/types": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/@swc/types/-/types-0.1.6.tgz", + "integrity": "sha512-/JLo/l2JsT/LRd80C3HfbmVpxOAJ11FO2RCEslFrgzLltoP9j8XIbsyDcfCt2WWyX+CM96rBoNM+IToAkFOugg==", + "dev": true, + "dependencies": { + "@swc/counter": "^0.1.3" + } + }, "node_modules/@szmarczak/http-timer": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-5.0.1.tgz", @@ -6503,18 +6699,15 @@ "node_modules/@types/long": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.2.tgz", - "integrity": "sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==" + "integrity": "sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==", + "dev": true, + "optional": true }, "node_modules/@types/mime": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/@types/mime/-/mime-3.0.1.tgz", "integrity": "sha512-Y4XFY5VJAuw0FgAqPNd6NNoV44jbq9Bz2L7Rh/J6jLTiHBSBJa9fxqQIvkIld4GsoDOcCbvzOUAbLPsSKKg+uA==" }, - "node_modules/@types/minimatch": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz", - "integrity": "sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==" - }, "node_modules/@types/node": { "version": "16.18.23", "resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.23.tgz", @@ -7068,9 +7261,9 @@ "integrity": "sha512-tr7XntDAu50BVENgQfajMLzacmSe34D+qZc4zjnniz0ZVuw/TZcLcyxHQjYpJTM36sGEkZZlYLnIM1hH7alTMA==" }, "node_modules/@walletconnect/core": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/@walletconnect/core/-/core-2.11.0.tgz", - "integrity": "sha512-2Tjp5BCevI7dbmqo/OrCjX4tqgMqwJNQLlQAlphqPfvwlF9+tIu6pGcVbSN3U9zyXzWIZCeleqEaWUeSeET4Ew==", + "version": "2.11.3", + "resolved": "https://registry.npmjs.org/@walletconnect/core/-/core-2.11.3.tgz", + "integrity": "sha512-/9m4EqiggFUwkQDv5PDWbcTI+yCVnBd/iYW5iIHEkivg2/mnBr2bQz2r/vtPjp19r/ZK62Dx0+UN3U+BWP8ulQ==", "dependencies": { "@walletconnect/heartbeat": "1.2.1", "@walletconnect/jsonrpc-provider": "1.0.13", @@ -7083,8 +7276,8 @@ "@walletconnect/relay-auth": "^1.0.4", "@walletconnect/safe-json": "^1.0.2", "@walletconnect/time": "^1.0.2", - "@walletconnect/types": "2.11.0", - "@walletconnect/utils": "2.11.0", + "@walletconnect/types": "2.11.3", + "@walletconnect/utils": "2.11.3", "events": "^3.3.0", "isomorphic-unfetch": "3.1.0", "lodash.isequal": "4.5.0", @@ -7241,9 +7434,9 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@walletconnect/jsonrpc-ws-connection/node_modules/ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "version": "7.5.10", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", "engines": { "node": ">=8.3.0" }, @@ -7261,11 +7454,19 @@ } }, "node_modules/@walletconnect/logger": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@walletconnect/logger/-/logger-2.0.1.tgz", - "integrity": "sha512-SsTKdsgWm+oDTBeNE/zHxxr5eJfZmE9/5yp/Ku+zJtcTAjELb3DXueWkDXmE9h8uHIbJzIb5wj5lPdzyrjT6hQ==", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@walletconnect/logger/-/logger-2.1.2.tgz", + "integrity": "sha512-aAb28I3S6pYXZHQm5ESB+V6rDqIYfsnHaQyzFbwUUBFY4H0OXx/YtTl8lvhUNhMMfb9UxbwEBS253TlXUYJWSw==", + "dependencies": { + "@walletconnect/safe-json": "^1.0.2", + "pino": "7.11.0" + } + }, + "node_modules/@walletconnect/logger/node_modules/@walletconnect/safe-json": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@walletconnect/safe-json/-/safe-json-1.0.2.tgz", + "integrity": "sha512-Ogb7I27kZ3LPC3ibn8ldyUr5544t3/STow9+lzz7Sfo808YD7SBWk7SAsdBFlYgP2zDRy2hS3sKRcuSRM0OTmA==", "dependencies": { - "pino": "7.11.0", "tslib": "1.14.1" } }, @@ -7280,19 +7481,13 @@ "integrity": "sha512-ZtKRio4uCZ1JUF7LIdecmZt7FOLnX72RPSY7aUVu7mj7CSfxDwUn6gBuK6WGtH+NZCldBqDl5DenI5fFSvkKYw==" }, "node_modules/@walletconnect/relay-api": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@walletconnect/relay-api/-/relay-api-1.0.9.tgz", - "integrity": "sha512-Q3+rylJOqRkO1D9Su0DPE3mmznbAalYapJ9qmzDgK28mYF9alcP3UwG/og5V7l7CFOqzCLi7B8BvcBUrpDj0Rg==", + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/@walletconnect/relay-api/-/relay-api-1.0.10.tgz", + "integrity": "sha512-tqrdd4zU9VBNqUaXXQASaexklv6A54yEyQQEXYOCr+Jz8Ket0dmPBDyg19LVSNUN2cipAghQc45/KVmfFJ0cYw==", "dependencies": { - "@walletconnect/jsonrpc-types": "^1.0.2", - "tslib": "1.14.1" + "@walletconnect/jsonrpc-types": "^1.0.2" } }, - "node_modules/@walletconnect/relay-api/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - }, "node_modules/@walletconnect/relay-auth": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/@walletconnect/relay-auth/-/relay-auth-1.0.4.tgz", @@ -7325,18 +7520,18 @@ "integrity": "sha512-QJzp/S/86sUAgWY6eh5MKYmSfZaRpIlmCJdi5uG4DJlKkZrHEF7ye7gA+VtbVzvTtpM/gRwO2plQuiooIeXjfg==" }, "node_modules/@walletconnect/sign-client": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/@walletconnect/sign-client/-/sign-client-2.11.0.tgz", - "integrity": "sha512-H2ukscibBS+6WrzQWh+WyVBqO5z4F5et12JcwobdwgHnJSlqIoZxqnUYYWNCI5rUR5UKsKWaUyto4AE9N5dw4Q==", + "version": "2.11.3", + "resolved": "https://registry.npmjs.org/@walletconnect/sign-client/-/sign-client-2.11.3.tgz", + "integrity": "sha512-JVjLTxN/3NjMXv5zalSGKuSYLRyU2yX6AWEdq17cInlrwODpbWZr6PS1uxMWdH4r90DXBLhdtwDbEq/pfd0BPg==", "dependencies": { - "@walletconnect/core": "2.11.0", + "@walletconnect/core": "2.11.3", "@walletconnect/events": "^1.0.1", "@walletconnect/heartbeat": "1.2.1", "@walletconnect/jsonrpc-utils": "1.0.8", "@walletconnect/logger": "^2.0.1", "@walletconnect/time": "^1.0.2", - "@walletconnect/types": "2.11.0", - "@walletconnect/utils": "2.11.0", + "@walletconnect/types": "2.11.3", + "@walletconnect/utils": "2.11.3", "events": "^3.3.0" } }, @@ -7354,9 +7549,9 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@walletconnect/types": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-2.11.0.tgz", - "integrity": "sha512-AB5b1lrEbCGHxqS2vqfCkIoODieH+ZAUp9rA1O2ftrhnqDJiJK983Df87JhYhECsQUBHHfALphA8ydER0q+9sw==", + "version": "2.11.3", + "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-2.11.3.tgz", + "integrity": "sha512-JY4wA9MVosDW9dcJMTpnwliste0aJGJ1X6Q4ulLsQsgWRSEBRkLila0oUT01TDBW9Yq8uUp7uFOUTaKx6KWVAg==", "dependencies": { "@walletconnect/events": "^1.0.1", "@walletconnect/heartbeat": "1.2.1", @@ -7398,9 +7593,9 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@walletconnect/utils": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-2.11.0.tgz", - "integrity": "sha512-hxkHPlTlDQILHfIKXlmzgNJau/YcSBC3XHUSuZuKZbNEw3duFT6h6pm3HT/1+j1a22IG05WDsNBuTCRkwss+BQ==", + "version": "2.11.3", + "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-2.11.3.tgz", + "integrity": "sha512-jsdNkrl/IcTkzWFn0S2d0urzBXg6RxVJtUYRsUx3qI3wzOGiABP9ui3yiZ3SgZOv9aRe62PaNp1qpbYZ+zPb8Q==", "dependencies": { "@stablelib/chacha20poly1305": "1.0.1", "@stablelib/hkdf": "1.0.1", @@ -7410,7 +7605,7 @@ "@walletconnect/relay-api": "^1.0.9", "@walletconnect/safe-json": "^1.0.2", "@walletconnect/time": "^1.0.2", - "@walletconnect/types": "2.11.0", + "@walletconnect/types": "2.11.3", "@walletconnect/window-getters": "^1.0.1", "@walletconnect/window-metadata": "^1.0.1", "detect-browser": "5.3.0", @@ -7688,9 +7883,9 @@ } }, "node_modules/acorn": { - "version": "8.11.2", - "resolved": "https://mirrors.cloud.tencent.com/npm/acorn/-/acorn-8.11.2.tgz", - "integrity": "sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==", + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", "bin": { "acorn": "bin/acorn" }, @@ -7923,11 +8118,6 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/any-signal": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/any-signal/-/any-signal-3.0.1.tgz", - "integrity": "sha512-xgZgJtKEa9YmDqXodIgl7Fl1C8yNXr8w6gXjqK3LW4GcEiYT+6AQfJSE/8SPsEpLLmcvbv8YU+qet94UewHxqg==" - }, "node_modules/anymatch": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", @@ -8408,6 +8598,11 @@ "retry": "0.13.1" } }, + "node_modules/async-sema": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/async-sema/-/async-sema-3.1.1.tgz", + "integrity": "sha512-tLRNUXati5MFePdAk8dw7Qt7DpxPB60ofAgn8WRhW6a2rcimZnYBP9oxHiv0OHy+Wz7kPMG+t4LGdt31+4EmGg==" + }, "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", @@ -8834,6 +9029,14 @@ "node": ">=8" } }, + "node_modules/binary-parser": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/binary-parser/-/binary-parser-2.2.1.tgz", + "integrity": "sha512-5ATpz/uPDgq5GgEDxTB4ouXCde7q2lqAQlSdBRQVl/AJnxmQmhIfyxJx+0MGu//D5rHQifkfGbWWlaysG0o9NA==", + "engines": { + "node": ">=12" + } + }, "node_modules/bip32": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/bip32/-/bip32-3.1.0.tgz", @@ -8871,14 +9074,6 @@ "resolved": "https://registry.npmjs.org/blakejs/-/blakejs-1.2.1.tgz", "integrity": "sha512-QXUSXI3QVc/gJME0dBpXrag1kbzOqCjCX8/b54ntNyW6sjtoqxqRk3LTmXzaJoh71zMsDCjM+47jS7XiwN/+fQ==" }, - "node_modules/blob-to-it": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/blob-to-it/-/blob-to-it-1.0.4.tgz", - "integrity": "sha512-iCmk0W4NdbrWgRRuxOriU8aM5ijeVLI61Zulsmg/lUHNr7pYjoj+U77opLefNagevtrrbMt3JQ5Qip7ar178kA==", - "dependencies": { - "browser-readablestream-to-it": "^1.0.3" - } - }, "node_modules/bluebird": { "version": "3.7.2", "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", @@ -9051,11 +9246,6 @@ "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==" }, - "node_modules/browser-readablestream-to-it": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/browser-readablestream-to-it/-/browser-readablestream-to-it-1.0.3.tgz", - "integrity": "sha512-+12sHB+Br8HIh6VAMVEG5r3UXCyESIgDW7kzk3BjIXa43DVqVwL7GC5TW3jeh+72dtcH99pPVpw0X8i0jt+/kw==" - }, "node_modules/browser-stdout": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", @@ -9477,14 +9667,6 @@ "node": ">=6.0.0" } }, - "node_modules/cborg": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/cborg/-/cborg-1.10.2.tgz", - "integrity": "sha512-b3tFPA9pUr2zCUiCfRd2+wok2/LBSNUMKOuRRok+WlvvAgEt/PlbgPTsZUcwCOs53IJvLgTp0eotwtosE6njug==", - "bin": { - "cborg": "cli.js" - } - }, "node_modules/chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", @@ -9720,9 +9902,9 @@ } }, "node_modules/citty": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/citty/-/citty-0.1.5.tgz", - "integrity": "sha512-AS7n5NSc0OQVMV9v6wt3ByujNIrne0/cTjiC2MYqhvao57VNfiuVksTSr2p17nVOhEr2KtqiAkGwHcgMC/qUuQ==", + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/citty/-/citty-0.1.6.tgz", + "integrity": "sha512-tskPPKEs8D2KPafUypv2gxwJP8h/OaJmC82QQGGDQcHvXX43xF2VDACcJVmZ0EuSxkpO9Kc4MlrA3q0+FG58AQ==", "dependencies": { "consola": "^3.2.3" } @@ -9949,14 +10131,6 @@ "node": ">=6" } }, - "node_modules/cluster-key-slot": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/cluster-key-slot/-/cluster-key-slot-1.1.2.tgz", - "integrity": "sha512-RMr0FhtfXemyinomL4hrWcYJxmX6deFdCxpJzhDttxgO1+bcCnkk+9drydLVDmAMG7NE6aN/fl4F7ucU/90gAA==", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/co": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", @@ -10260,6 +10434,11 @@ "dev": true, "optional": true }, + "node_modules/confbox": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.7.tgz", + "integrity": "sha512-uJcB/FKZtBMCJpK8MQji6bJHgu1tixKPxRLeGkNzBoOZzpnZUJm0jm2/sBDWcuBx1dYgxV4JU+g5hmNxCyAmdA==" + }, "node_modules/confusing-browser-globals": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz", @@ -10345,9 +10524,9 @@ } }, "node_modules/cookie-es": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/cookie-es/-/cookie-es-1.0.0.tgz", - "integrity": "sha512-mWYvfOLrfEc996hlKcdABeIiPHUPC6DM2QYZdGGOvhOTbA3tjm2eBwqlJpoFdjC89NI4Qt6h0Pu06Mp+1Pj5OQ==" + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/cookie-es/-/cookie-es-1.1.0.tgz", + "integrity": "sha512-L2rLOcK0wzWSfSDA33YR+PUHDG10a8px7rUHKWbGLP4YfbsMed2KFUw5fczvDPbT98DDe3LEzviswl810apTEw==" }, "node_modules/cookie-signature": { "version": "1.0.6", @@ -10524,6 +10703,19 @@ "node": ">= 8" } }, + "node_modules/crossws": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/crossws/-/crossws-0.2.4.tgz", + "integrity": "sha512-DAxroI2uSOgUKLz00NX6A8U/8EE3SZHmIND+10jkVSaypvyt57J5JEOxAQOL6lQxyzi/wZbTIwssU1uy69h5Vg==", + "peerDependencies": { + "uWebSockets.js": "*" + }, + "peerDependenciesMeta": { + "uWebSockets.js": { + "optional": true + } + } + }, "node_modules/crypto-browserify": { "version": "3.12.0", "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz", @@ -10546,9 +10738,10 @@ } }, "node_modules/crypto-js": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.1.1.tgz", - "integrity": "sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw==" + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.2.0.tgz", + "integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==", + "dev": true }, "node_modules/crypto-random-string": { "version": "2.0.0", @@ -11019,24 +11212,6 @@ "type": "^1.0.1" } }, - "node_modules/dag-jose": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/dag-jose/-/dag-jose-1.0.0.tgz", - "integrity": "sha512-U0b/YsIPBp6YZNTFrVjwLZAlY3qGRxZTIEcM/CcQmrVrCWq9MWQq9pheXVSPLIhF4SNwzp2SikPva4/BIrJY+g==", - "dependencies": { - "@ipld/dag-cbor": "^6.0.3", - "multiformats": "^9.0.2" - } - }, - "node_modules/dag-jose/node_modules/@ipld/dag-cbor": { - "version": "6.0.15", - "resolved": "https://registry.npmjs.org/@ipld/dag-cbor/-/dag-cbor-6.0.15.tgz", - "integrity": "sha512-Vm3VTSTwlmGV92a3C5aeY+r2A18zbH2amehNhsX8PBa3muXICaWrN8Uri85A5hLH7D7ElhE8PdjxD6kNqUmTZA==", - "dependencies": { - "cborg": "^1.5.4", - "multiformats": "^9.5.4" - } - }, "node_modules/damerau-levenshtein": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", @@ -11425,14 +11600,6 @@ "node": ">=0.4.0" } }, - "node_modules/denque": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/denque/-/denque-2.1.0.tgz", - "integrity": "sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==", - "engines": { - "node": ">=0.10" - } - }, "node_modules/depd": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", @@ -11451,9 +11618,9 @@ } }, "node_modules/destr": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/destr/-/destr-2.0.2.tgz", - "integrity": "sha512-65AlobnZMiCET00KaFFjUefxDX0khFA/E4myqZ7a6Sq1yZtR8+FVIvilVX66vF2uobSumxooYZChiRPCKNqhmg==" + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/destr/-/destr-2.0.3.tgz", + "integrity": "sha512-2N3BOUU4gYMpTP24s5rF5iP7BDr7uNTCs4ozw3kf/eKfvWSIu93GEBi5m427YoyJoeOzQ5smuu4nNAPGb8idSQ==" }, "node_modules/destroy": { "version": "1.2.0", @@ -11601,16 +11768,6 @@ "resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz", "integrity": "sha512-z+paD6YUQsk+AbGCEM4PrOXSss5gd66QfcVBFTKR/HpFL9jCqikS94HYwKww6fQyO7IxrIIyUu+g0Ka9tUS2Cg==" }, - "node_modules/dns-over-http-resolver": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/dns-over-http-resolver/-/dns-over-http-resolver-1.2.3.tgz", - "integrity": "sha512-miDiVSI6KSNbi4SVifzO/reD8rMnxgrlnkrlkugOLQpWQTe2qMdHsZp5DmfKjxNE+/T3VAAYLQUZMv9SMr6+AA==", - "dependencies": { - "debug": "^4.3.1", - "native-fetch": "^3.0.0", - "receptacle": "^1.3.2" - } - }, "node_modules/dns-packet": { "version": "5.4.0", "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-5.4.0.tgz", @@ -11794,14 +11951,14 @@ "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==" }, "node_modules/duplexify": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-4.1.2.tgz", - "integrity": "sha512-fz3OjcNCHmRP12MJoZMPglx8m4rrFP8rovnk4vT8Fs+aonZoCwGg10dSsQsfP/E62eZcPTMSMP6686fu9Qlqtw==", + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-4.1.3.tgz", + "integrity": "sha512-M3BmBhwJRZsSx38lZyhE53Csddgzl5R7xGJNk7CVddZD6CcmwMCH8J+7AprIrQKH7TonKxaCjcv27Qmf+sQ+oA==", "dependencies": { "end-of-stream": "^1.4.1", "inherits": "^2.0.3", "readable-stream": "^3.1.1", - "stream-shift": "^1.0.0" + "stream-shift": "^1.0.2" } }, "node_modules/ecc-jsbn": { @@ -11833,17 +11990,6 @@ "node": ">=0.10.0" } }, - "node_modules/electron-fetch": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/electron-fetch/-/electron-fetch-1.9.1.tgz", - "integrity": "sha512-M9qw6oUILGVrcENMSRRefE1MbHPIz0h79EKIeJWK9v563aT9Qkh8aEHPO1H5vi970wPirNY+jO9OpFoLiMsMGA==", - "dependencies": { - "encoding": "^0.1.13" - }, - "engines": { - "node": ">=6" - } - }, "node_modules/electron-to-chromium": { "version": "1.4.325", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.325.tgz", @@ -11909,6 +12055,8 @@ "version": "0.1.13", "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz", "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==", + "optional": true, + "peer": true, "dependencies": { "iconv-lite": "^0.6.2" } @@ -12042,11 +12190,6 @@ "node": ">=6" } }, - "node_modules/err-code": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/err-code/-/err-code-3.0.1.tgz", - "integrity": "sha512-GiaH0KJUewYok+eeY05IIgjtAe4Yltygk9Wqp1V5yVWLdhf0hYZchRjNIT9bb0mSwRcIusT3cx7PJUf3zEIfUA==" - }, "node_modules/errno": { "version": "0.1.8", "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.8.tgz", @@ -13426,11 +13569,6 @@ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" }, - "node_modules/fast-fifo": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.0.tgz", - "integrity": "sha512-IgfweLvEpwyA4WgiQe9Nx6VV2QkML2NkvZnk1oKnIzXgXdWxuhF7zw4DvLTPZJn6PIUneiAXPF24QmoEqHTjyw==" - }, "node_modules/fast-glob": { "version": "3.2.12", "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", @@ -13468,9 +13606,9 @@ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" }, "node_modules/fast-redact": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/fast-redact/-/fast-redact-3.3.0.tgz", - "integrity": "sha512-6T5V1QK1u4oF+ATxs1lWUmlEk6P2T9HqJG3e2DnHOdVgZy2rFJBoEnrIedcTXlkAHU/zKC+7KETJ+KGGKwxgMQ==", + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/fast-redact/-/fast-redact-3.5.0.tgz", + "integrity": "sha512-dwsoQlS7h9hMeYUq1W++23NDcBLV4KqONnITDV9DjfS3q1SgDGVrBdvvTLUotWtPSD7asWDV9/CmsZPy8Hf70A==", "engines": { "node": ">=6" } @@ -13533,7 +13671,8 @@ "node_modules/fetch-retry": { "version": "5.0.6", "resolved": "https://registry.npmjs.org/fetch-retry/-/fetch-retry-5.0.6.tgz", - "integrity": "sha512-3yurQZ2hD9VISAhJJP9bpYFNQrHHBXE2JxxjY5aLEcDi46RmAzJE2OC9FAde0yis5ElW0jTTzs0zfg/Cca4XqQ==" + "integrity": "sha512-3yurQZ2hD9VISAhJJP9bpYFNQrHHBXE2JxxjY5aLEcDi46RmAzJE2OC9FAde0yis5ElW0jTTzs0zfg/Cca4XqQ==", + "dev": true }, "node_modules/file-entry-cache": { "version": "6.0.1", @@ -14233,7 +14372,6 @@ "resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.5.tgz", "integrity": "sha512-HTm14iMQKK2FjFLRTM5lAVcyaUzOnqbPtesFIvREgXpJHdQm8bWS+GkQgIkfaBYRHuCnea7w8UVNfwiAQhlr9A==", "dev": true, - "hasInstallScript": true, "optional": true, "dependencies": { "node-gyp-build": "^4.3.0" @@ -14591,7 +14729,6 @@ "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.7.tgz", "integrity": "sha512-vLt1O5Pp+flcArHGIyKEQq883nBt8nN8tVBcoL0qUXj2XT1n7p70yGIq2VK98I5FdZ1YHc0wk/koOnHjnXWk1Q==", "dev": true, - "hasInstallScript": true, "optional": true, "dependencies": { "node-gyp-build": "^4.3.0" @@ -14634,11 +14771,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/get-iterator": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/get-iterator/-/get-iterator-1.0.2.tgz", - "integrity": "sha512-v+dm9bNVfOYsY1OrhaCrmyOcYoSeVvbt+hHZ0Au+T+p1y+0Uyj9aMaGIeUTT6xdpRbWzDeYKvfOslPhggQMcsg==" - }, "node_modules/get-own-enumerable-property-symbols": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz", @@ -14902,18 +15034,20 @@ } }, "node_modules/h3": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/h3/-/h3-1.10.0.tgz", - "integrity": "sha512-Tw1kcIC+AeimwRmviiObaD5EB430Yt+lTgOxLJxNr96Vd/fGRu04EF7aKfOAcpwKCI+U2JlbxOLhycD86p3Ciw==", + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/h3/-/h3-1.11.1.tgz", + "integrity": "sha512-AbaH6IDnZN6nmbnJOH72y3c5Wwh9P97soSVdGSBbcDACRdkC0FEWf25pzx4f/NuOCK6quHmW18yF2Wx+G4Zi1A==", "dependencies": { "cookie-es": "^1.0.0", - "defu": "^6.1.3", - "destr": "^2.0.2", + "crossws": "^0.2.2", + "defu": "^6.1.4", + "destr": "^2.0.3", "iron-webcrypto": "^1.0.0", + "ohash": "^1.1.3", "radix3": "^1.1.0", - "ufo": "^1.3.2", + "ufo": "^1.4.0", "uncrypto": "^0.1.3", - "unenv": "^1.8.0" + "unenv": "^1.9.0" } }, "node_modules/handle-thing": { @@ -15588,21 +15722,6 @@ "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" }, - "node_modules/interface-datastore": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/interface-datastore/-/interface-datastore-6.1.1.tgz", - "integrity": "sha512-AmCS+9CT34pp2u0QQVXjKztkuq3y5T+BIciuiHDDtDZucZD8VudosnSdUyXJV6IsRkN5jc4RFDhCk1O6Q3Gxjg==", - "dependencies": { - "interface-store": "^2.0.2", - "nanoid": "^3.0.2", - "uint8arrays": "^3.0.0" - } - }, - "node_modules/interface-store": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/interface-store/-/interface-store-2.0.2.tgz", - "integrity": "sha512-rScRlhDcz6k199EkHqT8NpM87ebN89ICOzILoBHgaG36/WX50N32BnU/kpZgCGPLhARRAWUUX5/cyaIjt7Kipg==" - }, "node_modules/internal-slot": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", @@ -15616,37 +15735,6 @@ "node": ">= 0.4" } }, - "node_modules/ioredis": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ioredis/-/ioredis-5.3.2.tgz", - "integrity": "sha512-1DKMMzlIHM02eBBVOFQ1+AolGjs6+xEcM4PDL7NqOS6szq7H9jSaEkIUH6/a5Hl241LzW6JLSiAbNvTQjUupUA==", - "dependencies": { - "@ioredis/commands": "^1.1.1", - "cluster-key-slot": "^1.1.0", - "debug": "^4.3.4", - "denque": "^2.1.0", - "lodash.defaults": "^4.2.0", - "lodash.isarguments": "^3.1.0", - "redis-errors": "^1.2.0", - "redis-parser": "^3.0.0", - "standard-as-callback": "^2.1.0" - }, - "engines": { - "node": ">=12.22.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/ioredis" - } - }, - "node_modules/ip-regex": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-4.3.0.tgz", - "integrity": "sha512-B9ZWJxHHOHUhUjCPrMpLD4xEq35bUTClHM1S6CBU5ixQnkZmwipwgc96vAd7AAGM9TGHvJR+Uss+/Ak6UphK+Q==", - "engines": { - "node": ">=8" - } - }, "node_modules/ipaddr.js": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", @@ -15655,140 +15743,10 @@ "node": ">= 0.10" } }, - "node_modules/ipfs-core-types": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/ipfs-core-types/-/ipfs-core-types-0.10.3.tgz", - "integrity": "sha512-GNid2lRBjR5qgScCglgk7w9Hk3TZAwPHQXxOLQx72wgyc0jF2U5NXRoKW0GRvX8NPbHmsrFszForIqxd23I1Gw==", - "deprecated": "js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details", - "dependencies": { - "@ipld/dag-pb": "^2.1.3", - "interface-datastore": "^6.0.2", - "ipfs-unixfs": "^6.0.3", - "multiaddr": "^10.0.0", - "multiformats": "^9.5.1" - } - }, - "node_modules/ipfs-core-utils": { - "version": "0.14.3", - "resolved": "https://registry.npmjs.org/ipfs-core-utils/-/ipfs-core-utils-0.14.3.tgz", - "integrity": "sha512-aBkewVhgAj3NWXPwu6imj0wADGiGVZmJzqKzODOJsibDjkx6FGdMv8kvvqtLnK8LS/dvSk9yk32IDtuDyYoV7Q==", - "deprecated": "js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details", - "dependencies": { - "any-signal": "^3.0.0", - "blob-to-it": "^1.0.1", - "browser-readablestream-to-it": "^1.0.1", - "debug": "^4.1.1", - "err-code": "^3.0.1", - "ipfs-core-types": "^0.10.3", - "ipfs-unixfs": "^6.0.3", - "ipfs-utils": "^9.0.6", - "it-all": "^1.0.4", - "it-map": "^1.0.4", - "it-peekable": "^1.0.2", - "it-to-stream": "^1.0.0", - "merge-options": "^3.0.4", - "multiaddr": "^10.0.0", - "multiaddr-to-uri": "^8.0.0", - "multiformats": "^9.5.1", - "nanoid": "^3.1.23", - "parse-duration": "^1.0.0", - "timeout-abort-controller": "^3.0.0", - "uint8arrays": "^3.0.0" - } - }, - "node_modules/ipfs-http-client": { - "version": "56.0.3", - "resolved": "https://registry.npmjs.org/ipfs-http-client/-/ipfs-http-client-56.0.3.tgz", - "integrity": "sha512-E3L5ylVl6BjyRUsNehvfuRBYp1hj8vQ8in4zskVPMNzXs6JiCFUbif5a6BtcAlSK4xPQyJCeLNNAWLUeFQTLNA==", - "deprecated": "js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details", - "dependencies": { - "@ipld/dag-cbor": "^7.0.0", - "@ipld/dag-json": "^8.0.1", - "@ipld/dag-pb": "^2.1.3", - "any-signal": "^3.0.0", - "dag-jose": "^1.0.0", - "debug": "^4.1.1", - "err-code": "^3.0.1", - "ipfs-core-types": "^0.10.3", - "ipfs-core-utils": "^0.14.3", - "ipfs-utils": "^9.0.6", - "it-first": "^1.0.6", - "it-last": "^1.0.4", - "merge-options": "^3.0.4", - "multiaddr": "^10.0.0", - "multiformats": "^9.5.1", - "parse-duration": "^1.0.0", - "stream-to-it": "^0.2.2", - "uint8arrays": "^3.0.0" - }, - "engines": { - "node": ">=15.0.0", - "npm": ">=3.0.0" - } - }, - "node_modules/ipfs-unixfs": { - "version": "6.0.9", - "resolved": "https://registry.npmjs.org/ipfs-unixfs/-/ipfs-unixfs-6.0.9.tgz", - "integrity": "sha512-0DQ7p0/9dRB6XCb0mVCTli33GzIzSVx5udpJuVM47tGcD+W+Bl4LsnoLswd3ggNnNEakMv1FdoFITiEnchXDqQ==", - "dependencies": { - "err-code": "^3.0.1", - "protobufjs": "^6.10.2" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/ipfs-utils": { - "version": "9.0.14", - "resolved": "https://registry.npmjs.org/ipfs-utils/-/ipfs-utils-9.0.14.tgz", - "integrity": "sha512-zIaiEGX18QATxgaS0/EOQNoo33W0islREABAcxXE8n7y2MGAlB+hdsxXn4J0hGZge8IqVQhW8sWIb+oJz2yEvg==", - "dependencies": { - "any-signal": "^3.0.0", - "browser-readablestream-to-it": "^1.0.0", - "buffer": "^6.0.1", - "electron-fetch": "^1.7.2", - "err-code": "^3.0.1", - "is-electron": "^2.2.0", - "iso-url": "^1.1.5", - "it-all": "^1.0.4", - "it-glob": "^1.0.1", - "it-to-stream": "^1.0.0", - "merge-options": "^3.0.4", - "nanoid": "^3.1.20", - "native-fetch": "^3.0.0", - "node-fetch": "^2.6.8", - "react-native-fetch-api": "^3.0.0", - "stream-to-it": "^0.2.2" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/ipfs-utils/node_modules/node-fetch": { - "version": "2.6.12", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.12.tgz", - "integrity": "sha512-C/fGU2E8ToujUivIO0H+tpQ6HWo4eEmchoPIoXtxCrVghxdKq+QOHqEZW7tuP3KlV3bC8FRMO5nMCC7Zm1VP6g==", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, "node_modules/iron-webcrypto": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/iron-webcrypto/-/iron-webcrypto-1.0.0.tgz", - "integrity": "sha512-anOK1Mktt8U1Xi7fCM3RELTuYbnFikQY5VtrDj7kPgpejV7d43tWKhzgioO0zpkazLEL/j/iayRqnJhrGfqUsg==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/iron-webcrypto/-/iron-webcrypto-1.2.1.tgz", + "integrity": "sha512-feOM6FaSr6rEABp/eDfVseKyTMDt+KGpeB35SkVn9Tyn0CqvVsY3EwI0v5i8nMHyJnzCIQf7nsy3p41TPkJZhg==", "funding": { "url": "https://github.com/sponsors/brc-dd" } @@ -15937,11 +15895,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/is-electron": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/is-electron/-/is-electron-2.2.2.tgz", - "integrity": "sha512-FO/Rhvz5tuw4MCWkpMzHFKWD2LsfHzIb7i6MdPYZ/KW7AlxawyLkqdy+jPZP1WubqEADE3O4FUENlJHDfQASRg==" - }, "node_modules/is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", @@ -16044,17 +15997,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/is-ip": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/is-ip/-/is-ip-3.1.0.tgz", - "integrity": "sha512-35vd5necO7IitFPjd/YBeqwWnyDWbuLH9ZXQdMfDA8TEo7pv5X8yfrvVO3xbJbLUlERCMvf6X0hTUamQxCYJ9Q==", - "dependencies": { - "ip-regex": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/is-lower-case": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/is-lower-case/-/is-lower-case-1.1.3.tgz", @@ -16365,14 +16307,6 @@ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" }, - "node_modules/iso-url": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/iso-url/-/iso-url-1.2.1.tgz", - "integrity": "sha512-9JPDgCN4B7QPkLtYAAOrEuAWvP9rWvR5offAr0/SeF046wIkglqH3VXgYYP6NcsKslH80UIVgmPqNe3j7tG2ng==", - "engines": { - "node": ">=12" - } - }, "node_modules/isomorphic-unfetch": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/isomorphic-unfetch/-/isomorphic-unfetch-3.1.0.tgz", @@ -16459,53 +16393,6 @@ "node": ">=8" } }, - "node_modules/it-all": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/it-all/-/it-all-1.0.6.tgz", - "integrity": "sha512-3cmCc6Heqe3uWi3CVM/k51fa/XbMFpQVzFoDsV0IZNHSQDyAXl3c4MjHkFX5kF3922OGj7Myv1nSEUgRtcuM1A==" - }, - "node_modules/it-first": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/it-first/-/it-first-1.0.7.tgz", - "integrity": "sha512-nvJKZoBpZD/6Rtde6FXqwDqDZGF1sCADmr2Zoc0hZsIvnE449gRFnGctxDf09Bzc/FWnHXAdaHVIetY6lrE0/g==" - }, - "node_modules/it-glob": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/it-glob/-/it-glob-1.0.2.tgz", - "integrity": "sha512-Ch2Dzhw4URfB9L/0ZHyY+uqOnKvBNeS/SMcRiPmJfpHiM0TsUZn+GkpcZxAoF3dJVdPm/PuIk3A4wlV7SUo23Q==", - "dependencies": { - "@types/minimatch": "^3.0.4", - "minimatch": "^3.0.4" - } - }, - "node_modules/it-last": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/it-last/-/it-last-1.0.6.tgz", - "integrity": "sha512-aFGeibeiX/lM4bX3JY0OkVCFkAw8+n9lkukkLNivbJRvNz8lI3YXv5xcqhFUV2lDJiraEK3OXRDbGuevnnR67Q==" - }, - "node_modules/it-map": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/it-map/-/it-map-1.0.6.tgz", - "integrity": "sha512-XT4/RM6UHIFG9IobGlQPFQUrlEKkU4eBUFG3qhWhfAdh1JfF2x11ShCrKCdmZ0OiZppPfoLuzcfA4cey6q3UAQ==" - }, - "node_modules/it-peekable": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/it-peekable/-/it-peekable-1.0.3.tgz", - "integrity": "sha512-5+8zemFS+wSfIkSZyf0Zh5kNN+iGyccN02914BY4w/Dj+uoFEoPSvj5vaWn8pNZJNSxzjW0zHRxC3LUb2KWJTQ==" - }, - "node_modules/it-to-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/it-to-stream/-/it-to-stream-1.0.0.tgz", - "integrity": "sha512-pLULMZMAB/+vbdvbZtebC0nWBTbG581lk6w8P7DfIIIKUfa8FbY7Oi0FxZcFPbxvISs7A9E+cMpLDBc1XhpAOA==", - "dependencies": { - "buffer": "^6.0.3", - "fast-fifo": "^1.0.0", - "get-iterator": "^1.0.2", - "p-defer": "^3.0.0", - "p-fifo": "^1.0.0", - "readable-stream": "^3.6.0" - } - }, "node_modules/jake": { "version": "10.8.5", "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.5.tgz", @@ -18025,9 +17912,9 @@ } }, "node_modules/jiti": { - "version": "1.21.0", - "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.0.tgz", - "integrity": "sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q==", + "version": "1.21.6", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.6.tgz", + "integrity": "sha512-2yTgeWTWzMWkHu6Jp9NKgePDaYHbntiwvYuuJLbbN9vl7DC9DvXKOB2BC3ZZ92D3cvV/aflH0osDfwpHepQ53w==", "bin": { "jiti": "bin/jiti.js" } @@ -18246,11 +18133,6 @@ "node": ">=6" } }, - "node_modules/jsonc-parser": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.0.tgz", - "integrity": "sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==" - }, "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -18825,25 +18707,26 @@ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==" }, "node_modules/listhen": { - "version": "1.5.6", - "resolved": "https://registry.npmjs.org/listhen/-/listhen-1.5.6.tgz", - "integrity": "sha512-gTpEJhT5L85L0bFgmu+Boqu5rP4DwDtEb4Exq5gdQUxWRwx4jbzdInZkmyLONo5EwIcQB0k7ZpWlpCDPdL77EQ==", + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/listhen/-/listhen-1.7.2.tgz", + "integrity": "sha512-7/HamOm5YD9Wb7CFgAZkKgVPA96WwhcTQoqtm2VTZGVbVVn3IWKRBTgrU7cchA3Q8k9iCsG8Osoi9GX4JsGM9g==", "dependencies": { - "@parcel/watcher": "^2.3.0", - "@parcel/watcher-wasm": "2.3.0", - "citty": "^0.1.5", + "@parcel/watcher": "^2.4.1", + "@parcel/watcher-wasm": "^2.4.1", + "citty": "^0.1.6", "clipboardy": "^4.0.0", "consola": "^3.2.3", + "crossws": "^0.2.0", "defu": "^6.1.4", "get-port-please": "^3.1.2", - "h3": "^1.10.0", + "h3": "^1.10.2", "http-shutdown": "^1.2.2", "jiti": "^1.21.0", - "mlly": "^1.4.2", + "mlly": "^1.6.1", "node-forge": "^1.3.1", - "pathe": "^1.1.1", + "pathe": "^1.1.2", "std-env": "^3.7.0", - "ufo": "^1.3.2", + "ufo": "^1.4.0", "untun": "^0.1.3", "uqr": "^0.1.2" }, @@ -18946,9 +18829,9 @@ } }, "node_modules/listhen/node_modules/npm-run-path": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.2.0.tgz", - "integrity": "sha512-W4/tgAXFqFA0iL7fk0+uQ3g7wkL8xJmx3XdK0VGb4cHW//eZTtKGvFBBoRKVTpY7n6ze4NL9ly7rgXcHufqXKg==", + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz", + "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==", "dependencies": { "path-key": "^4.0.0" }, @@ -19053,16 +18936,6 @@ "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==" }, - "node_modules/lodash.defaults": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz", - "integrity": "sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ==" - }, - "node_modules/lodash.isarguments": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", - "integrity": "sha512-chi4NHZlZqZD18a0imDHnZPrDeBbTtVN7GXMwuGdRH9qotxAjYs3aVLKc7zNOG9eddR5Ksd8rvFEBc9SsggPpg==" - }, "node_modules/lodash.isequal": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", @@ -19121,7 +18994,9 @@ "node_modules/long": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", - "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" + "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==", + "dev": true, + "optional": true }, "node_modules/loose-envify": { "version": "1.4.0", @@ -19291,25 +19166,6 @@ "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" }, - "node_modules/merge-options": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/merge-options/-/merge-options-3.0.4.tgz", - "integrity": "sha512-2Sug1+knBjkaMsMgf1ctR1Ujx+Ayku4EdJN4Z+C2+JzoeF7A3OZ9KM2GY0CpQS51NR61LTurMJrRKPhSs3ZRTQ==", - "dependencies": { - "is-plain-obj": "^2.1.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/merge-options/node_modules/is-plain-obj": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", - "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", - "engines": { - "node": ">=8" - } - }, "node_modules/merge-stream": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", @@ -19556,14 +19412,14 @@ } }, "node_modules/mlly": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.4.2.tgz", - "integrity": "sha512-i/Ykufi2t1EZ6NaPLdfnZk2AX8cs0d+mTzVKuPfqPKPatxLApaBoxJQ9x1/uckXtrS/U5oisPMDkNs0yQTaBRg==", + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.7.1.tgz", + "integrity": "sha512-rrVRZRELyQzrIUAVMHxP97kv+G786pHmOKzuFII8zDYahFBS7qnHh2AlYSl1GAHhaMPCz6/oHjVMcfFYgFYHgA==", "dependencies": { - "acorn": "^8.10.0", - "pathe": "^1.1.1", - "pkg-types": "^1.0.3", - "ufo": "^1.3.0" + "acorn": "^8.11.3", + "pathe": "^1.1.2", + "pkg-types": "^1.1.1", + "ufo": "^1.5.3" } }, "node_modules/mocha": { @@ -19813,34 +19669,6 @@ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, - "node_modules/multiaddr": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/multiaddr/-/multiaddr-10.0.1.tgz", - "integrity": "sha512-G5upNcGzEGuTHkzxezPrrD6CaIHR9uo+7MwqhNVcXTs33IInon4y7nMiGxl2CY5hG7chvYQUQhz5V52/Qe3cbg==", - "deprecated": "This module is deprecated, please upgrade to @multiformats/multiaddr", - "dependencies": { - "dns-over-http-resolver": "^1.2.3", - "err-code": "^3.0.1", - "is-ip": "^3.1.0", - "multiformats": "^9.4.5", - "uint8arrays": "^3.0.0", - "varint": "^6.0.0" - } - }, - "node_modules/multiaddr-to-uri": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/multiaddr-to-uri/-/multiaddr-to-uri-8.0.0.tgz", - "integrity": "sha512-dq4p/vsOOUdVEd1J1gl+R2GFrXJQH8yjLtz4hodqdVbieg39LvBOdMQRdQnfbg5LSM/q1BYNVf5CBbwZFFqBgA==", - "deprecated": "This module is deprecated, please upgrade to @multiformats/multiaddr-to-uri", - "dependencies": { - "multiaddr": "^10.0.0" - } - }, - "node_modules/multiaddr/node_modules/varint": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/varint/-/varint-6.0.0.tgz", - "integrity": "sha512-cXEIW6cfr15lFv563k4GuVuW/fiwjknytD37jIOLSdSWuOI6WnO/oKwmP2FQTU2l01LP8/M5TSAJpzUaGe3uWg==" - }, "node_modules/multibase": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/multibase/-/multibase-0.6.1.tgz", @@ -19991,14 +19819,6 @@ "dev": true, "optional": true }, - "node_modules/native-fetch": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/native-fetch/-/native-fetch-3.0.0.tgz", - "integrity": "sha512-G3Z7vx0IFb/FQ4JxvtqGABsOTIqRWvgQz6e+erkB+JJD6LrszQtMozEHI4EkmgZQvnGHrpLVzUWk7t4sJCIkVw==", - "peerDependencies": { - "node-fetch": "*" - } - }, "node_modules/natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", @@ -20076,9 +19896,9 @@ } }, "node_modules/node-fetch-native": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/node-fetch-native/-/node-fetch-native-1.6.1.tgz", - "integrity": "sha512-bW9T/uJDPAJB2YNYEpWzE54U5O3MQidXsOyTfnbKYtTtFexRvGzb1waphBN4ZwP6EcIvYYEOwW0b72BpAqydTw==" + "version": "1.6.4", + "resolved": "https://registry.npmjs.org/node-fetch-native/-/node-fetch-native-1.6.4.tgz", + "integrity": "sha512-IhOigYzAKHd244OC0JIMIUrjzctirCmPkaIfhDeGcEETWof5zKYUW7e7MYvChGWh/4CJeXEgsRyGzuF334rOOQ==" }, "node_modules/node-forge": { "version": "1.3.1", @@ -20385,15 +20205,20 @@ "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==" }, "node_modules/ofetch": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/ofetch/-/ofetch-1.3.3.tgz", - "integrity": "sha512-s1ZCMmQWXy4b5K/TW9i/DtiN8Ku+xCiHcjQ6/J/nDdssirrQNOoB165Zu8EqLMA2lln1JUth9a0aW9Ap2ctrUg==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/ofetch/-/ofetch-1.3.4.tgz", + "integrity": "sha512-KLIET85ik3vhEfS+3fDlc/BAZiAp+43QEC/yCo5zkNoY2YaKvNkOaFr/6wCFgFH1kuYQM5pMNi0Tg8koiIemtw==", "dependencies": { - "destr": "^2.0.1", - "node-fetch-native": "^1.4.0", - "ufo": "^1.3.0" + "destr": "^2.0.3", + "node-fetch-native": "^1.6.3", + "ufo": "^1.5.3" } }, + "node_modules/ohash": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/ohash/-/ohash-1.1.3.tgz", + "integrity": "sha512-zuHHiGTYTA1sYJ/wZN+t5HKZaH23i4yI1HMwbuXm24Nid7Dv0KcuRlKoNKS9UNfAVSBlnGLcuQrnOKWOZoEGaw==" + }, "node_modules/on-exit-leak-free": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-0.2.0.tgz", @@ -20456,36 +20281,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/openai": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/openai/-/openai-3.3.0.tgz", - "integrity": "sha512-uqxI/Au+aPRnsaQRe8CojU0eCR7I0mBiKjD3sNMzY6DaC1ZVrc85u98mtJW6voDug8fgGN+DIZmTDxTthxb7dQ==", - "dependencies": { - "axios": "^0.26.0", - "form-data": "^4.0.0" - } - }, - "node_modules/openai/node_modules/axios": { - "version": "0.26.1", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.26.1.tgz", - "integrity": "sha512-fPwcX4EvnSHuInCMItEhAGnaSEXRBjtzh9fOtsE6E1G6p7vl7edEeZe11QHf18+6+9gR5PbKV/sGKNaD8YaMeA==", - "dependencies": { - "follow-redirects": "^1.14.8" - } - }, - "node_modules/openai/node_modules/form-data": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", - "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/optionator": { "version": "0.9.1", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", @@ -20523,23 +20318,6 @@ "node": ">=12.20" } }, - "node_modules/p-defer": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-3.0.0.tgz", - "integrity": "sha512-ugZxsxmtTln604yeYd29EGrNhazN2lywetzpKhfmQjW/VJmhpDmWbiX+h0zL8V91R0UXkhb3KtPmyq9PZw3aYw==", - "engines": { - "node": ">=8" - } - }, - "node_modules/p-fifo": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-fifo/-/p-fifo-1.0.0.tgz", - "integrity": "sha512-IjoCxXW48tqdtDFz6fqo5q1UfFVjjVZe8TC1QRflvNUJtNfCUhxOUw6MOVZhDPjqhSzc26xKdugsO17gmzd5+A==", - "dependencies": { - "fast-fifo": "^1.0.0", - "p-defer": "^3.0.0" - } - }, "node_modules/p-finally": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", @@ -20656,11 +20434,6 @@ "safe-buffer": "^5.1.1" } }, - "node_modules/parse-duration": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/parse-duration/-/parse-duration-1.1.0.tgz", - "integrity": "sha512-z6t9dvSJYaPoQq7quMzdEagSFtpGu+utzHqqxmpVWNNZRIXnvqyCvn9XsTdh7c/w0Bqmdz3RB3YnRaKtpRtEXQ==" - }, "node_modules/parse-headers": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/parse-headers/-/parse-headers-2.0.5.tgz", @@ -20787,9 +20560,9 @@ } }, "node_modules/pathe": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.1.tgz", - "integrity": "sha512-d+RQGp0MAYTIaDBIMmOfMwz3E+LOZnxx1HZd5R18mmCZY0QBlK0LDZfPc8FW8Ed2DlvsuE6PRjroDY+wg4+j/Q==" + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz", + "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==" }, "node_modules/pbkdf2": { "version": "3.1.2", @@ -20890,13 +20663,13 @@ } }, "node_modules/pkg-types": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.0.3.tgz", - "integrity": "sha512-nN7pYi0AQqJnoLPC9eHFQ8AcyaixBUOwvqc5TDnIKCMEE6I0y8P7OKA7fPexsXGCGxQDl/cmrLAp26LhcwxZ4A==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.1.1.tgz", + "integrity": "sha512-ko14TjmDuQJ14zsotODv7dBlwxKhUKQEhuhmbqo1uCi9BB0Z2alo/wAXg6q1dTR5TyuqYyWhjtfe/Tsh+X28jQ==", "dependencies": { - "jsonc-parser": "^3.2.0", - "mlly": "^1.2.0", - "pathe": "^1.1.0" + "confbox": "^0.1.7", + "mlly": "^1.7.0", + "pathe": "^1.1.2" } }, "node_modules/pkg-up": { @@ -22512,6 +22285,7 @@ "version": "2.8.7", "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.7.tgz", "integrity": "sha512-yPngTo3aXUUmyuTjeTUT75txrf+aMh9FiD7q9ZE/i6r0bPb22g4FsE6Y338PQX1bmfy08i9QQCB7/rcUAVntfw==", + "dev": true, "bin": { "prettier": "bin-prettier.js" }, @@ -22625,31 +22399,6 @@ "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" }, - "node_modules/protobufjs": { - "version": "6.11.3", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.11.3.tgz", - "integrity": "sha512-xL96WDdCZYdU7Slin569tFX712BxsxslWwAfAhCYjQKGTq7dAU91Lomy6nLLhh/dyGhk/YH4TwTSRxTzhuHyZg==", - "hasInstallScript": true, - "dependencies": { - "@protobufjs/aspromise": "^1.1.2", - "@protobufjs/base64": "^1.1.2", - "@protobufjs/codegen": "^2.0.4", - "@protobufjs/eventemitter": "^1.1.0", - "@protobufjs/fetch": "^1.1.0", - "@protobufjs/float": "^1.0.2", - "@protobufjs/inquire": "^1.1.0", - "@protobufjs/path": "^1.1.2", - "@protobufjs/pool": "^1.1.0", - "@protobufjs/utf8": "^1.1.0", - "@types/long": "^4.0.1", - "@types/node": ">=13.7.0", - "long": "^4.0.0" - }, - "bin": { - "pbjs": "bin/pbjs", - "pbts": "bin/pbts" - } - }, "node_modules/proxy-addr": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", @@ -22916,9 +22665,9 @@ } }, "node_modules/radix3": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/radix3/-/radix3-1.1.0.tgz", - "integrity": "sha512-pNsHDxbGORSvuSScqNJ+3Km6QAVqk8CfsCBIEoDgpqLrkD2f3QM4I7d1ozJJ172OmIcoUcerZaNWqtLkRXTV3A==" + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/radix3/-/radix3-1.1.2.tgz", + "integrity": "sha512-b484I/7b8rDEdSDKckSSBA8knMpcdsXudlE/LNL639wFoHKwLbEkQFZHWEYwDC0wa0FKUcCY+GAF73Z7wxNVFA==" }, "node_modules/raf": { "version": "3.4.1", @@ -23186,14 +22935,6 @@ "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==" }, - "node_modules/react-native-fetch-api": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/react-native-fetch-api/-/react-native-fetch-api-3.0.0.tgz", - "integrity": "sha512-g2rtqPjdroaboDKTsJCTlcmtw54E25OjyaunUP0anOZn4Fuo2IKs8BVfe02zVggA/UysbmfSnRJIqtNkAgggNA==", - "dependencies": { - "p-defer": "^3.0.0" - } - }, "node_modules/react-redux": { "version": "7.2.9", "resolved": "https://registry.npmjs.org/react-redux/-/react-redux-7.2.9.tgz", @@ -24311,14 +24052,6 @@ "node": ">= 12.13.0" } }, - "node_modules/receptacle": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/receptacle/-/receptacle-1.3.2.tgz", - "integrity": "sha512-HrsFvqZZheusncQRiEE7GatOAETrARKV/lnfYicIm8lbvp/JQOdADOfhjBd2DajvoszEyxSM6RlAAIZgEoeu/A==", - "dependencies": { - "ms": "^2.1.1" - } - }, "node_modules/recursive-readdir": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/recursive-readdir/-/recursive-readdir-2.2.3.tgz", @@ -24330,25 +24063,6 @@ "node": ">=6.0.0" } }, - "node_modules/redis-errors": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/redis-errors/-/redis-errors-1.2.0.tgz", - "integrity": "sha512-1qny3OExCf0UvUV/5wpYKf2YwPcOqXzkwKKSmKHiE6ZMQs5heeE/c8eXK+PNllPvmjgAbfnsbpkGZWy8cBpn9w==", - "engines": { - "node": ">=4" - } - }, - "node_modules/redis-parser": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/redis-parser/-/redis-parser-3.0.0.tgz", - "integrity": "sha512-DJnGAeenTdpMEH6uAJRK/uiyEIH9WVsUmoLwzudwGJUwZPp80PDBWPHXSAGNPwNvIXAbe7MSUB1zQFugFml66A==", - "dependencies": { - "redis-errors": "^1.0.0" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/redux": { "version": "3.7.2", "resolved": "https://registry.npmjs.org/redux/-/redux-3.7.2.tgz", @@ -24764,11 +24478,6 @@ "node": ">=8" } }, - "node_modules/retimer": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/retimer/-/retimer-3.0.0.tgz", - "integrity": "sha512-WKE0j11Pa0ZJI5YIk0nflGI7SQsfl2ljihVy7ogh7DeQSeYAUi0ubZ/yEueGtDfUPk6GH5LRw1hBdLq4IwUBWA==" - }, "node_modules/retry": { "version": "0.13.1", "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", @@ -25756,11 +25465,6 @@ "resolved": "https://registry.npmjs.org/stackframe/-/stackframe-1.3.4.tgz", "integrity": "sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw==" }, - "node_modules/standard-as-callback": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/standard-as-callback/-/standard-as-callback-2.1.0.tgz", - "integrity": "sha512-qoRRSyROncaz1z0mvYqIE4lCd9p2R90i6GxW3uZv5ucSu8tU7B5HXUP1gG8pVZsYNVaXjk8ClXHPttLyxAL48A==" - }, "node_modules/statuses": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", @@ -25807,17 +25511,9 @@ } }, "node_modules/stream-shift": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.1.tgz", - "integrity": "sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ==" - }, - "node_modules/stream-to-it": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/stream-to-it/-/stream-to-it-0.2.4.tgz", - "integrity": "sha512-4vEbkSs83OahpmBybNJXlJd7d6/RxzkkSdT3I0mnGt79Xd2Kk+e1JqbvAvsQfCeKj3aKb0QIWkyK3/n0j506vQ==", - "dependencies": { - "get-iterator": "^1.0.2" - } + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.3.tgz", + "integrity": "sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==" }, "node_modules/strict-uri-encode": { "version": "1.1.0", @@ -26778,14 +26474,6 @@ "node": ">=0.10.0" } }, - "node_modules/timeout-abort-controller": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/timeout-abort-controller/-/timeout-abort-controller-3.0.0.tgz", - "integrity": "sha512-O3e+2B8BKrQxU2YRyEjC/2yFdb33slI22WRdUaDx6rvysfi9anloNZyR2q0l6LnePo5qH7gSM7uZtvvwZbc2yA==", - "dependencies": { - "retimer": "^3.0.0" - } - }, "node_modules/timers-browserify": { "version": "2.0.12", "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.12.tgz", @@ -27323,9 +27011,9 @@ } }, "node_modules/ufo": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.3.2.tgz", - "integrity": "sha512-o+ORpgGwaYQXgqGDwd+hkS4PuZ3QnmqMMxRuajK/a38L6fTpcE5GPIfrf+L/KemFzfUpeUQc1rRS1iDBozvnFA==" + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.5.3.tgz", + "integrity": "sha512-Y7HYmWaFwPUmkoQCUIAYpKqkOf+SbVj/2fJJZ4RJMCfZp0rTGwRbzQD+HghfnhKOjL9E01okqz+ncJskGYfBNw==" }, "node_modules/uint8arrays": { "version": "3.1.1", @@ -27457,35 +27145,35 @@ "integrity": "sha512-vRCqFv6UhXpWxZPyGDh/F3ZpNv8/qo7w6iufLpQg9aKnQ71qM4B5KiI7Mia9COcjEhrO9LueHpMYjYzsWH3OIg==" }, "node_modules/unstorage": { - "version": "1.10.1", - "resolved": "https://registry.npmjs.org/unstorage/-/unstorage-1.10.1.tgz", - "integrity": "sha512-rWQvLRfZNBpF+x8D3/gda5nUCQL2PgXy2jNG4U7/Rc9BGEv9+CAJd0YyGCROUBKs9v49Hg8huw3aih5Bf5TAVw==", + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/unstorage/-/unstorage-1.10.2.tgz", + "integrity": "sha512-cULBcwDqrS8UhlIysUJs2Dk0Mmt8h7B0E6mtR+relW9nZvsf/u4SkAYyNliPiPW7XtFNb5u3IUMkxGxFTTRTgQ==", "dependencies": { "anymatch": "^3.1.3", - "chokidar": "^3.5.3", - "destr": "^2.0.2", - "h3": "^1.8.2", - "ioredis": "^5.3.2", - "listhen": "^1.5.5", - "lru-cache": "^10.0.2", + "chokidar": "^3.6.0", + "destr": "^2.0.3", + "h3": "^1.11.1", + "listhen": "^1.7.2", + "lru-cache": "^10.2.0", "mri": "^1.2.0", - "node-fetch-native": "^1.4.1", + "node-fetch-native": "^1.6.2", "ofetch": "^1.3.3", - "ufo": "^1.3.1" + "ufo": "^1.4.0" }, "peerDependencies": { - "@azure/app-configuration": "^1.4.1", + "@azure/app-configuration": "^1.5.0", "@azure/cosmos": "^4.0.0", "@azure/data-tables": "^13.2.2", - "@azure/identity": "^3.3.2", - "@azure/keyvault-secrets": "^4.7.0", - "@azure/storage-blob": "^12.16.0", - "@capacitor/preferences": "^5.0.6", - "@netlify/blobs": "^6.2.0", - "@planetscale/database": "^1.11.0", - "@upstash/redis": "^1.23.4", - "@vercel/kv": "^0.2.3", - "idb-keyval": "^6.2.1" + "@azure/identity": "^4.0.1", + "@azure/keyvault-secrets": "^4.8.0", + "@azure/storage-blob": "^12.17.0", + "@capacitor/preferences": "^5.0.7", + "@netlify/blobs": "^6.5.0 || ^7.0.0", + "@planetscale/database": "^1.16.0", + "@upstash/redis": "^1.28.4", + "@vercel/kv": "^1.0.1", + "idb-keyval": "^6.2.1", + "ioredis": "^5.3.2" }, "peerDependenciesMeta": { "@azure/app-configuration": { @@ -27523,13 +27211,50 @@ }, "idb-keyval": { "optional": true + }, + "ioredis": { + "optional": true } } }, + "node_modules/unstorage/node_modules/chokidar": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/unstorage/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/unstorage/node_modules/lru-cache": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.1.0.tgz", - "integrity": "sha512-/1clY/ui8CzjKFyjdvwPWJUYKiFVXG2I2cY0ssG7h4+hwk+XOIX7ZSG9Q7TW8TW3Kp3BUSqgFWBLgL4PJ+Blag==", + "version": "10.2.2", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.2.tgz", + "integrity": "sha512-9hp3Vp2/hFQUiIwKo8XCeFVnrg8Pk3TYNPIR7tJADKi5YfcF7vEaK7avFHTlSy3kOKYaJQaalfEo6YuXdceBOQ==", "engines": { "node": "14 || >=16.14" } @@ -29366,37 +29091,29 @@ }, "dependencies": { "@alephium/cli": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@alephium/cli/-/cli-0.28.1.tgz", - "integrity": "sha512-bcqbmXVk+gk6onb9WMYVeIFwcV0xtsaX0qG+7M+lfLSwmGHi+N2dUS7Qrnvp9UE8BHRvBB4YoaH9JOpQqr/1KQ==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@alephium/cli/-/cli-1.0.1.tgz", + "integrity": "sha512-AsVBxFOLVTlohW9IWoAk8P5DDmAp/6wiO8vO5KQ61uWVHvg3WHvRFH9IzwAMumc7y7ONOCCzo+F3OijBKVTwLA==", + "dev": true, "requires": { - "@alephium/web3": "^0.28.1", - "@alephium/web3-wallet": "^0.28.1", + "@alephium/web3": "^1.0.1", + "@alephium/web3-wallet": "^1.0.1", + "@swc/core": "^1.4.1", "commander": "^9.5.0", "cross-fetch": "^3.1.5", - "crypto-js": "^4.1.1", + "crypto-js": "^4.2.0", "fetch-retry": "^5.0.6", "fs-extra": "^10.1.0", - "ipfs-http-client": "^56.0.0", "jest": "^28.1.3", - "openai": "^3.3.0", - "prettier": "^2.8.7", - "yaml": "^2.3.1" - }, - "dependencies": { - "yaml": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.1.tgz", - "integrity": "sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==" - } + "prettier": "^2.8.7" } }, "@alephium/get-extension-wallet": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@alephium/get-extension-wallet/-/get-extension-wallet-0.28.1.tgz", - "integrity": "sha512-J23e2JJk6V9qTNp7qn5qaW+EpJycZd+KSVNgJOUojIkmBKHidg9VwoEE0VX8fuo4TI2j6CI58tomgiIXtaK80Q==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@alephium/get-extension-wallet/-/get-extension-wallet-1.0.1.tgz", + "integrity": "sha512-cik1zQThPQx0+52EGb8JzpeTYLshfpsQ1StbDiBVypYKWxgYFolQ4QCqVS12SqO1K+EXyzCPtKrWkXKi+/0pwg==", "requires": { - "@alephium/web3": "^0.28.1", + "@alephium/web3": "^1.0.1", "bowser": "^2.11.0" } }, @@ -29409,17 +29126,18 @@ } }, "@alephium/walletconnect-provider": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@alephium/walletconnect-provider/-/walletconnect-provider-0.28.1.tgz", - "integrity": "sha512-11rrzJKb1DwWLno7jUpFJ5hQsVU3vY6lRu061wKDPGiODgm9m+tcmcCuKKZXasz/Yp6OjtWsFSUojMvWuubNsw==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@alephium/walletconnect-provider/-/walletconnect-provider-1.0.1.tgz", + "integrity": "sha512-VhtGYDqDMH7FC7Rx30EG7t6w9Y4D7Kr8Cr36/FDm02xH3xoZ7k2nqx5OupPfqcAVgaJ/nEdvRxZEyViYt61iAw==", "requires": { - "@alephium/web3": "^0.28.1", - "@alephium/web3-wallet": "^0.28.1", - "@walletconnect/core": "2.11.0", + "@alephium/web3": "^1.0.1", + "@alephium/web3-wallet": "^1.0.1", + "@walletconnect/core": "2.11.3", "@walletconnect/keyvaluestorage": "1.1.1", - "@walletconnect/sign-client": "2.11.0", - "@walletconnect/types": "2.11.0", - "@walletconnect/utils": "2.11.0", + "@walletconnect/sign-client": "2.11.3", + "@walletconnect/types": "2.11.3", + "@walletconnect/utils": "2.11.3", + "async-sema": "^3.1.1", "eventemitter3": "^4.0.7" }, "dependencies": { @@ -29655,16 +29373,16 @@ } }, "@alephium/web3": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@alephium/web3/-/web3-0.28.1.tgz", - "integrity": "sha512-AYBdoV2O6Whz/ZklkAvC3dpVb35q7KMLJpmHMD+XCsDqQaAB3AIV38FJsWVhq87OMJpnbRMbcy+yWEsNzdcX1Q==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@alephium/web3/-/web3-1.0.1.tgz", + "integrity": "sha512-DKPscVULkv924k6eQ4yZ69F1rm4WFAg4y4CglAWLgaRXjjcinnLevLtAbUItU25WoyDseD8pQHSmJov82YdG0g==", "requires": { "@noble/secp256k1": "1.7.1", "base-x": "4.0.0", "bignumber.js": "^9.1.1", + "binary-parser": "2.2.1", "blakejs": "1.2.1", "bn.js": "5.2.1", - "buffer": "^6.0.3", "cross-fetch": "^3.1.5", "crypto-browserify": "^3.12.0", "elliptic": "6.5.4", @@ -29674,12 +29392,12 @@ } }, "@alephium/web3-react": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@alephium/web3-react/-/web3-react-0.28.1.tgz", - "integrity": "sha512-q6+LqNkz9abJtdR+eUJhb1P2l2vjuhlrTUMgmMsxRygtFJxn2XvnHiizMatRoIjrkG8DTNBQp0DsH3R3ZpdTIg==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@alephium/web3-react/-/web3-react-1.0.1.tgz", + "integrity": "sha512-Ot9WeykFQN+rAhlsXlyjHRJOw8ilOl5t9NuICKqJZBMvcwqbZ3iidK8fgRxYVeeDV0xqDq79BguvOge0VhXb6Q==", "requires": { - "@alephium/get-extension-wallet": "^0.28.1", - "@alephium/walletconnect-provider": "^0.28.1", + "@alephium/get-extension-wallet": "^1.0.1", + "@alephium/walletconnect-provider": "^1.0.1", "@alephium/walletconnect-qrcode-modal": "^0.1.0", "buffer": "^6.0.3", "detect-browser": "^5.3.0", @@ -29692,25 +29410,25 @@ } }, "@alephium/web3-test": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@alephium/web3-test/-/web3-test-0.28.1.tgz", - "integrity": "sha512-97Cj3tTGKOgPKt2jl3FSh8VETFrWdHUFaWJZdZ+bLBMUsUIFd3JiLXOZ6HLhxWjv9AfworiWZXi4Crt39JMHAA==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@alephium/web3-test/-/web3-test-1.0.1.tgz", + "integrity": "sha512-UQxw80WpXIunkmG6WLvlymZBbZ/Gra5SMtgCbesoaSfh2Me+IVx1KGDN4USuf2dKLCjyYPMKw7yZPQHtgSdAhw==", + "dev": true, "requires": { - "@alephium/web3": "^0.28.1", - "@alephium/web3-wallet": "^0.28.1" + "@alephium/web3": "^1.0.1", + "@alephium/web3-wallet": "^1.0.1" } }, "@alephium/web3-wallet": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@alephium/web3-wallet/-/web3-wallet-0.28.1.tgz", - "integrity": "sha512-ToznpP0ogBivs2JqbWSH8TjIt0HHjnFhJfnz46pIn2KZ1Y6x57s1zN9cvWOQTVW9JkJ61DFxdu6kTgtJL8iD0Q==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@alephium/web3-wallet/-/web3-wallet-1.0.1.tgz", + "integrity": "sha512-C6tuoNhF08R4b8Ipm8z17uh4HulkwzANycu4s+Rt7uOxWtKMQ5qfidQeN3VuAuPBLc828LpvRSdJriVxNackDw==", "requires": { - "@alephium/web3": "^0.28.1", + "@alephium/web3": "^1.0.1", "@noble/secp256k1": "1.7.1", "@types/node": "^16.18.23", "bip32": "3.1.0", "bip39": "3.0.4", - "buffer": "^6.0.3", "elliptic": "6.5.4", "fs-extra": "10.0.1" }, @@ -31881,37 +31599,6 @@ "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==" }, - "@ioredis/commands": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@ioredis/commands/-/commands-1.2.0.tgz", - "integrity": "sha512-Sx1pU8EM64o2BrqNpEO1CNLtKQwyhuXuqyfH7oGKCk+1a33d2r5saW8zNwm3j6BTExtjrv2BxTgzzkMwts6vGg==" - }, - "@ipld/dag-cbor": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/@ipld/dag-cbor/-/dag-cbor-7.0.3.tgz", - "integrity": "sha512-1VVh2huHsuohdXC1bGJNE8WR72slZ9XE2T3wbBBq31dm7ZBatmKLLxrB+XAqafxfRFjv08RZmj/W/ZqaM13AuA==", - "requires": { - "cborg": "^1.6.0", - "multiformats": "^9.5.4" - } - }, - "@ipld/dag-json": { - "version": "8.0.11", - "resolved": "https://registry.npmjs.org/@ipld/dag-json/-/dag-json-8.0.11.tgz", - "integrity": "sha512-Pea7JXeYHTWXRTIhBqBlhw7G53PJ7yta3G/sizGEZyzdeEwhZRr0od5IQ0r2ZxOt1Do+2czddjeEPp+YTxDwCA==", - "requires": { - "cborg": "^1.5.4", - "multiformats": "^9.5.4" - } - }, - "@ipld/dag-pb": { - "version": "2.1.18", - "resolved": "https://registry.npmjs.org/@ipld/dag-pb/-/dag-pb-2.1.18.tgz", - "integrity": "sha512-ZBnf2fuX9y3KccADURG5vb9FaOeMjFkCrNysB0PtftME/4iCTjxfaLoNq/IAh5fTqUOMXvryN6Jyka4ZGuMLIg==", - "requires": { - "multiformats": "^9.5.4" - } - }, "@istanbuljs/load-nyc-config": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", @@ -32441,22 +32128,22 @@ } }, "@parcel/watcher": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.3.0.tgz", - "integrity": "sha512-pW7QaFiL11O0BphO+bq3MgqeX/INAk9jgBldVDYjlQPO4VddoZnF22TcF9onMhnLVHuNqBJeRf+Fj7eezi/+rQ==", - "requires": { - "@parcel/watcher-android-arm64": "2.3.0", - "@parcel/watcher-darwin-arm64": "2.3.0", - "@parcel/watcher-darwin-x64": "2.3.0", - "@parcel/watcher-freebsd-x64": "2.3.0", - "@parcel/watcher-linux-arm-glibc": "2.3.0", - "@parcel/watcher-linux-arm64-glibc": "2.3.0", - "@parcel/watcher-linux-arm64-musl": "2.3.0", - "@parcel/watcher-linux-x64-glibc": "2.3.0", - "@parcel/watcher-linux-x64-musl": "2.3.0", - "@parcel/watcher-win32-arm64": "2.3.0", - "@parcel/watcher-win32-ia32": "2.3.0", - "@parcel/watcher-win32-x64": "2.3.0", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.4.1.tgz", + "integrity": "sha512-HNjmfLQEVRZmHRET336f20H/8kOozUGwk7yajvsonjNxbj2wBTK1WsQuHkD5yYh9RxFGL2EyDHryOihOwUoKDA==", + "requires": { + "@parcel/watcher-android-arm64": "2.4.1", + "@parcel/watcher-darwin-arm64": "2.4.1", + "@parcel/watcher-darwin-x64": "2.4.1", + "@parcel/watcher-freebsd-x64": "2.4.1", + "@parcel/watcher-linux-arm-glibc": "2.4.1", + "@parcel/watcher-linux-arm64-glibc": "2.4.1", + "@parcel/watcher-linux-arm64-musl": "2.4.1", + "@parcel/watcher-linux-x64-glibc": "2.4.1", + "@parcel/watcher-linux-x64-musl": "2.4.1", + "@parcel/watcher-win32-arm64": "2.4.1", + "@parcel/watcher-win32-ia32": "2.4.1", + "@parcel/watcher-win32-x64": "2.4.1", "detect-libc": "^1.0.3", "is-glob": "^4.0.3", "micromatch": "^4.0.5", @@ -32464,70 +32151,70 @@ }, "dependencies": { "node-addon-api": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.0.0.tgz", - "integrity": "sha512-vgbBJTS4m5/KkE16t5Ly0WW9hz46swAstv0hYYwMtbG7AznRhNyfLRe8HZAiWIpcHzoO7HxhLuBQj9rJ/Ho0ZA==" + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.0.tgz", + "integrity": "sha512-mNcltoe1R8o7STTegSOHdnJNN7s5EUvhoS7ShnTHDyOSd+8H+UdWODq6qSv67PjC8Zc5JRT8+oLAMCr0SIXw7g==" } } }, "@parcel/watcher-android-arm64": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.3.0.tgz", - "integrity": "sha512-f4o9eA3dgk0XRT3XhB0UWpWpLnKgrh1IwNJKJ7UJek7eTYccQ8LR7XUWFKqw6aEq5KUNlCcGvSzKqSX/vtWVVA==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.4.1.tgz", + "integrity": "sha512-LOi/WTbbh3aTn2RYddrO8pnapixAziFl6SMxHM69r3tvdSm94JtCenaKgk1GRg5FJ5wpMCpHeW+7yqPlvZv7kg==", "optional": true }, "@parcel/watcher-darwin-arm64": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.3.0.tgz", - "integrity": "sha512-mKY+oijI4ahBMc/GygVGvEdOq0L4DxhYgwQqYAz/7yPzuGi79oXrZG52WdpGA1wLBPrYb0T8uBaGFo7I6rvSKw==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.4.1.tgz", + "integrity": "sha512-ln41eihm5YXIY043vBrrHfn94SIBlqOWmoROhsMVTSXGh0QahKGy77tfEywQ7v3NywyxBBkGIfrWRHm0hsKtzA==", "optional": true }, "@parcel/watcher-darwin-x64": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.3.0.tgz", - "integrity": "sha512-20oBj8LcEOnLE3mgpy6zuOq8AplPu9NcSSSfyVKgfOhNAc4eF4ob3ldj0xWjGGbOF7Dcy1Tvm6ytvgdjlfUeow==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.4.1.tgz", + "integrity": "sha512-yrw81BRLjjtHyDu7J61oPuSoeYWR3lDElcPGJyOvIXmor6DEo7/G2u1o7I38cwlcoBHQFULqF6nesIX3tsEXMg==", "optional": true }, "@parcel/watcher-freebsd-x64": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.3.0.tgz", - "integrity": "sha512-7LftKlaHunueAEiojhCn+Ef2CTXWsLgTl4hq0pkhkTBFI3ssj2bJXmH2L67mKpiAD5dz66JYk4zS66qzdnIOgw==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.4.1.tgz", + "integrity": "sha512-TJa3Pex/gX3CWIx/Co8k+ykNdDCLx+TuZj3f3h7eOjgpdKM+Mnix37RYsYU4LHhiYJz3DK5nFCCra81p6g050w==", "optional": true }, "@parcel/watcher-linux-arm-glibc": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.3.0.tgz", - "integrity": "sha512-1apPw5cD2xBv1XIHPUlq0cO6iAaEUQ3BcY0ysSyD9Kuyw4MoWm1DV+W9mneWI+1g6OeP6dhikiFE6BlU+AToTQ==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.4.1.tgz", + "integrity": "sha512-4rVYDlsMEYfa537BRXxJ5UF4ddNwnr2/1O4MHM5PjI9cvV2qymvhwZSFgXqbS8YoTk5i/JR0L0JDs69BUn45YA==", "optional": true }, "@parcel/watcher-linux-arm64-glibc": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.3.0.tgz", - "integrity": "sha512-mQ0gBSQEiq1k/MMkgcSB0Ic47UORZBmWoAWlMrTW6nbAGoLZP+h7AtUM7H3oDu34TBFFvjy4JCGP43JlylkTQA==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.4.1.tgz", + "integrity": "sha512-BJ7mH985OADVLpbrzCLgrJ3TOpiZggE9FMblfO65PlOCdG++xJpKUJ0Aol74ZUIYfb8WsRlUdgrZxKkz3zXWYA==", "optional": true }, "@parcel/watcher-linux-arm64-musl": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.3.0.tgz", - "integrity": "sha512-LXZAExpepJew0Gp8ZkJ+xDZaTQjLHv48h0p0Vw2VMFQ8A+RKrAvpFuPVCVwKJCr5SE+zvaG+Etg56qXvTDIedw==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.4.1.tgz", + "integrity": "sha512-p4Xb7JGq3MLgAfYhslU2SjoV9G0kI0Xry0kuxeG/41UfpjHGOhv7UoUDAz/jb1u2elbhazy4rRBL8PegPJFBhA==", "optional": true }, "@parcel/watcher-linux-x64-glibc": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.3.0.tgz", - "integrity": "sha512-P7Wo91lKSeSgMTtG7CnBS6WrA5otr1K7shhSjKHNePVmfBHDoAOHYRXgUmhiNfbcGk0uMCHVcdbfxtuiZCHVow==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.4.1.tgz", + "integrity": "sha512-s9O3fByZ/2pyYDPoLM6zt92yu6P4E39a03zvO0qCHOTjxmt3GHRMLuRZEWhWLASTMSrrnVNWdVI/+pUElJBBBg==", "optional": true }, "@parcel/watcher-linux-x64-musl": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.3.0.tgz", - "integrity": "sha512-+kiRE1JIq8QdxzwoYY+wzBs9YbJ34guBweTK8nlzLKimn5EQ2b2FSC+tAOpq302BuIMjyuUGvBiUhEcLIGMQ5g==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.4.1.tgz", + "integrity": "sha512-L2nZTYR1myLNST0O632g0Dx9LyMNHrn6TOt76sYxWLdff3cB22/GZX2UPtJnaqQPdCRoszoY5rcOj4oMTtp5fQ==", "optional": true }, "@parcel/watcher-wasm": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-wasm/-/watcher-wasm-2.3.0.tgz", - "integrity": "sha512-ejBAX8H0ZGsD8lSICDNyMbSEtPMWgDL0WFCt/0z7hyf5v8Imz4rAM8xY379mBsECkq/Wdqa5WEDLqtjZ+6NxfA==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-wasm/-/watcher-wasm-2.4.1.tgz", + "integrity": "sha512-/ZR0RxqxU/xxDGzbzosMjh4W6NdYFMqq2nvo2b8SLi7rsl/4jkL8S5stIikorNkdR50oVDvqb/3JT05WM+CRRA==", "requires": { "is-glob": "^4.0.3", "micromatch": "^4.0.5", @@ -32541,21 +32228,21 @@ } }, "@parcel/watcher-win32-arm64": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.3.0.tgz", - "integrity": "sha512-35gXCnaz1AqIXpG42evcoP2+sNL62gZTMZne3IackM+6QlfMcJLy3DrjuL6Iks7Czpd3j4xRBzez3ADCj1l7Aw==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.4.1.tgz", + "integrity": "sha512-Uq2BPp5GWhrq/lcuItCHoqxjULU1QYEcyjSO5jqqOK8RNFDBQnenMMx4gAl3v8GiWa59E9+uDM7yZ6LxwUIfRg==", "optional": true }, "@parcel/watcher-win32-ia32": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-ia32/-/watcher-win32-ia32-2.3.0.tgz", - "integrity": "sha512-FJS/IBQHhRpZ6PiCjFt1UAcPr0YmCLHRbTc00IBTrelEjlmmgIVLeOx4MSXzx2HFEy5Jo5YdhGpxCuqCyDJ5ow==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-ia32/-/watcher-win32-ia32-2.4.1.tgz", + "integrity": "sha512-maNRit5QQV2kgHFSYwftmPBxiuK5u4DXjbXx7q6eKjq5dsLXZ4FJiVvlcw35QXzk0KrUecJmuVFbj4uV9oYrcw==", "optional": true }, "@parcel/watcher-win32-x64": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.3.0.tgz", - "integrity": "sha512-dLx+0XRdMnVI62kU3wbXvbIRhLck4aE28bIGKbRGS7BJNt54IIj9+c/Dkqb+7DJEbHUZAX1bwaoM8PqVlHJmCA==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.4.1.tgz", + "integrity": "sha512-+DvS92F9ezicfswqrvIRM2njcYJbd5mb9CUgtrHCHmvn7pPPa+nMDRu1o1bYYz/l5IB2NVGNJWiH7h1E58IF2A==", "optional": true }, "@pmmmwh/react-refresh-webpack-plugin": { @@ -32609,27 +32296,37 @@ "@protobufjs/aspromise": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", - "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==" + "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==", + "dev": true, + "optional": true }, "@protobufjs/base64": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", - "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==", + "dev": true, + "optional": true }, "@protobufjs/codegen": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", - "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==", + "dev": true, + "optional": true }, "@protobufjs/eventemitter": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", - "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==" + "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==", + "dev": true, + "optional": true }, "@protobufjs/fetch": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", + "dev": true, + "optional": true, "requires": { "@protobufjs/aspromise": "^1.1.1", "@protobufjs/inquire": "^1.1.0" @@ -32638,27 +32335,37 @@ "@protobufjs/float": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", - "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==" + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==", + "dev": true, + "optional": true }, "@protobufjs/inquire": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", - "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==" + "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==", + "dev": true, + "optional": true }, "@protobufjs/path": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", - "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==" + "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==", + "dev": true, + "optional": true }, "@protobufjs/pool": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", - "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==" + "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==", + "dev": true, + "optional": true }, "@protobufjs/utf8": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", - "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==" + "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==", + "dev": true, + "optional": true }, "@redux-saga/core": { "version": "1.2.2", @@ -33104,6 +32811,111 @@ "loader-utils": "^2.0.0" } }, + "@swc/core": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.5.5.tgz", + "integrity": "sha512-M8O22EEgdSONLd+7KRrXj8pn+RdAZZ7ISnPjE9KCQQlI0kkFNEquWR+uFdlFxQfwlyCe/Zb6uGXGDvtcov4IMg==", + "dev": true, + "requires": { + "@swc/core-darwin-arm64": "1.5.5", + "@swc/core-darwin-x64": "1.5.5", + "@swc/core-linux-arm-gnueabihf": "1.5.5", + "@swc/core-linux-arm64-gnu": "1.5.5", + "@swc/core-linux-arm64-musl": "1.5.5", + "@swc/core-linux-x64-gnu": "1.5.5", + "@swc/core-linux-x64-musl": "1.5.5", + "@swc/core-win32-arm64-msvc": "1.5.5", + "@swc/core-win32-ia32-msvc": "1.5.5", + "@swc/core-win32-x64-msvc": "1.5.5", + "@swc/counter": "^0.1.2", + "@swc/types": "^0.1.5" + } + }, + "@swc/core-darwin-arm64": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.5.5.tgz", + "integrity": "sha512-Ol5ZwZYdTOZsv2NwjcT/qVVALKzVFeh+IJ4GNarr3P99+38Dkwi81OqCI1o/WaDXQYKAQC/V+CzMbkEuJJfq9Q==", + "dev": true, + "optional": true + }, + "@swc/core-darwin-x64": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.5.5.tgz", + "integrity": "sha512-XHWpKBIPKYLgh5/lV2PYjO84lkzf5JR51kjiloyz2Pa9HIV8tHoAP8bYdJwm4nUp2I7KcEh3pPH0AVu5LpxMKw==", + "dev": true, + "optional": true + }, + "@swc/core-linux-arm-gnueabihf": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.5.5.tgz", + "integrity": "sha512-vtoWNCWAe+CNSqtqIwFnIH48qgPPlUZKoQ4EVFeMM+7/kDi6SeNxoh5TierJs5bKAWxD49VkPvRoWFCk6V62mA==", + "dev": true, + "optional": true + }, + "@swc/core-linux-arm64-gnu": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.5.5.tgz", + "integrity": "sha512-L4l7M78U6h/rCAxId+y5Vu+1KfDRF6dJZtitFcaT293guiUQFwJv8gLxI4Jh5wFtZ0fYd0QaCuvh2Ip79CzGMg==", + "dev": true, + "optional": true + }, + "@swc/core-linux-arm64-musl": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.5.5.tgz", + "integrity": "sha512-DkzJc13ukXa7oJpyn24BjIgsiOybYrc+IxjsQyfNlDrrs1QXP4elStcpkD02SsIuSyHjZV8Hw2HFBMQB3OHPrA==", + "dev": true, + "optional": true + }, + "@swc/core-linux-x64-gnu": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.5.5.tgz", + "integrity": "sha512-kj4ZwWJGeBEUzHrRQP2VudN+kkkYH7OI1dPVDc6kWQx5X4329JeKOas4qY0l7gDVjBbRwN9IbbPI6TIn2KfAug==", + "dev": true, + "optional": true + }, + "@swc/core-linux-x64-musl": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.5.5.tgz", + "integrity": "sha512-6pTorCs4mYhPhYtC4jNOnhGgjNd3DZcRoZ9P0tzXXP69aCbYjvlgNH/NRvAROp9AaVFeZ7a7PmCWb6+Rbe7NKg==", + "dev": true, + "optional": true + }, + "@swc/core-win32-arm64-msvc": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.5.5.tgz", + "integrity": "sha512-o0/9pstmEjwZyrY/bA+mymF0zH7E+GT/XCVqdKeWW9Wn3gTTyWa5MZnrFgI2THQ+AXwdglMB/Zo76ARQPaz/+A==", + "dev": true, + "optional": true + }, + "@swc/core-win32-ia32-msvc": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.5.5.tgz", + "integrity": "sha512-B+nypUwsmCuaH6RtKWgiPCb+ENjxstJPPJeMJvBqlJqyCaIkZzN4M07Ozi3xVv1VG21SRkd6G3xIqRoalrNc0Q==", + "dev": true, + "optional": true + }, + "@swc/core-win32-x64-msvc": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.5.5.tgz", + "integrity": "sha512-ry83ki9ZX0Q+GWGnqc2J618Z+FvKE8Ajn42F8EYi8Wj0q6Jz3mj+pJzgzakk2INm2ldEZ+FaRPipn4ozsZDcBg==", + "dev": true, + "optional": true + }, + "@swc/counter": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@swc/counter/-/counter-0.1.3.tgz", + "integrity": "sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==", + "dev": true + }, + "@swc/types": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/@swc/types/-/types-0.1.6.tgz", + "integrity": "sha512-/JLo/l2JsT/LRd80C3HfbmVpxOAJ11FO2RCEslFrgzLltoP9j8XIbsyDcfCt2WWyX+CM96rBoNM+IToAkFOugg==", + "dev": true, + "requires": { + "@swc/counter": "^0.1.3" + } + }, "@szmarczak/http-timer": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-5.0.1.tgz", @@ -33921,18 +33733,15 @@ "@types/long": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.2.tgz", - "integrity": "sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==" + "integrity": "sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==", + "dev": true, + "optional": true }, "@types/mime": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/@types/mime/-/mime-3.0.1.tgz", "integrity": "sha512-Y4XFY5VJAuw0FgAqPNd6NNoV44jbq9Bz2L7Rh/J6jLTiHBSBJa9fxqQIvkIld4GsoDOcCbvzOUAbLPsSKKg+uA==" }, - "@types/minimatch": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz", - "integrity": "sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==" - }, "@types/node": { "version": "16.18.23", "resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.23.tgz", @@ -34366,9 +34175,9 @@ } }, "@walletconnect/core": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/@walletconnect/core/-/core-2.11.0.tgz", - "integrity": "sha512-2Tjp5BCevI7dbmqo/OrCjX4tqgMqwJNQLlQAlphqPfvwlF9+tIu6pGcVbSN3U9zyXzWIZCeleqEaWUeSeET4Ew==", + "version": "2.11.3", + "resolved": "https://registry.npmjs.org/@walletconnect/core/-/core-2.11.3.tgz", + "integrity": "sha512-/9m4EqiggFUwkQDv5PDWbcTI+yCVnBd/iYW5iIHEkivg2/mnBr2bQz2r/vtPjp19r/ZK62Dx0+UN3U+BWP8ulQ==", "requires": { "@walletconnect/heartbeat": "1.2.1", "@walletconnect/jsonrpc-provider": "1.0.13", @@ -34381,8 +34190,8 @@ "@walletconnect/relay-auth": "^1.0.4", "@walletconnect/safe-json": "^1.0.2", "@walletconnect/time": "^1.0.2", - "@walletconnect/types": "2.11.0", - "@walletconnect/utils": "2.11.0", + "@walletconnect/types": "2.11.3", + "@walletconnect/utils": "2.11.3", "events": "^3.3.0", "isomorphic-unfetch": "3.1.0", "lodash.isequal": "4.5.0", @@ -34545,22 +34354,30 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "version": "7.5.10", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", "requires": {} } } }, "@walletconnect/logger": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@walletconnect/logger/-/logger-2.0.1.tgz", - "integrity": "sha512-SsTKdsgWm+oDTBeNE/zHxxr5eJfZmE9/5yp/Ku+zJtcTAjELb3DXueWkDXmE9h8uHIbJzIb5wj5lPdzyrjT6hQ==", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@walletconnect/logger/-/logger-2.1.2.tgz", + "integrity": "sha512-aAb28I3S6pYXZHQm5ESB+V6rDqIYfsnHaQyzFbwUUBFY4H0OXx/YtTl8lvhUNhMMfb9UxbwEBS253TlXUYJWSw==", "requires": { - "pino": "7.11.0", - "tslib": "1.14.1" + "@walletconnect/safe-json": "^1.0.2", + "pino": "7.11.0" }, "dependencies": { + "@walletconnect/safe-json": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@walletconnect/safe-json/-/safe-json-1.0.2.tgz", + "integrity": "sha512-Ogb7I27kZ3LPC3ibn8ldyUr5544t3/STow9+lzz7Sfo808YD7SBWk7SAsdBFlYgP2zDRy2hS3sKRcuSRM0OTmA==", + "requires": { + "tslib": "1.14.1" + } + }, "tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", @@ -34574,19 +34391,11 @@ "integrity": "sha512-ZtKRio4uCZ1JUF7LIdecmZt7FOLnX72RPSY7aUVu7mj7CSfxDwUn6gBuK6WGtH+NZCldBqDl5DenI5fFSvkKYw==" }, "@walletconnect/relay-api": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@walletconnect/relay-api/-/relay-api-1.0.9.tgz", - "integrity": "sha512-Q3+rylJOqRkO1D9Su0DPE3mmznbAalYapJ9qmzDgK28mYF9alcP3UwG/og5V7l7CFOqzCLi7B8BvcBUrpDj0Rg==", + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/@walletconnect/relay-api/-/relay-api-1.0.10.tgz", + "integrity": "sha512-tqrdd4zU9VBNqUaXXQASaexklv6A54yEyQQEXYOCr+Jz8Ket0dmPBDyg19LVSNUN2cipAghQc45/KVmfFJ0cYw==", "requires": { - "@walletconnect/jsonrpc-types": "^1.0.2", - "tslib": "1.14.1" - }, - "dependencies": { - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - } + "@walletconnect/jsonrpc-types": "^1.0.2" } }, "@walletconnect/relay-auth": { @@ -34623,18 +34432,18 @@ "integrity": "sha512-QJzp/S/86sUAgWY6eh5MKYmSfZaRpIlmCJdi5uG4DJlKkZrHEF7ye7gA+VtbVzvTtpM/gRwO2plQuiooIeXjfg==" }, "@walletconnect/sign-client": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/@walletconnect/sign-client/-/sign-client-2.11.0.tgz", - "integrity": "sha512-H2ukscibBS+6WrzQWh+WyVBqO5z4F5et12JcwobdwgHnJSlqIoZxqnUYYWNCI5rUR5UKsKWaUyto4AE9N5dw4Q==", + "version": "2.11.3", + "resolved": "https://registry.npmjs.org/@walletconnect/sign-client/-/sign-client-2.11.3.tgz", + "integrity": "sha512-JVjLTxN/3NjMXv5zalSGKuSYLRyU2yX6AWEdq17cInlrwODpbWZr6PS1uxMWdH4r90DXBLhdtwDbEq/pfd0BPg==", "requires": { - "@walletconnect/core": "2.11.0", + "@walletconnect/core": "2.11.3", "@walletconnect/events": "^1.0.1", "@walletconnect/heartbeat": "1.2.1", "@walletconnect/jsonrpc-utils": "1.0.8", "@walletconnect/logger": "^2.0.1", "@walletconnect/time": "^1.0.2", - "@walletconnect/types": "2.11.0", - "@walletconnect/utils": "2.11.0", + "@walletconnect/types": "2.11.3", + "@walletconnect/utils": "2.11.3", "events": "^3.3.0" } }, @@ -34654,9 +34463,9 @@ } }, "@walletconnect/types": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-2.11.0.tgz", - "integrity": "sha512-AB5b1lrEbCGHxqS2vqfCkIoODieH+ZAUp9rA1O2ftrhnqDJiJK983Df87JhYhECsQUBHHfALphA8ydER0q+9sw==", + "version": "2.11.3", + "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-2.11.3.tgz", + "integrity": "sha512-JY4wA9MVosDW9dcJMTpnwliste0aJGJ1X6Q4ulLsQsgWRSEBRkLila0oUT01TDBW9Yq8uUp7uFOUTaKx6KWVAg==", "requires": { "@walletconnect/events": "^1.0.1", "@walletconnect/heartbeat": "1.2.1", @@ -34692,9 +34501,9 @@ } }, "@walletconnect/utils": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-2.11.0.tgz", - "integrity": "sha512-hxkHPlTlDQILHfIKXlmzgNJau/YcSBC3XHUSuZuKZbNEw3duFT6h6pm3HT/1+j1a22IG05WDsNBuTCRkwss+BQ==", + "version": "2.11.3", + "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-2.11.3.tgz", + "integrity": "sha512-jsdNkrl/IcTkzWFn0S2d0urzBXg6RxVJtUYRsUx3qI3wzOGiABP9ui3yiZ3SgZOv9aRe62PaNp1qpbYZ+zPb8Q==", "requires": { "@stablelib/chacha20poly1305": "1.0.1", "@stablelib/hkdf": "1.0.1", @@ -34704,7 +34513,7 @@ "@walletconnect/relay-api": "^1.0.9", "@walletconnect/safe-json": "^1.0.2", "@walletconnect/time": "^1.0.2", - "@walletconnect/types": "2.11.0", + "@walletconnect/types": "2.11.3", "@walletconnect/window-getters": "^1.0.1", "@walletconnect/window-metadata": "^1.0.1", "detect-browser": "5.3.0", @@ -34966,9 +34775,9 @@ } }, "acorn": { - "version": "8.11.2", - "resolved": "https://mirrors.cloud.tencent.com/npm/acorn/-/acorn-8.11.2.tgz", - "integrity": "sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==" + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==" }, "acorn-globals": { "version": "6.0.0", @@ -35131,11 +34940,6 @@ "color-convert": "^2.0.1" } }, - "any-signal": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/any-signal/-/any-signal-3.0.1.tgz", - "integrity": "sha512-xgZgJtKEa9YmDqXodIgl7Fl1C8yNXr8w6gXjqK3LW4GcEiYT+6AQfJSE/8SPsEpLLmcvbv8YU+qet94UewHxqg==" - }, "anymatch": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", @@ -35521,6 +35325,11 @@ "retry": "0.13.1" } }, + "async-sema": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/async-sema/-/async-sema-3.1.1.tgz", + "integrity": "sha512-tLRNUXati5MFePdAk8dw7Qt7DpxPB60ofAgn8WRhW6a2rcimZnYBP9oxHiv0OHy+Wz7kPMG+t4LGdt31+4EmGg==" + }, "asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", @@ -35830,6 +35639,11 @@ "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==" }, + "binary-parser": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/binary-parser/-/binary-parser-2.2.1.tgz", + "integrity": "sha512-5ATpz/uPDgq5GgEDxTB4ouXCde7q2lqAQlSdBRQVl/AJnxmQmhIfyxJx+0MGu//D5rHQifkfGbWWlaysG0o9NA==" + }, "bip32": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/bip32/-/bip32-3.1.0.tgz", @@ -35866,14 +35680,6 @@ "resolved": "https://registry.npmjs.org/blakejs/-/blakejs-1.2.1.tgz", "integrity": "sha512-QXUSXI3QVc/gJME0dBpXrag1kbzOqCjCX8/b54ntNyW6sjtoqxqRk3LTmXzaJoh71zMsDCjM+47jS7XiwN/+fQ==" }, - "blob-to-it": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/blob-to-it/-/blob-to-it-1.0.4.tgz", - "integrity": "sha512-iCmk0W4NdbrWgRRuxOriU8aM5ijeVLI61Zulsmg/lUHNr7pYjoj+U77opLefNagevtrrbMt3JQ5Qip7ar178kA==", - "requires": { - "browser-readablestream-to-it": "^1.0.3" - } - }, "bluebird": { "version": "3.7.2", "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", @@ -36021,11 +35827,6 @@ "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==" }, - "browser-readablestream-to-it": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/browser-readablestream-to-it/-/browser-readablestream-to-it-1.0.3.tgz", - "integrity": "sha512-+12sHB+Br8HIh6VAMVEG5r3UXCyESIgDW7kzk3BjIXa43DVqVwL7GC5TW3jeh+72dtcH99pPVpw0X8i0jt+/kw==" - }, "browser-stdout": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", @@ -36353,11 +36154,6 @@ "nofilter": "^1.0.4" } }, - "cborg": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/cborg/-/cborg-1.10.2.tgz", - "integrity": "sha512-b3tFPA9pUr2zCUiCfRd2+wok2/LBSNUMKOuRRok+WlvvAgEt/PlbgPTsZUcwCOs53IJvLgTp0eotwtosE6njug==" - }, "chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", @@ -36544,9 +36340,9 @@ } }, "citty": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/citty/-/citty-0.1.5.tgz", - "integrity": "sha512-AS7n5NSc0OQVMV9v6wt3ByujNIrne0/cTjiC2MYqhvao57VNfiuVksTSr2p17nVOhEr2KtqiAkGwHcgMC/qUuQ==", + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/citty/-/citty-0.1.6.tgz", + "integrity": "sha512-tskPPKEs8D2KPafUypv2gxwJP8h/OaJmC82QQGGDQcHvXX43xF2VDACcJVmZ0EuSxkpO9Kc4MlrA3q0+FG58AQ==", "requires": { "consola": "^3.2.3" } @@ -36718,11 +36514,6 @@ "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz", "integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==" }, - "cluster-key-slot": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/cluster-key-slot/-/cluster-key-slot-1.1.2.tgz", - "integrity": "sha512-RMr0FhtfXemyinomL4hrWcYJxmX6deFdCxpJzhDttxgO1+bcCnkk+9drydLVDmAMG7NE6aN/fl4F7ucU/90gAA==" - }, "co": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", @@ -36970,6 +36761,11 @@ } } }, + "confbox": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.7.tgz", + "integrity": "sha512-uJcB/FKZtBMCJpK8MQji6bJHgu1tixKPxRLeGkNzBoOZzpnZUJm0jm2/sBDWcuBx1dYgxV4JU+g5hmNxCyAmdA==" + }, "confusing-browser-globals": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz", @@ -37040,9 +36836,9 @@ "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==" }, "cookie-es": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/cookie-es/-/cookie-es-1.0.0.tgz", - "integrity": "sha512-mWYvfOLrfEc996hlKcdABeIiPHUPC6DM2QYZdGGOvhOTbA3tjm2eBwqlJpoFdjC89NI4Qt6h0Pu06Mp+1Pj5OQ==" + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/cookie-es/-/cookie-es-1.1.0.tgz", + "integrity": "sha512-L2rLOcK0wzWSfSDA33YR+PUHDG10a8px7rUHKWbGLP4YfbsMed2KFUw5fczvDPbT98DDe3LEzviswl810apTEw==" }, "cookie-signature": { "version": "1.0.6", @@ -37183,6 +36979,12 @@ "which": "^2.0.1" } }, + "crossws": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/crossws/-/crossws-0.2.4.tgz", + "integrity": "sha512-DAxroI2uSOgUKLz00NX6A8U/8EE3SZHmIND+10jkVSaypvyt57J5JEOxAQOL6lQxyzi/wZbTIwssU1uy69h5Vg==", + "requires": {} + }, "crypto-browserify": { "version": "3.12.0", "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz", @@ -37202,9 +37004,10 @@ } }, "crypto-js": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.1.1.tgz", - "integrity": "sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw==" + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.2.0.tgz", + "integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==", + "dev": true }, "crypto-random-string": { "version": "2.0.0", @@ -37528,26 +37331,6 @@ "type": "^1.0.1" } }, - "dag-jose": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/dag-jose/-/dag-jose-1.0.0.tgz", - "integrity": "sha512-U0b/YsIPBp6YZNTFrVjwLZAlY3qGRxZTIEcM/CcQmrVrCWq9MWQq9pheXVSPLIhF4SNwzp2SikPva4/BIrJY+g==", - "requires": { - "@ipld/dag-cbor": "^6.0.3", - "multiformats": "^9.0.2" - }, - "dependencies": { - "@ipld/dag-cbor": { - "version": "6.0.15", - "resolved": "https://registry.npmjs.org/@ipld/dag-cbor/-/dag-cbor-6.0.15.tgz", - "integrity": "sha512-Vm3VTSTwlmGV92a3C5aeY+r2A18zbH2amehNhsX8PBa3muXICaWrN8Uri85A5hLH7D7ElhE8PdjxD6kNqUmTZA==", - "requires": { - "cborg": "^1.5.4", - "multiformats": "^9.5.4" - } - } - } - }, "damerau-levenshtein": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", @@ -37831,11 +37614,6 @@ "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==" }, - "denque": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/denque/-/denque-2.1.0.tgz", - "integrity": "sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==" - }, "depd": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", @@ -37851,9 +37629,9 @@ } }, "destr": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/destr/-/destr-2.0.2.tgz", - "integrity": "sha512-65AlobnZMiCET00KaFFjUefxDX0khFA/E4myqZ7a6Sq1yZtR8+FVIvilVX66vF2uobSumxooYZChiRPCKNqhmg==" + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/destr/-/destr-2.0.3.tgz", + "integrity": "sha512-2N3BOUU4gYMpTP24s5rF5iP7BDr7uNTCs4ozw3kf/eKfvWSIu93GEBi5m427YoyJoeOzQ5smuu4nNAPGb8idSQ==" }, "destroy": { "version": "1.2.0", @@ -37970,16 +37748,6 @@ "resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz", "integrity": "sha512-z+paD6YUQsk+AbGCEM4PrOXSss5gd66QfcVBFTKR/HpFL9jCqikS94HYwKww6fQyO7IxrIIyUu+g0Ka9tUS2Cg==" }, - "dns-over-http-resolver": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/dns-over-http-resolver/-/dns-over-http-resolver-1.2.3.tgz", - "integrity": "sha512-miDiVSI6KSNbi4SVifzO/reD8rMnxgrlnkrlkugOLQpWQTe2qMdHsZp5DmfKjxNE+/T3VAAYLQUZMv9SMr6+AA==", - "requires": { - "debug": "^4.3.1", - "native-fetch": "^3.0.0", - "receptacle": "^1.3.2" - } - }, "dns-packet": { "version": "5.4.0", "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-5.4.0.tgz", @@ -38122,14 +37890,14 @@ "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==" }, "duplexify": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-4.1.2.tgz", - "integrity": "sha512-fz3OjcNCHmRP12MJoZMPglx8m4rrFP8rovnk4vT8Fs+aonZoCwGg10dSsQsfP/E62eZcPTMSMP6686fu9Qlqtw==", + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-4.1.3.tgz", + "integrity": "sha512-M3BmBhwJRZsSx38lZyhE53Csddgzl5R7xGJNk7CVddZD6CcmwMCH8J+7AprIrQKH7TonKxaCjcv27Qmf+sQ+oA==", "requires": { "end-of-stream": "^1.4.1", "inherits": "^2.0.3", "readable-stream": "^3.1.1", - "stream-shift": "^1.0.0" + "stream-shift": "^1.0.2" } }, "ecc-jsbn": { @@ -38155,14 +37923,6 @@ "jake": "^10.8.5" } }, - "electron-fetch": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/electron-fetch/-/electron-fetch-1.9.1.tgz", - "integrity": "sha512-M9qw6oUILGVrcENMSRRefE1MbHPIz0h79EKIeJWK9v563aT9Qkh8aEHPO1H5vi970wPirNY+jO9OpFoLiMsMGA==", - "requires": { - "encoding": "^0.1.13" - } - }, "electron-to-chromium": { "version": "1.4.325", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.325.tgz", @@ -38218,6 +37978,8 @@ "version": "0.1.13", "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz", "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==", + "optional": true, + "peer": true, "requires": { "iconv-lite": "^0.6.2" } @@ -38318,11 +38080,6 @@ "dev": true, "optional": true }, - "err-code": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/err-code/-/err-code-3.0.1.tgz", - "integrity": "sha512-GiaH0KJUewYok+eeY05IIgjtAe4Yltygk9Wqp1V5yVWLdhf0hYZchRjNIT9bb0mSwRcIusT3cx7PJUf3zEIfUA==" - }, "errno": { "version": "0.1.8", "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.8.tgz", @@ -39400,11 +39157,6 @@ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" }, - "fast-fifo": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.0.tgz", - "integrity": "sha512-IgfweLvEpwyA4WgiQe9Nx6VV2QkML2NkvZnk1oKnIzXgXdWxuhF7zw4DvLTPZJn6PIUneiAXPF24QmoEqHTjyw==" - }, "fast-glob": { "version": "3.2.12", "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", @@ -39438,9 +39190,9 @@ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" }, "fast-redact": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/fast-redact/-/fast-redact-3.3.0.tgz", - "integrity": "sha512-6T5V1QK1u4oF+ATxs1lWUmlEk6P2T9HqJG3e2DnHOdVgZy2rFJBoEnrIedcTXlkAHU/zKC+7KETJ+KGGKwxgMQ==" + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/fast-redact/-/fast-redact-3.5.0.tgz", + "integrity": "sha512-dwsoQlS7h9hMeYUq1W++23NDcBLV4KqONnITDV9DjfS3q1SgDGVrBdvvTLUotWtPSD7asWDV9/CmsZPy8Hf70A==" }, "fast-url-parser": { "version": "1.1.3", @@ -39496,7 +39248,8 @@ "fetch-retry": { "version": "5.0.6", "resolved": "https://registry.npmjs.org/fetch-retry/-/fetch-retry-5.0.6.tgz", - "integrity": "sha512-3yurQZ2hD9VISAhJJP9bpYFNQrHHBXE2JxxjY5aLEcDi46RmAzJE2OC9FAde0yis5ElW0jTTzs0zfg/Cca4XqQ==" + "integrity": "sha512-3yurQZ2hD9VISAhJJP9bpYFNQrHHBXE2JxxjY5aLEcDi46RmAzJE2OC9FAde0yis5ElW0jTTzs0zfg/Cca4XqQ==", + "dev": true }, "file-entry-cache": { "version": "6.0.1", @@ -40285,11 +40038,6 @@ "has-symbols": "^1.0.3" } }, - "get-iterator": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/get-iterator/-/get-iterator-1.0.2.tgz", - "integrity": "sha512-v+dm9bNVfOYsY1OrhaCrmyOcYoSeVvbt+hHZ0Au+T+p1y+0Uyj9aMaGIeUTT6xdpRbWzDeYKvfOslPhggQMcsg==" - }, "get-own-enumerable-property-symbols": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz", @@ -40483,18 +40231,20 @@ } }, "h3": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/h3/-/h3-1.10.0.tgz", - "integrity": "sha512-Tw1kcIC+AeimwRmviiObaD5EB430Yt+lTgOxLJxNr96Vd/fGRu04EF7aKfOAcpwKCI+U2JlbxOLhycD86p3Ciw==", + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/h3/-/h3-1.11.1.tgz", + "integrity": "sha512-AbaH6IDnZN6nmbnJOH72y3c5Wwh9P97soSVdGSBbcDACRdkC0FEWf25pzx4f/NuOCK6quHmW18yF2Wx+G4Zi1A==", "requires": { "cookie-es": "^1.0.0", - "defu": "^6.1.3", - "destr": "^2.0.2", + "crossws": "^0.2.2", + "defu": "^6.1.4", + "destr": "^2.0.3", "iron-webcrypto": "^1.0.0", + "ohash": "^1.1.3", "radix3": "^1.1.0", - "ufo": "^1.3.2", + "ufo": "^1.4.0", "uncrypto": "^0.1.3", - "unenv": "^1.8.0" + "unenv": "^1.9.0" } }, "handle-thing": { @@ -41010,21 +40760,6 @@ "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" }, - "interface-datastore": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/interface-datastore/-/interface-datastore-6.1.1.tgz", - "integrity": "sha512-AmCS+9CT34pp2u0QQVXjKztkuq3y5T+BIciuiHDDtDZucZD8VudosnSdUyXJV6IsRkN5jc4RFDhCk1O6Q3Gxjg==", - "requires": { - "interface-store": "^2.0.2", - "nanoid": "^3.0.2", - "uint8arrays": "^3.0.0" - } - }, - "interface-store": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/interface-store/-/interface-store-2.0.2.tgz", - "integrity": "sha512-rScRlhDcz6k199EkHqT8NpM87ebN89ICOzILoBHgaG36/WX50N32BnU/kpZgCGPLhARRAWUUX5/cyaIjt7Kipg==" - }, "internal-slot": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", @@ -41035,142 +40770,15 @@ "side-channel": "^1.0.4" } }, - "ioredis": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ioredis/-/ioredis-5.3.2.tgz", - "integrity": "sha512-1DKMMzlIHM02eBBVOFQ1+AolGjs6+xEcM4PDL7NqOS6szq7H9jSaEkIUH6/a5Hl241LzW6JLSiAbNvTQjUupUA==", - "requires": { - "@ioredis/commands": "^1.1.1", - "cluster-key-slot": "^1.1.0", - "debug": "^4.3.4", - "denque": "^2.1.0", - "lodash.defaults": "^4.2.0", - "lodash.isarguments": "^3.1.0", - "redis-errors": "^1.2.0", - "redis-parser": "^3.0.0", - "standard-as-callback": "^2.1.0" - } - }, - "ip-regex": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-4.3.0.tgz", - "integrity": "sha512-B9ZWJxHHOHUhUjCPrMpLD4xEq35bUTClHM1S6CBU5ixQnkZmwipwgc96vAd7AAGM9TGHvJR+Uss+/Ak6UphK+Q==" - }, "ipaddr.js": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==" }, - "ipfs-core-types": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/ipfs-core-types/-/ipfs-core-types-0.10.3.tgz", - "integrity": "sha512-GNid2lRBjR5qgScCglgk7w9Hk3TZAwPHQXxOLQx72wgyc0jF2U5NXRoKW0GRvX8NPbHmsrFszForIqxd23I1Gw==", - "requires": { - "@ipld/dag-pb": "^2.1.3", - "interface-datastore": "^6.0.2", - "ipfs-unixfs": "^6.0.3", - "multiaddr": "^10.0.0", - "multiformats": "^9.5.1" - } - }, - "ipfs-core-utils": { - "version": "0.14.3", - "resolved": "https://registry.npmjs.org/ipfs-core-utils/-/ipfs-core-utils-0.14.3.tgz", - "integrity": "sha512-aBkewVhgAj3NWXPwu6imj0wADGiGVZmJzqKzODOJsibDjkx6FGdMv8kvvqtLnK8LS/dvSk9yk32IDtuDyYoV7Q==", - "requires": { - "any-signal": "^3.0.0", - "blob-to-it": "^1.0.1", - "browser-readablestream-to-it": "^1.0.1", - "debug": "^4.1.1", - "err-code": "^3.0.1", - "ipfs-core-types": "^0.10.3", - "ipfs-unixfs": "^6.0.3", - "ipfs-utils": "^9.0.6", - "it-all": "^1.0.4", - "it-map": "^1.0.4", - "it-peekable": "^1.0.2", - "it-to-stream": "^1.0.0", - "merge-options": "^3.0.4", - "multiaddr": "^10.0.0", - "multiaddr-to-uri": "^8.0.0", - "multiformats": "^9.5.1", - "nanoid": "^3.1.23", - "parse-duration": "^1.0.0", - "timeout-abort-controller": "^3.0.0", - "uint8arrays": "^3.0.0" - } - }, - "ipfs-http-client": { - "version": "56.0.3", - "resolved": "https://registry.npmjs.org/ipfs-http-client/-/ipfs-http-client-56.0.3.tgz", - "integrity": "sha512-E3L5ylVl6BjyRUsNehvfuRBYp1hj8vQ8in4zskVPMNzXs6JiCFUbif5a6BtcAlSK4xPQyJCeLNNAWLUeFQTLNA==", - "requires": { - "@ipld/dag-cbor": "^7.0.0", - "@ipld/dag-json": "^8.0.1", - "@ipld/dag-pb": "^2.1.3", - "any-signal": "^3.0.0", - "dag-jose": "^1.0.0", - "debug": "^4.1.1", - "err-code": "^3.0.1", - "ipfs-core-types": "^0.10.3", - "ipfs-core-utils": "^0.14.3", - "ipfs-utils": "^9.0.6", - "it-first": "^1.0.6", - "it-last": "^1.0.4", - "merge-options": "^3.0.4", - "multiaddr": "^10.0.0", - "multiformats": "^9.5.1", - "parse-duration": "^1.0.0", - "stream-to-it": "^0.2.2", - "uint8arrays": "^3.0.0" - } - }, - "ipfs-unixfs": { - "version": "6.0.9", - "resolved": "https://registry.npmjs.org/ipfs-unixfs/-/ipfs-unixfs-6.0.9.tgz", - "integrity": "sha512-0DQ7p0/9dRB6XCb0mVCTli33GzIzSVx5udpJuVM47tGcD+W+Bl4LsnoLswd3ggNnNEakMv1FdoFITiEnchXDqQ==", - "requires": { - "err-code": "^3.0.1", - "protobufjs": "^6.10.2" - } - }, - "ipfs-utils": { - "version": "9.0.14", - "resolved": "https://registry.npmjs.org/ipfs-utils/-/ipfs-utils-9.0.14.tgz", - "integrity": "sha512-zIaiEGX18QATxgaS0/EOQNoo33W0islREABAcxXE8n7y2MGAlB+hdsxXn4J0hGZge8IqVQhW8sWIb+oJz2yEvg==", - "requires": { - "any-signal": "^3.0.0", - "browser-readablestream-to-it": "^1.0.0", - "buffer": "^6.0.1", - "electron-fetch": "^1.7.2", - "err-code": "^3.0.1", - "is-electron": "^2.2.0", - "iso-url": "^1.1.5", - "it-all": "^1.0.4", - "it-glob": "^1.0.1", - "it-to-stream": "^1.0.0", - "merge-options": "^3.0.4", - "nanoid": "^3.1.20", - "native-fetch": "^3.0.0", - "node-fetch": "^2.6.8", - "react-native-fetch-api": "^3.0.0", - "stream-to-it": "^0.2.2" - }, - "dependencies": { - "node-fetch": { - "version": "2.6.12", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.12.tgz", - "integrity": "sha512-C/fGU2E8ToujUivIO0H+tpQ6HWo4eEmchoPIoXtxCrVghxdKq+QOHqEZW7tuP3KlV3bC8FRMO5nMCC7Zm1VP6g==", - "requires": { - "whatwg-url": "^5.0.0" - } - } - } - }, "iron-webcrypto": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/iron-webcrypto/-/iron-webcrypto-1.0.0.tgz", - "integrity": "sha512-anOK1Mktt8U1Xi7fCM3RELTuYbnFikQY5VtrDj7kPgpejV7d43tWKhzgioO0zpkazLEL/j/iayRqnJhrGfqUsg==" + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/iron-webcrypto/-/iron-webcrypto-1.2.1.tgz", + "integrity": "sha512-feOM6FaSr6rEABp/eDfVseKyTMDt+KGpeB35SkVn9Tyn0CqvVsY3EwI0v5i8nMHyJnzCIQf7nsy3p41TPkJZhg==" }, "is-arguments": { "version": "1.1.1", @@ -41254,11 +40862,6 @@ "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==" }, - "is-electron": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/is-electron/-/is-electron-2.2.2.tgz", - "integrity": "sha512-FO/Rhvz5tuw4MCWkpMzHFKWD2LsfHzIb7i6MdPYZ/KW7AlxawyLkqdy+jPZP1WubqEADE3O4FUENlJHDfQASRg==" - }, "is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", @@ -41323,14 +40926,6 @@ } } }, - "is-ip": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/is-ip/-/is-ip-3.1.0.tgz", - "integrity": "sha512-35vd5necO7IitFPjd/YBeqwWnyDWbuLH9ZXQdMfDA8TEo7pv5X8yfrvVO3xbJbLUlERCMvf6X0hTUamQxCYJ9Q==", - "requires": { - "ip-regex": "^4.0.0" - } - }, "is-lower-case": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/is-lower-case/-/is-lower-case-1.1.3.tgz", @@ -41541,11 +41136,6 @@ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" }, - "iso-url": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/iso-url/-/iso-url-1.2.1.tgz", - "integrity": "sha512-9JPDgCN4B7QPkLtYAAOrEuAWvP9rWvR5offAr0/SeF046wIkglqH3VXgYYP6NcsKslH80UIVgmPqNe3j7tG2ng==" - }, "isomorphic-unfetch": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/isomorphic-unfetch/-/isomorphic-unfetch-3.1.0.tgz", @@ -41615,53 +41205,6 @@ "istanbul-lib-report": "^3.0.0" } }, - "it-all": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/it-all/-/it-all-1.0.6.tgz", - "integrity": "sha512-3cmCc6Heqe3uWi3CVM/k51fa/XbMFpQVzFoDsV0IZNHSQDyAXl3c4MjHkFX5kF3922OGj7Myv1nSEUgRtcuM1A==" - }, - "it-first": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/it-first/-/it-first-1.0.7.tgz", - "integrity": "sha512-nvJKZoBpZD/6Rtde6FXqwDqDZGF1sCADmr2Zoc0hZsIvnE449gRFnGctxDf09Bzc/FWnHXAdaHVIetY6lrE0/g==" - }, - "it-glob": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/it-glob/-/it-glob-1.0.2.tgz", - "integrity": "sha512-Ch2Dzhw4URfB9L/0ZHyY+uqOnKvBNeS/SMcRiPmJfpHiM0TsUZn+GkpcZxAoF3dJVdPm/PuIk3A4wlV7SUo23Q==", - "requires": { - "@types/minimatch": "^3.0.4", - "minimatch": "^3.0.4" - } - }, - "it-last": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/it-last/-/it-last-1.0.6.tgz", - "integrity": "sha512-aFGeibeiX/lM4bX3JY0OkVCFkAw8+n9lkukkLNivbJRvNz8lI3YXv5xcqhFUV2lDJiraEK3OXRDbGuevnnR67Q==" - }, - "it-map": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/it-map/-/it-map-1.0.6.tgz", - "integrity": "sha512-XT4/RM6UHIFG9IobGlQPFQUrlEKkU4eBUFG3qhWhfAdh1JfF2x11ShCrKCdmZ0OiZppPfoLuzcfA4cey6q3UAQ==" - }, - "it-peekable": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/it-peekable/-/it-peekable-1.0.3.tgz", - "integrity": "sha512-5+8zemFS+wSfIkSZyf0Zh5kNN+iGyccN02914BY4w/Dj+uoFEoPSvj5vaWn8pNZJNSxzjW0zHRxC3LUb2KWJTQ==" - }, - "it-to-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/it-to-stream/-/it-to-stream-1.0.0.tgz", - "integrity": "sha512-pLULMZMAB/+vbdvbZtebC0nWBTbG581lk6w8P7DfIIIKUfa8FbY7Oi0FxZcFPbxvISs7A9E+cMpLDBc1XhpAOA==", - "requires": { - "buffer": "^6.0.3", - "fast-fifo": "^1.0.0", - "get-iterator": "^1.0.2", - "p-defer": "^3.0.0", - "p-fifo": "^1.0.0", - "readable-stream": "^3.6.0" - } - }, "jake": { "version": "10.8.5", "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.5.tgz", @@ -42826,9 +42369,9 @@ } }, "jiti": { - "version": "1.21.0", - "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.0.tgz", - "integrity": "sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q==" + "version": "1.21.6", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.6.tgz", + "integrity": "sha512-2yTgeWTWzMWkHu6Jp9NKgePDaYHbntiwvYuuJLbbN9vl7DC9DvXKOB2BC3ZZ92D3cvV/aflH0osDfwpHepQ53w==" }, "js-sdsl": { "version": "4.3.0", @@ -43001,11 +42544,6 @@ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==" }, - "jsonc-parser": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.0.tgz", - "integrity": "sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==" - }, "jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -43452,25 +42990,26 @@ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==" }, "listhen": { - "version": "1.5.6", - "resolved": "https://registry.npmjs.org/listhen/-/listhen-1.5.6.tgz", - "integrity": "sha512-gTpEJhT5L85L0bFgmu+Boqu5rP4DwDtEb4Exq5gdQUxWRwx4jbzdInZkmyLONo5EwIcQB0k7ZpWlpCDPdL77EQ==", + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/listhen/-/listhen-1.7.2.tgz", + "integrity": "sha512-7/HamOm5YD9Wb7CFgAZkKgVPA96WwhcTQoqtm2VTZGVbVVn3IWKRBTgrU7cchA3Q8k9iCsG8Osoi9GX4JsGM9g==", "requires": { - "@parcel/watcher": "^2.3.0", - "@parcel/watcher-wasm": "2.3.0", - "citty": "^0.1.5", + "@parcel/watcher": "^2.4.1", + "@parcel/watcher-wasm": "^2.4.1", + "citty": "^0.1.6", "clipboardy": "^4.0.0", "consola": "^3.2.3", + "crossws": "^0.2.0", "defu": "^6.1.4", "get-port-please": "^3.1.2", - "h3": "^1.10.0", + "h3": "^1.10.2", "http-shutdown": "^1.2.2", "jiti": "^1.21.0", - "mlly": "^1.4.2", + "mlly": "^1.6.1", "node-forge": "^1.3.1", - "pathe": "^1.1.1", + "pathe": "^1.1.2", "std-env": "^3.7.0", - "ufo": "^1.3.2", + "ufo": "^1.4.0", "untun": "^0.1.3", "uqr": "^0.1.2" }, @@ -43530,9 +43069,9 @@ "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==" }, "npm-run-path": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.2.0.tgz", - "integrity": "sha512-W4/tgAXFqFA0iL7fk0+uQ3g7wkL8xJmx3XdK0VGb4cHW//eZTtKGvFBBoRKVTpY7n6ze4NL9ly7rgXcHufqXKg==", + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz", + "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==", "requires": { "path-key": "^4.0.0" } @@ -43600,16 +43139,6 @@ "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==" }, - "lodash.defaults": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz", - "integrity": "sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ==" - }, - "lodash.isarguments": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", - "integrity": "sha512-chi4NHZlZqZD18a0imDHnZPrDeBbTtVN7GXMwuGdRH9qotxAjYs3aVLKc7zNOG9eddR5Ksd8rvFEBc9SsggPpg==" - }, "lodash.isequal": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", @@ -43655,7 +43184,9 @@ "long": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", - "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" + "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==", + "dev": true, + "optional": true }, "loose-envify": { "version": "1.4.0", @@ -43808,21 +43339,6 @@ "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" }, - "merge-options": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/merge-options/-/merge-options-3.0.4.tgz", - "integrity": "sha512-2Sug1+knBjkaMsMgf1ctR1Ujx+Ayku4EdJN4Z+C2+JzoeF7A3OZ9KM2GY0CpQS51NR61LTurMJrRKPhSs3ZRTQ==", - "requires": { - "is-plain-obj": "^2.1.0" - }, - "dependencies": { - "is-plain-obj": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", - "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==" - } - } - }, "merge-stream": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", @@ -44006,14 +43522,14 @@ } }, "mlly": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.4.2.tgz", - "integrity": "sha512-i/Ykufi2t1EZ6NaPLdfnZk2AX8cs0d+mTzVKuPfqPKPatxLApaBoxJQ9x1/uckXtrS/U5oisPMDkNs0yQTaBRg==", + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.7.1.tgz", + "integrity": "sha512-rrVRZRELyQzrIUAVMHxP97kv+G786pHmOKzuFII8zDYahFBS7qnHh2AlYSl1GAHhaMPCz6/oHjVMcfFYgFYHgA==", "requires": { - "acorn": "^8.10.0", - "pathe": "^1.1.1", - "pkg-types": "^1.0.3", - "ufo": "^1.3.0" + "acorn": "^8.11.3", + "pathe": "^1.1.2", + "pkg-types": "^1.1.1", + "ufo": "^1.5.3" } }, "mocha": { @@ -44207,34 +43723,6 @@ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, - "multiaddr": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/multiaddr/-/multiaddr-10.0.1.tgz", - "integrity": "sha512-G5upNcGzEGuTHkzxezPrrD6CaIHR9uo+7MwqhNVcXTs33IInon4y7nMiGxl2CY5hG7chvYQUQhz5V52/Qe3cbg==", - "requires": { - "dns-over-http-resolver": "^1.2.3", - "err-code": "^3.0.1", - "is-ip": "^3.1.0", - "multiformats": "^9.4.5", - "uint8arrays": "^3.0.0", - "varint": "^6.0.0" - }, - "dependencies": { - "varint": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/varint/-/varint-6.0.0.tgz", - "integrity": "sha512-cXEIW6cfr15lFv563k4GuVuW/fiwjknytD37jIOLSdSWuOI6WnO/oKwmP2FQTU2l01LP8/M5TSAJpzUaGe3uWg==" - } - } - }, - "multiaddr-to-uri": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/multiaddr-to-uri/-/multiaddr-to-uri-8.0.0.tgz", - "integrity": "sha512-dq4p/vsOOUdVEd1J1gl+R2GFrXJQH8yjLtz4hodqdVbieg39LvBOdMQRdQnfbg5LSM/q1BYNVf5CBbwZFFqBgA==", - "requires": { - "multiaddr": "^10.0.0" - } - }, "multibase": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/multibase/-/multibase-0.6.1.tgz", @@ -44349,12 +43837,6 @@ "dev": true, "optional": true }, - "native-fetch": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/native-fetch/-/native-fetch-3.0.0.tgz", - "integrity": "sha512-G3Z7vx0IFb/FQ4JxvtqGABsOTIqRWvgQz6e+erkB+JJD6LrszQtMozEHI4EkmgZQvnGHrpLVzUWk7t4sJCIkVw==", - "requires": {} - }, "natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", @@ -44418,9 +43900,9 @@ } }, "node-fetch-native": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/node-fetch-native/-/node-fetch-native-1.6.1.tgz", - "integrity": "sha512-bW9T/uJDPAJB2YNYEpWzE54U5O3MQidXsOyTfnbKYtTtFexRvGzb1waphBN4ZwP6EcIvYYEOwW0b72BpAqydTw==" + "version": "1.6.4", + "resolved": "https://registry.npmjs.org/node-fetch-native/-/node-fetch-native-1.6.4.tgz", + "integrity": "sha512-IhOigYzAKHd244OC0JIMIUrjzctirCmPkaIfhDeGcEETWof5zKYUW7e7MYvChGWh/4CJeXEgsRyGzuF334rOOQ==" }, "node-forge": { "version": "1.3.1", @@ -44633,15 +44115,20 @@ "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==" }, "ofetch": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/ofetch/-/ofetch-1.3.3.tgz", - "integrity": "sha512-s1ZCMmQWXy4b5K/TW9i/DtiN8Ku+xCiHcjQ6/J/nDdssirrQNOoB165Zu8EqLMA2lln1JUth9a0aW9Ap2ctrUg==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/ofetch/-/ofetch-1.3.4.tgz", + "integrity": "sha512-KLIET85ik3vhEfS+3fDlc/BAZiAp+43QEC/yCo5zkNoY2YaKvNkOaFr/6wCFgFH1kuYQM5pMNi0Tg8koiIemtw==", "requires": { - "destr": "^2.0.1", - "node-fetch-native": "^1.4.0", - "ufo": "^1.3.0" + "destr": "^2.0.3", + "node-fetch-native": "^1.6.3", + "ufo": "^1.5.3" } }, + "ohash": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/ohash/-/ohash-1.1.3.tgz", + "integrity": "sha512-zuHHiGTYTA1sYJ/wZN+t5HKZaH23i4yI1HMwbuXm24Nid7Dv0KcuRlKoNKS9UNfAVSBlnGLcuQrnOKWOZoEGaw==" + }, "on-exit-leak-free": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-0.2.0.tgz", @@ -44686,35 +44173,6 @@ "is-wsl": "^2.2.0" } }, - "openai": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/openai/-/openai-3.3.0.tgz", - "integrity": "sha512-uqxI/Au+aPRnsaQRe8CojU0eCR7I0mBiKjD3sNMzY6DaC1ZVrc85u98mtJW6voDug8fgGN+DIZmTDxTthxb7dQ==", - "requires": { - "axios": "^0.26.0", - "form-data": "^4.0.0" - }, - "dependencies": { - "axios": { - "version": "0.26.1", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.26.1.tgz", - "integrity": "sha512-fPwcX4EvnSHuInCMItEhAGnaSEXRBjtzh9fOtsE6E1G6p7vl7edEeZe11QHf18+6+9gR5PbKV/sGKNaD8YaMeA==", - "requires": { - "follow-redirects": "^1.14.8" - } - }, - "form-data": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", - "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - } - } - } - }, "optionator": { "version": "0.9.1", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", @@ -44746,20 +44204,6 @@ "integrity": "sha512-mlVgR3PGuzlo0MmTdk4cXqXWlwQDLnONTAg6sm62XkMJEiRxN3GL3SffkYvqwonbkJBcrI7Uvv5Zh9yjvn2iUw==", "dev": true }, - "p-defer": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-3.0.0.tgz", - "integrity": "sha512-ugZxsxmtTln604yeYd29EGrNhazN2lywetzpKhfmQjW/VJmhpDmWbiX+h0zL8V91R0UXkhb3KtPmyq9PZw3aYw==" - }, - "p-fifo": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-fifo/-/p-fifo-1.0.0.tgz", - "integrity": "sha512-IjoCxXW48tqdtDFz6fqo5q1UfFVjjVZe8TC1QRflvNUJtNfCUhxOUw6MOVZhDPjqhSzc26xKdugsO17gmzd5+A==", - "requires": { - "fast-fifo": "^1.0.0", - "p-defer": "^3.0.0" - } - }, "p-finally": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", @@ -44848,11 +44292,6 @@ "safe-buffer": "^5.1.1" } }, - "parse-duration": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/parse-duration/-/parse-duration-1.1.0.tgz", - "integrity": "sha512-z6t9dvSJYaPoQq7quMzdEagSFtpGu+utzHqqxmpVWNNZRIXnvqyCvn9XsTdh7c/w0Bqmdz3RB3YnRaKtpRtEXQ==" - }, "parse-headers": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/parse-headers/-/parse-headers-2.0.5.tgz", @@ -44960,9 +44399,9 @@ "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==" }, "pathe": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.1.tgz", - "integrity": "sha512-d+RQGp0MAYTIaDBIMmOfMwz3E+LOZnxx1HZd5R18mmCZY0QBlK0LDZfPc8FW8Ed2DlvsuE6PRjroDY+wg4+j/Q==" + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz", + "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==" }, "pbkdf2": { "version": "3.1.2", @@ -45042,13 +44481,13 @@ } }, "pkg-types": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.0.3.tgz", - "integrity": "sha512-nN7pYi0AQqJnoLPC9eHFQ8AcyaixBUOwvqc5TDnIKCMEE6I0y8P7OKA7fPexsXGCGxQDl/cmrLAp26LhcwxZ4A==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.1.1.tgz", + "integrity": "sha512-ko14TjmDuQJ14zsotODv7dBlwxKhUKQEhuhmbqo1uCi9BB0Z2alo/wAXg6q1dTR5TyuqYyWhjtfe/Tsh+X28jQ==", "requires": { - "jsonc-parser": "^3.2.0", - "mlly": "^1.2.0", - "pathe": "^1.1.0" + "confbox": "^0.1.7", + "mlly": "^1.7.0", + "pathe": "^1.1.2" } }, "pkg-up": { @@ -46111,7 +45550,8 @@ "prettier": { "version": "2.8.7", "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.7.tgz", - "integrity": "sha512-yPngTo3aXUUmyuTjeTUT75txrf+aMh9FiD7q9ZE/i6r0bPb22g4FsE6Y338PQX1bmfy08i9QQCB7/rcUAVntfw==" + "integrity": "sha512-yPngTo3aXUUmyuTjeTUT75txrf+aMh9FiD7q9ZE/i6r0bPb22g4FsE6Y338PQX1bmfy08i9QQCB7/rcUAVntfw==", + "dev": true }, "pretty-bytes": { "version": "5.6.0", @@ -46199,26 +45639,6 @@ } } }, - "protobufjs": { - "version": "6.11.3", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.11.3.tgz", - "integrity": "sha512-xL96WDdCZYdU7Slin569tFX712BxsxslWwAfAhCYjQKGTq7dAU91Lomy6nLLhh/dyGhk/YH4TwTSRxTzhuHyZg==", - "requires": { - "@protobufjs/aspromise": "^1.1.2", - "@protobufjs/base64": "^1.1.2", - "@protobufjs/codegen": "^2.0.4", - "@protobufjs/eventemitter": "^1.1.0", - "@protobufjs/fetch": "^1.1.0", - "@protobufjs/float": "^1.0.2", - "@protobufjs/inquire": "^1.1.0", - "@protobufjs/path": "^1.1.2", - "@protobufjs/pool": "^1.1.0", - "@protobufjs/utf8": "^1.1.0", - "@types/long": "^4.0.1", - "@types/node": ">=13.7.0", - "long": "^4.0.0" - } - }, "proxy-addr": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", @@ -46415,9 +45835,9 @@ "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==" }, "radix3": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/radix3/-/radix3-1.1.0.tgz", - "integrity": "sha512-pNsHDxbGORSvuSScqNJ+3Km6QAVqk8CfsCBIEoDgpqLrkD2f3QM4I7d1ozJJ172OmIcoUcerZaNWqtLkRXTV3A==" + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/radix3/-/radix3-1.1.2.tgz", + "integrity": "sha512-b484I/7b8rDEdSDKckSSBA8knMpcdsXudlE/LNL639wFoHKwLbEkQFZHWEYwDC0wa0FKUcCY+GAF73Z7wxNVFA==" }, "raf": { "version": "3.4.1", @@ -46630,14 +46050,6 @@ "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==" }, - "react-native-fetch-api": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/react-native-fetch-api/-/react-native-fetch-api-3.0.0.tgz", - "integrity": "sha512-g2rtqPjdroaboDKTsJCTlcmtw54E25OjyaunUP0anOZn4Fuo2IKs8BVfe02zVggA/UysbmfSnRJIqtNkAgggNA==", - "requires": { - "p-defer": "^3.0.0" - } - }, "react-redux": { "version": "7.2.9", "resolved": "https://registry.npmjs.org/react-redux/-/react-redux-7.2.9.tgz", @@ -47502,14 +46914,6 @@ "resolved": "https://registry.npmjs.org/real-require/-/real-require-0.1.0.tgz", "integrity": "sha512-r/H9MzAWtrv8aSVjPCMFpDMl5q66GqtmmRkRjpHTsp4zBAa+snZyiQNlMONiUmEJcsnaw0wCauJ2GWODr/aFkg==" }, - "receptacle": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/receptacle/-/receptacle-1.3.2.tgz", - "integrity": "sha512-HrsFvqZZheusncQRiEE7GatOAETrARKV/lnfYicIm8lbvp/JQOdADOfhjBd2DajvoszEyxSM6RlAAIZgEoeu/A==", - "requires": { - "ms": "^2.1.1" - } - }, "recursive-readdir": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/recursive-readdir/-/recursive-readdir-2.2.3.tgz", @@ -47518,19 +46922,6 @@ "minimatch": "^3.0.5" } }, - "redis-errors": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/redis-errors/-/redis-errors-1.2.0.tgz", - "integrity": "sha512-1qny3OExCf0UvUV/5wpYKf2YwPcOqXzkwKKSmKHiE6ZMQs5heeE/c8eXK+PNllPvmjgAbfnsbpkGZWy8cBpn9w==" - }, - "redis-parser": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/redis-parser/-/redis-parser-3.0.0.tgz", - "integrity": "sha512-DJnGAeenTdpMEH6uAJRK/uiyEIH9WVsUmoLwzudwGJUwZPp80PDBWPHXSAGNPwNvIXAbe7MSUB1zQFugFml66A==", - "requires": { - "redis-errors": "^1.0.0" - } - }, "redux": { "version": "3.7.2", "resolved": "https://registry.npmjs.org/redux/-/redux-3.7.2.tgz", @@ -47860,11 +47251,6 @@ "signal-exit": "^3.0.2" } }, - "retimer": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/retimer/-/retimer-3.0.0.tgz", - "integrity": "sha512-WKE0j11Pa0ZJI5YIk0nflGI7SQsfl2ljihVy7ogh7DeQSeYAUi0ubZ/yEueGtDfUPk6GH5LRw1hBdLq4IwUBWA==" - }, "retry": { "version": "0.13.1", "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", @@ -48630,11 +48016,6 @@ "resolved": "https://registry.npmjs.org/stackframe/-/stackframe-1.3.4.tgz", "integrity": "sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw==" }, - "standard-as-callback": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/standard-as-callback/-/standard-as-callback-2.1.0.tgz", - "integrity": "sha512-qoRRSyROncaz1z0mvYqIE4lCd9p2R90i6GxW3uZv5ucSu8tU7B5HXUP1gG8pVZsYNVaXjk8ClXHPttLyxAL48A==" - }, "statuses": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", @@ -48675,17 +48056,9 @@ } }, "stream-shift": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.1.tgz", - "integrity": "sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ==" - }, - "stream-to-it": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/stream-to-it/-/stream-to-it-0.2.4.tgz", - "integrity": "sha512-4vEbkSs83OahpmBybNJXlJd7d6/RxzkkSdT3I0mnGt79Xd2Kk+e1JqbvAvsQfCeKj3aKb0QIWkyK3/n0j506vQ==", - "requires": { - "get-iterator": "^1.0.2" - } + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.3.tgz", + "integrity": "sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==" }, "strict-uri-encode": { "version": "1.1.0", @@ -49422,14 +48795,6 @@ "integrity": "sha512-G7r3AhovYtr5YKOWQkta8RKAPb+J9IsO4uVmzjl8AZwfhs8UcUwTiD6gcJYSgOtzyjvQKrKYn41syHbUWMkafA==", "dev": true }, - "timeout-abort-controller": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/timeout-abort-controller/-/timeout-abort-controller-3.0.0.tgz", - "integrity": "sha512-O3e+2B8BKrQxU2YRyEjC/2yFdb33slI22WRdUaDx6rvysfi9anloNZyR2q0l6LnePo5qH7gSM7uZtvvwZbc2yA==", - "requires": { - "retimer": "^3.0.0" - } - }, "timers-browserify": { "version": "2.0.12", "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.12.tgz", @@ -49834,9 +49199,9 @@ } }, "ufo": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.3.2.tgz", - "integrity": "sha512-o+ORpgGwaYQXgqGDwd+hkS4PuZ3QnmqMMxRuajK/a38L6fTpcE5GPIfrf+L/KemFzfUpeUQc1rRS1iDBozvnFA==" + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.5.3.tgz", + "integrity": "sha512-Y7HYmWaFwPUmkoQCUIAYpKqkOf+SbVj/2fJJZ4RJMCfZp0rTGwRbzQD+HghfnhKOjL9E01okqz+ncJskGYfBNw==" }, "uint8arrays": { "version": "3.1.1", @@ -49940,27 +49305,49 @@ "integrity": "sha512-vRCqFv6UhXpWxZPyGDh/F3ZpNv8/qo7w6iufLpQg9aKnQ71qM4B5KiI7Mia9COcjEhrO9LueHpMYjYzsWH3OIg==" }, "unstorage": { - "version": "1.10.1", - "resolved": "https://registry.npmjs.org/unstorage/-/unstorage-1.10.1.tgz", - "integrity": "sha512-rWQvLRfZNBpF+x8D3/gda5nUCQL2PgXy2jNG4U7/Rc9BGEv9+CAJd0YyGCROUBKs9v49Hg8huw3aih5Bf5TAVw==", + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/unstorage/-/unstorage-1.10.2.tgz", + "integrity": "sha512-cULBcwDqrS8UhlIysUJs2Dk0Mmt8h7B0E6mtR+relW9nZvsf/u4SkAYyNliPiPW7XtFNb5u3IUMkxGxFTTRTgQ==", "requires": { "anymatch": "^3.1.3", - "chokidar": "^3.5.3", - "destr": "^2.0.2", - "h3": "^1.8.2", - "ioredis": "^5.3.2", - "listhen": "^1.5.5", - "lru-cache": "^10.0.2", + "chokidar": "^3.6.0", + "destr": "^2.0.3", + "h3": "^1.11.1", + "listhen": "^1.7.2", + "lru-cache": "^10.2.0", "mri": "^1.2.0", - "node-fetch-native": "^1.4.1", + "node-fetch-native": "^1.6.2", "ofetch": "^1.3.3", - "ufo": "^1.3.1" + "ufo": "^1.4.0" }, "dependencies": { + "chokidar": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "requires": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "fsevents": "~2.3.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + } + }, + "glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "requires": { + "is-glob": "^4.0.1" + } + }, "lru-cache": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.1.0.tgz", - "integrity": "sha512-/1clY/ui8CzjKFyjdvwPWJUYKiFVXG2I2cY0ssG7h4+hwk+XOIX7ZSG9Q7TW8TW3Kp3BUSqgFWBLgL4PJ+Blag==" + "version": "10.2.2", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.2.tgz", + "integrity": "sha512-9hp3Vp2/hFQUiIwKo8XCeFVnrg8Pk3TYNPIR7tJADKi5YfcF7vEaK7avFHTlSy3kOKYaJQaalfEo6YuXdceBOQ==" } } }, diff --git a/package.json b/package.json index 343292e..fe39eb3 100644 --- a/package.json +++ b/package.json @@ -41,11 +41,9 @@ ] }, "dependencies": { - "@alephium/cli": "^0.28.1", - "@alephium/web3": "^0.28.1", - "@alephium/web3-test": "^0.28.1", - "@alephium/web3-wallet": "^0.28.1", - "@alephium/web3-react": "^0.28.1", + "@alephium/web3": "^1.0.1", + "@alephium/web3-wallet": "^1.0.1", + "@alephium/web3-react": "^1.0.1", "@alephium/token-list": "0.0.11", "@material-ui/core": "^4.12.2", "@material-ui/icons": "^4.11.2", @@ -67,6 +65,8 @@ "typescript": "^4.4.2" }, "devDependencies": { + "@alephium/cli": "^1.0.1", + "@alephium/web3-test": "^1.0.1", "@types/elliptic": "^6.4.13", "@types/jest": "^27.5.1", "@types/lodash-es": "^4.17.6", diff --git a/test/integration-tests/TokenPair.test.ts b/test/integration-tests/TokenPair.test.ts index 2c55815..81c221d 100644 --- a/test/integration-tests/TokenPair.test.ts +++ b/test/integration-tests/TokenPair.test.ts @@ -12,7 +12,6 @@ import { Address } from '@alephium/web3' import { - buildProject, contractBalanceOf, randomP2PKHAddress, expandTo18Decimals, @@ -20,7 +19,8 @@ import { minimumLiquidity, sortTokens } from '../unit-tests/fixtures/DexFixture' -import { testAddress, testPrivateKey } from '@alephium/web3-test' +import { testAddress, testPrivateKey, expectAssertionError } from '@alephium/web3-test' +import { getContractByCodeHash } from '../../artifacts/ts/contracts' import { Burn, CollectFee, @@ -260,7 +260,7 @@ class Fixture { async getEventByTxId(txId: string) { const result = await web3.getCurrentNodeProvider().events.getEventsTxIdTxid(txId) - return Contract.fromApiEvent(result.events[0], TokenPair.contract.codeHash, txId) as T + return Contract.fromApiEvent(result.events[0], TokenPair.contract.codeHash, txId, getContractByCodeHash) as T } } @@ -273,8 +273,6 @@ describe('test token pair', () => { let token1Id: string let tokenPair: TokenPairInstance beforeEach(async () => { - await buildProject() - fixture = await Fixture.create() tokenPairFactory = fixture.tokenPairFactory tokenPair = fixture.tokenPair @@ -334,12 +332,10 @@ describe('test token pair', () => { async function test(token0Amount: bigint, token1Amount: bigint) { return await fixture.mint(token0Amount, token1Amount) } - const error = `[API Error] - Execution error when estimating gas for tx script or contract: AssertionFailedWithErrorCode(${tokenPair.address},${TokenPair.consts.ErrorCodes.ReserveOverflow})` - const maxReserve = (1n << 112n) - 1n - await expect(test(maxReserve + 1n, maxReserve)).rejects.toThrowError(error) - await expect(test(maxReserve, maxReserve + 1n)).rejects.toThrowError(error) - await expect(test(maxReserve + 1n, maxReserve + 1n)).rejects.toThrowError(error) + await expectAssertionError(test(maxReserve + 1n, maxReserve), tokenPair.address, Number(TokenPair.consts.ErrorCodes.ReserveOverflow)) + await expectAssertionError(test(maxReserve, maxReserve + 1n), tokenPair.address, Number(TokenPair.consts.ErrorCodes.ReserveOverflow)) + await expectAssertionError(test(maxReserve + 1n, maxReserve + 1n), tokenPair.address, Number(TokenPair.consts.ErrorCodes.ReserveOverflow)) await test(maxReserve, maxReserve) }, 10000) @@ -359,8 +355,7 @@ describe('test token pair', () => { test(`getInputPrice: ${i}`, async () => { const [swapAmount, token0Amount, token1Amount, expectedOutputAmount] = swapTestCase await fixture.mint(token0Amount, token1Amount) - const error = `[API Error] - Execution error when estimating gas for tx script or contract: AssertionFailedWithErrorCode(${tokenPair.address},${TokenPair.consts.ErrorCodes.InvalidK})` - await expect(fixture.swap(swapAmount, 0n, 0n, expectedOutputAmount + 1n)).rejects.toThrowError(error) + await expectAssertionError(fixture.swap(swapAmount, 0n, 0n, expectedOutputAmount + 1n), tokenPair.address, Number(TokenPair.consts.ErrorCodes.InvalidK)) await fixture.swap(swapAmount, 0n, 0n, expectedOutputAmount) }) }) @@ -477,7 +472,7 @@ describe('test token pair', () => { // sleep 1 second to make sure the time elapsed large than 0 await sleep(1000) const swapResult = await fixture.swap(0n, swapAmount, expectedOutputAmount, 0n, sender.address, sender) - expect(swapResult.gasAmount).toEqual(44591) + expect(swapResult.gasAmount).toEqual(44587) }) test('burn', async () => { @@ -598,11 +593,9 @@ describe('test token pair', () => { }, 10000) it('collectFeeManually:error', async () => { - const errorPrefix = '[API Error] - Execution error when estimating gas for tx script or contract: ' const errorCodes = TokenPair.consts.ErrorCodes - const invalidFeeCollectorCaller = `${errorPrefix}AssertionFailedWithErrorCode(${tokenPair.address},${Number(errorCodes.InvalidCaller)})` const invalidFeeCollector = await deployFeeCollector(tokenPairFactory.contractId, tokenPair.contractId) - await expect(collectFeeManually(invalidFeeCollector.contractInstance.contractId)).rejects.toThrowError(invalidFeeCollectorCaller) + await expectAssertionError(collectFeeManually(invalidFeeCollector.contractInstance.contractId), tokenPair.address, Number(errorCodes.InvalidCaller)) await enableFeeCollector(tokenPairFactory, tokenPair) const feeCollectorId = await tokenPair.fetchState().then((s) => s.fields.feeCollectorId) @@ -610,10 +603,7 @@ describe('test token pair', () => { const invalidCaller = PrivateKeyWallet.Random(signer.account.group) await transferAlphTo(invalidCaller.address, ONE_ALPH) - const invalidCallerError0 = `${errorPrefix}AssertionFailedWithErrorCode(${feeCollectorAddress},${Number(errorCodes.InvalidCaller)})` - await expect(collectFeeManually(feeCollectorId, invalidCaller)).rejects.toThrowError(invalidCallerError0) - - const invalidCallerError1 = `${errorPrefix}AssertionFailedWithErrorCode(${tokenPair.address},${Number(errorCodes.InvalidCaller)})` - await expect(collectFeeManually(invalidFeeCollector.contractInstance.contractId)).rejects.toThrowError(invalidCallerError1) + await expectAssertionError(collectFeeManually(feeCollectorId, invalidCaller), feeCollectorAddress, Number(errorCodes.InvalidCaller)) + await expectAssertionError(collectFeeManually(invalidFeeCollector.contractInstance.contractId), tokenPair.address, Number(errorCodes.InvalidCaller)) }) }) diff --git a/test/unit-tests/Math.test.ts b/test/unit-tests/Math.test.ts index 519702a..68fbc28 100644 --- a/test/unit-tests/Math.test.ts +++ b/test/unit-tests/Math.test.ts @@ -1,5 +1,5 @@ import { web3 } from '@alephium/web3' -import { buildProject, randomBigInt } from './fixtures/DexFixture' +import { randomBigInt } from './fixtures/DexFixture' import BigNumber from 'bignumber.js' import { MathTest } from '../../artifacts/ts' @@ -7,7 +7,6 @@ describe('test math', () => { web3.setCurrentNodeProvider('http://127.0.0.1:22973') test('uqdiv', async () => { - await buildProject() const u112Max = (1n << 112n) - 1n for (let i = 0; i < 10; i++) { @@ -21,7 +20,6 @@ describe('test math', () => { }, 10000) test('sqrt', async () => { - await buildProject() const u256Max = (1n << 256n) - 1n for (let i = 0; i < 10; i++) { diff --git a/test/unit-tests/Router.test.ts b/test/unit-tests/Router.test.ts index 42ad27e..85071b5 100644 --- a/test/unit-tests/Router.test.ts +++ b/test/unit-tests/Router.test.ts @@ -2,7 +2,6 @@ import { ContractState, DUST_AMOUNT, web3 } from '@alephium/web3' import { expectAssertionError } from '@alephium/web3-test' import { Router, TokenPairTypes } from '../../artifacts/ts' import { - buildProject, createRouter, createTokenPair, defaultGasFee, @@ -18,8 +17,6 @@ describe('test router', () => { web3.setCurrentNodeProvider('http://127.0.0.1:22973') test('addLiquidity_', async () => { - await buildProject() - const routerFixture = createRouter() async function test( reserve0: bigint, @@ -63,8 +60,6 @@ describe('test router', () => { }, 20000) test('addLiquidity', async () => { - await buildProject() - const sender = randomP2PKHAddress() const routerFixture = createRouter() @@ -127,8 +122,6 @@ describe('test router', () => { }) test('removeLiquidity', async () => { - await buildProject() - const sender = randomP2PKHAddress() const routerFixture = createRouter() @@ -198,8 +191,6 @@ describe('test router', () => { }) test('getReserveInAndReserveOut', async () => { - await buildProject() - const sender = randomP2PKHAddress() const routerFixture = createRouter() const [token0Id, token1Id] = randomTokenPair() @@ -221,8 +212,6 @@ describe('test router', () => { }) test('swapExactTokenForToken', async () => { - await buildProject() - const sender = randomP2PKHAddress() const routerFixture = createRouter() @@ -286,8 +275,6 @@ describe('test router', () => { }) test('swapTokenForExactToken', async () => { - await buildProject() - const sender = randomP2PKHAddress() const routerFixture = createRouter() diff --git a/test/unit-tests/TokenPair.test.ts b/test/unit-tests/TokenPair.test.ts index 3c27804..1ef792f 100644 --- a/test/unit-tests/TokenPair.test.ts +++ b/test/unit-tests/TokenPair.test.ts @@ -1,6 +1,5 @@ import { ALPH_TOKEN_ID, DUST_AMOUNT, ONE_ALPH, sleep, web3 } from '@alephium/web3' import { - buildProject, contractBalanceOf, ContractFixture, createTokenPair, @@ -25,9 +24,7 @@ describe('test token pair', () => { let token0Id: string let token1Id: string let fixture: ContractFixture - beforeEach(async () => { - await buildProject() - + beforeEach(() => { sender = randomP2PKHAddress() const tokenPair = randomTokenPair() token0Id = tokenPair[0] @@ -474,7 +471,7 @@ describe('test token pair', () => { }] }) - expect(swapResult.gasUsed).toEqual(23404) + expect(swapResult.gasUsed).toEqual(23400) }) test('burn', async () => { diff --git a/test/unit-tests/TokenPairFactory.test.ts b/test/unit-tests/TokenPairFactory.test.ts index a4f0d71..3a8705b 100644 --- a/test/unit-tests/TokenPairFactory.test.ts +++ b/test/unit-tests/TokenPairFactory.test.ts @@ -1,7 +1,6 @@ import { Token, web3, subContractId, ALPH_TOKEN_ID } from '@alephium/web3' import { expectAssertionError } from '@alephium/web3-test' import { - buildProject, createTokenPairFactory, getContractState, oneAlph, @@ -15,8 +14,6 @@ describe('test token pair factory', () => { web3.setCurrentNodeProvider('http://127.0.0.1:22973') test('create pair', async () => { - await buildProject() - const payer = randomP2PKHAddress() const fixture = createTokenPairFactory(payer) diff --git a/test/unit-tests/examples/ExampleOracle.test.ts b/test/unit-tests/examples/ExampleOracle.test.ts index cc05b9f..453a8f4 100644 --- a/test/unit-tests/examples/ExampleOracle.test.ts +++ b/test/unit-tests/examples/ExampleOracle.test.ts @@ -2,7 +2,6 @@ import { web3 } from "@alephium/web3" import { expectAssertionError } from "@alephium/web3-test" import { ExampleOracleSimple, ExampleOracleSimpleTypes } from "../../../artifacts/ts" import { - buildProject, ContractFixture, createTokenPair, encodePrice, @@ -18,8 +17,6 @@ describe('test example oracle', () => { web3.setCurrentNodeProvider('http://127.0.0.1:22973') test('update', async () => { - await buildProject() - const sender = randomP2PKHAddress() const [token0Id, token1Id] = randomTokenPair() const token0Amount = expandTo18Decimals(5) diff --git a/test/unit-tests/examples/FeeCollector.test.ts b/test/unit-tests/examples/FeeCollector.test.ts index 131b0ae..2534599 100644 --- a/test/unit-tests/examples/FeeCollector.test.ts +++ b/test/unit-tests/examples/FeeCollector.test.ts @@ -10,7 +10,6 @@ import { TokenPairFactory } from '../../../artifacts/ts' import { - buildProject, contractBalanceOf, ContractFixture, createTokenPair, @@ -61,8 +60,6 @@ describe('test fee collector', () => { let feeCollectorFactoryFixture: ContractFixture let tokenPairFixture: ContractFixture beforeEach(async () => { - await buildProject() - sender = randomP2PKHAddress() const tokenPair = randomTokenPair() token0Id = tokenPair[0] diff --git a/test/unit-tests/examples/FullMath.test.ts b/test/unit-tests/examples/FullMath.test.ts index 2786e46..9911292 100644 --- a/test/unit-tests/examples/FullMath.test.ts +++ b/test/unit-tests/examples/FullMath.test.ts @@ -1,16 +1,12 @@ import { web3 } from '@alephium/web3' import { FullMathTest } from '../../../artifacts/ts' -import { buildProject, randomBigInt } from '../fixtures/DexFixture' +import { randomBigInt } from '../fixtures/DexFixture' import { expectAssertionError, randomContractAddress } from '@alephium/web3-test' import { OracleErrorCodes } from '../fixtures/ExampleOracleFixture' describe('test math', () => { web3.setCurrentNodeProvider('http://127.0.0.1:22973') - beforeEach(async () => { - await buildProject() - }) - const UpperBound = 1n << 256n const U256Max = UpperBound - 1n diff --git a/test/unit-tests/fixtures/DexFixture.ts b/test/unit-tests/fixtures/DexFixture.ts index 78765b2..202c9de 100644 --- a/test/unit-tests/fixtures/DexFixture.ts +++ b/test/unit-tests/fixtures/DexFixture.ts @@ -9,7 +9,6 @@ import { Fields, groupOfAddress, number256ToBigint, - Project, Token } from '@alephium/web3' import { randomBytes } from 'crypto' @@ -20,7 +19,7 @@ export const oneAlph = 10n ** 18n export const minimalAlphInContract = oneAlph export const maxAlphAmount = 10n ** 18n * 1000000000n export const gasPrice = 100000000000n -export const maxGasPerTx = 625000n +export const maxGasPerTx = 5000000n export const defaultGasFee = gasPrice * maxGasPerTx export const minimumLiquidity = 1000n @@ -42,12 +41,6 @@ export class ContractFixture { } } -export async function buildProject(): Promise { - if (typeof Project.currentProject === 'undefined') { - await Project.build({ ignoreUnusedConstantsWarnings: true }) - } -} - export function randomBigInt(min: bigint, max: bigint): bigint { const diff = max - min const length = diff.toString().length