From bc0073747fbc9215091df855f2eb2f1bd7a5f671 Mon Sep 17 00:00:00 2001 From: lbqds Date: Fri, 23 Aug 2024 08:30:47 +0800 Subject: [PATCH] Update sdk to 1.5.1 --- .project.json | 97 +-- alephium.config.ts | 3 +- artifacts/ts/ExampleOracleSimple.ts | 36 +- artifacts/ts/FeeCollectorFactoryImpl.ts | 60 +- artifacts/ts/FeeCollectorPerTokenPairImpl.ts | 48 +- artifacts/ts/FullMathTest.ts | 30 +- artifacts/ts/MathTest.ts | 18 +- artifacts/ts/Router.ts | 54 +- artifacts/ts/TestToken.ts | 22 +- artifacts/ts/TokenPair.ts | 60 +- artifacts/ts/TokenPairFactory.ts | 58 +- artifacts/ts/scripts.ts | 32 +- docker/docker-compose.yaml | 2 +- package-lock.json | 620 +++++++++---------- package.json | 10 +- 15 files changed, 526 insertions(+), 624 deletions(-) diff --git a/.project.json b/.project.json index 44674d0..c1f9c94 100644 --- a/.project.json +++ b/.project.json @@ -1,217 +1,182 @@ { - "fullNodeVersion": "v3.1.2", + "fullNodeVersion": "v3.5.0", "compilerOptionsUsed": { "ignoreUnusedConstantsWarnings": true, "ignoreUnusedVariablesWarnings": false, "ignoreUnusedFieldsWarnings": false, "ignoreUnusedPrivateFunctionsWarnings": false, "ignoreUpdateFieldsCheckWarnings": false, - "ignoreCheckExternalCallerWarnings": false + "ignoreCheckExternalCallerWarnings": false, + "ignoreUnusedFunctionReturnWarnings": true }, "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." - ] + "codeHashDebug": "" }, "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." - ] + "codeHashDebug": "" }, "CollectFee": { "sourceFile": "scripts/collect_fee.ral", "sourceCodeHash": "1bf50ae9e84e3a698bf955f0ce7bfb14d2b05ac250255b7e0712dc523b6e44dc", "bytecodeDebugPatch": "", - "codeHashDebug": "", - "warnings": [] + "codeHashDebug": "" }, "Constants": { "sourceFile": "dex/constants.ral", "sourceCodeHash": "de716344afeac3e83450b8a8b0a0a9e97f056cd95d4b6e29476ddb93960c8140", "bytecodeDebugPatch": "", - "codeHashDebug": "", - "warnings": [] + "codeHashDebug": "" }, "CreatePair": { "sourceFile": "scripts/create_pair.ral", "sourceCodeHash": "27d25c96dc9797d46e427721f5fa8803adb9e35305f9895dce09f9ee68e6e811", "bytecodeDebugPatch": "", - "codeHashDebug": "", - "warnings": [] + "codeHashDebug": "" }, "EnableFeeCollector": { "sourceFile": "scripts/enable_fee_collector.ral", "sourceCodeHash": "d910bff218027c5b1f43bcafcb53a11213f5fff26be50f3cda85c5484b4d8888", "bytecodeDebugPatch": "", - "codeHashDebug": "", - "warnings": [] + "codeHashDebug": "" }, "ExampleOracleSimple": { "sourceFile": "examples/example_oracle_simple.ral", "sourceCodeHash": "2b330617826658a6336ab325956bc44df89c251c6183e1b2d10805f26d0c8746", "bytecodeDebugPatch": "", - "codeHashDebug": "77c214087d18764740b2479fc13342959a21a02a36977c0d998667644200071a", - "warnings": [] + "codeHashDebug": "77c214087d18764740b2479fc13342959a21a02a36977c0d998667644200071a" }, "FeeCollectorFactory": { "sourceFile": "dex/fee_collector_factory.ral", "sourceCodeHash": "44c41462b5814731ef8f83248b9ee77b8260b0e4f8bf17aebe53bc7260d38df2", "bytecodeDebugPatch": "", - "codeHashDebug": "", - "warnings": [] + "codeHashDebug": "" }, "FeeCollectorFactoryImpl": { "sourceFile": "examples/fee_collector_factory_impl.ral", "sourceCodeHash": "792272912b2ff021c5fc1a185617c4ee57370f92f76ac1f18c0351e843c2e295", "bytecodeDebugPatch": "", - "codeHashDebug": "966f75cddefe774a87dbf778012f4f3f494b3a860f4c975d0c5262a1be185d49", - "warnings": [] + "codeHashDebug": "966f75cddefe774a87dbf778012f4f3f494b3a860f4c975d0c5262a1be185d49" }, "FeeCollectorPerTokenPair": { "sourceFile": "dex/fee_collector_per_token_pair.ral", "sourceCodeHash": "1a0c1bb3ac308845730af303de241bc0436b2133daa7074636662a20713ed84b", "bytecodeDebugPatch": "", - "codeHashDebug": "", - "warnings": [] + "codeHashDebug": "" }, "FeeCollectorPerTokenPairImpl": { "sourceFile": "examples/fee_collector_per_token_pair_impl.ral", "sourceCodeHash": "12030965f27aedb1e593ea659314be67a7caf9a604885f4b8fc54f7303e95487", "bytecodeDebugPatch": "", - "codeHashDebug": "393eee49cd23c00d61848a8b2272e848f5278cc17f8c0b2333e2ed744edf5b79", - "warnings": [] + "codeHashDebug": "393eee49cd23c00d61848a8b2272e848f5278cc17f8c0b2333e2ed744edf5b79" }, "FullMath": { "sourceFile": "examples/full_math.ral", "sourceCodeHash": "bad6926fafb2fd8c587896482505281d5a9b2250c036de46d2bbd47efbbc9434", "bytecodeDebugPatch": "", - "codeHashDebug": "", - "warnings": [] + "codeHashDebug": "" }, "FullMathTest": { "sourceFile": "examples/full_math_test.ral", "sourceCodeHash": "0e2e55075a2b663409743948d49459826e8e8ebdd0c881cb1fefd8d11686cfe5", "bytecodeDebugPatch": "", - "codeHashDebug": "d6834220b59d306adb6cd548433f9e1ab4f20c155cad9c80ef89be27cb82a286", - "warnings": [] + "codeHashDebug": "d6834220b59d306adb6cd548433f9e1ab4f20c155cad9c80ef89be27cb82a286" }, "GetToken": { "sourceFile": "test/get_token.ral", "sourceCodeHash": "1e61b4573ed08acb31d54177295b4388e17c6f927a7fe0da74af032e9daed4dc", "bytecodeDebugPatch": "", - "codeHashDebug": "", - "warnings": [] + "codeHashDebug": "" }, "IFungibleToken": { "sourceFile": "../node_modules/@alephium/web3/std/fungible_token_interface.ral", "sourceCodeHash": "62910bf11e1eeb6cb2fd468626ff606a9b06306b2b81590c3b10f6deb5966bde", "bytecodeDebugPatch": "", - "codeHashDebug": "", - "warnings": [] + "codeHashDebug": "" }, "Math": { "sourceFile": "dex/math.ral", "sourceCodeHash": "4be2abb3b39ed86d4714b9459e40c2050b3593601ed9e51db97f2f1a95d5129a", "bytecodeDebugPatch": "", - "codeHashDebug": "", - "warnings": [] + "codeHashDebug": "" }, "MathTest": { "sourceFile": "test/math_test.ral", "sourceCodeHash": "7f307735569bf071f47a34a3abfe87c9529c53890765d90c1aabf6bdb8494a81", "bytecodeDebugPatch": "", - "codeHashDebug": "085c8183210ec7296681e12ab74e37bebee9d495e78e24cc9b3cd1b110d6df2a", - "warnings": [] + "codeHashDebug": "085c8183210ec7296681e12ab74e37bebee9d495e78e24cc9b3cd1b110d6df2a" }, "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." - ] + "codeHashDebug": "" }, "OracleErrors": { "sourceFile": "examples/errors.ral", "sourceCodeHash": "4d0ed85fbd224324446d1ddd22f5b4c87bb48a1fa0c5e1c3f0f4e48257a50e59", "bytecodeDebugPatch": "", - "codeHashDebug": "", - "warnings": [] + "codeHashDebug": "" }, "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." - ] + "codeHashDebug": "" }, "Router": { "sourceFile": "dex/router.ral", "sourceCodeHash": "c954ad981c2457825654144d2930cf07266efeb0013603532ac925ca85db2eca", "bytecodeDebugPatch": "", - "codeHashDebug": "5b325453e5506a90851742af5f7797303703acecb523830220a105a88273b1b0", - "warnings": [] + "codeHashDebug": "5b325453e5506a90851742af5f7797303703acecb523830220a105a88273b1b0" }, "SetFeeCollectorFactory": { "sourceFile": "scripts/set_fee_collector_factory.ral", "sourceCodeHash": "44709be4a8a58f2dbbbf9d8bb8b09c9654e3ef14a177fe44fdc451c072ba588d", "bytecodeDebugPatch": "", - "codeHashDebug": "", - "warnings": [] + "codeHashDebug": "" }, "Swap": { "sourceFile": "scripts/swap.ral", "sourceCodeHash": "d84c3a3bb054954d9023b4b02884659c126684fba2984ef944ab8aec9eb76416", "bytecodeDebugPatch": "", - "codeHashDebug": "", - "warnings": [] + "codeHashDebug": "" }, "SwapMaxIn": { "sourceFile": "scripts/swap_max_in.ral", "sourceCodeHash": "91c41026f47cf9d75e56b00b24925031ad271ef30ad1717430d05835480b0aa5", "bytecodeDebugPatch": "", - "codeHashDebug": "", - "warnings": [] + "codeHashDebug": "" }, "SwapMinOut": { "sourceFile": "scripts/swap_min_out.ral", "sourceCodeHash": "846256348cfa6d306cacffa94c8c0108faa85d50c4a9e28b163c63be6ca26a63", "bytecodeDebugPatch": "", - "codeHashDebug": "", - "warnings": [] + "codeHashDebug": "" }, "TestToken": { "sourceFile": "test/test_token.ral", "sourceCodeHash": "cf585aa37720c2530bf4ba7493268a0c499bd5e9269cbb11423ba72ded571654", "bytecodeDebugPatch": "", - "codeHashDebug": "0831d766037e7873066276e891997881e8787f4fb4bd9d154925d80869efa129", - "warnings": [] + "codeHashDebug": "0831d766037e7873066276e891997881e8787f4fb4bd9d154925d80869efa129" }, "TokenPair": { "sourceFile": "dex/token_pair.ral", "sourceCodeHash": "fe3049c8d6472fce53015f300c82cefc0d3cac80550bd1afb428b9c39ce8c12b", "bytecodeDebugPatch": "", - "codeHashDebug": "44cb575528fd174a595daf0a095f1b0f2e6b234213a99449173542520f63222e", - "warnings": [] + "codeHashDebug": "44cb575528fd174a595daf0a095f1b0f2e6b234213a99449173542520f63222e" }, "TokenPairFactory": { "sourceFile": "dex/token_pair_factory.ral", "sourceCodeHash": "19388715466d7a867264ca64b362f4c1aeac7aad99816acd7e660358ee6b6095", "bytecodeDebugPatch": "", - "codeHashDebug": "44144899a2b71465a80654889afa8a2bf4a8f3cd0f30ad1880d2ffc7c12ad18b", - "warnings": [] + "codeHashDebug": "44144899a2b71465a80654889afa8a2bf4a8f3cd0f30ad1880d2ffc7c12ad18b" } } } \ No newline at end of file diff --git a/alephium.config.ts b/alephium.config.ts index 8043e4e..b1238be 100644 --- a/alephium.config.ts +++ b/alephium.config.ts @@ -28,7 +28,8 @@ const configuration: Configuration = { compilerOptions: { errorOnWarnings: true, - ignoreUnusedConstantsWarnings: true + ignoreUnusedConstantsWarnings: true, + ignoreUnusedFunctionReturnWarnings: true } } diff --git a/artifacts/ts/ExampleOracleSimple.ts b/artifacts/ts/ExampleOracleSimple.ts index a36e9ec..fa33604 100644 --- a/artifacts/ts/ExampleOracleSimple.ts +++ b/artifacts/ts/ExampleOracleSimple.ts @@ -81,6 +81,10 @@ export namespace ExampleOracleSimpleTypes { ? CallMethodTable[MaybeName]["result"] : undefined; }; + export type MulticallReturnType = + Callss["length"] extends 1 + ? MultiCallResults + : { [index in keyof Callss]: MultiCallResults }; export interface SignExecuteMethodTable { fullMul: { @@ -132,19 +136,15 @@ class Factory extends ContractFactory< ); } - getInitialFieldsWithDefaultValues() { - return this.contract.getInitialFieldsWithDefaultValues() as ExampleOracleSimpleTypes.Fields; - } - consts = { - Resolution: BigInt(112), - Period: BigInt(86400), + Resolution: BigInt("112"), + Period: BigInt("86400"), ErrorCodes: { - FullDivOverflow: BigInt(0), - DivByZero: BigInt(1), - FractionOverflow: BigInt(2), - PeriodNotElapsed: BigInt(3), - InvalidToken: BigInt(4), + FullDivOverflow: BigInt("0"), + DivByZero: BigInt("1"), + FractionOverflow: BigInt("2"), + PeriodNotElapsed: BigInt("3"), + InvalidToken: BigInt("4"), }, }; @@ -229,7 +229,7 @@ export class ExampleOracleSimpleInstance extends ContractInstance { return fetchContractState(ExampleOracleSimple, this); } - methods = { + view = { fullMul: async ( params: ExampleOracleSimpleTypes.CallMethodParams<"fullMul"> ): Promise> => { @@ -287,8 +287,6 @@ export class ExampleOracleSimpleInstance extends ContractInstance { }, }; - view = this.methods; - transact = { fullMul: async ( params: ExampleOracleSimpleTypes.SignExecuteMethodParams<"fullMul"> @@ -319,14 +317,14 @@ export class ExampleOracleSimpleInstance extends ContractInstance { }, }; - async multicall( - calls: Calls - ): Promise> { + async multicall( + ...callss: Callss + ): Promise> { return (await multicallMethods( ExampleOracleSimple, this, - calls, + callss, getContractByCodeHash - )) as ExampleOracleSimpleTypes.MultiCallResults; + )) as ExampleOracleSimpleTypes.MulticallReturnType; } } diff --git a/artifacts/ts/FeeCollectorFactoryImpl.ts b/artifacts/ts/FeeCollectorFactoryImpl.ts index add4817..168f046 100644 --- a/artifacts/ts/FeeCollectorFactoryImpl.ts +++ b/artifacts/ts/FeeCollectorFactoryImpl.ts @@ -65,6 +65,10 @@ export namespace FeeCollectorFactoryImplTypes { ? CallMethodTable[MaybeName]["result"] : undefined; }; + export type MulticallReturnType = + Callss["length"] extends 1 + ? MultiCallResults + : { [index in keyof Callss]: MultiCallResults }; export interface SignExecuteMethodTable { createFeeCollector: { @@ -94,30 +98,26 @@ class Factory extends ContractFactory< ); } - getInitialFieldsWithDefaultValues() { - return this.contract.getInitialFieldsWithDefaultValues() as FeeCollectorFactoryImplTypes.Fields; - } - consts = { ErrorCodes: { - ReserveOverflow: BigInt(0), - InsufficientInitLiquidity: BigInt(1), - InsufficientLiquidityMinted: BigInt(2), - InsufficientLiquidityBurned: BigInt(3), - InvalidToAddress: BigInt(4), - InsufficientLiquidity: BigInt(5), - InvalidTokenInId: BigInt(6), - InvalidCalleeId: BigInt(7), - InvalidK: BigInt(8), - InsufficientOutputAmount: BigInt(9), - InsufficientInputAmount: BigInt(10), - IdenticalTokenIds: BigInt(11), - Expired: BigInt(12), - InsufficientToken0Amount: BigInt(13), - InsufficientToken1Amount: BigInt(14), - TokenNotExist: BigInt(15), - InvalidCaller: BigInt(16), - FeeCollectorNotEnabled: BigInt(17), + ReserveOverflow: BigInt("0"), + InsufficientInitLiquidity: BigInt("1"), + InsufficientLiquidityMinted: BigInt("2"), + InsufficientLiquidityBurned: BigInt("3"), + InvalidToAddress: BigInt("4"), + InsufficientLiquidity: BigInt("5"), + InvalidTokenInId: BigInt("6"), + InvalidCalleeId: BigInt("7"), + InvalidK: BigInt("8"), + InsufficientOutputAmount: BigInt("9"), + InsufficientInputAmount: BigInt("10"), + IdenticalTokenIds: BigInt("11"), + Expired: BigInt("12"), + InsufficientToken0Amount: BigInt("13"), + InsufficientToken1Amount: BigInt("14"), + TokenNotExist: BigInt("15"), + InvalidCaller: BigInt("16"), + FeeCollectorNotEnabled: BigInt("17"), }, }; @@ -162,7 +162,7 @@ export class FeeCollectorFactoryImplInstance extends ContractInstance { return fetchContractState(FeeCollectorFactoryImpl, this); } - methods = { + view = { createFeeCollector: async ( params: FeeCollectorFactoryImplTypes.CallMethodParams<"createFeeCollector"> ): Promise< @@ -178,8 +178,6 @@ export class FeeCollectorFactoryImplInstance extends ContractInstance { }, }; - view = this.methods; - transact = { createFeeCollector: async ( params: FeeCollectorFactoryImplTypes.SignExecuteMethodParams<"createFeeCollector"> @@ -195,14 +193,16 @@ export class FeeCollectorFactoryImplInstance extends ContractInstance { }, }; - async multicall( - calls: Calls - ): Promise> { + async multicall< + Callss extends FeeCollectorFactoryImplTypes.MultiCallParams[] + >( + ...callss: Callss + ): Promise> { return (await multicallMethods( FeeCollectorFactoryImpl, this, - calls, + callss, getContractByCodeHash - )) as FeeCollectorFactoryImplTypes.MultiCallResults; + )) as FeeCollectorFactoryImplTypes.MulticallReturnType; } } diff --git a/artifacts/ts/FeeCollectorPerTokenPairImpl.ts b/artifacts/ts/FeeCollectorPerTokenPairImpl.ts index 0577f51..d996948 100644 --- a/artifacts/ts/FeeCollectorPerTokenPairImpl.ts +++ b/artifacts/ts/FeeCollectorPerTokenPairImpl.ts @@ -73,6 +73,10 @@ export namespace FeeCollectorPerTokenPairImplTypes { ? CallMethodTable[MaybeName]["result"] : undefined; }; + export type MulticallReturnType = + Callss["length"] extends 1 + ? MultiCallResults + : { [index in keyof Callss]: MultiCallResults }; export interface SignExecuteMethodTable { collectFee: { @@ -113,30 +117,26 @@ class Factory extends ContractFactory< ); } - getInitialFieldsWithDefaultValues() { - return this.contract.getInitialFieldsWithDefaultValues() as FeeCollectorPerTokenPairImplTypes.Fields; - } - consts = { ErrorCodes: { - ReserveOverflow: BigInt(0), - InsufficientInitLiquidity: BigInt(1), - InsufficientLiquidityMinted: BigInt(2), - InsufficientLiquidityBurned: BigInt(3), - InvalidToAddress: BigInt(4), - InsufficientLiquidity: BigInt(5), - InvalidTokenInId: BigInt(6), - InvalidCalleeId: BigInt(7), - InvalidK: BigInt(8), - InsufficientOutputAmount: BigInt(9), - InsufficientInputAmount: BigInt(10), - IdenticalTokenIds: BigInt(11), - Expired: BigInt(12), - InsufficientToken0Amount: BigInt(13), - InsufficientToken1Amount: BigInt(14), - TokenNotExist: BigInt(15), - InvalidCaller: BigInt(16), - FeeCollectorNotEnabled: BigInt(17), + ReserveOverflow: BigInt("0"), + InsufficientInitLiquidity: BigInt("1"), + InsufficientLiquidityMinted: BigInt("2"), + InsufficientLiquidityBurned: BigInt("3"), + InvalidToAddress: BigInt("4"), + InsufficientLiquidity: BigInt("5"), + InvalidTokenInId: BigInt("6"), + InvalidCalleeId: BigInt("7"), + InvalidK: BigInt("8"), + InsufficientOutputAmount: BigInt("9"), + InsufficientInputAmount: BigInt("10"), + IdenticalTokenIds: BigInt("11"), + Expired: BigInt("12"), + InsufficientToken0Amount: BigInt("13"), + InsufficientToken1Amount: BigInt("14"), + TokenNotExist: BigInt("15"), + InvalidCaller: BigInt("16"), + FeeCollectorNotEnabled: BigInt("17"), }, }; @@ -208,7 +208,7 @@ export class FeeCollectorPerTokenPairImplInstance extends ContractInstance { return fetchContractState(FeeCollectorPerTokenPairImpl, this); } - methods = { + view = { collectFee: async ( params: FeeCollectorPerTokenPairImplTypes.CallMethodParams<"collectFee"> ): Promise< @@ -263,8 +263,6 @@ export class FeeCollectorPerTokenPairImplInstance extends ContractInstance { }, }; - view = this.methods; - transact = { collectFee: async ( params: FeeCollectorPerTokenPairImplTypes.SignExecuteMethodParams<"collectFee"> diff --git a/artifacts/ts/FullMathTest.ts b/artifacts/ts/FullMathTest.ts index 434f619..43990ff 100644 --- a/artifacts/ts/FullMathTest.ts +++ b/artifacts/ts/FullMathTest.ts @@ -64,6 +64,10 @@ export namespace FullMathTestTypes { ? CallMethodTable[MaybeName]["result"] : undefined; }; + export type MulticallReturnType = + Callss["length"] extends 1 + ? MultiCallResults + : { [index in keyof Callss]: MultiCallResults }; export interface SignExecuteMethodTable { fullMul: { @@ -98,13 +102,13 @@ class Factory extends ContractFactory { } consts = { - Resolution: BigInt(112), + Resolution: BigInt("112"), ErrorCodes: { - FullDivOverflow: BigInt(0), - DivByZero: BigInt(1), - FractionOverflow: BigInt(2), - PeriodNotElapsed: BigInt(3), - InvalidToken: BigInt(4), + FullDivOverflow: BigInt("0"), + DivByZero: BigInt("1"), + FractionOverflow: BigInt("2"), + PeriodNotElapsed: BigInt("3"), + InvalidToken: BigInt("4"), }, }; @@ -166,7 +170,7 @@ export class FullMathTestInstance extends ContractInstance { return fetchContractState(FullMathTest, this); } - methods = { + view = { fullMul: async ( params: FullMathTestTypes.CallMethodParams<"fullMul"> ): Promise> => { @@ -202,8 +206,6 @@ export class FullMathTestInstance extends ContractInstance { }, }; - view = this.methods; - transact = { fullMul: async ( params: FullMathTestTypes.SignExecuteMethodParams<"fullMul"> @@ -222,14 +224,14 @@ export class FullMathTestInstance extends ContractInstance { }, }; - async multicall( - calls: Calls - ): Promise> { + async multicall( + ...callss: Callss + ): Promise> { return (await multicallMethods( FullMathTest, this, - calls, + callss, getContractByCodeHash - )) as FullMathTestTypes.MultiCallResults; + )) as FullMathTestTypes.MulticallReturnType; } } diff --git a/artifacts/ts/MathTest.ts b/artifacts/ts/MathTest.ts index ec33208..3c091df 100644 --- a/artifacts/ts/MathTest.ts +++ b/artifacts/ts/MathTest.ts @@ -60,6 +60,10 @@ export namespace MathTestTypes { ? CallMethodTable[MaybeName]["result"] : undefined; }; + export type MulticallReturnType = + Callss["length"] extends 1 + ? MultiCallResults + : { [index in keyof Callss]: MultiCallResults }; export interface SignExecuteMethodTable { uqdiv: { @@ -126,7 +130,7 @@ export class MathTestInstance extends ContractInstance { return fetchContractState(MathTest, this); } - methods = { + view = { uqdiv: async ( params: MathTestTypes.CallMethodParams<"uqdiv"> ): Promise> => { @@ -139,8 +143,6 @@ export class MathTestInstance extends ContractInstance { }, }; - view = this.methods; - transact = { uqdiv: async ( params: MathTestTypes.SignExecuteMethodParams<"uqdiv"> @@ -154,14 +156,14 @@ export class MathTestInstance extends ContractInstance { }, }; - async multicall( - calls: Calls - ): Promise> { + async multicall( + ...callss: Callss + ): Promise> { return (await multicallMethods( MathTest, this, - calls, + callss, getContractByCodeHash - )) as MathTestTypes.MultiCallResults; + )) as MathTestTypes.MulticallReturnType; } } diff --git a/artifacts/ts/Router.ts b/artifacts/ts/Router.ts index a82457b..cd9c70d 100644 --- a/artifacts/ts/Router.ts +++ b/artifacts/ts/Router.ts @@ -99,6 +99,10 @@ export namespace RouterTypes { ? CallMethodTable[MaybeName]["result"] : undefined; }; + export type MulticallReturnType = + Callss["length"] extends 1 + ? MultiCallResults + : { [index in keyof Callss]: MultiCallResults }; export interface SignExecuteMethodTable { addLiquidity: { @@ -162,24 +166,24 @@ class Factory extends ContractFactory { consts = { ErrorCodes: { - ReserveOverflow: BigInt(0), - InsufficientInitLiquidity: BigInt(1), - InsufficientLiquidityMinted: BigInt(2), - InsufficientLiquidityBurned: BigInt(3), - InvalidToAddress: BigInt(4), - InsufficientLiquidity: BigInt(5), - InvalidTokenInId: BigInt(6), - InvalidCalleeId: BigInt(7), - InvalidK: BigInt(8), - InsufficientOutputAmount: BigInt(9), - InsufficientInputAmount: BigInt(10), - IdenticalTokenIds: BigInt(11), - Expired: BigInt(12), - InsufficientToken0Amount: BigInt(13), - InsufficientToken1Amount: BigInt(14), - TokenNotExist: BigInt(15), - InvalidCaller: BigInt(16), - FeeCollectorNotEnabled: BigInt(17), + ReserveOverflow: BigInt("0"), + InsufficientInitLiquidity: BigInt("1"), + InsufficientLiquidityMinted: BigInt("2"), + InsufficientLiquidityBurned: BigInt("3"), + InvalidToAddress: BigInt("4"), + InsufficientLiquidity: BigInt("5"), + InvalidTokenInId: BigInt("6"), + InvalidCalleeId: BigInt("7"), + InvalidK: BigInt("8"), + InsufficientOutputAmount: BigInt("9"), + InsufficientInputAmount: BigInt("10"), + IdenticalTokenIds: BigInt("11"), + Expired: BigInt("12"), + InsufficientToken0Amount: BigInt("13"), + InsufficientToken1Amount: BigInt("14"), + TokenNotExist: BigInt("15"), + InvalidCaller: BigInt("16"), + FeeCollectorNotEnabled: BigInt("17"), }, }; @@ -348,7 +352,7 @@ export class RouterInstance extends ContractInstance { return fetchContractState(Router, this); } - methods = { + view = { addLiquidity: async ( params: RouterTypes.CallMethodParams<"addLiquidity"> ): Promise> => { @@ -395,8 +399,6 @@ export class RouterInstance extends ContractInstance { }, }; - view = this.methods; - transact = { addLiquidity: async ( params: RouterTypes.SignExecuteMethodParams<"addLiquidity"> @@ -424,14 +426,14 @@ export class RouterInstance extends ContractInstance { }, }; - async multicall( - calls: Calls - ): Promise> { + async multicall( + ...callss: Callss + ): Promise> { return (await multicallMethods( Router, this, - calls, + callss, getContractByCodeHash - )) as RouterTypes.MultiCallResults; + )) as RouterTypes.MulticallReturnType; } } diff --git a/artifacts/ts/TestToken.ts b/artifacts/ts/TestToken.ts index edc4b27..badb578 100644 --- a/artifacts/ts/TestToken.ts +++ b/artifacts/ts/TestToken.ts @@ -79,6 +79,10 @@ export namespace TestTokenTypes { ? CallMethodTable[MaybeName]["result"] : undefined; }; + export type MulticallReturnType = + Callss["length"] extends 1 + ? MultiCallResults + : { [index in keyof Callss]: MultiCallResults }; export interface SignExecuteMethodTable { getSymbol: { @@ -123,10 +127,6 @@ class Factory extends ContractFactory< ); } - getInitialFieldsWithDefaultValues() { - return this.contract.getInitialFieldsWithDefaultValues() as TestTokenTypes.Fields; - } - at(address: string): TestTokenInstance { return new TestTokenInstance(address); } @@ -195,7 +195,7 @@ export class TestTokenInstance extends ContractInstance { return fetchContractState(TestToken, this); } - methods = { + view = { getSymbol: async ( params?: TestTokenTypes.CallMethodParams<"getSymbol"> ): Promise> => { @@ -253,8 +253,6 @@ export class TestTokenInstance extends ContractInstance { }, }; - view = this.methods; - transact = { getSymbol: async ( params: TestTokenTypes.SignExecuteMethodParams<"getSymbol"> @@ -283,14 +281,14 @@ export class TestTokenInstance extends ContractInstance { }, }; - async multicall( - calls: Calls - ): Promise> { + async multicall( + ...callss: Callss + ): Promise> { return (await multicallMethods( TestToken, this, - calls, + callss, getContractByCodeHash - )) as TestTokenTypes.MultiCallResults; + )) as TestTokenTypes.MulticallReturnType; } } diff --git a/artifacts/ts/TokenPair.ts b/artifacts/ts/TokenPair.ts index 75697ba..e1c6faa 100644 --- a/artifacts/ts/TokenPair.ts +++ b/artifacts/ts/TokenPair.ts @@ -162,6 +162,10 @@ export namespace TokenPairTypes { ? CallMethodTable[MaybeName]["result"] : undefined; }; + export type MulticallReturnType = + Callss["length"] extends 1 + ? MultiCallResults + : { [index in keyof Callss]: MultiCallResults }; export interface SignExecuteMethodTable { getSymbol: { @@ -261,32 +265,28 @@ class Factory extends ContractFactory< ); } - getInitialFieldsWithDefaultValues() { - return this.contract.getInitialFieldsWithDefaultValues() as TokenPairTypes.Fields; - } - eventIndex = { Mint: 0, Burn: 1, Swap: 2 }; consts = { - MINIMUM_LIQUIDITY: BigInt(1000), + MINIMUM_LIQUIDITY: BigInt("1000"), ErrorCodes: { - ReserveOverflow: BigInt(0), - InsufficientInitLiquidity: BigInt(1), - InsufficientLiquidityMinted: BigInt(2), - InsufficientLiquidityBurned: BigInt(3), - InvalidToAddress: BigInt(4), - InsufficientLiquidity: BigInt(5), - InvalidTokenInId: BigInt(6), - InvalidCalleeId: BigInt(7), - InvalidK: BigInt(8), - InsufficientOutputAmount: BigInt(9), - InsufficientInputAmount: BigInt(10), - IdenticalTokenIds: BigInt(11), - Expired: BigInt(12), - InsufficientToken0Amount: BigInt(13), - InsufficientToken1Amount: BigInt(14), - TokenNotExist: BigInt(15), - InvalidCaller: BigInt(16), - FeeCollectorNotEnabled: BigInt(17), + ReserveOverflow: BigInt("0"), + InsufficientInitLiquidity: BigInt("1"), + InsufficientLiquidityMinted: BigInt("2"), + InsufficientLiquidityBurned: BigInt("3"), + InvalidToAddress: BigInt("4"), + InsufficientLiquidity: BigInt("5"), + InvalidTokenInId: BigInt("6"), + InvalidCalleeId: BigInt("7"), + InvalidK: BigInt("8"), + InsufficientOutputAmount: BigInt("9"), + InsufficientInputAmount: BigInt("10"), + IdenticalTokenIds: BigInt("11"), + Expired: BigInt("12"), + InsufficientToken0Amount: BigInt("13"), + InsufficientToken1Amount: BigInt("14"), + TokenNotExist: BigInt("15"), + InvalidCaller: BigInt("16"), + FeeCollectorNotEnabled: BigInt("17"), }, }; @@ -566,7 +566,7 @@ export class TokenPairInstance extends ContractInstance { ); } - methods = { + view = { getSymbol: async ( params?: TokenPairTypes.CallMethodParams<"getSymbol"> ): Promise> => { @@ -721,8 +721,6 @@ export class TokenPairInstance extends ContractInstance { }, }; - view = this.methods; - transact = { getSymbol: async ( params: TokenPairTypes.SignExecuteMethodParams<"getSymbol"> @@ -829,14 +827,14 @@ export class TokenPairInstance extends ContractInstance { }, }; - async multicall( - calls: Calls - ): Promise> { + async multicall( + ...callss: Callss + ): Promise> { return (await multicallMethods( TokenPair, this, - calls, + callss, getContractByCodeHash - )) as TokenPairTypes.MultiCallResults; + )) as TokenPairTypes.MulticallReturnType; } } diff --git a/artifacts/ts/TokenPairFactory.ts b/artifacts/ts/TokenPairFactory.ts index d4f92e8..601e0d9 100644 --- a/artifacts/ts/TokenPairFactory.ts +++ b/artifacts/ts/TokenPairFactory.ts @@ -98,6 +98,10 @@ export namespace TokenPairFactoryTypes { ? CallMethodTable[MaybeName]["result"] : undefined; }; + export type MulticallReturnType = + Callss["length"] extends 1 + ? MultiCallResults + : { [index in keyof Callss]: MultiCallResults }; export interface SignExecuteMethodTable { setFeeCollectorFactory: { @@ -154,31 +158,27 @@ class Factory extends ContractFactory< ); } - getInitialFieldsWithDefaultValues() { - return this.contract.getInitialFieldsWithDefaultValues() as TokenPairFactoryTypes.Fields; - } - eventIndex = { PairCreated: 0 }; consts = { ErrorCodes: { - ReserveOverflow: BigInt(0), - InsufficientInitLiquidity: BigInt(1), - InsufficientLiquidityMinted: BigInt(2), - InsufficientLiquidityBurned: BigInt(3), - InvalidToAddress: BigInt(4), - InsufficientLiquidity: BigInt(5), - InvalidTokenInId: BigInt(6), - InvalidCalleeId: BigInt(7), - InvalidK: BigInt(8), - InsufficientOutputAmount: BigInt(9), - InsufficientInputAmount: BigInt(10), - IdenticalTokenIds: BigInt(11), - Expired: BigInt(12), - InsufficientToken0Amount: BigInt(13), - InsufficientToken1Amount: BigInt(14), - TokenNotExist: BigInt(15), - InvalidCaller: BigInt(16), - FeeCollectorNotEnabled: BigInt(17), + ReserveOverflow: BigInt("0"), + InsufficientInitLiquidity: BigInt("1"), + InsufficientLiquidityMinted: BigInt("2"), + InsufficientLiquidityBurned: BigInt("3"), + InvalidToAddress: BigInt("4"), + InsufficientLiquidity: BigInt("5"), + InvalidTokenInId: BigInt("6"), + InvalidCalleeId: BigInt("7"), + InvalidK: BigInt("8"), + InsufficientOutputAmount: BigInt("9"), + InsufficientInputAmount: BigInt("10"), + IdenticalTokenIds: BigInt("11"), + Expired: BigInt("12"), + InsufficientToken0Amount: BigInt("13"), + InsufficientToken1Amount: BigInt("14"), + TokenNotExist: BigInt("15"), + InvalidCaller: BigInt("16"), + FeeCollectorNotEnabled: BigInt("17"), }, }; @@ -303,7 +303,7 @@ export class TokenPairFactoryInstance extends ContractInstance { ); } - methods = { + view = { setFeeCollectorFactory: async ( params: TokenPairFactoryTypes.CallMethodParams<"setFeeCollectorFactory"> ): Promise< @@ -378,8 +378,6 @@ export class TokenPairFactoryInstance extends ContractInstance { }, }; - view = this.methods; - transact = { setFeeCollectorFactory: async ( params: TokenPairFactoryTypes.SignExecuteMethodParams<"setFeeCollectorFactory"> @@ -443,14 +441,14 @@ export class TokenPairFactoryInstance extends ContractInstance { }, }; - async multicall( - calls: Calls - ): Promise> { + async multicall( + ...callss: Callss + ): Promise> { return (await multicallMethods( TokenPairFactory, this, - calls, + callss, getContractByCodeHash - )) as TokenPairFactoryTypes.MultiCallResults; + )) as TokenPairFactoryTypes.MulticallReturnType; } } diff --git a/artifacts/ts/scripts.ts b/artifacts/ts/scripts.ts index 2b1a1d0..4cc87f1 100644 --- a/artifacts/ts/scripts.ts +++ b/artifacts/ts/scripts.ts @@ -11,6 +11,7 @@ import { SignerProvider, HexString, } from "@alephium/web3"; +import { getContractByCodeHash } from "./contracts"; import { default as AddLiquidityScriptJson } from "../scripts/AddLiquidity.ral.json"; import { default as BurnScriptJson } from "../scripts/Burn.ral.json"; import { default as CollectFeeScriptJson } from "../scripts/CollectFee.ral.json"; @@ -33,16 +34,17 @@ export const AddLiquidity = new ExecutableScript<{ amount0Min: bigint; amount1Min: bigint; deadline: bigint; -}>(Script.fromJson(AddLiquidityScriptJson, "", [])); +}>(Script.fromJson(AddLiquidityScriptJson, "", []), getContractByCodeHash); export const Burn = new ExecutableScript<{ tokenPair: HexString; sender: Address; liquidity: bigint; -}>(Script.fromJson(BurnScriptJson, "", [])); +}>(Script.fromJson(BurnScriptJson, "", []), getContractByCodeHash); export const CollectFee = new ExecutableScript<{ feeCollector: HexString }>( - Script.fromJson(CollectFeeScriptJson, "", []) + Script.fromJson(CollectFeeScriptJson, "", []), + getContractByCodeHash ); export const CreatePair = new ExecutableScript<{ @@ -51,25 +53,28 @@ export const CreatePair = new ExecutableScript<{ alphAmount: bigint; tokenAId: HexString; tokenBId: HexString; -}>(Script.fromJson(CreatePairScriptJson, "", [])); +}>(Script.fromJson(CreatePairScriptJson, "", []), getContractByCodeHash); export const EnableFeeCollector = new ExecutableScript<{ tokenPairFactory: HexString; tokenPair: HexString; -}>(Script.fromJson(EnableFeeCollectorScriptJson, "", [])); +}>( + Script.fromJson(EnableFeeCollectorScriptJson, "", []), + getContractByCodeHash +); export const GetToken = new ExecutableScript<{ token: HexString; sender: Address; amount: bigint; -}>(Script.fromJson(GetTokenScriptJson, "", [])); +}>(Script.fromJson(GetTokenScriptJson, "", []), getContractByCodeHash); export const Mint = new ExecutableScript<{ tokenPair: HexString; sender: Address; amount0: bigint; amount1: bigint; -}>(Script.fromJson(MintScriptJson, "", [])); +}>(Script.fromJson(MintScriptJson, "", []), getContractByCodeHash); export const RemoveLiquidity = new ExecutableScript<{ sender: Address; @@ -79,12 +84,15 @@ export const RemoveLiquidity = new ExecutableScript<{ amount0Min: bigint; amount1Min: bigint; deadline: bigint; -}>(Script.fromJson(RemoveLiquidityScriptJson, "", [])); +}>(Script.fromJson(RemoveLiquidityScriptJson, "", []), getContractByCodeHash); export const SetFeeCollectorFactory = new ExecutableScript<{ tokenPairFactory: HexString; feeCollectorFactory: HexString; -}>(Script.fromJson(SetFeeCollectorFactoryScriptJson, "", [])); +}>( + Script.fromJson(SetFeeCollectorFactoryScriptJson, "", []), + getContractByCodeHash +); export const Swap = new ExecutableScript<{ tokenPair: HexString; @@ -94,7 +102,7 @@ export const Swap = new ExecutableScript<{ amount1In: bigint; amount0Out: bigint; amount1Out: bigint; -}>(Script.fromJson(SwapScriptJson, "", [])); +}>(Script.fromJson(SwapScriptJson, "", []), getContractByCodeHash); export const SwapMaxIn = new ExecutableScript<{ sender: Address; @@ -104,7 +112,7 @@ export const SwapMaxIn = new ExecutableScript<{ amountInMax: bigint; amountOut: bigint; deadline: bigint; -}>(Script.fromJson(SwapMaxInScriptJson, "", [])); +}>(Script.fromJson(SwapMaxInScriptJson, "", []), getContractByCodeHash); export const SwapMinOut = new ExecutableScript<{ sender: Address; @@ -114,4 +122,4 @@ export const SwapMinOut = new ExecutableScript<{ amountIn: bigint; amountOutMin: bigint; deadline: bigint; -}>(Script.fromJson(SwapMinOutScriptJson, "", [])); +}>(Script.fromJson(SwapMinOutScriptJson, "", []), getContractByCodeHash); diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml index 5463349..5a41593 100644 --- a/docker/docker-compose.yaml +++ b/docker/docker-compose.yaml @@ -2,7 +2,7 @@ version: "3.3" services: alephium: - image: alephium/alephium:v3.1.2 + image: alephium/alephium:v3.5.0 restart: "no" ports: - 19973:19973/tcp diff --git a/package-lock.json b/package-lock.json index c117c94..c9d0417 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,9 +10,9 @@ "license": "GPL", "dependencies": { "@alephium/token-list": "0.0.11", - "@alephium/web3": "^1.0.1", - "@alephium/web3-react": "^1.0.1", - "@alephium/web3-wallet": "^1.0.1", + "@alephium/web3": "^1.5.1", + "@alephium/web3-react": "^1.5.1", + "@alephium/web3-wallet": "^1.5.1", "@material-ui/core": "^4.12.2", "@material-ui/icons": "^4.11.2", "@material-ui/lab": "^4.0.0-alpha.60", @@ -33,8 +33,8 @@ "typescript": "^4.4.2" }, "devDependencies": { - "@alephium/cli": "^1.0.1", - "@alephium/web3-test": "^1.0.1", + "@alephium/cli": "^1.5.1", + "@alephium/web3-test": "^1.5.1", "@types/elliptic": "^6.4.13", "@types/jest": "^27.5.1", "@types/lodash-es": "^4.17.6", @@ -82,13 +82,13 @@ } }, "node_modules/@alephium/cli": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@alephium/cli/-/cli-1.0.1.tgz", - "integrity": "sha512-AsVBxFOLVTlohW9IWoAk8P5DDmAp/6wiO8vO5KQ61uWVHvg3WHvRFH9IzwAMumc7y7ONOCCzo+F3OijBKVTwLA==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@alephium/cli/-/cli-1.5.1.tgz", + "integrity": "sha512-35ZCRkkOqZDLQDIQPQfQ29ENfzMY8T2U18tp6aPFWBtHeAKT3BCzbEr5KOaDzVoGL7iyGk1w5xJ3RYJ3/vZRig==", "dev": true, "dependencies": { - "@alephium/web3": "^1.0.1", - "@alephium/web3-wallet": "^1.0.1", + "@alephium/web3": "^1.5.1", + "@alephium/web3-wallet": "^1.5.1", "@swc/core": "^1.4.1", "commander": "^9.5.0", "cross-fetch": "^3.1.5", @@ -107,11 +107,11 @@ } }, "node_modules/@alephium/get-extension-wallet": { - "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==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@alephium/get-extension-wallet/-/get-extension-wallet-1.5.1.tgz", + "integrity": "sha512-XkoInq242n6xWnFEAXDSMVaWmDU4dquWyIBm7yIO8DPXKRW5Nr9sxs1Zg6EjFFYeXkXFCOH+kEJtbUwJj+FZfQ==", "dependencies": { - "@alephium/web3": "^1.0.1", + "@alephium/web3": "^1.5.1", "bowser": "^2.11.0" } }, @@ -128,17 +128,17 @@ } }, "node_modules/@alephium/walletconnect-provider": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@alephium/walletconnect-provider/-/walletconnect-provider-1.0.1.tgz", - "integrity": "sha512-VhtGYDqDMH7FC7Rx30EG7t6w9Y4D7Kr8Cr36/FDm02xH3xoZ7k2nqx5OupPfqcAVgaJ/nEdvRxZEyViYt61iAw==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@alephium/walletconnect-provider/-/walletconnect-provider-1.5.1.tgz", + "integrity": "sha512-8/g0StBd2H4jrQ0HNGNQi/LuGpehsTiCmE5njzxZg1N17FIMzHDwvkLTBs7lgemlUdBQsYgPJheZTN7q0fWYcw==", "dependencies": { - "@alephium/web3": "^1.0.1", - "@alephium/web3-wallet": "^1.0.1", - "@walletconnect/core": "2.11.3", + "@alephium/web3": "^1.5.1", + "@alephium/web3-wallet": "^1.5.1", + "@walletconnect/core": "2.15.1", "@walletconnect/keyvaluestorage": "1.1.1", - "@walletconnect/sign-client": "2.11.3", - "@walletconnect/types": "2.11.3", - "@walletconnect/utils": "2.11.3", + "@walletconnect/sign-client": "2.15.1", + "@walletconnect/types": "2.15.1", + "@walletconnect/utils": "2.15.1", "async-sema": "^3.1.1", "eventemitter3": "^4.0.7" }, @@ -448,14 +448,13 @@ } }, "node_modules/@alephium/web3": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@alephium/web3/-/web3-1.0.1.tgz", - "integrity": "sha512-DKPscVULkv924k6eQ4yZ69F1rm4WFAg4y4CglAWLgaRXjjcinnLevLtAbUItU25WoyDseD8pQHSmJov82YdG0g==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@alephium/web3/-/web3-1.5.1.tgz", + "integrity": "sha512-BJh7A1gF9FVCt79j0fsG7wtdMwOQqYL2utv/Ca6byJc+WV5/VKG+m6pB0Sxt1nwmjl8ZcAv1ulO62xXwS1Euzg==", "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", "cross-fetch": "^3.1.5", @@ -471,12 +470,12 @@ } }, "node_modules/@alephium/web3-react": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@alephium/web3-react/-/web3-react-1.0.1.tgz", - "integrity": "sha512-Ot9WeykFQN+rAhlsXlyjHRJOw8ilOl5t9NuICKqJZBMvcwqbZ3iidK8fgRxYVeeDV0xqDq79BguvOge0VhXb6Q==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@alephium/web3-react/-/web3-react-1.5.1.tgz", + "integrity": "sha512-xmvt2/zJ+8nefFU9ZcNnrFnj3mzQXN+OwrJ1jYgA4HtcTflwCcw6hMrjHvVIu4KTuEYL9bVpfPEuE6Vsmc7Tqg==", "dependencies": { - "@alephium/get-extension-wallet": "^1.0.1", - "@alephium/walletconnect-provider": "^1.0.1", + "@alephium/get-extension-wallet": "^1.5.1", + "@alephium/walletconnect-provider": "^1.5.1", "@alephium/walletconnect-qrcode-modal": "^0.1.0", "buffer": "^6.0.3", "detect-browser": "^5.3.0", @@ -496,13 +495,13 @@ } }, "node_modules/@alephium/web3-test": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@alephium/web3-test/-/web3-test-1.0.1.tgz", - "integrity": "sha512-UQxw80WpXIunkmG6WLvlymZBbZ/Gra5SMtgCbesoaSfh2Me+IVx1KGDN4USuf2dKLCjyYPMKw7yZPQHtgSdAhw==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@alephium/web3-test/-/web3-test-1.5.1.tgz", + "integrity": "sha512-ew01I7Ce3BwFN5mwN/38A6uepXPBiArwUAl7aWpltXqhy5jjGG+gg5IaKzjwprDEEp3tHs5W2hRlIpPJR1FcfA==", "dev": true, "dependencies": { - "@alephium/web3": "^1.0.1", - "@alephium/web3-wallet": "^1.0.1" + "@alephium/web3": "^1.5.1", + "@alephium/web3-wallet": "^1.5.1" }, "engines": { "node": ">=14.0.0", @@ -510,11 +509,11 @@ } }, "node_modules/@alephium/web3-wallet": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@alephium/web3-wallet/-/web3-wallet-1.0.1.tgz", - "integrity": "sha512-C6tuoNhF08R4b8Ipm8z17uh4HulkwzANycu4s+Rt7uOxWtKMQ5qfidQeN3VuAuPBLc828LpvRSdJriVxNackDw==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@alephium/web3-wallet/-/web3-wallet-1.5.1.tgz", + "integrity": "sha512-ZeH4PTlQoDNLYi7V+lE02evO5bhYvpYMrqifvNiIOskrRh11y9O/vLgFFplRFJ8kIkt6uKip4msQ3D8c+a8AcA==", "dependencies": { - "@alephium/web3": "^1.0.1", + "@alephium/web3": "^1.5.1", "@noble/secp256k1": "1.7.1", "@types/node": "^16.18.23", "bip32": "3.1.0", @@ -4853,12 +4852,9 @@ } }, "node_modules/@parcel/watcher/node_modules/node-addon-api": { - "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" - } + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz", + "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==" }, "node_modules/@pmmmwh/react-refresh-webpack-plugin": { "version": "0.5.10", @@ -7261,27 +7257,29 @@ "integrity": "sha512-tr7XntDAu50BVENgQfajMLzacmSe34D+qZc4zjnniz0ZVuw/TZcLcyxHQjYpJTM36sGEkZZlYLnIM1hH7alTMA==" }, "node_modules/@walletconnect/core": { - "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==", + "version": "2.15.1", + "resolved": "https://registry.npmjs.org/@walletconnect/core/-/core-2.15.1.tgz", + "integrity": "sha512-9MWVt33MFrLiAeK9nqY/B30/y0M4uiq8v9EXenIBQdlgkmXM++RTcOnn7u7EAbthGgzx3WLPRm4ViwIb+rI/Cg==", "dependencies": { - "@walletconnect/heartbeat": "1.2.1", - "@walletconnect/jsonrpc-provider": "1.0.13", - "@walletconnect/jsonrpc-types": "1.0.3", + "@walletconnect/heartbeat": "1.2.2", + "@walletconnect/jsonrpc-provider": "1.0.14", + "@walletconnect/jsonrpc-types": "1.0.4", "@walletconnect/jsonrpc-utils": "1.0.8", "@walletconnect/jsonrpc-ws-connection": "1.0.14", - "@walletconnect/keyvaluestorage": "^1.1.1", - "@walletconnect/logger": "^2.0.1", - "@walletconnect/relay-api": "^1.0.9", - "@walletconnect/relay-auth": "^1.0.4", - "@walletconnect/safe-json": "^1.0.2", - "@walletconnect/time": "^1.0.2", - "@walletconnect/types": "2.11.3", - "@walletconnect/utils": "2.11.3", - "events": "^3.3.0", - "isomorphic-unfetch": "3.1.0", + "@walletconnect/keyvaluestorage": "1.1.1", + "@walletconnect/logger": "2.1.2", + "@walletconnect/relay-api": "1.0.11", + "@walletconnect/relay-auth": "1.0.4", + "@walletconnect/safe-json": "1.0.2", + "@walletconnect/time": "1.0.2", + "@walletconnect/types": "2.15.1", + "@walletconnect/utils": "2.15.1", + "events": "3.3.0", "lodash.isequal": "4.5.0", - "uint8arrays": "^3.1.0" + "uint8arrays": "3.1.0" + }, + "engines": { + "node": ">=18" } }, "node_modules/@walletconnect/core/node_modules/@walletconnect/keyvaluestorage": { @@ -7343,28 +7341,23 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@walletconnect/heartbeat": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@walletconnect/heartbeat/-/heartbeat-1.2.1.tgz", - "integrity": "sha512-yVzws616xsDLJxuG/28FqtZ5rzrTA4gUjdEMTbWB5Y8V1XHRmqq4efAxCw5ie7WjbXFSUyBHaWlMR+2/CpQC5Q==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@walletconnect/heartbeat/-/heartbeat-1.2.2.tgz", + "integrity": "sha512-uASiRmC5MwhuRuf05vq4AT48Pq8RMi876zV8rr8cV969uTOzWdB/k+Lj5yI2PBtB1bGQisGen7MM1GcZlQTBXw==", "dependencies": { "@walletconnect/events": "^1.0.1", "@walletconnect/time": "^1.0.2", - "tslib": "1.14.1" + "events": "^3.3.0" } }, - "node_modules/@walletconnect/heartbeat/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/jsonrpc-provider": { - "version": "1.0.13", - "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-provider/-/jsonrpc-provider-1.0.13.tgz", - "integrity": "sha512-K73EpThqHnSR26gOyNEL+acEex3P7VWZe6KE12ZwKzAt2H4e5gldZHbjsu2QR9cLeJ8AXuO7kEMOIcRv1QEc7g==", + "version": "1.0.14", + "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-provider/-/jsonrpc-provider-1.0.14.tgz", + "integrity": "sha512-rtsNY1XqHvWj0EtITNeuf8PHMvlCLiS3EjQL+WOkxEOA4KPxsohFnBDeyPYiNm4ZvkQdLnece36opYidmtbmow==", "dependencies": { "@walletconnect/jsonrpc-utils": "^1.0.8", "@walletconnect/safe-json": "^1.0.2", - "tslib": "1.14.1" + "events": "^3.3.0" } }, "node_modules/@walletconnect/jsonrpc-provider/node_modules/@walletconnect/safe-json": { @@ -7381,19 +7374,14 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@walletconnect/jsonrpc-types": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-types/-/jsonrpc-types-1.0.3.tgz", - "integrity": "sha512-iIQ8hboBl3o5ufmJ8cuduGad0CQm3ZlsHtujv9Eu16xq89q+BG7Nh5VLxxUgmtpnrePgFkTwXirCTkwJH1v+Yw==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-types/-/jsonrpc-types-1.0.4.tgz", + "integrity": "sha512-P6679fG/M+wuWg9TY8mh6xFSdYnFyFjwFelxyISxMDrlbXokorEVXYOxiqEbrU3x1BmBoCAJJ+vtEaEoMlpCBQ==", "dependencies": { - "keyvaluestorage-interface": "^1.0.0", - "tslib": "1.14.1" + "events": "^3.3.0", + "keyvaluestorage-interface": "^1.0.0" } }, - "node_modules/@walletconnect/jsonrpc-types/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/jsonrpc-utils": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-utils/-/jsonrpc-utils-1.0.8.tgz", @@ -7481,9 +7469,9 @@ "integrity": "sha512-ZtKRio4uCZ1JUF7LIdecmZt7FOLnX72RPSY7aUVu7mj7CSfxDwUn6gBuK6WGtH+NZCldBqDl5DenI5fFSvkKYw==" }, "node_modules/@walletconnect/relay-api": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/@walletconnect/relay-api/-/relay-api-1.0.10.tgz", - "integrity": "sha512-tqrdd4zU9VBNqUaXXQASaexklv6A54yEyQQEXYOCr+Jz8Ket0dmPBDyg19LVSNUN2cipAghQc45/KVmfFJ0cYw==", + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@walletconnect/relay-api/-/relay-api-1.0.11.tgz", + "integrity": "sha512-tLPErkze/HmC9aCmdZOhtVmYZq1wKfWTJtygQHoWtgg722Jd4homo54Cs4ak2RUFUZIGO2RsOpIcWipaua5D5Q==", "dependencies": { "@walletconnect/jsonrpc-types": "^1.0.2" } @@ -7520,19 +7508,19 @@ "integrity": "sha512-QJzp/S/86sUAgWY6eh5MKYmSfZaRpIlmCJdi5uG4DJlKkZrHEF7ye7gA+VtbVzvTtpM/gRwO2plQuiooIeXjfg==" }, "node_modules/@walletconnect/sign-client": { - "version": "2.11.3", - "resolved": "https://registry.npmjs.org/@walletconnect/sign-client/-/sign-client-2.11.3.tgz", - "integrity": "sha512-JVjLTxN/3NjMXv5zalSGKuSYLRyU2yX6AWEdq17cInlrwODpbWZr6PS1uxMWdH4r90DXBLhdtwDbEq/pfd0BPg==", + "version": "2.15.1", + "resolved": "https://registry.npmjs.org/@walletconnect/sign-client/-/sign-client-2.15.1.tgz", + "integrity": "sha512-YnLNEmCHgZ8yBpE3hwZnHD/bVznVMguSAlwLBNOoWUH2f4d9mR8bqa6KeVXqZ3e8mVHcxKTJTjTJ3oQMLyKIjw==", "dependencies": { - "@walletconnect/core": "2.11.3", - "@walletconnect/events": "^1.0.1", - "@walletconnect/heartbeat": "1.2.1", + "@walletconnect/core": "2.15.1", + "@walletconnect/events": "1.0.1", + "@walletconnect/heartbeat": "1.2.2", "@walletconnect/jsonrpc-utils": "1.0.8", - "@walletconnect/logger": "^2.0.1", - "@walletconnect/time": "^1.0.2", - "@walletconnect/types": "2.11.3", - "@walletconnect/utils": "2.11.3", - "events": "^3.3.0" + "@walletconnect/logger": "2.1.2", + "@walletconnect/time": "1.0.2", + "@walletconnect/types": "2.15.1", + "@walletconnect/utils": "2.15.1", + "events": "3.3.0" } }, "node_modules/@walletconnect/time": { @@ -7549,16 +7537,16 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@walletconnect/types": { - "version": "2.11.3", - "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-2.11.3.tgz", - "integrity": "sha512-JY4wA9MVosDW9dcJMTpnwliste0aJGJ1X6Q4ulLsQsgWRSEBRkLila0oUT01TDBW9Yq8uUp7uFOUTaKx6KWVAg==", + "version": "2.15.1", + "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-2.15.1.tgz", + "integrity": "sha512-4WkMsHD8ioZI5GmxNT0qMlz6msI7ZajBcTyDxfRncaNZVau0C+Btw1U4jWO+gxwJVDJY+Ue/cb1QKJ5BanZsyw==", "dependencies": { - "@walletconnect/events": "^1.0.1", - "@walletconnect/heartbeat": "1.2.1", - "@walletconnect/jsonrpc-types": "1.0.3", - "@walletconnect/keyvaluestorage": "^1.1.1", - "@walletconnect/logger": "^2.0.1", - "events": "^3.3.0" + "@walletconnect/events": "1.0.1", + "@walletconnect/heartbeat": "1.2.2", + "@walletconnect/jsonrpc-types": "1.0.4", + "@walletconnect/keyvaluestorage": "1.1.1", + "@walletconnect/logger": "2.1.2", + "events": "3.3.0" } }, "node_modules/@walletconnect/types/node_modules/@walletconnect/keyvaluestorage": { @@ -7593,24 +7581,24 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@walletconnect/utils": { - "version": "2.11.3", - "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-2.11.3.tgz", - "integrity": "sha512-jsdNkrl/IcTkzWFn0S2d0urzBXg6RxVJtUYRsUx3qI3wzOGiABP9ui3yiZ3SgZOv9aRe62PaNp1qpbYZ+zPb8Q==", + "version": "2.15.1", + "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-2.15.1.tgz", + "integrity": "sha512-i5AR8XpZdcX8ghaCjYV13Er/KAGe56c1mLaG9c2cv9kmnZMZijeMdInjX/flnSM1RFDUiZXvKPMUNwlCL4NsWw==", "dependencies": { "@stablelib/chacha20poly1305": "1.0.1", "@stablelib/hkdf": "1.0.1", - "@stablelib/random": "^1.0.2", + "@stablelib/random": "1.0.2", "@stablelib/sha256": "1.0.1", - "@stablelib/x25519": "^1.0.3", - "@walletconnect/relay-api": "^1.0.9", - "@walletconnect/safe-json": "^1.0.2", - "@walletconnect/time": "^1.0.2", - "@walletconnect/types": "2.11.3", - "@walletconnect/window-getters": "^1.0.1", - "@walletconnect/window-metadata": "^1.0.1", + "@stablelib/x25519": "1.0.3", + "@walletconnect/relay-api": "1.0.11", + "@walletconnect/safe-json": "1.0.2", + "@walletconnect/time": "1.0.2", + "@walletconnect/types": "2.15.1", + "@walletconnect/window-getters": "1.0.1", + "@walletconnect/window-metadata": "1.0.1", "detect-browser": "5.3.0", "query-string": "7.1.3", - "uint8arrays": "^3.1.0" + "uint8arrays": "3.1.0" } }, "node_modules/@walletconnect/utils/node_modules/@walletconnect/safe-json": { @@ -9029,14 +9017,6 @@ "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", @@ -10524,9 +10504,9 @@ } }, "node_modules/cookie-es": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/cookie-es/-/cookie-es-1.1.0.tgz", - "integrity": "sha512-L2rLOcK0wzWSfSDA33YR+PUHDG10a8px7rUHKWbGLP4YfbsMed2KFUw5fczvDPbT98DDe3LEzviswl810apTEw==" + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/cookie-es/-/cookie-es-1.2.2.tgz", + "integrity": "sha512-+W7VmiVINB+ywl1HGXJXmrqkOhpKrIiVZV6tQuV54ZyQC7MMuBt81Vc336GMLoHBq5hV/F9eXgt5Mnx0Rha5Fg==" }, "node_modules/cookie-signature": { "version": "1.0.6", @@ -15034,18 +15014,18 @@ } }, "node_modules/h3": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/h3/-/h3-1.11.1.tgz", - "integrity": "sha512-AbaH6IDnZN6nmbnJOH72y3c5Wwh9P97soSVdGSBbcDACRdkC0FEWf25pzx4f/NuOCK6quHmW18yF2Wx+G4Zi1A==", + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/h3/-/h3-1.12.0.tgz", + "integrity": "sha512-Zi/CcNeWBXDrFNlV0hUBJQR9F7a96RjMeAZweW/ZWkR9fuXrMcvKnSA63f/zZ9l0GgQOZDVHGvXivNN9PWOwhA==", "dependencies": { - "cookie-es": "^1.0.0", - "crossws": "^0.2.2", + "cookie-es": "^1.1.0", + "crossws": "^0.2.4", "defu": "^6.1.4", "destr": "^2.0.3", - "iron-webcrypto": "^1.0.0", + "iron-webcrypto": "^1.1.1", "ohash": "^1.1.3", - "radix3": "^1.1.0", - "ufo": "^1.4.0", + "radix3": "^1.1.2", + "ufo": "^1.5.3", "uncrypto": "^0.1.3", "unenv": "^1.9.0" } @@ -16307,15 +16287,6 @@ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" }, - "node_modules/isomorphic-unfetch": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/isomorphic-unfetch/-/isomorphic-unfetch-3.1.0.tgz", - "integrity": "sha512-geDJjpoZ8N0kWexiwkX8F9NkTsXhetLPVbZFQ+JTW239QNOwvB0gniuR1Wc6f0AMTn7/mFGyXvHTifrCp/GH8Q==", - "dependencies": { - "node-fetch": "^2.6.1", - "unfetch": "^4.2.0" - } - }, "node_modules/isomorphic-ws": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-4.0.1.tgz", @@ -19880,6 +19851,8 @@ "version": "2.6.7", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", + "dev": true, + "optional": true, "dependencies": { "whatwg-url": "^5.0.0" }, @@ -20663,12 +20636,12 @@ } }, "node_modules/pkg-types": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.1.1.tgz", - "integrity": "sha512-ko14TjmDuQJ14zsotODv7dBlwxKhUKQEhuhmbqo1uCi9BB0Z2alo/wAXg6q1dTR5TyuqYyWhjtfe/Tsh+X28jQ==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.2.0.tgz", + "integrity": "sha512-+ifYuSSqOQ8CqP4MbZA5hDpb97n3E8SVWdJe+Wms9kj745lmd3b7EZJiqvmLwAlmRfjrI7Hi5z3kdBJ93lFNPA==", "dependencies": { "confbox": "^0.1.7", - "mlly": "^1.7.0", + "mlly": "^1.7.1", "pathe": "^1.1.2" } }, @@ -27011,14 +26984,14 @@ } }, "node_modules/ufo": { - "version": "1.5.3", - "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.5.3.tgz", - "integrity": "sha512-Y7HYmWaFwPUmkoQCUIAYpKqkOf+SbVj/2fJJZ4RJMCfZp0rTGwRbzQD+HghfnhKOjL9E01okqz+ncJskGYfBNw==" + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.5.4.tgz", + "integrity": "sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==" }, "node_modules/uint8arrays": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-3.1.1.tgz", - "integrity": "sha512-+QJa8QRnbdXVpHYjLoTpJIdCTiw9Ir62nocClWuXIq2JIh4Uta0cQsTSpFL678p2CN8B+XSApwcU+pQEqVpKWg==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-3.1.0.tgz", + "integrity": "sha512-ei5rfKtoRO8OyOIor2Rz5fhzjThwIHJZ3uyDPnDHTXbP0aMQ1RN/6AI5B5d9dBxJOU+BvOAk7ZQ1xphsX8Lrog==", "dependencies": { "multiformats": "^9.4.2" } @@ -27049,15 +27022,15 @@ "integrity": "sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q==" }, "node_modules/unenv": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/unenv/-/unenv-1.9.0.tgz", - "integrity": "sha512-QKnFNznRxmbOF1hDgzpqrlIf6NC5sbZ2OJ+5Wl3OX8uM+LUJXbj4TXvLJCtwbPTmbMHCLIz6JLKNinNsMShK9g==", + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/unenv/-/unenv-1.10.0.tgz", + "integrity": "sha512-wY5bskBQFL9n3Eca5XnhH6KbUo/tfvkwm9OpcdCvLaeA7piBNbavbOKJySEwQ1V0RH6HvNlSAFRTpvTqgKRQXQ==", "dependencies": { "consola": "^3.2.3", - "defu": "^6.1.3", + "defu": "^6.1.4", "mime": "^3.0.0", - "node-fetch-native": "^1.6.1", - "pathe": "^1.1.1" + "node-fetch-native": "^1.6.4", + "pathe": "^1.1.2" } }, "node_modules/unenv/node_modules/mime": { @@ -27071,11 +27044,6 @@ "node": ">=10.0.0" } }, - "node_modules/unfetch": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/unfetch/-/unfetch-4.2.0.tgz", - "integrity": "sha512-F9p7yYCn6cIW9El1zi0HI6vqpeIvBsr3dSuRO6Xuppb1u5rXpCPmMvLSyECLhybr9isec8Ohl0hPekMVrEinDA==" - }, "node_modules/unicode-canonical-property-names-ecmascript": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", @@ -27252,12 +27220,9 @@ } }, "node_modules/unstorage/node_modules/lru-cache": { - "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" - } + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==" }, "node_modules/untun": { "version": "0.1.3", @@ -29091,13 +29056,13 @@ }, "dependencies": { "@alephium/cli": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@alephium/cli/-/cli-1.0.1.tgz", - "integrity": "sha512-AsVBxFOLVTlohW9IWoAk8P5DDmAp/6wiO8vO5KQ61uWVHvg3WHvRFH9IzwAMumc7y7ONOCCzo+F3OijBKVTwLA==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@alephium/cli/-/cli-1.5.1.tgz", + "integrity": "sha512-35ZCRkkOqZDLQDIQPQfQ29ENfzMY8T2U18tp6aPFWBtHeAKT3BCzbEr5KOaDzVoGL7iyGk1w5xJ3RYJ3/vZRig==", "dev": true, "requires": { - "@alephium/web3": "^1.0.1", - "@alephium/web3-wallet": "^1.0.1", + "@alephium/web3": "^1.5.1", + "@alephium/web3-wallet": "^1.5.1", "@swc/core": "^1.4.1", "commander": "^9.5.0", "cross-fetch": "^3.1.5", @@ -29109,11 +29074,11 @@ } }, "@alephium/get-extension-wallet": { - "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==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@alephium/get-extension-wallet/-/get-extension-wallet-1.5.1.tgz", + "integrity": "sha512-XkoInq242n6xWnFEAXDSMVaWmDU4dquWyIBm7yIO8DPXKRW5Nr9sxs1Zg6EjFFYeXkXFCOH+kEJtbUwJj+FZfQ==", "requires": { - "@alephium/web3": "^1.0.1", + "@alephium/web3": "^1.5.1", "bowser": "^2.11.0" } }, @@ -29126,17 +29091,17 @@ } }, "@alephium/walletconnect-provider": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@alephium/walletconnect-provider/-/walletconnect-provider-1.0.1.tgz", - "integrity": "sha512-VhtGYDqDMH7FC7Rx30EG7t6w9Y4D7Kr8Cr36/FDm02xH3xoZ7k2nqx5OupPfqcAVgaJ/nEdvRxZEyViYt61iAw==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@alephium/walletconnect-provider/-/walletconnect-provider-1.5.1.tgz", + "integrity": "sha512-8/g0StBd2H4jrQ0HNGNQi/LuGpehsTiCmE5njzxZg1N17FIMzHDwvkLTBs7lgemlUdBQsYgPJheZTN7q0fWYcw==", "requires": { - "@alephium/web3": "^1.0.1", - "@alephium/web3-wallet": "^1.0.1", - "@walletconnect/core": "2.11.3", + "@alephium/web3": "^1.5.1", + "@alephium/web3-wallet": "^1.5.1", + "@walletconnect/core": "2.15.1", "@walletconnect/keyvaluestorage": "1.1.1", - "@walletconnect/sign-client": "2.11.3", - "@walletconnect/types": "2.11.3", - "@walletconnect/utils": "2.11.3", + "@walletconnect/sign-client": "2.15.1", + "@walletconnect/types": "2.15.1", + "@walletconnect/utils": "2.15.1", "async-sema": "^3.1.1", "eventemitter3": "^4.0.7" }, @@ -29373,14 +29338,13 @@ } }, "@alephium/web3": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@alephium/web3/-/web3-1.0.1.tgz", - "integrity": "sha512-DKPscVULkv924k6eQ4yZ69F1rm4WFAg4y4CglAWLgaRXjjcinnLevLtAbUItU25WoyDseD8pQHSmJov82YdG0g==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@alephium/web3/-/web3-1.5.1.tgz", + "integrity": "sha512-BJh7A1gF9FVCt79j0fsG7wtdMwOQqYL2utv/Ca6byJc+WV5/VKG+m6pB0Sxt1nwmjl8ZcAv1ulO62xXwS1Euzg==", "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", "cross-fetch": "^3.1.5", @@ -29392,12 +29356,12 @@ } }, "@alephium/web3-react": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@alephium/web3-react/-/web3-react-1.0.1.tgz", - "integrity": "sha512-Ot9WeykFQN+rAhlsXlyjHRJOw8ilOl5t9NuICKqJZBMvcwqbZ3iidK8fgRxYVeeDV0xqDq79BguvOge0VhXb6Q==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@alephium/web3-react/-/web3-react-1.5.1.tgz", + "integrity": "sha512-xmvt2/zJ+8nefFU9ZcNnrFnj3mzQXN+OwrJ1jYgA4HtcTflwCcw6hMrjHvVIu4KTuEYL9bVpfPEuE6Vsmc7Tqg==", "requires": { - "@alephium/get-extension-wallet": "^1.0.1", - "@alephium/walletconnect-provider": "^1.0.1", + "@alephium/get-extension-wallet": "^1.5.1", + "@alephium/walletconnect-provider": "^1.5.1", "@alephium/walletconnect-qrcode-modal": "^0.1.0", "buffer": "^6.0.3", "detect-browser": "^5.3.0", @@ -29410,21 +29374,21 @@ } }, "@alephium/web3-test": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@alephium/web3-test/-/web3-test-1.0.1.tgz", - "integrity": "sha512-UQxw80WpXIunkmG6WLvlymZBbZ/Gra5SMtgCbesoaSfh2Me+IVx1KGDN4USuf2dKLCjyYPMKw7yZPQHtgSdAhw==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@alephium/web3-test/-/web3-test-1.5.1.tgz", + "integrity": "sha512-ew01I7Ce3BwFN5mwN/38A6uepXPBiArwUAl7aWpltXqhy5jjGG+gg5IaKzjwprDEEp3tHs5W2hRlIpPJR1FcfA==", "dev": true, "requires": { - "@alephium/web3": "^1.0.1", - "@alephium/web3-wallet": "^1.0.1" + "@alephium/web3": "^1.5.1", + "@alephium/web3-wallet": "^1.5.1" } }, "@alephium/web3-wallet": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@alephium/web3-wallet/-/web3-wallet-1.0.1.tgz", - "integrity": "sha512-C6tuoNhF08R4b8Ipm8z17uh4HulkwzANycu4s+Rt7uOxWtKMQ5qfidQeN3VuAuPBLc828LpvRSdJriVxNackDw==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@alephium/web3-wallet/-/web3-wallet-1.5.1.tgz", + "integrity": "sha512-ZeH4PTlQoDNLYi7V+lE02evO5bhYvpYMrqifvNiIOskrRh11y9O/vLgFFplRFJ8kIkt6uKip4msQ3D8c+a8AcA==", "requires": { - "@alephium/web3": "^1.0.1", + "@alephium/web3": "^1.5.1", "@noble/secp256k1": "1.7.1", "@types/node": "^16.18.23", "bip32": "3.1.0", @@ -32151,9 +32115,9 @@ }, "dependencies": { "node-addon-api": { - "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==" + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz", + "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==" } } }, @@ -34175,27 +34139,26 @@ } }, "@walletconnect/core": { - "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==", + "version": "2.15.1", + "resolved": "https://registry.npmjs.org/@walletconnect/core/-/core-2.15.1.tgz", + "integrity": "sha512-9MWVt33MFrLiAeK9nqY/B30/y0M4uiq8v9EXenIBQdlgkmXM++RTcOnn7u7EAbthGgzx3WLPRm4ViwIb+rI/Cg==", "requires": { - "@walletconnect/heartbeat": "1.2.1", - "@walletconnect/jsonrpc-provider": "1.0.13", - "@walletconnect/jsonrpc-types": "1.0.3", + "@walletconnect/heartbeat": "1.2.2", + "@walletconnect/jsonrpc-provider": "1.0.14", + "@walletconnect/jsonrpc-types": "1.0.4", "@walletconnect/jsonrpc-utils": "1.0.8", "@walletconnect/jsonrpc-ws-connection": "1.0.14", - "@walletconnect/keyvaluestorage": "^1.1.1", - "@walletconnect/logger": "^2.0.1", - "@walletconnect/relay-api": "^1.0.9", - "@walletconnect/relay-auth": "^1.0.4", - "@walletconnect/safe-json": "^1.0.2", - "@walletconnect/time": "^1.0.2", - "@walletconnect/types": "2.11.3", - "@walletconnect/utils": "2.11.3", - "events": "^3.3.0", - "isomorphic-unfetch": "3.1.0", + "@walletconnect/keyvaluestorage": "1.1.1", + "@walletconnect/logger": "2.1.2", + "@walletconnect/relay-api": "1.0.11", + "@walletconnect/relay-auth": "1.0.4", + "@walletconnect/safe-json": "1.0.2", + "@walletconnect/time": "1.0.2", + "@walletconnect/types": "2.15.1", + "@walletconnect/utils": "2.15.1", + "events": "3.3.0", "lodash.isequal": "4.5.0", - "uint8arrays": "^3.1.0" + "uint8arrays": "3.1.0" }, "dependencies": { "@walletconnect/keyvaluestorage": { @@ -34255,30 +34218,23 @@ } }, "@walletconnect/heartbeat": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@walletconnect/heartbeat/-/heartbeat-1.2.1.tgz", - "integrity": "sha512-yVzws616xsDLJxuG/28FqtZ5rzrTA4gUjdEMTbWB5Y8V1XHRmqq4efAxCw5ie7WjbXFSUyBHaWlMR+2/CpQC5Q==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@walletconnect/heartbeat/-/heartbeat-1.2.2.tgz", + "integrity": "sha512-uASiRmC5MwhuRuf05vq4AT48Pq8RMi876zV8rr8cV969uTOzWdB/k+Lj5yI2PBtB1bGQisGen7MM1GcZlQTBXw==", "requires": { "@walletconnect/events": "^1.0.1", "@walletconnect/time": "^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==" - } + "events": "^3.3.0" } }, "@walletconnect/jsonrpc-provider": { - "version": "1.0.13", - "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-provider/-/jsonrpc-provider-1.0.13.tgz", - "integrity": "sha512-K73EpThqHnSR26gOyNEL+acEex3P7VWZe6KE12ZwKzAt2H4e5gldZHbjsu2QR9cLeJ8AXuO7kEMOIcRv1QEc7g==", + "version": "1.0.14", + "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-provider/-/jsonrpc-provider-1.0.14.tgz", + "integrity": "sha512-rtsNY1XqHvWj0EtITNeuf8PHMvlCLiS3EjQL+WOkxEOA4KPxsohFnBDeyPYiNm4ZvkQdLnece36opYidmtbmow==", "requires": { "@walletconnect/jsonrpc-utils": "^1.0.8", "@walletconnect/safe-json": "^1.0.2", - "tslib": "1.14.1" + "events": "^3.3.0" }, "dependencies": { "@walletconnect/safe-json": { @@ -34297,19 +34253,12 @@ } }, "@walletconnect/jsonrpc-types": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-types/-/jsonrpc-types-1.0.3.tgz", - "integrity": "sha512-iIQ8hboBl3o5ufmJ8cuduGad0CQm3ZlsHtujv9Eu16xq89q+BG7Nh5VLxxUgmtpnrePgFkTwXirCTkwJH1v+Yw==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-types/-/jsonrpc-types-1.0.4.tgz", + "integrity": "sha512-P6679fG/M+wuWg9TY8mh6xFSdYnFyFjwFelxyISxMDrlbXokorEVXYOxiqEbrU3x1BmBoCAJJ+vtEaEoMlpCBQ==", "requires": { - "keyvaluestorage-interface": "^1.0.0", - "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==" - } + "events": "^3.3.0", + "keyvaluestorage-interface": "^1.0.0" } }, "@walletconnect/jsonrpc-utils": { @@ -34391,9 +34340,9 @@ "integrity": "sha512-ZtKRio4uCZ1JUF7LIdecmZt7FOLnX72RPSY7aUVu7mj7CSfxDwUn6gBuK6WGtH+NZCldBqDl5DenI5fFSvkKYw==" }, "@walletconnect/relay-api": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/@walletconnect/relay-api/-/relay-api-1.0.10.tgz", - "integrity": "sha512-tqrdd4zU9VBNqUaXXQASaexklv6A54yEyQQEXYOCr+Jz8Ket0dmPBDyg19LVSNUN2cipAghQc45/KVmfFJ0cYw==", + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@walletconnect/relay-api/-/relay-api-1.0.11.tgz", + "integrity": "sha512-tLPErkze/HmC9aCmdZOhtVmYZq1wKfWTJtygQHoWtgg722Jd4homo54Cs4ak2RUFUZIGO2RsOpIcWipaua5D5Q==", "requires": { "@walletconnect/jsonrpc-types": "^1.0.2" } @@ -34432,19 +34381,19 @@ "integrity": "sha512-QJzp/S/86sUAgWY6eh5MKYmSfZaRpIlmCJdi5uG4DJlKkZrHEF7ye7gA+VtbVzvTtpM/gRwO2plQuiooIeXjfg==" }, "@walletconnect/sign-client": { - "version": "2.11.3", - "resolved": "https://registry.npmjs.org/@walletconnect/sign-client/-/sign-client-2.11.3.tgz", - "integrity": "sha512-JVjLTxN/3NjMXv5zalSGKuSYLRyU2yX6AWEdq17cInlrwODpbWZr6PS1uxMWdH4r90DXBLhdtwDbEq/pfd0BPg==", + "version": "2.15.1", + "resolved": "https://registry.npmjs.org/@walletconnect/sign-client/-/sign-client-2.15.1.tgz", + "integrity": "sha512-YnLNEmCHgZ8yBpE3hwZnHD/bVznVMguSAlwLBNOoWUH2f4d9mR8bqa6KeVXqZ3e8mVHcxKTJTjTJ3oQMLyKIjw==", "requires": { - "@walletconnect/core": "2.11.3", - "@walletconnect/events": "^1.0.1", - "@walletconnect/heartbeat": "1.2.1", + "@walletconnect/core": "2.15.1", + "@walletconnect/events": "1.0.1", + "@walletconnect/heartbeat": "1.2.2", "@walletconnect/jsonrpc-utils": "1.0.8", - "@walletconnect/logger": "^2.0.1", - "@walletconnect/time": "^1.0.2", - "@walletconnect/types": "2.11.3", - "@walletconnect/utils": "2.11.3", - "events": "^3.3.0" + "@walletconnect/logger": "2.1.2", + "@walletconnect/time": "1.0.2", + "@walletconnect/types": "2.15.1", + "@walletconnect/utils": "2.15.1", + "events": "3.3.0" } }, "@walletconnect/time": { @@ -34463,16 +34412,16 @@ } }, "@walletconnect/types": { - "version": "2.11.3", - "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-2.11.3.tgz", - "integrity": "sha512-JY4wA9MVosDW9dcJMTpnwliste0aJGJ1X6Q4ulLsQsgWRSEBRkLila0oUT01TDBW9Yq8uUp7uFOUTaKx6KWVAg==", + "version": "2.15.1", + "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-2.15.1.tgz", + "integrity": "sha512-4WkMsHD8ioZI5GmxNT0qMlz6msI7ZajBcTyDxfRncaNZVau0C+Btw1U4jWO+gxwJVDJY+Ue/cb1QKJ5BanZsyw==", "requires": { - "@walletconnect/events": "^1.0.1", - "@walletconnect/heartbeat": "1.2.1", - "@walletconnect/jsonrpc-types": "1.0.3", - "@walletconnect/keyvaluestorage": "^1.1.1", - "@walletconnect/logger": "^2.0.1", - "events": "^3.3.0" + "@walletconnect/events": "1.0.1", + "@walletconnect/heartbeat": "1.2.2", + "@walletconnect/jsonrpc-types": "1.0.4", + "@walletconnect/keyvaluestorage": "1.1.1", + "@walletconnect/logger": "2.1.2", + "events": "3.3.0" }, "dependencies": { "@walletconnect/keyvaluestorage": { @@ -34501,24 +34450,24 @@ } }, "@walletconnect/utils": { - "version": "2.11.3", - "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-2.11.3.tgz", - "integrity": "sha512-jsdNkrl/IcTkzWFn0S2d0urzBXg6RxVJtUYRsUx3qI3wzOGiABP9ui3yiZ3SgZOv9aRe62PaNp1qpbYZ+zPb8Q==", + "version": "2.15.1", + "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-2.15.1.tgz", + "integrity": "sha512-i5AR8XpZdcX8ghaCjYV13Er/KAGe56c1mLaG9c2cv9kmnZMZijeMdInjX/flnSM1RFDUiZXvKPMUNwlCL4NsWw==", "requires": { "@stablelib/chacha20poly1305": "1.0.1", "@stablelib/hkdf": "1.0.1", - "@stablelib/random": "^1.0.2", + "@stablelib/random": "1.0.2", "@stablelib/sha256": "1.0.1", - "@stablelib/x25519": "^1.0.3", - "@walletconnect/relay-api": "^1.0.9", - "@walletconnect/safe-json": "^1.0.2", - "@walletconnect/time": "^1.0.2", - "@walletconnect/types": "2.11.3", - "@walletconnect/window-getters": "^1.0.1", - "@walletconnect/window-metadata": "^1.0.1", + "@stablelib/x25519": "1.0.3", + "@walletconnect/relay-api": "1.0.11", + "@walletconnect/safe-json": "1.0.2", + "@walletconnect/time": "1.0.2", + "@walletconnect/types": "2.15.1", + "@walletconnect/window-getters": "1.0.1", + "@walletconnect/window-metadata": "1.0.1", "detect-browser": "5.3.0", "query-string": "7.1.3", - "uint8arrays": "^3.1.0" + "uint8arrays": "3.1.0" }, "dependencies": { "@walletconnect/safe-json": { @@ -35639,11 +35588,6 @@ "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", @@ -36836,9 +36780,9 @@ "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==" }, "cookie-es": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/cookie-es/-/cookie-es-1.1.0.tgz", - "integrity": "sha512-L2rLOcK0wzWSfSDA33YR+PUHDG10a8px7rUHKWbGLP4YfbsMed2KFUw5fczvDPbT98DDe3LEzviswl810apTEw==" + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/cookie-es/-/cookie-es-1.2.2.tgz", + "integrity": "sha512-+W7VmiVINB+ywl1HGXJXmrqkOhpKrIiVZV6tQuV54ZyQC7MMuBt81Vc336GMLoHBq5hV/F9eXgt5Mnx0Rha5Fg==" }, "cookie-signature": { "version": "1.0.6", @@ -40231,18 +40175,18 @@ } }, "h3": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/h3/-/h3-1.11.1.tgz", - "integrity": "sha512-AbaH6IDnZN6nmbnJOH72y3c5Wwh9P97soSVdGSBbcDACRdkC0FEWf25pzx4f/NuOCK6quHmW18yF2Wx+G4Zi1A==", + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/h3/-/h3-1.12.0.tgz", + "integrity": "sha512-Zi/CcNeWBXDrFNlV0hUBJQR9F7a96RjMeAZweW/ZWkR9fuXrMcvKnSA63f/zZ9l0GgQOZDVHGvXivNN9PWOwhA==", "requires": { - "cookie-es": "^1.0.0", - "crossws": "^0.2.2", + "cookie-es": "^1.1.0", + "crossws": "^0.2.4", "defu": "^6.1.4", "destr": "^2.0.3", - "iron-webcrypto": "^1.0.0", + "iron-webcrypto": "^1.1.1", "ohash": "^1.1.3", - "radix3": "^1.1.0", - "ufo": "^1.4.0", + "radix3": "^1.1.2", + "ufo": "^1.5.3", "uncrypto": "^0.1.3", "unenv": "^1.9.0" } @@ -41136,15 +41080,6 @@ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" }, - "isomorphic-unfetch": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/isomorphic-unfetch/-/isomorphic-unfetch-3.1.0.tgz", - "integrity": "sha512-geDJjpoZ8N0kWexiwkX8F9NkTsXhetLPVbZFQ+JTW239QNOwvB0gniuR1Wc6f0AMTn7/mFGyXvHTifrCp/GH8Q==", - "requires": { - "node-fetch": "^2.6.1", - "unfetch": "^4.2.0" - } - }, "isomorphic-ws": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-4.0.1.tgz", @@ -43895,6 +43830,8 @@ "version": "2.6.7", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", + "dev": true, + "optional": true, "requires": { "whatwg-url": "^5.0.0" } @@ -44481,12 +44418,12 @@ } }, "pkg-types": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.1.1.tgz", - "integrity": "sha512-ko14TjmDuQJ14zsotODv7dBlwxKhUKQEhuhmbqo1uCi9BB0Z2alo/wAXg6q1dTR5TyuqYyWhjtfe/Tsh+X28jQ==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.2.0.tgz", + "integrity": "sha512-+ifYuSSqOQ8CqP4MbZA5hDpb97n3E8SVWdJe+Wms9kj745lmd3b7EZJiqvmLwAlmRfjrI7Hi5z3kdBJ93lFNPA==", "requires": { "confbox": "^0.1.7", - "mlly": "^1.7.0", + "mlly": "^1.7.1", "pathe": "^1.1.2" } }, @@ -49199,14 +49136,14 @@ } }, "ufo": { - "version": "1.5.3", - "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.5.3.tgz", - "integrity": "sha512-Y7HYmWaFwPUmkoQCUIAYpKqkOf+SbVj/2fJJZ4RJMCfZp0rTGwRbzQD+HghfnhKOjL9E01okqz+ncJskGYfBNw==" + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.5.4.tgz", + "integrity": "sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==" }, "uint8arrays": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-3.1.1.tgz", - "integrity": "sha512-+QJa8QRnbdXVpHYjLoTpJIdCTiw9Ir62nocClWuXIq2JIh4Uta0cQsTSpFL678p2CN8B+XSApwcU+pQEqVpKWg==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-3.1.0.tgz", + "integrity": "sha512-ei5rfKtoRO8OyOIor2Rz5fhzjThwIHJZ3uyDPnDHTXbP0aMQ1RN/6AI5B5d9dBxJOU+BvOAk7ZQ1xphsX8Lrog==", "requires": { "multiformats": "^9.4.2" } @@ -49234,15 +49171,15 @@ "integrity": "sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q==" }, "unenv": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/unenv/-/unenv-1.9.0.tgz", - "integrity": "sha512-QKnFNznRxmbOF1hDgzpqrlIf6NC5sbZ2OJ+5Wl3OX8uM+LUJXbj4TXvLJCtwbPTmbMHCLIz6JLKNinNsMShK9g==", + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/unenv/-/unenv-1.10.0.tgz", + "integrity": "sha512-wY5bskBQFL9n3Eca5XnhH6KbUo/tfvkwm9OpcdCvLaeA7piBNbavbOKJySEwQ1V0RH6HvNlSAFRTpvTqgKRQXQ==", "requires": { "consola": "^3.2.3", - "defu": "^6.1.3", + "defu": "^6.1.4", "mime": "^3.0.0", - "node-fetch-native": "^1.6.1", - "pathe": "^1.1.1" + "node-fetch-native": "^1.6.4", + "pathe": "^1.1.2" }, "dependencies": { "mime": { @@ -49252,11 +49189,6 @@ } } }, - "unfetch": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/unfetch/-/unfetch-4.2.0.tgz", - "integrity": "sha512-F9p7yYCn6cIW9El1zi0HI6vqpeIvBsr3dSuRO6Xuppb1u5rXpCPmMvLSyECLhybr9isec8Ohl0hPekMVrEinDA==" - }, "unicode-canonical-property-names-ecmascript": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", @@ -49345,9 +49277,9 @@ } }, "lru-cache": { - "version": "10.2.2", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.2.tgz", - "integrity": "sha512-9hp3Vp2/hFQUiIwKo8XCeFVnrg8Pk3TYNPIR7tJADKi5YfcF7vEaK7avFHTlSy3kOKYaJQaalfEo6YuXdceBOQ==" + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==" } } }, diff --git a/package.json b/package.json index fe39eb3..f8b504c 100644 --- a/package.json +++ b/package.json @@ -41,9 +41,9 @@ ] }, "dependencies": { - "@alephium/web3": "^1.0.1", - "@alephium/web3-wallet": "^1.0.1", - "@alephium/web3-react": "^1.0.1", + "@alephium/web3": "^1.5.1", + "@alephium/web3-wallet": "^1.5.1", + "@alephium/web3-react": "^1.5.1", "@alephium/token-list": "0.0.11", "@material-ui/core": "^4.12.2", "@material-ui/icons": "^4.11.2", @@ -65,8 +65,8 @@ "typescript": "^4.4.2" }, "devDependencies": { - "@alephium/cli": "^1.0.1", - "@alephium/web3-test": "^1.0.1", + "@alephium/cli": "^1.5.1", + "@alephium/web3-test": "^1.5.1", "@types/elliptic": "^6.4.13", "@types/jest": "^27.5.1", "@types/lodash-es": "^4.17.6",