Set up npm publishing, refactor build and publish #126
Annotations
6 errors
|
build / build
Process completed with exit code 1.
|
|
src/swap.test.ts > Test swap functionality > handles unsignedTransactionOnly flag:
packages/sugar-sdk/src/utils.ts#L149
CallExecutionError: Nonce provided for the transaction (20091) is lower than the current nonce of the account.
Try increasing the nonce or find the latest nonce with `getTransactionCount`.
Raw Call Arguments:
from: 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
to: 0x4bf3e32de155359d1d75e8b474b66848221142fc
value: 0 ETH
data: 0x24856bc3000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000002080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001200000000000000000000000004bf3e32de155359d1d75e8b474b66848221142fc0000000000000000000000000000000000000000000000056bc75e2d63100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000299560e827af36c94d2ac33a39bce1fe78631088db00420000000000000000000000000000000000004200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002ed1db00000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004242000000000000000000000000000000000000420000641217bfe6c773eec6cc4a38b5dc45b92292b6e1890000010b2c639c533813f4aa9d7837caf62653d097ff85000000000000000000000000000000000000000000000000000000000000
gas: 1000000
maxFeePerGas: 10 gwei
maxPriorityFeePerGas: 10 gwei
nonce: 20091
Details: nonce too low
Version: viem@2.38.2
❯ getCallError ../../node_modules/viem/utils/errors/getCallError.ts:42:10
❯ call ../../node_modules/viem/actions/public/call.ts:307:11
❯ waitForTransactionReceipt ../../node_modules/@wagmi/core/src/actions/waitForTransactionReceipt.ts:70:18
❯ submitSignedTransaction src/utils.ts:149:19
❯ src/swap.test.ts:541:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: 'nonce too low', docsPath: undefined, metaMessages: [ 'Raw Call Arguments:', ' from: 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266\n to: 0x4bf3e32de155359d1d75e8b474b66848221142fc\n value: 0 ETH\n data: 0x24856bc3000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000002080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001200000000000000000000000004bf3e32de155359d1d75e8b474b66848221142fc0000000000000000000000000000000000000000000000056bc75e2d63100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000299560e827af36c94d2ac33a39bce1fe78631088db004200000000000000000000000000000000000042000000000000
|
|
src/swap.test.ts > Test swap functionality > quote and swap from VELO to WETH:
packages/sugar-sdk/src/swap.ts#L337
CallExecutionError: Nonce provided for the transaction (20085) is lower than the current nonce of the account.
Try increasing the nonce or find the latest nonce with `getTransactionCount`.
Raw Call Arguments:
from: 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
to: 0x4bf3e32de155359d1d75e8b474b66848221142fc
value: 0 ETH
data: 0x24856bc3000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000002080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001200000000000000000000000004bf3e32de155359d1d75e8b474b66848221142fc00000000000000000000000000000000000000000000003635c9adc5dea00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000299560e827af36c94d2ac33a39bce1fe78631088db00420000000000000000000000000000000000004200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922668000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001d3cdff361a56500000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002b42000000000000000000000000000000000000420000c84200000000000000000000000000000000000006000000000000000000000000000000000000000000
gas: 40000000
maxFeePerGas: 1.00000015 gwei
maxPriorityFeePerGas: 0 gwei
nonce: 20085
Details: nonce too low
Version: viem@2.38.2
❯ getCallError ../../node_modules/viem/utils/errors/getCallError.ts:42:10
❯ call ../../node_modules/viem/actions/public/call.ts:307:11
❯ waitForTransactionReceipt ../../node_modules/@wagmi/core/src/actions/waitForTransactionReceipt.ts:70:18
❯ swap src/swap.ts:337:19
❯ src/swap.test.ts:343:17
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: 'nonce too low', docsPath: undefined, metaMessages: [ 'Raw Call Arguments:', ' from: 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266\n to: 0x4bf3e32de155359d1d75e8b474b66848221142fc\n value: 0 ETH\n data: 0x24856bc3000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000002080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001200000000000000000000000004bf3e32de155359d1d75e8b474b66848221142fc00000000000000000000000000000000000000000000003635c9adc5dea00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000299560e827af36c94d2ac33a39bce1fe78631088db0042000000000000000000000000000000000000420000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
|
src/swap.test.ts > Test swap functionality > quote and swap from VELO to ETH:
packages/sugar-sdk/src/swap.ts#L337
CallExecutionError: Nonce provided for the transaction (20083) is lower than the current nonce of the account.
Try increasing the nonce or find the latest nonce with `getTransactionCount`.
Raw Call Arguments:
from: 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
to: 0x4bf3e32de155359d1d75e8b474b66848221142fc
value: 0 ETH
data: 0x24856bc300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000308000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000002e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000004bf3e32de155359d1d75e8b474b66848221142fc00000000000000000000000000000000000000000000003635c9adc5dea00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000299560e827af36c94d2ac33a39bce1fe78631088db004200000000000000000000000000000000000042000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001200000000000000000000000004bf3e32de155359d1d75e8b474b66848221142fc8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001d3d22560d225500000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002b42000000000000000000000000000000000000420000c842000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266000000000000000000000000000000000000000000000000001d3d22560d2255
gas: 40000000
maxFeePerGas: 1.000000195 gwei
maxPriorityFeePerGas: 0 gwei
nonce: 20083
Details: nonce too low
Version: viem@2.38.2
❯ getCallError ../../node_modules/viem/utils/errors/getCallError.ts:42:10
❯ call ../../node_modules/viem/actions/public/call.ts:307:11
❯ waitForTransactionReceipt ../../node_modules/@wagmi/core/src/actions/waitForTransactionReceipt.ts:70:18
❯ swap src/swap.ts:337:19
❯ src/swap.test.ts:306:17
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: 'nonce too low', docsPath: undefined, metaMessages: [ 'Raw Call Arguments:', ' from: 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266\n to: 0x4bf3e32de155359d1d75e8b474b66848221142fc\n value: 0 ETH\n data: 0x24856bc300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000308000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000002e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000004bf3e32de155359d1d75e8b474b66848221142fc00000000000000000000000000000000000000000000003635c9adc5dea00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000
|
|
src/swap.test.ts > Test swap functionality > quote and swap from VELO to USDC:
packages/sugar-sdk/src/swap.ts#L337
CallExecutionError: Nonce provided for the transaction (20079) is lower than the current nonce of the account.
Try increasing the nonce or find the latest nonce with `getTransactionCount`.
Raw Call Arguments:
from: 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
to: 0x4bf3e32de155359d1d75e8b474b66848221142fc
value: 0 ETH
data: 0x24856bc3000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000002080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001200000000000000000000000004bf3e32de155359d1d75e8b474b66848221142fc0000000000000000000000000000000000000000000000056bc75e2d63100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000299560e827af36c94d2ac33a39bce1fe78631088db00420000000000000000000000000000000000004200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922668000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030dad000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004242000000000000000000000000000000000000420000641217bfe6c773eec6cc4a38b5dc45b92292b6e1890000010b2c639c533813f4aa9d7837caf62653d097ff85000000000000000000000000000000000000000000000000000000000000
gas: 40000000
maxFeePerGas: 1.00000033 gwei
maxPriorityFeePerGas: 0 gwei
nonce: 20079
Details: nonce too low
Version: viem@2.38.2
❯ getCallError ../../node_modules/viem/utils/errors/getCallError.ts:42:10
❯ call ../../node_modules/viem/actions/public/call.ts:307:11
❯ waitForTransactionReceipt ../../node_modules/@wagmi/core/src/actions/waitForTransactionReceipt.ts:70:18
❯ swap src/swap.ts:337:19
❯ src/swap.test.ts:228:17
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: 'nonce too low', docsPath: undefined, metaMessages: [ 'Raw Call Arguments:', ' from: 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266\n to: 0x4bf3e32de155359d1d75e8b474b66848221142fc\n value: 0 ETH\n data: 0x24856bc3000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000002080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001200000000000000000000000004bf3e32de155359d1d75e8b474b66848221142fc0000000000000000000000000000000000000000000000056bc75e2d63100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000299560e827af36c94d2ac33a39bce1fe78631088db004200000000000000000000000000000000000042000000000000000000000000
|
|
src/swap.test.ts > Test swap functionality > quote and swap from WETH to USDC:
packages/sugar-sdk/src/swap.ts#L337
CallExecutionError: Nonce provided for the transaction (20077) is lower than the current nonce of the account.
Try increasing the nonce or find the latest nonce with `getTransactionCount`.
Raw Call Arguments:
from: 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
to: 0x4bf3e32de155359d1d75e8b474b66848221142fc
value: 0 ETH
data: 0x24856bc30000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922660000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000000000000e57d7c7f00000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002b42000000000000000000000000000000000000060000640b2c639c533813f4aa9d7837caf62653d097ff85000000000000000000000000000000000000000000
gas: 232208
maxFeePerGas: 1.000000429 gwei
maxPriorityFeePerGas: 0 gwei
nonce: 20077
Details: nonce too low
Version: viem@2.38.2
❯ getCallError ../../node_modules/viem/utils/errors/getCallError.ts:42:10
❯ call ../../node_modules/viem/actions/public/call.ts:307:11
❯ waitForTransactionReceipt ../../node_modules/@wagmi/core/src/actions/waitForTransactionReceipt.ts:70:18
❯ swap src/swap.ts:337:19
❯ src/swap.test.ts:188:17
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: 'nonce too low', docsPath: undefined, metaMessages: [ 'Raw Call Arguments:', ' from: 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266\n to: 0x4bf3e32de155359d1d75e8b474b66848221142fc\n value: 0 ETH\n data: 0x24856bc30000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922660000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000000000000e57d7c7f00000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002b42000000000000000000000000000000000000060000640b2c639c533813f4aa9d7837caf62653d097ff85000000000000000000000000000000000000000000\n gas: 232208\n maxFeePerGas: 1.000000429 gwei\n maxPriorityFeePerGas: 0 gwei\n nonce: 20077' ], shortMessage: 'Nonce provided for the transaction (20077) is lower than the current nonce of the account.\nTry increasing the nonce or find the latest nonce with `getTransactionCount`.', version: '2.38.2', walk: 'Function<walk>' }
Caused by: Caused by: NonceTooLowError: Nonce provided for the transaction (20077) is lower than the current nonce of the account.
Try increasing the nonce or find the latest nonce with `getTransactionCount`.
Details: nonce too low
Version: viem@2.38.2
❯ getNodeError ../../node_modules/viem/utils/errors/getNodeError.ts:99:12
❯ ../../node_modules/viem/utils/errors/getCallError.ts:35:19
❯ getCallError ../../node_modules/viem/uti
|