Skip to content

Commit 95d0297

Browse files
committed
Merge branch 'develop' into contracts-v2
2 parents 332e73a + cd9289f commit 95d0297

File tree

201 files changed

+6954
-2796
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

201 files changed

+6954
-2796
lines changed

.changeset/config.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"commit": false,
4+
"access": "public",
5+
"baseBranch": "main",
6+
"updateInternalDependencies": "patch",
7+
"changelog": false,
8+
"bumpVersionsWithWorkspaceProtocolOnly": true,
9+
"privatePackages": {
10+
"version": false,
11+
"tag": false
12+
}
13+
}

.github/workflows/cd-core.yaml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/cd-logger.yaml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/cd-node-sdk.yaml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.github/workflows/cd-packages.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Publish packages
2+
3+
permissions:
4+
contents: write # needed to push tags
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
publish:
13+
name: Publish packages to NPM
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version-file: .nvmrc
20+
cache: yarn
21+
- name: Install dependencies
22+
run: yarn install --immutable
23+
# If there is no new version for dependency package (e.g. core)
24+
# then `prepack` is not called for it during publish step
25+
# and it's not built. As a result dependant package (e.g. sdk)
26+
# don't have its dependency and can't be build as well,
27+
# so we have to build all deps in their topological order first.
28+
- name: Build packages
29+
run: yarn workspaces foreach --all --no-private -pt run build
30+
- name: Publish packages
31+
run: yarn workspaces foreach --all --no-private -pt npm publish --tolerate-republish --json | tee publish.log
32+
env:
33+
SKIP_PREPACK: true
34+
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
35+
- name: Tag published packages
36+
run: node scripts/tag-published-packages.mjs publish.log
37+
- name: Push created tags
38+
run: git push origin --tags

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,15 @@ yarn-error.log*
4343
# OS
4444
.DS_Store
4545

46+
# Artifacts
4647
build
4748
dist
4849
*.tsbuildinfo
4950
hardhat-dependency-compiler
51+
package.tgz
5052

51-
# cache
53+
# Cache
5254
cache
5355

56+
# Ignore developer-only local files
57+
.local

.prettierignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.yarn/releases/yarn-4.9.1.cjs renamed to .yarn/releases/yarn-4.9.4.cjs

Lines changed: 359 additions & 365 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
yarnPath: .yarn/releases/yarn-4.9.1.cjs
1+
yarnPath: .yarn/releases/yarn-4.9.4.cjs
22

33
nodeLinker: node-modules
4+
5+
npmPublishAccess: public

docs/sdk/python/human_protocol_sdk.kvstore.kvstore_client.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,17 @@ Initializes a KVStore instance.
6363
* **web3** (`Web3`) – The Web3 object
6464
* **gas_limit** (`Optional`[`int`]) – (Optional) Gas limit for transactions
6565

66+
#### get(address, key)
67+
68+
Gets the value of a key-value pair in the contract.
69+
:type address: `str`
70+
:param address: The Ethereum address associated with the key-value pair
71+
:type key: `str`
72+
:param key: The key of the key-value pair to get
73+
:rtype: `str`
74+
:return: The value of the key-value pair if it exists
75+
:example:
76+
6677
#### set(\*args, \*\*kwargs)
6778

6879
#### set_bulk(\*args, \*\*kwargs)

0 commit comments

Comments
 (0)