From 3c0d209ccad04edacef3d7fa1ebb239b6f94ae47 Mon Sep 17 00:00:00 2001 From: Anastasios Date: Thu, 21 Nov 2024 15:14:10 +0400 Subject: [PATCH] feat: add default set fees, closes #5930 --- config/wallet-config.json | 1 + package.json | 4 +- pnpm-lock.yaml | 94 ++++++++++++++++++++++++++++++++++----- 3 files changed, 85 insertions(+), 14 deletions(-) diff --git a/config/wallet-config.json b/config/wallet-config.json index 8cba9fa556..13de87c912 100644 --- a/config/wallet-config.json +++ b/config/wallet-config.json @@ -83,6 +83,7 @@ "minValues": [2500, 3000, 3500], "minValuesEnabled": true }, + "tokenTransferFeeEstimations": [200, 400, 800], "nftMetadataEnabled": true, "ordinalsbot": { "integrationEnabled": true, diff --git a/package.json b/package.json index 7366191e20..0ae402b921 100644 --- a/package.json +++ b/package.json @@ -149,8 +149,8 @@ "@leather.io/bitcoin": "0.16.4", "@leather.io/constants": "0.13.2", "@leather.io/crypto": "1.6.11", - "@leather.io/models": "0.19.1", - "@leather.io/query": "2.22.3", + "@leather.io/models": "0.21.0", + "@leather.io/query": "2.23.0", "@leather.io/stacks": "1.3.4", "@leather.io/tokens": "0.12.1", "@leather.io/ui": "1.36.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 255bb14810..693ac1bfc0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -57,11 +57,11 @@ importers: specifier: 1.6.11 version: 1.6.11 '@leather.io/models': - specifier: 0.19.1 - version: 0.19.1 + specifier: 0.21.0 + version: 0.21.0 '@leather.io/query': - specifier: 2.22.3 - version: 2.22.3(encoding@0.1.13)(react@18.3.1) + specifier: 2.23.0 + version: 2.23.0(encoding@0.1.13)(react@18.3.1) '@leather.io/stacks': specifier: 1.3.4 version: 1.3.4(encoding@0.1.13) @@ -3064,32 +3064,47 @@ packages: '@leather.io/bitcoin@0.16.4': resolution: {integrity: sha512-S+v3YfgxLzok2KzNUq8W2+65rYmDa53e7fDPCMpTSgsT40WA2+mh5FW1QtwvjFHXO3TdJxeQuHDhwb8FgPUTeA==} + '@leather.io/bitcoin@0.16.6': + resolution: {integrity: sha512-P5OmvUTsoHQDxWcjAOqGvnbHNCjd2/XWYsMUZCrxGXCaPAQdhShLfvilzSUIOnUS/MkwxOMB28f2hGgs8lfeJA==} + '@leather.io/constants@0.13.2': resolution: {integrity: sha512-nYinFX1GjUVku3x4X1aGEW8KKpnhcbcA5r0CDH5jFfLi96uTDyPunW4g3RET+hvDDAiUsgR3PNHeE2MHJmNZTA==} + '@leather.io/constants@0.13.4': + resolution: {integrity: sha512-Cot8qwwLWeIMr0LFHtzVkeJZ/a+MSMuNPhrXKm5Psaqb2jyjkq5RrlCLtm9/cjwmkBTZeokWubaQUzyPMlQK4w==} + '@leather.io/crypto@1.6.11': resolution: {integrity: sha512-ygp2D5FZLjbYfOoMnt5LwDYaHx/lAsAc6zSm/Hpr1rHuDozkbpCtsQvUvFZbgDXPRPj4NZ9prEDazfTaMDFDgA==} + '@leather.io/crypto@1.6.13': + resolution: {integrity: sha512-wSQctUprSg8slWi5A5KskrXRKOEDP3M9TxY+SqQa9M6CsSFR212YLu4K6ZsbG4yKnhDUelegeg2kwpdpyT1pXg==} + '@leather.io/eslint-config@0.7.0': resolution: {integrity: sha512-4K7olfSC+mJnG90TSaLIlytp14yDprGXwe1+oP9TLQbuPFpJai3/+g5Bp/FeUC4NZ23UVbAlGXFCav2amBb77w==} '@leather.io/models@0.19.1': resolution: {integrity: sha512-mnp01iLEszIv03Iv0zWppSAumx+iFGTcqnn67Ix3YrMWFho9B6Ro30MBhDYXmJYu9i7f5gAhQQYZ/pJvPn5C/A==} + '@leather.io/models@0.21.0': + resolution: {integrity: sha512-cy/WToOVy0ZGHxza5kJL2aeKKnBXL4lSK/j3iig/rDWAgx5Vy7M8sCjFBbo4hlinskb8VgM5woGe7hIFjFZcmA==} + '@leather.io/panda-preset@0.5.2': resolution: {integrity: sha512-JxPGX7hEUKWLp4gYc2S5irK6QXVMFEGn2F7bXEv2cr8324DYa07i5iUF6/UVeRhrzVivcXEdd/6u0wlKc39Rcw==} '@leather.io/prettier-config@0.6.0': resolution: {integrity: sha512-QBKtLanfxFxXBlR58U/j8a6lBI0xzJzqqi36fXpGVp+9mJoEf6Ro6xrtFrixjW6seY6EOva4OApVnnPBsvOC/w==} - '@leather.io/query@2.22.3': - resolution: {integrity: sha512-vskXotfyqYD3DOZMXtzbYy1lxIU5WM17pJXuYrHrnKmwd3QzZEBoYrUWvInNvq48lKwM2EhrIOA5BQib4IqHaA==} + '@leather.io/query@2.23.0': + resolution: {integrity: sha512-1I4Vm2wDQWz4vK3fFFioh82sNrHKeSrDudRCUukoTH3wLREn/oLqIE24GDTGri4HcbxB60Qu+LcVTGl1XcU2QQ==} peerDependencies: react: '*' '@leather.io/rpc@2.1.17': resolution: {integrity: sha512-4h9GJ2W5327PDUM3Vba1TByxqL5/bs9Y7PsdcswNZLhgVQX785PO/ylEb8ylP0JSQKj2DJQUJ5dk0e5aRVyO9g==} + '@leather.io/rpc@2.1.19': + resolution: {integrity: sha512-IUcXnmIuPyu5TK3x46ReSw+2/As2cWa6mzA+tofe/e59K9E5SMpEXZAg+WhvgPRFaXWaA3W8BzeH0BVEoRwEtw==} + '@leather.io/stacks@1.3.4': resolution: {integrity: sha512-F7WPT/8sLd6DH5Tq8rNWRzcMYsSR0QZ64/3jr/jkjCdCxu43qaQu895XWURsPZkJ0f68fL3UpcrWnQPiWuzqIw==} @@ -3102,6 +3117,9 @@ packages: '@leather.io/utils@0.19.0': resolution: {integrity: sha512-+iWYuwdqyWPupWsI0UG3VBlu6dr/h62syIQghbPg4vvIev26xs+XaWkFbSM2VK4bQVs0CrRnYN7HL2wPHaiaWg==} + '@leather.io/utils@0.19.2': + resolution: {integrity: sha512-oLEasUP5BDeDbrB9vxH0C0zrZWcG2bj12KHaI9illCtIqEe9pLM/5R5Ee6vVH1Ft+vCg/HI7WHNu79o0NHFdgQ==} + '@ledgerhq/devices@8.4.2': resolution: {integrity: sha512-oWNTp3jCMaEvRHsXNYE/yo+PFMgXAJGFHLOU1UdE4/fYkniHbD9wdxwyZrZvrxr9hNw4/9wHiThyITwPtMzG7g==} @@ -19046,10 +19064,37 @@ snapshots: transitivePeerDependencies: - encoding + '@leather.io/bitcoin@0.16.6(encoding@0.1.13)': + dependencies: + '@bitcoinerlab/secp256k1': 1.0.2 + '@leather.io/constants': 0.13.4 + '@leather.io/crypto': 1.6.13 + '@leather.io/models': 0.21.0 + '@leather.io/utils': 0.19.2 + '@noble/hashes': 1.5.0 + '@noble/secp256k1': 2.1.0 + '@scure/base': 1.1.9 + '@scure/bip32': 1.5.0 + '@scure/bip39': 1.4.0 + '@scure/btc-signer': 1.4.0 + '@stacks/common': 6.13.0 + '@stacks/transactions': 6.17.0(encoding@0.1.13) + bip32: 4.0.0 + bitcoinjs-lib: 6.1.5 + ecpair: 2.1.0 + just-memoize: 2.2.0 + varuint-bitcoin: 1.1.2 + transitivePeerDependencies: + - encoding + '@leather.io/constants@0.13.2': dependencies: '@leather.io/models': 0.19.1 + '@leather.io/constants@0.13.4': + dependencies: + '@leather.io/models': 0.21.0 + '@leather.io/crypto@1.6.11': dependencies: '@leather.io/utils': 0.19.0 @@ -19057,6 +19102,13 @@ snapshots: '@scure/bip39': 1.4.0 just-memoize: 2.2.0 + '@leather.io/crypto@1.6.13': + dependencies: + '@leather.io/utils': 0.19.2 + '@scure/bip32': 1.5.0 + '@scure/bip39': 1.4.0 + just-memoize: 2.2.0 + '@leather.io/eslint-config@0.7.0(typescript@5.4.5)': dependencies: '@typescript-eslint/eslint-plugin': 6.9.0(@typescript-eslint/parser@6.9.0(eslint@8.56.0)(typescript@5.4.5))(eslint@8.56.0)(typescript@5.4.5) @@ -19073,6 +19125,12 @@ snapshots: bignumber.js: 9.1.2 zod: 3.23.8 + '@leather.io/models@0.21.0': + dependencies: + '@stacks/stacks-blockchain-api-types': 7.8.2 + bignumber.js: 9.1.2 + zod: 3.23.8 + '@leather.io/panda-preset@0.5.2(jsdom@22.1.0)(typescript@5.4.5)': dependencies: '@pandacss/dev': 0.46.1(jsdom@22.1.0)(typescript@5.4.5) @@ -19088,15 +19146,15 @@ snapshots: - '@vue/compiler-sfc' - supports-color - '@leather.io/query@2.22.3(encoding@0.1.13)(react@18.3.1)': + '@leather.io/query@2.23.0(encoding@0.1.13)(react@18.3.1)': dependencies: '@fungible-systems/zone-file': 2.0.0 '@hirosystems/token-metadata-api-client': 1.2.0(encoding@0.1.13) - '@leather.io/bitcoin': 0.16.4(encoding@0.1.13) - '@leather.io/constants': 0.13.2 - '@leather.io/models': 0.19.1 - '@leather.io/rpc': 2.1.17 - '@leather.io/utils': 0.19.0 + '@leather.io/bitcoin': 0.16.6(encoding@0.1.13) + '@leather.io/constants': 0.13.4 + '@leather.io/models': 0.21.0 + '@leather.io/rpc': 2.1.19 + '@leather.io/utils': 0.19.2 '@noble/hashes': 1.5.0 '@scure/base': 1.1.9 '@scure/bip32': 1.5.0 @@ -19126,6 +19184,11 @@ snapshots: '@leather.io/models': 0.19.1 zod: 3.23.8 + '@leather.io/rpc@2.1.19': + dependencies: + '@leather.io/models': 0.21.0 + zod: 3.23.8 + '@leather.io/stacks@1.3.4(encoding@0.1.13)': dependencies: '@leather.io/crypto': 1.6.11 @@ -19205,6 +19268,13 @@ snapshots: '@leather.io/rpc': 2.1.17 bignumber.js: 9.1.2 + '@leather.io/utils@0.19.2': + dependencies: + '@leather.io/constants': 0.13.4 + '@leather.io/models': 0.21.0 + '@leather.io/rpc': 2.1.19 + bignumber.js: 9.1.2 + '@ledgerhq/devices@8.4.2': dependencies: '@ledgerhq/errors': 6.18.0