Skip to content

Commit

Permalink
v0.12.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jaensen committed Oct 13, 2024
1 parent 99d23df commit 1081ada
Show file tree
Hide file tree
Showing 15 changed files with 73 additions and 61 deletions.
49 changes: 25 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@
},
"name": "@cirlces-sdk/root",
"license": "MIT",
"version": "0.12.0"
"version": "0.12.1"
}
2 changes: 1 addition & 1 deletion packages/abi-v1/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@circles-sdk/abi-v1",
"version": "0.12.0",
"version": "0.12.1",
"description": "",
"type": "module",
"main": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/abi-v2/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@circles-sdk/abi-v2",
"version": "0.12.0",
"version": "0.12.1",
"description": "",
"type": "module",
"main": "./dist/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter-cometh/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@circles-sdk/adapter-cometh",
"version": "0.12.0",
"version": "0.12.1",
"description": "",
"type": "module",
"main": "./dist/index.js",
Expand All @@ -17,7 +17,7 @@
"build": "rollup -c"
},
"dependencies": {
"@circles-sdk/adapter": "0.12.0",
"@circles-sdk/adapter": "0.12.1",
"@cometh/connect-sdk": "1.2.29"
},
"keywords": [],
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter-ethers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@circles-sdk/adapter-ethers",
"version": "0.12.0",
"version": "0.12.1",
"description": "",
"type": "module",
"main": "./dist/index.js",
Expand All @@ -18,7 +18,7 @@
},
"dependencies": {
"ethers": "^6.13.2",
"@circles-sdk/adapter": "0.12.0"
"@circles-sdk/adapter": "0.12.1"
},
"keywords": [],
"author": "",
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter-safe-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@circles-sdk/adapter-safe-app",
"version": "0.12.0",
"version": "0.12.1",
"description": "",
"type": "module",
"main": "./dist/index.js",
Expand All @@ -17,7 +17,7 @@
"build": "rollup -c"
},
"dependencies": {
"@circles-sdk/adapter": "0.12.0",
"@circles-sdk/adapter": "0.12.1",
"@safe-global/safe-apps-sdk": "^9.1.0"
},
"keywords": [],
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-safe/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@circles-sdk/adapter-safe",
"version": "0.12.0",
"version": "0.12.1",
"description": "",
"type": "module",
"main": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@circles-sdk/adapter",
"version": "0.12.0",
"version": "0.12.1",
"description": "",
"type": "module",
"main": "./dist/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/data/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@circles-sdk/data",
"version": "0.12.0",
"version": "0.12.1",
"description": "",
"type": "module",
"main": "./dist/index.js",
Expand All @@ -17,7 +17,7 @@
"build": "rollup -c"
},
"dependencies": {
"@circles-sdk/utils": "0.12.0"
"@circles-sdk/utils": "0.12.1"
},
"keywords": [],
"author": "",
Expand Down
4 changes: 2 additions & 2 deletions packages/profiles/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@circles-sdk/profiles",
"version": "0.12.0",
"version": "0.12.1",
"description": "",
"type": "module",
"main": "./dist/index.js",
Expand All @@ -17,7 +17,7 @@
"build": "rollup -c"
},
"dependencies": {
"@circles-sdk/utils": "0.12.0"
"@circles-sdk/utils": "0.12.1"
},
"keywords": [],
"author": "",
Expand Down
12 changes: 6 additions & 6 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@circles-sdk/sdk",
"version": "0.12.0",
"version": "0.12.1",
"description": "",
"type": "module",
"main": "./dist/index.js",
Expand All @@ -17,11 +17,11 @@
"author": "",
"license": "MIT",
"dependencies": {
"@circles-sdk/abi-v1": "0.12.0",
"@circles-sdk/abi-v2": "0.12.0",
"@circles-sdk/data": "0.12.0",
"@circles-sdk/profiles": "0.12.0",
"@circles-sdk/adapter-ethers": "0.12.0",
"@circles-sdk/abi-v1": "0.12.1",
"@circles-sdk/abi-v2": "0.12.1",
"@circles-sdk/data": "0.12.1",
"@circles-sdk/profiles": "0.12.1",
"@circles-sdk/adapter-ethers": "0.12.1",
"ethers": "^6.13.2",
"multihashes": "^4.0.3"
},
Expand Down
14 changes: 7 additions & 7 deletions packages/tests/test/data/circlesData.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,18 @@ describe('CirclesData', () => {
const tokenBalanceRows = await circlesData.getTokenBalances('0xc313FE6C294A7aE1818d0e537D7Ca5Ab0ef07F63');
expect(tokenBalanceRows).toBeDefined();
// expect a decimal number (or '0')
expect(tokenBalanceRows[0].balance).toMatch(/^\d+(\.\d+)?$/);
expect(tokenBalanceRows[0].circles).toMatch(/^\d+(\.\d+)?$/);

console.log(JSON.stringify(tokenBalanceRows, null, 2));
});

it('should get the detailed V1 token balances of an address as CRC', async () => {
const circlesData = new CirclesData(rpc);

const tokenBalanceRows = await circlesData.getTokenBalances('0xc313FE6C294A7aE1818d0e537D7Ca5Ab0ef07F63', false);
const tokenBalanceRows = await circlesData.getTokenBalances('0xc313FE6C294A7aE1818d0e537D7Ca5Ab0ef07F63');
expect(tokenBalanceRows).toBeDefined();
// expect an integer
expect(tokenBalanceRows[0].balance).toMatch(/^\d+$/);
expect(tokenBalanceRows[0].circles).toMatch(/^\d+$/);

console.log(JSON.stringify(tokenBalanceRows, null, 2));
});
Expand Down Expand Up @@ -78,21 +78,21 @@ describe('CirclesData', () => {
it('should get the detailed V2 token balances of an address as Time Circles', async () => {
const circlesData = new CirclesData(rpc);

const tokenBalanceRows = await circlesData.getTokenBalancesV2('0xae3a29a9ff24d0e936a5579bae5c4179c4dff565');
const tokenBalanceRows = await circlesData.getTokenBalances('0xae3a29a9ff24d0e936a5579bae5c4179c4dff565');
expect(tokenBalanceRows).toBeDefined();
// expect a decimal number (or '0')
expect(tokenBalanceRows[0].balance).toMatch(/^\d+(\.\d+)?$/);
expect(tokenBalanceRows[0].circles).toMatch(/^\d+(\.\d+)?$/);

console.log(JSON.stringify(tokenBalanceRows, null, 2));
});

it('should get the detailed V2 token balances of an address as CRC', async () => {
const circlesData = new CirclesData(rpc);

const tokenBalanceRows = await circlesData.getTokenBalancesV2('0xae3a29a9ff24d0e936a5579bae5c4179c4dff565', false);
const tokenBalanceRows = await circlesData.getTokenBalances('0xae3a29a9ff24d0e936a5579bae5c4179c4dff565');
expect(tokenBalanceRows).toBeDefined();
// expect an integer
expect(tokenBalanceRows[0].balance).toMatch(/^\d+$/);
expect(tokenBalanceRows[0].circles).toMatch(/^\d+$/);

console.log(JSON.stringify(tokenBalanceRows, null, 2));
});
Expand Down
Loading

0 comments on commit 1081ada

Please sign in to comment.