From 09898bdf0b3e0661bcb417fbb48a93cf7e257035 Mon Sep 17 00:00:00 2001 From: buldazer23 Date: Sat, 18 Nov 2023 23:31:50 +0300 Subject: [PATCH 1/5] commit --- README.md | 2 +- docs/CONTRIBUTING.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6cb9eaa..e9476bb 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ const tokenOutAddress = tokens["usdc"].address; const tokenInDecimals = tokens["eth"].decimals; const inputAmount = BigNumber.from(parseUnits("1", tokenInDecimals)); -// Usege on your website +// Usage on your website const starknet = await connect({ showList: false }) diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index fda4731..c9ea917 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -47,7 +47,7 @@ Please adhere to the following guidelines when submitting code: ## License -By contributing to this project, you agree that your contributions will be licensed under the [project's license](../LICENCE). +By contributing to this project, you agree that your contributions will be licensed under the [project's license](../LICENSE). ## Conclusion From f5941304dbbd0553036c4ecf6934776de5c84c8e Mon Sep 17 00:00:00 2001 From: haner <77988014+hanerkoca@users.noreply.github.com> Date: Sun, 26 Nov 2023 22:27:42 +0100 Subject: [PATCH 2/5] Update README.md approveToken --> approveCall --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e9476bb..c9145af 100644 --- a/README.md +++ b/README.md @@ -128,7 +128,7 @@ const approveCall:Call = await fibrous.buildApprove( tokenInAddress, ); -await account.execute([approveToken, swapCall]) +await account.execute([approveCall, swapCall]) ``` From 40c121da509f57cba4bf85721855143b809c64ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?An=C4=B1l?= <114004196+anil2ec4@users.noreply.github.com> Date: Fri, 1 Dec 2023 01:35:05 +0300 Subject: [PATCH 3/5] Update package.json --- examples/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/package.json b/examples/package.json index 53c0e77..8f50c7d 100644 --- a/examples/package.json +++ b/examples/package.json @@ -1,6 +1,6 @@ { "name": "fibrous-sdk-examples", - "version": "0.2.0", + "version": "0.3.4", "description": "Examples for using Fibrous SDK", "main": "index.js", "author": "kermo & zetsuboii", From c539c1a0404e82594f9a5365cd5c5f798f3e78c3 Mon Sep 17 00:00:00 2001 From: haner <77988014+hanerkoca@users.noreply.github.com> Date: Sat, 16 Dec 2023 18:46:02 +0100 Subject: [PATCH 4/5] Update account.ts 'Provider' is removed from starknet. --- examples/src/account.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/examples/src/account.ts b/examples/src/account.ts index 4163c8d..1f981dd 100644 --- a/examples/src/account.ts +++ b/examples/src/account.ts @@ -1,4 +1,4 @@ -import { Account, CairoVersion, Provider } from "starknet"; +import { Account, CairoVersion, RpcProvider, constants } from "starknet"; export function account( privateKey: string, @@ -8,12 +8,9 @@ export function account( enum NetworkName { SN_MAIN = "SN_MAIN", SN_GOERLI = "SN_GOERLI", - SN_GOERLI2 = "SN_GOERLI2", } const provider = new Provider({ - sequencer: { - network: NetworkName.SN_MAIN, - }, + network: constants.NetworkName.SN_MAIN }); const account0 = new Account( provider, From 1811a3d6e9472247fdd96b74d1f7a3d71c0edc7e Mon Sep 17 00:00:00 2001 From: haner <77988014+hanerkoca@users.noreply.github.com> Date: Sat, 16 Dec 2023 18:50:36 +0100 Subject: [PATCH 5/5] Update account.ts 'Provider' is removed from starknet. --- examples/src/account.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/src/account.ts b/examples/src/account.ts index 1f981dd..e379136 100644 --- a/examples/src/account.ts +++ b/examples/src/account.ts @@ -9,8 +9,8 @@ export function account( SN_MAIN = "SN_MAIN", SN_GOERLI = "SN_GOERLI", } - const provider = new Provider({ - network: constants.NetworkName.SN_MAIN + const provider = new RpcProvider({ + nodeUrl: constants.NetworkName.SN_MAIN }); const account0 = new Account( provider,