Skip to content

Commit

Permalink
⬆️ Upgrading dependencies (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-bellotti authored Aug 17, 2023
1 parent 40d0566 commit 5c83f9c
Show file tree
Hide file tree
Showing 6 changed files with 1,132 additions and 655 deletions.
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,33 +50,33 @@
}
],
"peerDependencies": {
"ethers": "^6.2.0",
"ethers": "^6.7.0",
"qs": "^6.11.0",
"starknet": "^5.14.1"
"starknet": "^5.14.0"
},
"devDependencies": {
"@babel/plugin-transform-modules-commonjs": "7.22.5",
"@babel/preset-env": "7.22.5",
"@babel/preset-env": "7.22.10",
"@babel/preset-typescript": "7.22.5",
"@size-limit/preset-small-lib": "8.2.6",
"@types/jest": "29.5.2",
"@types/jest": "29.5.3",
"@types/qs": "6.9.7",
"@typescript-eslint/eslint-plugin": "5.60.1",
"@typescript-eslint/parser": "5.61.0",
"eslint": "8.43.0",
"eslint-config-prettier": "8.8.0",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-prettier": "4.2.1",
"@typescript-eslint/eslint-plugin": "6.4.0",
"@typescript-eslint/parser": "6.4.0",
"eslint": "8.47.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-import": "2.28.0",
"eslint-plugin-prettier": "5.0.0",
"eslint-plugin-simple-import-sort": "10.0.0",
"ethers": "6.6.3",
"ethers": "6.7.1",
"fetch-mock": "9.11.0",
"jest": "29.5.0",
"prettier": "2.8.8",
"jest": "29.6.2",
"prettier": "3.0.2",
"qs": "6.11.2",
"size-limit": "8.2.6",
"starknet": "5.14.1",
"tsup": "7.1.0",
"tsup": "7.2.0",
"typedoc": "0.24.8",
"typescript": "5.0.4"
"typescript": "5.1.6"
}
}
4 changes: 2 additions & 2 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ export const BASE_URL = 'https://goerli.api.avnu.fi';
export const AVNU_ADDRESS: { [chainId: string]: string } = {
[constants.StarknetChainId.SN_MAIN]: '0x4270219d365d6b017231b52e92b3fb5d7c8378b05e9abc97724537a80e93b0f',
[`${constants.StarknetChainId.SN_MAIN}-dev`]: '0x4270219d365d6b017231b52e92b3fb5d7c8378b05e9abc97724537a80e93b0f',
[constants.StarknetChainId.SN_GOERLI]: '0x6d8cd321dcbbf54512eab67c8a6849faf920077a3996f40bb4761adc4f021d2',
[`${constants.StarknetChainId.SN_GOERLI}-dev`]: '0x07e36202Ace0AB52BF438Bd8a8b64b3731C48D09F0d8879F5b006384c2F35032',
[constants.StarknetChainId.SN_GOERLI]: '0x7e36202ace0ab52bf438bd8a8b64b3731c48d09f0d8879f5b006384c2f35032',
[`${constants.StarknetChainId.SN_GOERLI}-dev`]: '0x7e36202ace0ab52bf438bd8a8b64b3731c48d09f0d8879f5b006384c2f35032',
};
12 changes: 6 additions & 6 deletions src/services.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe('Avnu services', () => {
it('should use baseUrl from AvnuOption when defined', async () => {
// Given
const request = aPriceRequest();
const baseUrl = 'http://example.com';
const baseUrl = 'https://example.com';
const response = [
{
...aPrice(),
Expand Down Expand Up @@ -123,7 +123,7 @@ describe('Avnu services', () => {
it('should use baseUrl from AvnuOption when defined', async () => {
// Given
const request = aQuoteRequest();
const baseUrl = 'http://example.com';
const baseUrl = 'https://example.com';
const response = [
{
...aQuote(),
Expand Down Expand Up @@ -178,7 +178,7 @@ describe('Avnu services', () => {

it('should use baseUrl from AvnuOption when defined', async () => {
// Given
const baseUrl = 'http://example.com';
const baseUrl = 'https://example.com';
const response = anInvokeSwapResponse();
fetchMock.post(`${baseUrl}/swap/v1/execute`, response);

Expand Down Expand Up @@ -214,7 +214,7 @@ describe('Avnu services', () => {

it('should use baseUrl from AvnuOption when defined', async () => {
// Given
const baseUrl = 'http://example.com';
const baseUrl = 'https://example.com';
const response = aBuildSwapTransaction();
fetchMock.post(`${baseUrl}/swap/v1/build`, response);

Expand Down Expand Up @@ -298,7 +298,7 @@ describe('Avnu services', () => {

// Then
expect(result).toStrictEqual({
calldata: ['0x6d8cd321dcbbf54512eab67c8a6849faf920077a3996f40bb4761adc4f021d2', '0x1', '0x0'],
calldata: ['0x7e36202ace0ab52bf438bd8a8b64b3731c48d09f0d8879f5b006384c2f35032', '0x1', '0x0'],
contractAddress: '0x1',
entrypoint: 'approve',
});
Expand All @@ -313,7 +313,7 @@ describe('Avnu services', () => {
// Then
expect(result).toStrictEqual({
calldata: ['1'],
contractAddress: '0x6d8cd321dcbbf54512eab67c8a6849faf920077a3996f40bb4761adc4f021d2',
contractAddress: '0x7e36202ace0ab52bf438bd8a8b64b3731c48d09f0d8879f5b006384c2f35032',
entrypoint: 'getNonce',
});
});
Expand Down
2 changes: 1 addition & 1 deletion src/services.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { toBeHex } from 'ethers';
import qs from 'qs';
import { AccountInterface, Call, ec, hash, Signature, stark, typedData, uint256 } from 'starknet';
import { AccountInterface, Call, ec, hash, Signature, typedData, uint256 } from 'starknet';
import { AVNU_ADDRESS, BASE_URL, STAGING_BASE_URL } from './constants';
import {
AvnuOptions,
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "ES6",
"target": "ES2020",
"lib": [
"es2017",
"ES2020",
"es7",
"es6",
"dom"
Expand Down
Loading

0 comments on commit 5c83f9c

Please sign in to comment.