Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
29b8814
Merge branch 'release/0.1.3' into main
0xRomain Oct 6, 2023
aa032f3
Merge branch 'release/0.1.4' into main
0xRomain Oct 6, 2023
e02e7f1
added more tests; realigned the jest config
pranav-singhal Nov 15, 2023
5a11118
increased coverage for profile/index.ts
pranav-singhal Nov 16, 2023
8dcfe21
added tests for all functions in profile class
pranav-singhal Nov 17, 2023
8c9ce19
added tests for disputes class
pranav-singhal Nov 17, 2023
c21d807
removed extra comments and only
pranav-singhal Nov 17, 2023
1f6d5c1
added ci.yml
pranav-singhal Nov 17, 2023
53cddda
added tests for Escrow class
pranav-singhal Nov 19, 2023
8870378
added tests for platform and proposals
pranav-singhal Nov 19, 2023
ac97c8e
added tests for escrow services and utils
pranav-singhal Nov 19, 2023
f4ea150
removed extra log
pranav-singhal Nov 19, 2023
6492b17
added specs for client main file and reviews
pranav-singhal Nov 20, 2023
680c426
added typedoc
pranav-singhal Nov 22, 2023
b8c2596
added docs to gitignore
pranav-singhal Nov 22, 2023
ab42318
added a few more tsdoc tags
pranav-singhal Nov 25, 2023
cd4314d
added docs for all the sub-domains
pranav-singhal Nov 25, 2023
e11e64d
Merge branch 'develop' into feature/adding-docs
pranav-singhal Nov 25, 2023
9feb6ab
Updated createService function
quent043 Nov 29, 2023
e0f5ac4
Refactored Service Type
quent043 Nov 29, 2023
f224630
Updated Proposal functions & types
quent043 Nov 29, 2023
a081b4c
Updated Escrow functions & types
quent043 Nov 29, 2023
4cd9ca5
Added interface implementations in Proposal & Service
quent043 Nov 29, 2023
0ffa0f5
Fixed typo
quent043 Nov 29, 2023
eda0a00
Removed rateToken from Service Metadata type
quent043 Nov 29, 2023
8f399f5
Modified queries
quent043 Nov 29, 2023
0d5f65c
Updated ABIs
quent043 Nov 29, 2023
2ec46fe
Updated referralAmount type number => string
quent043 Nov 29, 2023
502df4b
Added referral fees in allowance calculation
quent043 Nov 30, 2023
9b916b5
Updated updateService function
quent043 Dec 1, 2023
2a82d2d
Reverted updateService function
quent043 Dec 1, 2023
b222116
added support for custom chain config
pranav-singhal Dec 1, 2023
799e2c0
added test case for sdk intialised with customChainConfig
pranav-singhal Dec 1, 2023
a023705
Update Escrow ABI
quent043 Dec 2, 2023
e7b097c
Update Service ABI
quent043 Dec 2, 2023
f35e330
Updated tests & mocks
quent043 Dec 2, 2023
cf436d1
Added query fields
quent043 Dec 2, 2023
637cad5
Refactor
quent043 Dec 2, 2023
878f818
Merge branch 'main' of https://github.com/TalentLayer/talentlayer-sdk…
quent043 Dec 8, 2023
e48dc30
Merge remote-tracking branch 'origin/feature/adding-custom-chain-conf…
quent043 Dec 8, 2023
4efcc92
Merge chain config
quent043 Dec 8, 2023
df8a232
Added missing natspec
quent043 Dec 8, 2023
cc1a24c
Corrected typo
quent043 Dec 8, 2023
293c374
Corrected typo
quent043 Dec 8, 2023
67941dc
Added Loggers (to be removed)
quent043 Feb 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ build
# client
dist

# docs
docs

# misc
.DS_Store
*.pem
Expand Down
80 changes: 78 additions & 2 deletions package-lock.json

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

15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
{
"private": true,
"workspaces": [
"apps/*",
"packages/*"
],
"scripts": {
"build": "turbo run build",
"dev": "turbo run dev",
"lint": "turbo run lint",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"test": "turbo test"
"test": "turbo test",
"docs": "typedoc",
"docs-all": "npm run docs --workspaces --if-present --verbose"
},
"devDependencies": {
"@types/jest": "^29.5.8",
Expand All @@ -14,14 +20,11 @@
"prettier": "^3.0.3",
"ts-jest": "^29.1.1",
"tsconfig": "*",
"turbo": "latest"
"turbo": "latest",
"typedoc": "0.25.3"
},
"name": "talentlayer-sdk",
"packageManager": "[email protected]",
"workspaces": [
"apps/*",
"packages/*"
],
"dependencies": {
"@changesets/cli": "^2.26.2"
}
Expand Down
3 changes: 2 additions & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"prepare": "npm run build",
"build": "tsup src/index.ts --format cjs,esm --dts",
"dev": "npm run build -- --watch",
"test": "jest --verbose --coverage"
"test": "jest --verbose --coverage",
"docs": "typedoc --out docs"
},
"devDependencies": {
"@turbo/gen": "^1.10.12",
Expand Down
3 changes: 2 additions & 1 deletion packages/client/src/__mocks__/clientMocks.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { polygon } from "viem/chains";
import { getPaymentsByService, getProtocolAndPlatformsFees } from "../escrow/graphql/queries";
import { getPlatformById, getPlatformsByOwner, getProtocolById } from "../platform/graphql/queries";
import { getMintFees, getPaymentsForUser, getProfileByAddress, getProfileById, getProfiles, getUserTotalGains } from "../profile/graphql";
Expand Down Expand Up @@ -91,7 +92,7 @@ export class MockGraphQLClient {

export class MockViemClient {
writeContract = jest.fn(async () => testAddress)
chainId = 137;
chain = polygon;
readContract = jest.fn(async () => "randomData")
publicClient = {
readContract: jest.fn(async () => "randomData"),
Expand Down
Loading