Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 5 additions & 0 deletions .changeset/smart-rings-cry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphprotocol/grc-20': patch
---

Adds JS Doc comments to APIs
6 changes: 6 additions & 0 deletions abis.ts
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
/**
* This module provides ABIs for known smart contracts used in the knowledge graph.
*
* @since 0.0.6
*/

export * from './src/abis/index.js';
6 changes: 6 additions & 0 deletions constants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* This module provides common constants used in the knowledge graph.
*
* @since 0.0.6
*/

import { Position, PositionRange } from './src/position.js';

export const INITIAL_RELATION_INDEX_VALUE = Position.createBetween(PositionRange.FIRST);
16 changes: 13 additions & 3 deletions contracts.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
// GOVERNANCE PLUGIN ADDRESSES
// from the plugin-repo-info.json in geo-contracts after deploying
// Jul 15, 2024 – L3 Testnet
/**
* This module provides the known contract addresses for smart contracts
* used in the knowledge graph.
*
* @since 0.0.6
*/

/**
* Mainnet contract addresses
*/
export const MAINNET = {
SPACE_PLUGIN_REPO_ADDRESS: '0xd9559df98e4103CDf0A119d4bff1537B383E462c',
PERSONAL_SPACE_ADMIN_PLUGIN_REPO_ADDRESS: '0xa00870c6501349E126E71Dc1705fBaa2B5aeac0d',
Expand All @@ -10,6 +17,9 @@ export const MAINNET = {
PLUGIN_SETUP_PROCESSOR_ADDRESS: '0xfcC0Aba63c1F1f887099EAB0d1A624A5B7A82Fc2',
};

/**
* Testnet contract addresses
*/
export const TESTNET = {
SPACE_PLUGIN_REPO_ADDRESS: '0x0701454b0e80C53Ee8c3e0805616424758D7E7Fd',
PERSONAL_SPACE_ADMIN_PLUGIN_REPO_ADDRESS: '0xAe8Ac47e5f3bDa62F6D1BD140AB8e1926D867355',
Expand Down
55 changes: 54 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
export * from './src/types.js';

/**
* This module provides utility functions for working knowledge graph
* identifiers in TypeScript.
*
* @since 0.0.6
*/
export * as ID from './src/id.js';

/**
* This module provides utility functions for working with base58 ids
* in TypeScript.
*
* @since 0.0.6
*/
export { BASE58_ALLOWED_CHARS, decodeBase58ToUUID, encodeBase58 } from './src/core/base58.js';

export {
getAcceptEditorArguments,
getAcceptSubspaceArguments,
Expand All @@ -10,12 +24,51 @@ export {
getRemoveEditorArguments,
getRemoveSubspaceArguments,
} from './src/encodings/index.js';

/**
* This module provides utility functions for working with knowledge graph
* images in TypeScript.
*
* @since 0.0.6
*/
export { Account } from './src/account.js';
export { TextBlock, DataBlock } from './src/blocks.js';

export { TextBlock, DataBlock, ImageBlock } from './src/blocks.js';

/**
* This module provides utility functions for working with knowledge graph
* images in TypeScript.
*
* @since 0.0.6
*/
export { Image } from './src/image.js';

export { Position, PositionRange } from './src/position.js';

/**
* This module provides utility functions for working with Triples in TypeScript.
*
* @since 0.0.6
*/
export { Triple } from './src/triple.js';

/**
* This module provides utility functions for working with Relations in TypeScript.
*
* @since 0.0.6
*/
export { Relation } from './src/relation.js';

/**
* This module provides utility functions for working with Graph URIs in TypeScript.
*
* @since 0.0.6
*/
export { GraphUrl } from './src/scheme.js';

/**
* Provides ids for commonly used entities across the Knowledge Graph.
*/
export { SYSTEM_IDS, NETWORK_IDS, CONTENT_IDS } from './src/system-ids.js';

export { getChecksumAddress } from './src/core/get-checksum-address.js';
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{
"name": "@graphprotocol/grc-20",
"version": "0.0.5",
"version": "0.0.6",
"license": "MIT",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"main": "./dist/index.js",
"ascMain": "./dist/index.js",
"type": "module",
"files": ["dist"],
"files": [
"dist"
],
"exports": {
"./package.json": "./package.json",
".": "./dist/index.js",
Expand All @@ -26,6 +28,7 @@
"dependencies": {
"@biomejs/biome": "^1.9.4",
"@bufbuild/protobuf": "^1.9.0",
"@changesets/cli": "^2.27.12",
"@ethersproject/abi": "^5.6.4",
"@ethersproject/providers": "^5.6.8",
"@types/uuid": "^9.0.8",
Expand All @@ -43,5 +46,5 @@
"prettier": "^3.2.5",
"typescript": "^5.4.5"
},
"packageManager": "[email protected]"
"packageManager": "[email protected]"
}
Loading
Loading