@geoprotocol/geo-sdk 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +528 -0
- package/dist/abis.d.ts +7 -0
- package/dist/abis.d.ts.map +1 -0
- package/dist/abis.js +7 -0
- package/dist/abis.js.map +1 -0
- package/dist/constants.d.ts +7 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +8 -0
- package/dist/constants.js.map +1 -0
- package/dist/contracts.d.ts +31 -0
- package/dist/contracts.d.ts.map +1 -0
- package/dist/contracts.js +31 -0
- package/dist/contracts.js.map +1 -0
- package/dist/convert-ids.d.ts +2 -0
- package/dist/convert-ids.d.ts.map +1 -0
- package/dist/convert-ids.js +42 -0
- package/dist/convert-ids.js.map +1 -0
- package/dist/examples/ranks/create-ordinal-rank.d.ts +8 -0
- package/dist/examples/ranks/create-ordinal-rank.d.ts.map +1 -0
- package/dist/examples/ranks/create-ordinal-rank.js +42 -0
- package/dist/examples/ranks/create-ordinal-rank.js.map +1 -0
- package/dist/examples/ranks/create-weighted-rank.d.ts +8 -0
- package/dist/examples/ranks/create-weighted-rank.d.ts.map +1 -0
- package/dist/examples/ranks/create-weighted-rank.js +42 -0
- package/dist/examples/ranks/create-weighted-rank.js.map +1 -0
- package/dist/index.d.ts +49 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +49 -0
- package/dist/index.js.map +1 -0
- package/dist/proto.d.ts +5 -0
- package/dist/proto.d.ts.map +1 -0
- package/dist/proto.js +5 -0
- package/dist/proto.js.map +1 -0
- package/dist/protov2.d.ts +11 -0
- package/dist/protov2.d.ts.map +1 -0
- package/dist/protov2.js +11 -0
- package/dist/protov2.js.map +1 -0
- package/dist/scripts/setup-rank-types.d.ts +15 -0
- package/dist/scripts/setup-rank-types.d.ts.map +1 -0
- package/dist/scripts/setup-rank-types.js +62 -0
- package/dist/scripts/setup-rank-types.js.map +1 -0
- package/dist/src/abis/dao-space-factory.d.ts +276 -0
- package/dist/src/abis/dao-space-factory.d.ts.map +1 -0
- package/dist/src/abis/dao-space-factory.js +359 -0
- package/dist/src/abis/dao-space-factory.js.map +1 -0
- package/dist/src/abis/dao-space.d.ts +698 -0
- package/dist/src/abis/dao-space.d.ts.map +1 -0
- package/dist/src/abis/dao-space.js +906 -0
- package/dist/src/abis/dao-space.js.map +1 -0
- package/dist/src/abis/dao.d.ts +899 -0
- package/dist/src/abis/dao.d.ts.map +1 -0
- package/dist/src/abis/dao.js +1159 -0
- package/dist/src/abis/dao.js.map +1 -0
- package/dist/src/abis/governance-setup.d.ts +351 -0
- package/dist/src/abis/governance-setup.d.ts.map +1 -0
- package/dist/src/abis/governance-setup.js +461 -0
- package/dist/src/abis/governance-setup.js.map +1 -0
- package/dist/src/abis/index.d.ts +13 -0
- package/dist/src/abis/index.d.ts.map +1 -0
- package/dist/src/abis/index.js +13 -0
- package/dist/src/abis/index.js.map +1 -0
- package/dist/src/abis/main-voting.d.ts +1504 -0
- package/dist/src/abis/main-voting.d.ts.map +1 -0
- package/dist/src/abis/main-voting.js +1943 -0
- package/dist/src/abis/main-voting.js.map +1 -0
- package/dist/src/abis/member-access.d.ts +567 -0
- package/dist/src/abis/member-access.d.ts.map +1 -0
- package/dist/src/abis/member-access.js +735 -0
- package/dist/src/abis/member-access.js.map +1 -0
- package/dist/src/abis/personal-space-admin-setup.d.ts +259 -0
- package/dist/src/abis/personal-space-admin-setup.d.ts.map +1 -0
- package/dist/src/abis/personal-space-admin-setup.js +340 -0
- package/dist/src/abis/personal-space-admin-setup.js.map +1 -0
- package/dist/src/abis/personal-space-admin.d.ts +431 -0
- package/dist/src/abis/personal-space-admin.d.ts.map +1 -0
- package/dist/src/abis/personal-space-admin.js +555 -0
- package/dist/src/abis/personal-space-admin.js.map +1 -0
- package/dist/src/abis/plugin-setup-processor.d.ts +998 -0
- package/dist/src/abis/plugin-setup-processor.d.ts.map +1 -0
- package/dist/src/abis/plugin-setup-processor.js +1293 -0
- package/dist/src/abis/plugin-setup-processor.js.map +1 -0
- package/dist/src/abis/space-registry.d.ts +413 -0
- package/dist/src/abis/space-registry.d.ts.map +1 -0
- package/dist/src/abis/space-registry.js +537 -0
- package/dist/src/abis/space-registry.js.map +1 -0
- package/dist/src/abis/space-setup.d.ts +310 -0
- package/dist/src/abis/space-setup.d.ts.map +1 -0
- package/dist/src/abis/space-setup.js +407 -0
- package/dist/src/abis/space-setup.js.map +1 -0
- package/dist/src/abis/space.d.ts +359 -0
- package/dist/src/abis/space.d.ts.map +1 -0
- package/dist/src/abis/space.js +462 -0
- package/dist/src/abis/space.js.map +1 -0
- package/dist/src/account.d.ts +8 -0
- package/dist/src/account.d.ts.map +1 -0
- package/dist/src/account.js +8 -0
- package/dist/src/account.js.map +1 -0
- package/dist/src/blocks.d.ts +15 -0
- package/dist/src/blocks.d.ts.map +1 -0
- package/dist/src/blocks.js +15 -0
- package/dist/src/blocks.js.map +1 -0
- package/dist/src/codec/convert.d.ts +18 -0
- package/dist/src/codec/convert.d.ts.map +1 -0
- package/dist/src/codec/convert.js +188 -0
- package/dist/src/codec/convert.js.map +1 -0
- package/dist/src/core/account.d.ts +28 -0
- package/dist/src/core/account.d.ts.map +1 -0
- package/dist/src/core/account.js +67 -0
- package/dist/src/core/account.js.map +1 -0
- package/dist/src/core/account.test.d.ts +2 -0
- package/dist/src/core/account.test.d.ts.map +1 -0
- package/dist/src/core/account.test.js +80 -0
- package/dist/src/core/account.test.js.map +1 -0
- package/dist/src/core/base58.d.ts +43 -0
- package/dist/src/core/base58.d.ts.map +1 -0
- package/dist/src/core/base58.js +68 -0
- package/dist/src/core/base58.js.map +1 -0
- package/dist/src/core/base58.test.d.ts +2 -0
- package/dist/src/core/base58.test.d.ts.map +1 -0
- package/dist/src/core/base58.test.js +17 -0
- package/dist/src/core/base58.test.js.map +1 -0
- package/dist/src/core/blocks/data.d.ts +34 -0
- package/dist/src/core/blocks/data.d.ts.map +1 -0
- package/dist/src/core/blocks/data.js +77 -0
- package/dist/src/core/blocks/data.js.map +1 -0
- package/dist/src/core/blocks/data.test.d.ts +2 -0
- package/dist/src/core/blocks/data.test.d.ts.map +1 -0
- package/dist/src/core/blocks/data.test.js +96 -0
- package/dist/src/core/blocks/data.test.js.map +1 -0
- package/dist/src/core/blocks/image.d.ts +15 -0
- package/dist/src/core/blocks/image.d.ts.map +1 -0
- package/dist/src/core/blocks/image.js +15 -0
- package/dist/src/core/blocks/image.js.map +1 -0
- package/dist/src/core/blocks/text.d.ts +31 -0
- package/dist/src/core/blocks/text.d.ts.map +1 -0
- package/dist/src/core/blocks/text.js +57 -0
- package/dist/src/core/blocks/text.js.map +1 -0
- package/dist/src/core/blocks/text.test.d.ts +2 -0
- package/dist/src/core/blocks/text.test.d.ts.map +1 -0
- package/dist/src/core/blocks/text.test.js +93 -0
- package/dist/src/core/blocks/text.test.js.map +1 -0
- package/dist/src/core/get-checksum-address.d.ts +10 -0
- package/dist/src/core/get-checksum-address.d.ts.map +1 -0
- package/dist/src/core/get-checksum-address.js +20 -0
- package/dist/src/core/get-checksum-address.js.map +1 -0
- package/dist/src/core/ids/content.d.ts +60 -0
- package/dist/src/core/ids/content.d.ts.map +1 -0
- package/dist/src/core/ids/content.js +60 -0
- package/dist/src/core/ids/content.js.map +1 -0
- package/dist/src/core/ids/network.d.ts +5 -0
- package/dist/src/core/ids/network.d.ts.map +1 -0
- package/dist/src/core/ids/network.js +5 -0
- package/dist/src/core/ids/network.js.map +1 -0
- package/dist/src/core/ids/system.d.ts +239 -0
- package/dist/src/core/ids/system.d.ts.map +1 -0
- package/dist/src/core/ids/system.js +247 -0
- package/dist/src/core/ids/system.js.map +1 -0
- package/dist/src/core/idsv2/content.d.ts +59 -0
- package/dist/src/core/idsv2/content.d.ts.map +1 -0
- package/dist/src/core/idsv2/content.js +59 -0
- package/dist/src/core/idsv2/content.js.map +1 -0
- package/dist/src/core/idsv2/network.d.ts +5 -0
- package/dist/src/core/idsv2/network.d.ts.map +1 -0
- package/dist/src/core/idsv2/network.js +5 -0
- package/dist/src/core/idsv2/network.js.map +1 -0
- package/dist/src/core/idsv2/system.d.ts +222 -0
- package/dist/src/core/idsv2/system.d.ts.map +1 -0
- package/dist/src/core/idsv2/system.js +230 -0
- package/dist/src/core/idsv2/system.js.map +1 -0
- package/dist/src/core/image.d.ts +40 -0
- package/dist/src/core/image.d.ts.map +1 -0
- package/dist/src/core/image.js +76 -0
- package/dist/src/core/image.js.map +1 -0
- package/dist/src/core/image.test.d.ts +2 -0
- package/dist/src/core/image.test.d.ts.map +1 -0
- package/dist/src/core/image.test.js +52 -0
- package/dist/src/core/image.test.js.map +1 -0
- package/dist/src/core/position.d.ts +26 -0
- package/dist/src/core/position.d.ts.map +1 -0
- package/dist/src/core/position.js +41 -0
- package/dist/src/core/position.js.map +1 -0
- package/dist/src/core/position.test.d.ts +2 -0
- package/dist/src/core/position.test.d.ts.map +1 -0
- package/dist/src/core/position.test.js +126 -0
- package/dist/src/core/position.test.js.map +1 -0
- package/dist/src/core/relation.d.ts +88 -0
- package/dist/src/core/relation.d.ts.map +1 -0
- package/dist/src/core/relation.js +89 -0
- package/dist/src/core/relation.js.map +1 -0
- package/dist/src/core/relation.test.d.ts +2 -0
- package/dist/src/core/relation.test.d.ts.map +1 -0
- package/dist/src/core/relation.test.js +45 -0
- package/dist/src/core/relation.test.js.map +1 -0
- package/dist/src/core/scheme.d.ts +78 -0
- package/dist/src/core/scheme.d.ts.map +1 -0
- package/dist/src/core/scheme.js +99 -0
- package/dist/src/core/scheme.js.map +1 -0
- package/dist/src/core/scheme.test.d.ts +2 -0
- package/dist/src/core/scheme.test.d.ts.map +1 -0
- package/dist/src/core/scheme.test.js +34 -0
- package/dist/src/core/scheme.test.js.map +1 -0
- package/dist/src/core/triple.d.ts +50 -0
- package/dist/src/core/triple.d.ts.map +1 -0
- package/dist/src/core/triple.js +56 -0
- package/dist/src/core/triple.js.map +1 -0
- package/dist/src/core/triple.test.d.ts +2 -0
- package/dist/src/core/triple.test.d.ts.map +1 -0
- package/dist/src/core/triple.test.js +37 -0
- package/dist/src/core/triple.test.js.map +1 -0
- package/dist/src/encoding.d.ts +12 -0
- package/dist/src/encoding.d.ts.map +1 -0
- package/dist/src/encoding.js +30 -0
- package/dist/src/encoding.js.map +1 -0
- package/dist/src/encoding.test.d.ts +2 -0
- package/dist/src/encoding.test.d.ts.map +1 -0
- package/dist/src/encoding.test.js +644 -0
- package/dist/src/encoding.test.js.map +1 -0
- package/dist/src/encodings/get-accept-editor-arguments.d.ts +11 -0
- package/dist/src/encodings/get-accept-editor-arguments.d.ts.map +1 -0
- package/dist/src/encodings/get-accept-editor-arguments.js +23 -0
- package/dist/src/encodings/get-accept-editor-arguments.js.map +1 -0
- package/dist/src/encodings/get-accept-subspace-arguments.d.ts +11 -0
- package/dist/src/encodings/get-accept-subspace-arguments.d.ts.map +1 -0
- package/dist/src/encodings/get-accept-subspace-arguments.js +23 -0
- package/dist/src/encodings/get-accept-subspace-arguments.js.map +1 -0
- package/dist/src/encodings/get-calldata-for-space-governance-type.d.ts +8 -0
- package/dist/src/encodings/get-calldata-for-space-governance-type.d.ts.map +1 -0
- package/dist/src/encodings/get-calldata-for-space-governance-type.js +19 -0
- package/dist/src/encodings/get-calldata-for-space-governance-type.js.map +1 -0
- package/dist/src/encodings/get-create-dao-space-calldata.d.ts +157 -0
- package/dist/src/encodings/get-create-dao-space-calldata.d.ts.map +1 -0
- package/dist/src/encodings/get-create-dao-space-calldata.js +208 -0
- package/dist/src/encodings/get-create-dao-space-calldata.js.map +1 -0
- package/dist/src/encodings/get-create-dao-space-calldata.test.d.ts +2 -0
- package/dist/src/encodings/get-create-dao-space-calldata.test.d.ts.map +1 -0
- package/dist/src/encodings/get-create-dao-space-calldata.test.js +185 -0
- package/dist/src/encodings/get-create-dao-space-calldata.test.js.map +1 -0
- package/dist/src/encodings/get-create-personal-space-calldata.d.ts +33 -0
- package/dist/src/encodings/get-create-personal-space-calldata.d.ts.map +1 -0
- package/dist/src/encodings/get-create-personal-space-calldata.js +43 -0
- package/dist/src/encodings/get-create-personal-space-calldata.js.map +1 -0
- package/dist/src/encodings/get-create-personal-space-calldata.test.d.ts +2 -0
- package/dist/src/encodings/get-create-personal-space-calldata.test.d.ts.map +1 -0
- package/dist/src/encodings/get-create-personal-space-calldata.test.js +15 -0
- package/dist/src/encodings/get-create-personal-space-calldata.test.js.map +1 -0
- package/dist/src/encodings/get-process-geo-proposal-arguments.d.ts +7 -0
- package/dist/src/encodings/get-process-geo-proposal-arguments.d.ts.map +1 -0
- package/dist/src/encodings/get-process-geo-proposal-arguments.js +23 -0
- package/dist/src/encodings/get-process-geo-proposal-arguments.js.map +1 -0
- package/dist/src/encodings/get-register-space-calldata.d.ts +32 -0
- package/dist/src/encodings/get-register-space-calldata.d.ts.map +1 -0
- package/dist/src/encodings/get-register-space-calldata.js +39 -0
- package/dist/src/encodings/get-register-space-calldata.js.map +1 -0
- package/dist/src/encodings/get-register-space-calldata.test.d.ts +2 -0
- package/dist/src/encodings/get-register-space-calldata.test.d.ts.map +1 -0
- package/dist/src/encodings/get-register-space-calldata.test.js +15 -0
- package/dist/src/encodings/get-register-space-calldata.test.js.map +1 -0
- package/dist/src/encodings/get-remove-editor-arguments.d.ts +11 -0
- package/dist/src/encodings/get-remove-editor-arguments.d.ts.map +1 -0
- package/dist/src/encodings/get-remove-editor-arguments.js +23 -0
- package/dist/src/encodings/get-remove-editor-arguments.js.map +1 -0
- package/dist/src/encodings/get-remove-subspace-arguments.d.ts +11 -0
- package/dist/src/encodings/get-remove-subspace-arguments.d.ts.map +1 -0
- package/dist/src/encodings/get-remove-subspace-arguments.js +23 -0
- package/dist/src/encodings/get-remove-subspace-arguments.js.map +1 -0
- package/dist/src/encodings/index.d.ts +9 -0
- package/dist/src/encodings/index.d.ts.map +1 -0
- package/dist/src/encodings/index.js +9 -0
- package/dist/src/encodings/index.js.map +1 -0
- package/dist/src/full-flow-test.test.d.ts +2 -0
- package/dist/src/full-flow-test.test.d.ts.map +1 -0
- package/dist/src/full-flow-test.test.js +142 -0
- package/dist/src/full-flow-test.test.js.map +1 -0
- package/dist/src/graph/constants.d.ts +4 -0
- package/dist/src/graph/constants.d.ts.map +1 -0
- package/dist/src/graph/constants.js +8 -0
- package/dist/src/graph/constants.js.map +1 -0
- package/dist/src/graph/create-entity.d.ts +54 -0
- package/dist/src/graph/create-entity.d.ts.map +1 -0
- package/dist/src/graph/create-entity.js +272 -0
- package/dist/src/graph/create-entity.js.map +1 -0
- package/dist/src/graph/create-entity.test.d.ts +2 -0
- package/dist/src/graph/create-entity.test.d.ts.map +1 -0
- package/dist/src/graph/create-entity.test.js +459 -0
- package/dist/src/graph/create-entity.test.js.map +1 -0
- package/dist/src/graph/create-image.d.ts +28 -0
- package/dist/src/graph/create-image.d.ts.map +1 -0
- package/dist/src/graph/create-image.js +77 -0
- package/dist/src/graph/create-image.js.map +1 -0
- package/dist/src/graph/create-image.test.d.ts +2 -0
- package/dist/src/graph/create-image.test.d.ts.map +1 -0
- package/dist/src/graph/create-image.test.js +233 -0
- package/dist/src/graph/create-image.test.js.map +1 -0
- package/dist/src/graph/create-property.d.ts +24 -0
- package/dist/src/graph/create-property.d.ts.map +1 -0
- package/dist/src/graph/create-property.js +113 -0
- package/dist/src/graph/create-property.js.map +1 -0
- package/dist/src/graph/create-property.test.d.ts +2 -0
- package/dist/src/graph/create-property.test.d.ts.map +1 -0
- package/dist/src/graph/create-property.test.js +203 -0
- package/dist/src/graph/create-property.test.js.map +1 -0
- package/dist/src/graph/create-relation.d.ts +42 -0
- package/dist/src/graph/create-relation.d.ts.map +1 -0
- package/dist/src/graph/create-relation.js +110 -0
- package/dist/src/graph/create-relation.js.map +1 -0
- package/dist/src/graph/create-relation.test.d.ts +2 -0
- package/dist/src/graph/create-relation.test.d.ts.map +1 -0
- package/dist/src/graph/create-relation.test.js +358 -0
- package/dist/src/graph/create-relation.test.js.map +1 -0
- package/dist/src/graph/create-space.d.ts +37 -0
- package/dist/src/graph/create-space.d.ts.map +1 -0
- package/dist/src/graph/create-space.js +67 -0
- package/dist/src/graph/create-space.js.map +1 -0
- package/dist/src/graph/create-type.d.ts +22 -0
- package/dist/src/graph/create-type.d.ts.map +1 -0
- package/dist/src/graph/create-type.js +63 -0
- package/dist/src/graph/create-type.js.map +1 -0
- package/dist/src/graph/create-type.test.d.ts +2 -0
- package/dist/src/graph/create-type.test.d.ts.map +1 -0
- package/dist/src/graph/create-type.test.js +117 -0
- package/dist/src/graph/create-type.test.js.map +1 -0
- package/dist/src/graph/delete-entity.d.ts +14 -0
- package/dist/src/graph/delete-entity.d.ts.map +1 -0
- package/dist/src/graph/delete-entity.js +19 -0
- package/dist/src/graph/delete-entity.js.map +1 -0
- package/dist/src/graph/delete-entity.test.d.ts +2 -0
- package/dist/src/graph/delete-entity.test.d.ts.map +1 -0
- package/dist/src/graph/delete-entity.test.js +21 -0
- package/dist/src/graph/delete-entity.test.js.map +1 -0
- package/dist/src/graph/delete-relation.d.ts +14 -0
- package/dist/src/graph/delete-relation.d.ts.map +1 -0
- package/dist/src/graph/delete-relation.js +19 -0
- package/dist/src/graph/delete-relation.js.map +1 -0
- package/dist/src/graph/delete-relation.test.d.ts +2 -0
- package/dist/src/graph/delete-relation.test.d.ts.map +1 -0
- package/dist/src/graph/delete-relation.test.js +21 -0
- package/dist/src/graph/delete-relation.test.js.map +1 -0
- package/dist/src/graph/graph.test.d.ts +2 -0
- package/dist/src/graph/graph.test.d.ts.map +1 -0
- package/dist/src/graph/graph.test.js +46 -0
- package/dist/src/graph/graph.test.js.map +1 -0
- package/dist/src/graph/helpers/create-default-properties.d.ts +5 -0
- package/dist/src/graph/helpers/create-default-properties.d.ts.map +1 -0
- package/dist/src/graph/helpers/create-default-properties.js +44 -0
- package/dist/src/graph/helpers/create-default-properties.js.map +1 -0
- package/dist/src/graph/helpers/create-properties.d.ts +8 -0
- package/dist/src/graph/helpers/create-properties.d.ts.map +1 -0
- package/dist/src/graph/helpers/create-properties.js +53 -0
- package/dist/src/graph/helpers/create-properties.js.map +1 -0
- package/dist/src/graph/index.d.ts +13 -0
- package/dist/src/graph/index.d.ts.map +1 -0
- package/dist/src/graph/index.js +12 -0
- package/dist/src/graph/index.js.map +1 -0
- package/dist/src/graph/serialize.d.ts +5 -0
- package/dist/src/graph/serialize.d.ts.map +1 -0
- package/dist/src/graph/serialize.js +13 -0
- package/dist/src/graph/serialize.js.map +1 -0
- package/dist/src/graph/serialize.test.d.ts +2 -0
- package/dist/src/graph/serialize.test.d.ts.map +1 -0
- package/dist/src/graph/serialize.test.js +49 -0
- package/dist/src/graph/serialize.test.js.map +1 -0
- package/dist/src/graph/unset-entity-values.d.ts +21 -0
- package/dist/src/graph/unset-entity-values.d.ts.map +1 -0
- package/dist/src/graph/unset-entity-values.js +31 -0
- package/dist/src/graph/unset-entity-values.js.map +1 -0
- package/dist/src/graph/unset-entity-values.test.d.ts +2 -0
- package/dist/src/graph/unset-entity-values.test.d.ts.map +1 -0
- package/dist/src/graph/unset-entity-values.test.js +40 -0
- package/dist/src/graph/unset-entity-values.test.js.map +1 -0
- package/dist/src/graph/unset-relation-fields.d.ts +26 -0
- package/dist/src/graph/unset-relation-fields.d.ts.map +1 -0
- package/dist/src/graph/unset-relation-fields.js +38 -0
- package/dist/src/graph/unset-relation-fields.js.map +1 -0
- package/dist/src/graph/unset-relation-fields.test.d.ts +2 -0
- package/dist/src/graph/unset-relation-fields.test.d.ts.map +1 -0
- package/dist/src/graph/unset-relation-fields.test.js +70 -0
- package/dist/src/graph/unset-relation-fields.test.js.map +1 -0
- package/dist/src/graph/update-entity.d.ts +27 -0
- package/dist/src/graph/update-entity.d.ts.map +1 -0
- package/dist/src/graph/update-entity.js +153 -0
- package/dist/src/graph/update-entity.js.map +1 -0
- package/dist/src/graph/update-entity.test.d.ts +2 -0
- package/dist/src/graph/update-entity.test.d.ts.map +1 -0
- package/dist/src/graph/update-entity.test.js +208 -0
- package/dist/src/graph/update-entity.test.js.map +1 -0
- package/dist/src/graph/update-relation.d.ts +21 -0
- package/dist/src/graph/update-relation.d.ts.map +1 -0
- package/dist/src/graph/update-relation.js +43 -0
- package/dist/src/graph/update-relation.js.map +1 -0
- package/dist/src/graph/update-relation.test.d.ts +2 -0
- package/dist/src/graph/update-relation.test.d.ts.map +1 -0
- package/dist/src/graph/update-relation.test.js +230 -0
- package/dist/src/graph/update-relation.test.js.map +1 -0
- package/dist/src/graphv2/constants.d.ts +2 -0
- package/dist/src/graphv2/constants.d.ts.map +1 -0
- package/dist/src/graphv2/constants.js +2 -0
- package/dist/src/graphv2/constants.js.map +1 -0
- package/dist/src/graphv2/create-entity.d.ts +52 -0
- package/dist/src/graphv2/create-entity.d.ts.map +1 -0
- package/dist/src/graphv2/create-entity.js +140 -0
- package/dist/src/graphv2/create-entity.js.map +1 -0
- package/dist/src/graphv2/create-entity.test.d.ts +2 -0
- package/dist/src/graphv2/create-entity.test.d.ts.map +1 -0
- package/dist/src/graphv2/create-entity.test.js +158 -0
- package/dist/src/graphv2/create-entity.test.js.map +1 -0
- package/dist/src/graphv2/create-image.d.ts +28 -0
- package/dist/src/graphv2/create-image.d.ts.map +1 -0
- package/dist/src/graphv2/create-image.js +71 -0
- package/dist/src/graphv2/create-image.js.map +1 -0
- package/dist/src/graphv2/create-image.test.d.ts +2 -0
- package/dist/src/graphv2/create-image.test.d.ts.map +1 -0
- package/dist/src/graphv2/create-image.test.js +142 -0
- package/dist/src/graphv2/create-image.test.js.map +1 -0
- package/dist/src/graphv2/create-property.d.ts +22 -0
- package/dist/src/graphv2/create-property.d.ts.map +1 -0
- package/dist/src/graphv2/create-property.js +129 -0
- package/dist/src/graphv2/create-property.js.map +1 -0
- package/dist/src/graphv2/create-property.test.d.ts +2 -0
- package/dist/src/graphv2/create-property.test.d.ts.map +1 -0
- package/dist/src/graphv2/create-property.test.js +82 -0
- package/dist/src/graphv2/create-property.test.js.map +1 -0
- package/dist/src/graphv2/create-relation.d.ts +33 -0
- package/dist/src/graphv2/create-relation.d.ts.map +1 -0
- package/dist/src/graphv2/create-relation.js +66 -0
- package/dist/src/graphv2/create-relation.js.map +1 -0
- package/dist/src/graphv2/create-relation.test.d.ts +2 -0
- package/dist/src/graphv2/create-relation.test.d.ts.map +1 -0
- package/dist/src/graphv2/create-relation.test.js +208 -0
- package/dist/src/graphv2/create-relation.test.js.map +1 -0
- package/dist/src/graphv2/create-space.d.ts +13 -0
- package/dist/src/graphv2/create-space.d.ts.map +1 -0
- package/dist/src/graphv2/create-space.js +21 -0
- package/dist/src/graphv2/create-space.js.map +1 -0
- package/dist/src/graphv2/create-type.d.ts +22 -0
- package/dist/src/graphv2/create-type.d.ts.map +1 -0
- package/dist/src/graphv2/create-type.js +64 -0
- package/dist/src/graphv2/create-type.js.map +1 -0
- package/dist/src/graphv2/create-type.test.d.ts +2 -0
- package/dist/src/graphv2/create-type.test.d.ts.map +1 -0
- package/dist/src/graphv2/create-type.test.js +109 -0
- package/dist/src/graphv2/create-type.test.js.map +1 -0
- package/dist/src/graphv2/delete-entity.d.ts +14 -0
- package/dist/src/graphv2/delete-entity.d.ts.map +1 -0
- package/dist/src/graphv2/delete-entity.js +21 -0
- package/dist/src/graphv2/delete-entity.js.map +1 -0
- package/dist/src/graphv2/delete-entity.test.d.ts +2 -0
- package/dist/src/graphv2/delete-entity.test.d.ts.map +1 -0
- package/dist/src/graphv2/delete-entity.test.js +24 -0
- package/dist/src/graphv2/delete-entity.test.js.map +1 -0
- package/dist/src/graphv2/delete-relation.d.ts +14 -0
- package/dist/src/graphv2/delete-relation.d.ts.map +1 -0
- package/dist/src/graphv2/delete-relation.js +21 -0
- package/dist/src/graphv2/delete-relation.js.map +1 -0
- package/dist/src/graphv2/delete-relation.test.d.ts +2 -0
- package/dist/src/graphv2/delete-relation.test.d.ts.map +1 -0
- package/dist/src/graphv2/delete-relation.test.js +24 -0
- package/dist/src/graphv2/delete-relation.test.js.map +1 -0
- package/dist/src/graphv2/index.d.ts +12 -0
- package/dist/src/graphv2/index.d.ts.map +1 -0
- package/dist/src/graphv2/index.js +12 -0
- package/dist/src/graphv2/index.js.map +1 -0
- package/dist/src/graphv2/remove-entity-properties.d.ts +25 -0
- package/dist/src/graphv2/remove-entity-properties.d.ts.map +1 -0
- package/dist/src/graphv2/remove-entity-properties.js +24 -0
- package/dist/src/graphv2/remove-entity-properties.js.map +1 -0
- package/dist/src/graphv2/unset-entity-values.d.ts +21 -0
- package/dist/src/graphv2/unset-entity-values.d.ts.map +1 -0
- package/dist/src/graphv2/unset-entity-values.js +26 -0
- package/dist/src/graphv2/unset-entity-values.js.map +1 -0
- package/dist/src/graphv2/unset-entity-values.test.d.ts +2 -0
- package/dist/src/graphv2/unset-entity-values.test.d.ts.map +1 -0
- package/dist/src/graphv2/unset-entity-values.test.js +40 -0
- package/dist/src/graphv2/unset-entity-values.test.js.map +1 -0
- package/dist/src/graphv2/unset-relation-fields.d.ts +25 -0
- package/dist/src/graphv2/unset-relation-fields.d.ts.map +1 -0
- package/dist/src/graphv2/unset-relation-fields.js +34 -0
- package/dist/src/graphv2/unset-relation-fields.js.map +1 -0
- package/dist/src/graphv2/unset-relation-fields.test.d.ts +2 -0
- package/dist/src/graphv2/unset-relation-fields.test.d.ts.map +1 -0
- package/dist/src/graphv2/unset-relation-fields.test.js +64 -0
- package/dist/src/graphv2/unset-relation-fields.test.js.map +1 -0
- package/dist/src/graphv2/update-entity.d.ts +28 -0
- package/dist/src/graphv2/update-entity.d.ts.map +1 -0
- package/dist/src/graphv2/update-entity.js +73 -0
- package/dist/src/graphv2/update-entity.js.map +1 -0
- package/dist/src/graphv2/update-entity.test.d.ts +2 -0
- package/dist/src/graphv2/update-entity.test.d.ts.map +1 -0
- package/dist/src/graphv2/update-entity.test.js +116 -0
- package/dist/src/graphv2/update-entity.test.js.map +1 -0
- package/dist/src/graphv2/update-relation.d.ts +21 -0
- package/dist/src/graphv2/update-relation.d.ts.map +1 -0
- package/dist/src/graphv2/update-relation.js +37 -0
- package/dist/src/graphv2/update-relation.js.map +1 -0
- package/dist/src/id-utils.d.ts +36 -0
- package/dist/src/id-utils.d.ts.map +1 -0
- package/dist/src/id-utils.js +100 -0
- package/dist/src/id-utils.js.map +1 -0
- package/dist/src/id-utils.test.d.ts +2 -0
- package/dist/src/id-utils.test.d.ts.map +1 -0
- package/dist/src/id-utils.test.js +33 -0
- package/dist/src/id-utils.test.js.map +1 -0
- package/dist/src/id.d.ts +11 -0
- package/dist/src/id.d.ts.map +1 -0
- package/dist/src/id.js +13 -0
- package/dist/src/id.js.map +1 -0
- package/dist/src/id.test.d.ts +2 -0
- package/dist/src/id.test.d.ts.map +1 -0
- package/dist/src/id.test.js +14 -0
- package/dist/src/id.test.js.map +1 -0
- package/dist/src/idv2.d.ts +27 -0
- package/dist/src/idv2.d.ts.map +1 -0
- package/dist/src/idv2.js +88 -0
- package/dist/src/idv2.js.map +1 -0
- package/dist/src/idv2.test.d.ts +2 -0
- package/dist/src/idv2.test.d.ts.map +1 -0
- package/dist/src/idv2.test.js +26 -0
- package/dist/src/idv2.test.js.map +1 -0
- package/dist/src/image.d.ts +8 -0
- package/dist/src/image.d.ts.map +1 -0
- package/dist/src/image.js +8 -0
- package/dist/src/image.js.map +1 -0
- package/dist/src/internal/uuid.d.ts +11 -0
- package/dist/src/internal/uuid.d.ts.map +1 -0
- package/dist/src/internal/uuid.js +18 -0
- package/dist/src/internal/uuid.js.map +1 -0
- package/dist/src/ipfs.d.ts +98 -0
- package/dist/src/ipfs.d.ts.map +1 -0
- package/dist/src/ipfs.js +192 -0
- package/dist/src/ipfs.js.map +1 -0
- package/dist/src/ipfs.test.d.ts +2 -0
- package/dist/src/ipfs.test.d.ts.map +1 -0
- package/dist/src/ipfs.test.js +137 -0
- package/dist/src/ipfs.test.js.map +1 -0
- package/dist/src/ipfsv2.d.ts +96 -0
- package/dist/src/ipfsv2.d.ts.map +1 -0
- package/dist/src/ipfsv2.js +163 -0
- package/dist/src/ipfsv2.js.map +1 -0
- package/dist/src/ipfsv2.test.d.ts +2 -0
- package/dist/src/ipfsv2.test.d.ts.map +1 -0
- package/dist/src/ipfsv2.test.js +22 -0
- package/dist/src/ipfsv2.test.js.map +1 -0
- package/dist/src/position.d.ts +7 -0
- package/dist/src/position.d.ts.map +1 -0
- package/dist/src/position.js +7 -0
- package/dist/src/position.js.map +1 -0
- package/dist/src/proto/edit.d.ts +11 -0
- package/dist/src/proto/edit.d.ts.map +1 -0
- package/dist/src/proto/edit.js +210 -0
- package/dist/src/proto/edit.js.map +1 -0
- package/dist/src/proto/edit.test.d.ts +2 -0
- package/dist/src/proto/edit.test.d.ts.map +1 -0
- package/dist/src/proto/edit.test.js +326 -0
- package/dist/src/proto/edit.test.js.map +1 -0
- package/dist/src/proto/editv2.d.ts +11 -0
- package/dist/src/proto/editv2.d.ts.map +1 -0
- package/dist/src/proto/editv2.js +81 -0
- package/dist/src/proto/editv2.js.map +1 -0
- package/dist/src/proto/editv2.test.d.ts +2 -0
- package/dist/src/proto/editv2.test.d.ts.map +1 -0
- package/dist/src/proto/editv2.test.js +211 -0
- package/dist/src/proto/editv2.test.js.map +1 -0
- package/dist/src/proto/gen/src/proto/ipfs_pb.d.ts +530 -0
- package/dist/src/proto/gen/src/proto/ipfs_pb.d.ts.map +1 -0
- package/dist/src/proto/gen/src/proto/ipfs_pb.js +706 -0
- package/dist/src/proto/gen/src/proto/ipfs_pb.js.map +1 -0
- package/dist/src/proto/gen/src/proto/ipfsv2_pb.d.ts +410 -0
- package/dist/src/proto/gen/src/proto/ipfsv2_pb.d.ts.map +1 -0
- package/dist/src/proto/gen/src/proto/ipfsv2_pb.js +536 -0
- package/dist/src/proto/gen/src/proto/ipfsv2_pb.js.map +1 -0
- package/dist/src/proto/index.d.ts +7 -0
- package/dist/src/proto/index.d.ts.map +1 -0
- package/dist/src/proto/index.js +7 -0
- package/dist/src/proto/index.js.map +1 -0
- package/dist/src/ranks/create-rank.d.ts +42 -0
- package/dist/src/ranks/create-rank.d.ts.map +1 -0
- package/dist/src/ranks/create-rank.js +146 -0
- package/dist/src/ranks/create-rank.js.map +1 -0
- package/dist/src/ranks/create-rank.test.d.ts +2 -0
- package/dist/src/ranks/create-rank.test.d.ts.map +1 -0
- package/dist/src/ranks/create-rank.test.js +333 -0
- package/dist/src/ranks/create-rank.test.js.map +1 -0
- package/dist/src/ranks/index.d.ts +3 -0
- package/dist/src/ranks/index.d.ts.map +1 -0
- package/dist/src/ranks/index.js +3 -0
- package/dist/src/ranks/index.js.map +1 -0
- package/dist/src/ranks/types.d.ts +30 -0
- package/dist/src/ranks/types.d.ts.map +1 -0
- package/dist/src/ranks/types.js +2 -0
- package/dist/src/ranks/types.js.map +1 -0
- package/dist/src/relation.d.ts +7 -0
- package/dist/src/relation.d.ts.map +1 -0
- package/dist/src/relation.js +7 -0
- package/dist/src/relation.js.map +1 -0
- package/dist/src/scheme.d.ts +7 -0
- package/dist/src/scheme.d.ts.map +1 -0
- package/dist/src/scheme.js +7 -0
- package/dist/src/scheme.js.map +1 -0
- package/dist/src/smart-wallet-2.test-invalid.d.ts +2 -0
- package/dist/src/smart-wallet-2.test-invalid.d.ts.map +1 -0
- package/dist/src/smart-wallet-2.test-invalid.js +49 -0
- package/dist/src/smart-wallet-2.test-invalid.js.map +1 -0
- package/dist/src/smart-wallet-2.test.d.ts +2 -0
- package/dist/src/smart-wallet-2.test.d.ts.map +1 -0
- package/dist/src/smart-wallet-2.test.js +49 -0
- package/dist/src/smart-wallet-2.test.js.map +1 -0
- package/dist/src/smart-wallet.d.ts +26 -0
- package/dist/src/smart-wallet.d.ts.map +1 -0
- package/dist/src/smart-wallet.js +100 -0
- package/dist/src/smart-wallet.js.map +1 -0
- package/dist/src/smart-wallet.test.d.ts +2 -0
- package/dist/src/smart-wallet.test.d.ts.map +1 -0
- package/dist/src/smart-wallet.test.js +66 -0
- package/dist/src/smart-wallet.test.js.map +1 -0
- package/dist/src/system-ids-v2.d.ts +7 -0
- package/dist/src/system-ids-v2.d.ts.map +1 -0
- package/dist/src/system-ids-v2.js +7 -0
- package/dist/src/system-ids-v2.js.map +1 -0
- package/dist/src/system-ids.d.ts +7 -0
- package/dist/src/system-ids.d.ts.map +1 -0
- package/dist/src/system-ids.js +7 -0
- package/dist/src/system-ids.js.map +1 -0
- package/dist/src/triple.d.ts +7 -0
- package/dist/src/triple.d.ts.map +1 -0
- package/dist/src/triple.js +7 -0
- package/dist/src/triple.js.map +1 -0
- package/dist/src/types-backup.d.ts +134 -0
- package/dist/src/types-backup.d.ts.map +1 -0
- package/dist/src/types-backup.js +13 -0
- package/dist/src/types-backup.js.map +1 -0
- package/dist/src/types.d.ts +176 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +8 -0
- package/dist/src/types.js.map +1 -0
- package/dist/src/typesv2.d.ts +173 -0
- package/dist/src/typesv2.d.ts.map +1 -0
- package/dist/src/typesv2.js +8 -0
- package/dist/src/typesv2.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +46 -0
|
@@ -0,0 +1,706 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file src/proto/ipfs.proto (package grc20, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { Message, proto3 } from '@bufbuild/protobuf';
|
|
6
|
+
/**
|
|
7
|
+
* @generated from enum grc20.DataType
|
|
8
|
+
*/
|
|
9
|
+
export var DataType;
|
|
10
|
+
(function (DataType) {
|
|
11
|
+
/**
|
|
12
|
+
* @generated from enum value: STRING = 0;
|
|
13
|
+
*/
|
|
14
|
+
DataType[DataType["STRING"] = 0] = "STRING";
|
|
15
|
+
/**
|
|
16
|
+
* @generated from enum value: NUMBER = 1;
|
|
17
|
+
*/
|
|
18
|
+
DataType[DataType["NUMBER"] = 1] = "NUMBER";
|
|
19
|
+
/**
|
|
20
|
+
* @generated from enum value: BOOLEAN = 2;
|
|
21
|
+
*/
|
|
22
|
+
DataType[DataType["BOOLEAN"] = 2] = "BOOLEAN";
|
|
23
|
+
/**
|
|
24
|
+
* @generated from enum value: TIME = 3;
|
|
25
|
+
*/
|
|
26
|
+
DataType[DataType["TIME"] = 3] = "TIME";
|
|
27
|
+
/**
|
|
28
|
+
* @generated from enum value: POINT = 4;
|
|
29
|
+
*/
|
|
30
|
+
DataType[DataType["POINT"] = 4] = "POINT";
|
|
31
|
+
/**
|
|
32
|
+
* @generated from enum value: RELATION = 5;
|
|
33
|
+
*/
|
|
34
|
+
DataType[DataType["RELATION"] = 5] = "RELATION";
|
|
35
|
+
})(DataType || (DataType = {}));
|
|
36
|
+
// Retrieve enum metadata with: proto3.getEnumType(DataType)
|
|
37
|
+
proto3.util.setEnumType(DataType, 'grc20.DataType', [
|
|
38
|
+
{ no: 0, name: 'STRING' },
|
|
39
|
+
{ no: 1, name: 'NUMBER' },
|
|
40
|
+
{ no: 2, name: 'BOOLEAN' },
|
|
41
|
+
{ no: 3, name: 'TIME' },
|
|
42
|
+
{ no: 4, name: 'POINT' },
|
|
43
|
+
{ no: 5, name: 'RELATION' },
|
|
44
|
+
]);
|
|
45
|
+
/**
|
|
46
|
+
* @generated from message grc20.Edit
|
|
47
|
+
*/
|
|
48
|
+
export class Edit extends Message {
|
|
49
|
+
/**
|
|
50
|
+
* @generated from field: bytes id = 1;
|
|
51
|
+
*/
|
|
52
|
+
id = new Uint8Array(0);
|
|
53
|
+
/**
|
|
54
|
+
* @generated from field: string name = 2;
|
|
55
|
+
*/
|
|
56
|
+
name = '';
|
|
57
|
+
/**
|
|
58
|
+
* @generated from field: repeated grc20.Op ops = 3;
|
|
59
|
+
*/
|
|
60
|
+
ops = [];
|
|
61
|
+
/**
|
|
62
|
+
* @generated from field: repeated bytes authors = 4;
|
|
63
|
+
*/
|
|
64
|
+
authors = [];
|
|
65
|
+
/**
|
|
66
|
+
* @generated from field: optional bytes language = 5;
|
|
67
|
+
*/
|
|
68
|
+
language;
|
|
69
|
+
constructor(data) {
|
|
70
|
+
super();
|
|
71
|
+
proto3.util.initPartial(data, this);
|
|
72
|
+
}
|
|
73
|
+
static runtime = proto3;
|
|
74
|
+
static typeName = 'grc20.Edit';
|
|
75
|
+
static fields = proto3.util.newFieldList(() => [
|
|
76
|
+
{ no: 1, name: 'id', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
|
77
|
+
{ no: 2, name: 'name', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
78
|
+
{ no: 3, name: 'ops', kind: 'message', T: Op, repeated: true },
|
|
79
|
+
{ no: 4, name: 'authors', kind: 'scalar', T: 12 /* ScalarType.BYTES */, repeated: true },
|
|
80
|
+
{ no: 5, name: 'language', kind: 'scalar', T: 12 /* ScalarType.BYTES */, opt: true },
|
|
81
|
+
]);
|
|
82
|
+
static fromBinary(bytes, options) {
|
|
83
|
+
return new Edit().fromBinary(bytes, options);
|
|
84
|
+
}
|
|
85
|
+
static fromJson(jsonValue, options) {
|
|
86
|
+
return new Edit().fromJson(jsonValue, options);
|
|
87
|
+
}
|
|
88
|
+
static fromJsonString(jsonString, options) {
|
|
89
|
+
return new Edit().fromJsonString(jsonString, options);
|
|
90
|
+
}
|
|
91
|
+
static equals(a, b) {
|
|
92
|
+
return proto3.util.equals(Edit, a, b);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* @generated from message grc20.ImportEdit
|
|
97
|
+
*/
|
|
98
|
+
export class ImportEdit extends Message {
|
|
99
|
+
/**
|
|
100
|
+
* @generated from field: bytes id = 1;
|
|
101
|
+
*/
|
|
102
|
+
id = new Uint8Array(0);
|
|
103
|
+
/**
|
|
104
|
+
* @generated from field: string name = 2;
|
|
105
|
+
*/
|
|
106
|
+
name = '';
|
|
107
|
+
/**
|
|
108
|
+
* @generated from field: repeated grc20.Op ops = 3;
|
|
109
|
+
*/
|
|
110
|
+
ops = [];
|
|
111
|
+
/**
|
|
112
|
+
* @generated from field: repeated bytes authors = 4;
|
|
113
|
+
*/
|
|
114
|
+
authors = [];
|
|
115
|
+
/**
|
|
116
|
+
* @generated from field: bytes created_by = 5;
|
|
117
|
+
*/
|
|
118
|
+
createdBy = new Uint8Array(0);
|
|
119
|
+
/**
|
|
120
|
+
* @generated from field: string created_at = 6;
|
|
121
|
+
*/
|
|
122
|
+
createdAt = '';
|
|
123
|
+
/**
|
|
124
|
+
* @generated from field: bytes block_hash = 7;
|
|
125
|
+
*/
|
|
126
|
+
blockHash = new Uint8Array(0);
|
|
127
|
+
/**
|
|
128
|
+
* @generated from field: string block_number = 8;
|
|
129
|
+
*/
|
|
130
|
+
blockNumber = '';
|
|
131
|
+
/**
|
|
132
|
+
* @generated from field: bytes transaction_hash = 9;
|
|
133
|
+
*/
|
|
134
|
+
transactionHash = new Uint8Array(0);
|
|
135
|
+
constructor(data) {
|
|
136
|
+
super();
|
|
137
|
+
proto3.util.initPartial(data, this);
|
|
138
|
+
}
|
|
139
|
+
static runtime = proto3;
|
|
140
|
+
static typeName = 'grc20.ImportEdit';
|
|
141
|
+
static fields = proto3.util.newFieldList(() => [
|
|
142
|
+
{ no: 1, name: 'id', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
|
143
|
+
{ no: 2, name: 'name', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
144
|
+
{ no: 3, name: 'ops', kind: 'message', T: Op, repeated: true },
|
|
145
|
+
{ no: 4, name: 'authors', kind: 'scalar', T: 12 /* ScalarType.BYTES */, repeated: true },
|
|
146
|
+
{ no: 5, name: 'created_by', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
|
147
|
+
{ no: 6, name: 'created_at', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
148
|
+
{ no: 7, name: 'block_hash', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
|
149
|
+
{ no: 8, name: 'block_number', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
150
|
+
{ no: 9, name: 'transaction_hash', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
|
151
|
+
]);
|
|
152
|
+
static fromBinary(bytes, options) {
|
|
153
|
+
return new ImportEdit().fromBinary(bytes, options);
|
|
154
|
+
}
|
|
155
|
+
static fromJson(jsonValue, options) {
|
|
156
|
+
return new ImportEdit().fromJson(jsonValue, options);
|
|
157
|
+
}
|
|
158
|
+
static fromJsonString(jsonString, options) {
|
|
159
|
+
return new ImportEdit().fromJsonString(jsonString, options);
|
|
160
|
+
}
|
|
161
|
+
static equals(a, b) {
|
|
162
|
+
return proto3.util.equals(ImportEdit, a, b);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* @generated from message grc20.Import
|
|
167
|
+
*/
|
|
168
|
+
export class Import extends Message {
|
|
169
|
+
/**
|
|
170
|
+
* these strings are IPFS cids representing the import edit message
|
|
171
|
+
*
|
|
172
|
+
* @generated from field: repeated string edits = 1;
|
|
173
|
+
*/
|
|
174
|
+
edits = [];
|
|
175
|
+
constructor(data) {
|
|
176
|
+
super();
|
|
177
|
+
proto3.util.initPartial(data, this);
|
|
178
|
+
}
|
|
179
|
+
static runtime = proto3;
|
|
180
|
+
static typeName = 'grc20.Import';
|
|
181
|
+
static fields = proto3.util.newFieldList(() => [
|
|
182
|
+
{ no: 1, name: 'edits', kind: 'scalar', T: 9 /* ScalarType.STRING */, repeated: true },
|
|
183
|
+
]);
|
|
184
|
+
static fromBinary(bytes, options) {
|
|
185
|
+
return new Import().fromBinary(bytes, options);
|
|
186
|
+
}
|
|
187
|
+
static fromJson(jsonValue, options) {
|
|
188
|
+
return new Import().fromJson(jsonValue, options);
|
|
189
|
+
}
|
|
190
|
+
static fromJsonString(jsonString, options) {
|
|
191
|
+
return new Import().fromJsonString(jsonString, options);
|
|
192
|
+
}
|
|
193
|
+
static equals(a, b) {
|
|
194
|
+
return proto3.util.equals(Import, a, b);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* @generated from message grc20.File
|
|
199
|
+
*/
|
|
200
|
+
export class File extends Message {
|
|
201
|
+
/**
|
|
202
|
+
* @generated from field: string version = 1;
|
|
203
|
+
*/
|
|
204
|
+
version = '';
|
|
205
|
+
/**
|
|
206
|
+
* @generated from oneof grc20.File.payload
|
|
207
|
+
*/
|
|
208
|
+
payload = { case: undefined };
|
|
209
|
+
constructor(data) {
|
|
210
|
+
super();
|
|
211
|
+
proto3.util.initPartial(data, this);
|
|
212
|
+
}
|
|
213
|
+
static runtime = proto3;
|
|
214
|
+
static typeName = 'grc20.File';
|
|
215
|
+
static fields = proto3.util.newFieldList(() => [
|
|
216
|
+
{ no: 1, name: 'version', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
217
|
+
{ no: 2, name: 'add_edit', kind: 'message', T: Edit, oneof: 'payload' },
|
|
218
|
+
{ no: 3, name: 'import_space', kind: 'message', T: Import, oneof: 'payload' },
|
|
219
|
+
{ no: 4, name: 'archive_space', kind: 'scalar', T: 12 /* ScalarType.BYTES */, oneof: 'payload' },
|
|
220
|
+
]);
|
|
221
|
+
static fromBinary(bytes, options) {
|
|
222
|
+
return new File().fromBinary(bytes, options);
|
|
223
|
+
}
|
|
224
|
+
static fromJson(jsonValue, options) {
|
|
225
|
+
return new File().fromJson(jsonValue, options);
|
|
226
|
+
}
|
|
227
|
+
static fromJsonString(jsonString, options) {
|
|
228
|
+
return new File().fromJsonString(jsonString, options);
|
|
229
|
+
}
|
|
230
|
+
static equals(a, b) {
|
|
231
|
+
return proto3.util.equals(File, a, b);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* @generated from message grc20.Op
|
|
236
|
+
*/
|
|
237
|
+
export class Op extends Message {
|
|
238
|
+
/**
|
|
239
|
+
* @generated from oneof grc20.Op.payload
|
|
240
|
+
*/
|
|
241
|
+
payload = { case: undefined };
|
|
242
|
+
constructor(data) {
|
|
243
|
+
super();
|
|
244
|
+
proto3.util.initPartial(data, this);
|
|
245
|
+
}
|
|
246
|
+
static runtime = proto3;
|
|
247
|
+
static typeName = 'grc20.Op';
|
|
248
|
+
static fields = proto3.util.newFieldList(() => [
|
|
249
|
+
{ no: 1, name: 'update_entity', kind: 'message', T: Entity, oneof: 'payload' },
|
|
250
|
+
{ no: 2, name: 'create_relation', kind: 'message', T: Relation, oneof: 'payload' },
|
|
251
|
+
{ no: 3, name: 'update_relation', kind: 'message', T: RelationUpdate, oneof: 'payload' },
|
|
252
|
+
{ no: 4, name: 'delete_relation', kind: 'scalar', T: 12 /* ScalarType.BYTES */, oneof: 'payload' },
|
|
253
|
+
{ no: 5, name: 'create_property', kind: 'message', T: Property, oneof: 'payload' },
|
|
254
|
+
{ no: 6, name: 'unset_entity_values', kind: 'message', T: UnsetEntityValues, oneof: 'payload' },
|
|
255
|
+
{ no: 7, name: 'unset_relation_fields', kind: 'message', T: UnsetRelationFields, oneof: 'payload' },
|
|
256
|
+
]);
|
|
257
|
+
static fromBinary(bytes, options) {
|
|
258
|
+
return new Op().fromBinary(bytes, options);
|
|
259
|
+
}
|
|
260
|
+
static fromJson(jsonValue, options) {
|
|
261
|
+
return new Op().fromJson(jsonValue, options);
|
|
262
|
+
}
|
|
263
|
+
static fromJsonString(jsonString, options) {
|
|
264
|
+
return new Op().fromJsonString(jsonString, options);
|
|
265
|
+
}
|
|
266
|
+
static equals(a, b) {
|
|
267
|
+
return proto3.util.equals(Op, a, b);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* @generated from message grc20.Property
|
|
272
|
+
*/
|
|
273
|
+
export class Property extends Message {
|
|
274
|
+
/**
|
|
275
|
+
* @generated from field: bytes id = 1;
|
|
276
|
+
*/
|
|
277
|
+
id = new Uint8Array(0);
|
|
278
|
+
/**
|
|
279
|
+
* @generated from field: grc20.DataType data_type = 2;
|
|
280
|
+
*/
|
|
281
|
+
dataType = DataType.STRING;
|
|
282
|
+
constructor(data) {
|
|
283
|
+
super();
|
|
284
|
+
proto3.util.initPartial(data, this);
|
|
285
|
+
}
|
|
286
|
+
static runtime = proto3;
|
|
287
|
+
static typeName = 'grc20.Property';
|
|
288
|
+
static fields = proto3.util.newFieldList(() => [
|
|
289
|
+
{ no: 1, name: 'id', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
|
290
|
+
{ no: 2, name: 'data_type', kind: 'enum', T: proto3.getEnumType(DataType) },
|
|
291
|
+
]);
|
|
292
|
+
static fromBinary(bytes, options) {
|
|
293
|
+
return new Property().fromBinary(bytes, options);
|
|
294
|
+
}
|
|
295
|
+
static fromJson(jsonValue, options) {
|
|
296
|
+
return new Property().fromJson(jsonValue, options);
|
|
297
|
+
}
|
|
298
|
+
static fromJsonString(jsonString, options) {
|
|
299
|
+
return new Property().fromJsonString(jsonString, options);
|
|
300
|
+
}
|
|
301
|
+
static equals(a, b) {
|
|
302
|
+
return proto3.util.equals(Property, a, b);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* @generated from message grc20.UnsetEntityValues
|
|
307
|
+
*/
|
|
308
|
+
export class UnsetEntityValues extends Message {
|
|
309
|
+
/**
|
|
310
|
+
* @generated from field: bytes id = 1;
|
|
311
|
+
*/
|
|
312
|
+
id = new Uint8Array(0);
|
|
313
|
+
/**
|
|
314
|
+
* @generated from field: repeated bytes properties = 2;
|
|
315
|
+
*/
|
|
316
|
+
properties = [];
|
|
317
|
+
constructor(data) {
|
|
318
|
+
super();
|
|
319
|
+
proto3.util.initPartial(data, this);
|
|
320
|
+
}
|
|
321
|
+
static runtime = proto3;
|
|
322
|
+
static typeName = 'grc20.UnsetEntityValues';
|
|
323
|
+
static fields = proto3.util.newFieldList(() => [
|
|
324
|
+
{ no: 1, name: 'id', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
|
325
|
+
{ no: 2, name: 'properties', kind: 'scalar', T: 12 /* ScalarType.BYTES */, repeated: true },
|
|
326
|
+
]);
|
|
327
|
+
static fromBinary(bytes, options) {
|
|
328
|
+
return new UnsetEntityValues().fromBinary(bytes, options);
|
|
329
|
+
}
|
|
330
|
+
static fromJson(jsonValue, options) {
|
|
331
|
+
return new UnsetEntityValues().fromJson(jsonValue, options);
|
|
332
|
+
}
|
|
333
|
+
static fromJsonString(jsonString, options) {
|
|
334
|
+
return new UnsetEntityValues().fromJsonString(jsonString, options);
|
|
335
|
+
}
|
|
336
|
+
static equals(a, b) {
|
|
337
|
+
return proto3.util.equals(UnsetEntityValues, a, b);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* @generated from message grc20.Relation
|
|
342
|
+
*/
|
|
343
|
+
export class Relation extends Message {
|
|
344
|
+
/**
|
|
345
|
+
* @generated from field: bytes id = 1;
|
|
346
|
+
*/
|
|
347
|
+
id = new Uint8Array(0);
|
|
348
|
+
/**
|
|
349
|
+
* @generated from field: bytes type = 2;
|
|
350
|
+
*/
|
|
351
|
+
type = new Uint8Array(0);
|
|
352
|
+
/**
|
|
353
|
+
* @generated from field: bytes from_entity = 3;
|
|
354
|
+
*/
|
|
355
|
+
fromEntity = new Uint8Array(0);
|
|
356
|
+
/**
|
|
357
|
+
* @generated from field: optional bytes from_space = 4;
|
|
358
|
+
*/
|
|
359
|
+
fromSpace;
|
|
360
|
+
/**
|
|
361
|
+
* @generated from field: optional bytes from_version = 5;
|
|
362
|
+
*/
|
|
363
|
+
fromVersion;
|
|
364
|
+
/**
|
|
365
|
+
* @generated from field: bytes to_entity = 6;
|
|
366
|
+
*/
|
|
367
|
+
toEntity = new Uint8Array(0);
|
|
368
|
+
/**
|
|
369
|
+
* @generated from field: optional bytes to_space = 7;
|
|
370
|
+
*/
|
|
371
|
+
toSpace;
|
|
372
|
+
/**
|
|
373
|
+
* @generated from field: optional bytes to_version = 8;
|
|
374
|
+
*/
|
|
375
|
+
toVersion;
|
|
376
|
+
/**
|
|
377
|
+
* @generated from field: bytes entity = 9;
|
|
378
|
+
*/
|
|
379
|
+
entity = new Uint8Array(0);
|
|
380
|
+
/**
|
|
381
|
+
* @generated from field: optional string position = 10;
|
|
382
|
+
*/
|
|
383
|
+
position;
|
|
384
|
+
/**
|
|
385
|
+
* @generated from field: optional bool verified = 11;
|
|
386
|
+
*/
|
|
387
|
+
verified;
|
|
388
|
+
constructor(data) {
|
|
389
|
+
super();
|
|
390
|
+
proto3.util.initPartial(data, this);
|
|
391
|
+
}
|
|
392
|
+
static runtime = proto3;
|
|
393
|
+
static typeName = 'grc20.Relation';
|
|
394
|
+
static fields = proto3.util.newFieldList(() => [
|
|
395
|
+
{ no: 1, name: 'id', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
|
396
|
+
{ no: 2, name: 'type', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
|
397
|
+
{ no: 3, name: 'from_entity', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
|
398
|
+
{ no: 4, name: 'from_space', kind: 'scalar', T: 12 /* ScalarType.BYTES */, opt: true },
|
|
399
|
+
{ no: 5, name: 'from_version', kind: 'scalar', T: 12 /* ScalarType.BYTES */, opt: true },
|
|
400
|
+
{ no: 6, name: 'to_entity', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
|
401
|
+
{ no: 7, name: 'to_space', kind: 'scalar', T: 12 /* ScalarType.BYTES */, opt: true },
|
|
402
|
+
{ no: 8, name: 'to_version', kind: 'scalar', T: 12 /* ScalarType.BYTES */, opt: true },
|
|
403
|
+
{ no: 9, name: 'entity', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
|
404
|
+
{ no: 10, name: 'position', kind: 'scalar', T: 9 /* ScalarType.STRING */, opt: true },
|
|
405
|
+
{ no: 11, name: 'verified', kind: 'scalar', T: 8 /* ScalarType.BOOL */, opt: true },
|
|
406
|
+
]);
|
|
407
|
+
static fromBinary(bytes, options) {
|
|
408
|
+
return new Relation().fromBinary(bytes, options);
|
|
409
|
+
}
|
|
410
|
+
static fromJson(jsonValue, options) {
|
|
411
|
+
return new Relation().fromJson(jsonValue, options);
|
|
412
|
+
}
|
|
413
|
+
static fromJsonString(jsonString, options) {
|
|
414
|
+
return new Relation().fromJsonString(jsonString, options);
|
|
415
|
+
}
|
|
416
|
+
static equals(a, b) {
|
|
417
|
+
return proto3.util.equals(Relation, a, b);
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
/**
|
|
421
|
+
* @generated from message grc20.RelationUpdate
|
|
422
|
+
*/
|
|
423
|
+
export class RelationUpdate extends Message {
|
|
424
|
+
/**
|
|
425
|
+
* @generated from field: bytes id = 1;
|
|
426
|
+
*/
|
|
427
|
+
id = new Uint8Array(0);
|
|
428
|
+
/**
|
|
429
|
+
* @generated from field: optional bytes from_space = 2;
|
|
430
|
+
*/
|
|
431
|
+
fromSpace;
|
|
432
|
+
/**
|
|
433
|
+
* @generated from field: optional bytes from_version = 3;
|
|
434
|
+
*/
|
|
435
|
+
fromVersion;
|
|
436
|
+
/**
|
|
437
|
+
* @generated from field: optional bytes to_space = 4;
|
|
438
|
+
*/
|
|
439
|
+
toSpace;
|
|
440
|
+
/**
|
|
441
|
+
* @generated from field: optional bytes to_version = 5;
|
|
442
|
+
*/
|
|
443
|
+
toVersion;
|
|
444
|
+
/**
|
|
445
|
+
* @generated from field: optional string position = 6;
|
|
446
|
+
*/
|
|
447
|
+
position;
|
|
448
|
+
/**
|
|
449
|
+
* @generated from field: optional bool verified = 7;
|
|
450
|
+
*/
|
|
451
|
+
verified;
|
|
452
|
+
constructor(data) {
|
|
453
|
+
super();
|
|
454
|
+
proto3.util.initPartial(data, this);
|
|
455
|
+
}
|
|
456
|
+
static runtime = proto3;
|
|
457
|
+
static typeName = 'grc20.RelationUpdate';
|
|
458
|
+
static fields = proto3.util.newFieldList(() => [
|
|
459
|
+
{ no: 1, name: 'id', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
|
460
|
+
{ no: 2, name: 'from_space', kind: 'scalar', T: 12 /* ScalarType.BYTES */, opt: true },
|
|
461
|
+
{ no: 3, name: 'from_version', kind: 'scalar', T: 12 /* ScalarType.BYTES */, opt: true },
|
|
462
|
+
{ no: 4, name: 'to_space', kind: 'scalar', T: 12 /* ScalarType.BYTES */, opt: true },
|
|
463
|
+
{ no: 5, name: 'to_version', kind: 'scalar', T: 12 /* ScalarType.BYTES */, opt: true },
|
|
464
|
+
{ no: 6, name: 'position', kind: 'scalar', T: 9 /* ScalarType.STRING */, opt: true },
|
|
465
|
+
{ no: 7, name: 'verified', kind: 'scalar', T: 8 /* ScalarType.BOOL */, opt: true },
|
|
466
|
+
]);
|
|
467
|
+
static fromBinary(bytes, options) {
|
|
468
|
+
return new RelationUpdate().fromBinary(bytes, options);
|
|
469
|
+
}
|
|
470
|
+
static fromJson(jsonValue, options) {
|
|
471
|
+
return new RelationUpdate().fromJson(jsonValue, options);
|
|
472
|
+
}
|
|
473
|
+
static fromJsonString(jsonString, options) {
|
|
474
|
+
return new RelationUpdate().fromJsonString(jsonString, options);
|
|
475
|
+
}
|
|
476
|
+
static equals(a, b) {
|
|
477
|
+
return proto3.util.equals(RelationUpdate, a, b);
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* @generated from message grc20.UnsetRelationFields
|
|
482
|
+
*/
|
|
483
|
+
export class UnsetRelationFields extends Message {
|
|
484
|
+
/**
|
|
485
|
+
* @generated from field: bytes id = 1;
|
|
486
|
+
*/
|
|
487
|
+
id = new Uint8Array(0);
|
|
488
|
+
/**
|
|
489
|
+
* @generated from field: optional bool from_space = 2;
|
|
490
|
+
*/
|
|
491
|
+
fromSpace;
|
|
492
|
+
/**
|
|
493
|
+
* @generated from field: optional bool from_version = 3;
|
|
494
|
+
*/
|
|
495
|
+
fromVersion;
|
|
496
|
+
/**
|
|
497
|
+
* @generated from field: optional bool to_space = 4;
|
|
498
|
+
*/
|
|
499
|
+
toSpace;
|
|
500
|
+
/**
|
|
501
|
+
* @generated from field: optional bool to_version = 5;
|
|
502
|
+
*/
|
|
503
|
+
toVersion;
|
|
504
|
+
/**
|
|
505
|
+
* @generated from field: optional bool position = 6;
|
|
506
|
+
*/
|
|
507
|
+
position;
|
|
508
|
+
/**
|
|
509
|
+
* @generated from field: optional bool verified = 7;
|
|
510
|
+
*/
|
|
511
|
+
verified;
|
|
512
|
+
constructor(data) {
|
|
513
|
+
super();
|
|
514
|
+
proto3.util.initPartial(data, this);
|
|
515
|
+
}
|
|
516
|
+
static runtime = proto3;
|
|
517
|
+
static typeName = 'grc20.UnsetRelationFields';
|
|
518
|
+
static fields = proto3.util.newFieldList(() => [
|
|
519
|
+
{ no: 1, name: 'id', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
|
520
|
+
{ no: 2, name: 'from_space', kind: 'scalar', T: 8 /* ScalarType.BOOL */, opt: true },
|
|
521
|
+
{ no: 3, name: 'from_version', kind: 'scalar', T: 8 /* ScalarType.BOOL */, opt: true },
|
|
522
|
+
{ no: 4, name: 'to_space', kind: 'scalar', T: 8 /* ScalarType.BOOL */, opt: true },
|
|
523
|
+
{ no: 5, name: 'to_version', kind: 'scalar', T: 8 /* ScalarType.BOOL */, opt: true },
|
|
524
|
+
{ no: 6, name: 'position', kind: 'scalar', T: 8 /* ScalarType.BOOL */, opt: true },
|
|
525
|
+
{ no: 7, name: 'verified', kind: 'scalar', T: 8 /* ScalarType.BOOL */, opt: true },
|
|
526
|
+
]);
|
|
527
|
+
static fromBinary(bytes, options) {
|
|
528
|
+
return new UnsetRelationFields().fromBinary(bytes, options);
|
|
529
|
+
}
|
|
530
|
+
static fromJson(jsonValue, options) {
|
|
531
|
+
return new UnsetRelationFields().fromJson(jsonValue, options);
|
|
532
|
+
}
|
|
533
|
+
static fromJsonString(jsonString, options) {
|
|
534
|
+
return new UnsetRelationFields().fromJsonString(jsonString, options);
|
|
535
|
+
}
|
|
536
|
+
static equals(a, b) {
|
|
537
|
+
return proto3.util.equals(UnsetRelationFields, a, b);
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
/**
|
|
541
|
+
* @generated from message grc20.Entity
|
|
542
|
+
*/
|
|
543
|
+
export class Entity extends Message {
|
|
544
|
+
/**
|
|
545
|
+
* @generated from field: bytes id = 1;
|
|
546
|
+
*/
|
|
547
|
+
id = new Uint8Array(0);
|
|
548
|
+
/**
|
|
549
|
+
* @generated from field: repeated grc20.Value values = 2;
|
|
550
|
+
*/
|
|
551
|
+
values = [];
|
|
552
|
+
constructor(data) {
|
|
553
|
+
super();
|
|
554
|
+
proto3.util.initPartial(data, this);
|
|
555
|
+
}
|
|
556
|
+
static runtime = proto3;
|
|
557
|
+
static typeName = 'grc20.Entity';
|
|
558
|
+
static fields = proto3.util.newFieldList(() => [
|
|
559
|
+
{ no: 1, name: 'id', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
|
560
|
+
{ no: 2, name: 'values', kind: 'message', T: Value, repeated: true },
|
|
561
|
+
]);
|
|
562
|
+
static fromBinary(bytes, options) {
|
|
563
|
+
return new Entity().fromBinary(bytes, options);
|
|
564
|
+
}
|
|
565
|
+
static fromJson(jsonValue, options) {
|
|
566
|
+
return new Entity().fromJson(jsonValue, options);
|
|
567
|
+
}
|
|
568
|
+
static fromJsonString(jsonString, options) {
|
|
569
|
+
return new Entity().fromJsonString(jsonString, options);
|
|
570
|
+
}
|
|
571
|
+
static equals(a, b) {
|
|
572
|
+
return proto3.util.equals(Entity, a, b);
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* @generated from message grc20.Options
|
|
577
|
+
*/
|
|
578
|
+
export class Options extends Message {
|
|
579
|
+
/**
|
|
580
|
+
* @generated from oneof grc20.Options.value
|
|
581
|
+
*/
|
|
582
|
+
value = { case: undefined };
|
|
583
|
+
constructor(data) {
|
|
584
|
+
super();
|
|
585
|
+
proto3.util.initPartial(data, this);
|
|
586
|
+
}
|
|
587
|
+
static runtime = proto3;
|
|
588
|
+
static typeName = 'grc20.Options';
|
|
589
|
+
static fields = proto3.util.newFieldList(() => [
|
|
590
|
+
{ no: 1, name: 'text', kind: 'message', T: TextOptions, oneof: 'value' },
|
|
591
|
+
{ no: 2, name: 'number', kind: 'message', T: NumberOptions, oneof: 'value' },
|
|
592
|
+
]);
|
|
593
|
+
static fromBinary(bytes, options) {
|
|
594
|
+
return new Options().fromBinary(bytes, options);
|
|
595
|
+
}
|
|
596
|
+
static fromJson(jsonValue, options) {
|
|
597
|
+
return new Options().fromJson(jsonValue, options);
|
|
598
|
+
}
|
|
599
|
+
static fromJsonString(jsonString, options) {
|
|
600
|
+
return new Options().fromJsonString(jsonString, options);
|
|
601
|
+
}
|
|
602
|
+
static equals(a, b) {
|
|
603
|
+
return proto3.util.equals(Options, a, b);
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
/**
|
|
607
|
+
* @generated from message grc20.Value
|
|
608
|
+
*/
|
|
609
|
+
export class Value extends Message {
|
|
610
|
+
/**
|
|
611
|
+
* @generated from field: bytes property = 1;
|
|
612
|
+
*/
|
|
613
|
+
property = new Uint8Array(0);
|
|
614
|
+
/**
|
|
615
|
+
* @generated from field: string value = 2;
|
|
616
|
+
*/
|
|
617
|
+
value = '';
|
|
618
|
+
/**
|
|
619
|
+
* @generated from field: optional grc20.Options options = 3;
|
|
620
|
+
*/
|
|
621
|
+
options;
|
|
622
|
+
constructor(data) {
|
|
623
|
+
super();
|
|
624
|
+
proto3.util.initPartial(data, this);
|
|
625
|
+
}
|
|
626
|
+
static runtime = proto3;
|
|
627
|
+
static typeName = 'grc20.Value';
|
|
628
|
+
static fields = proto3.util.newFieldList(() => [
|
|
629
|
+
{ no: 1, name: 'property', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
|
630
|
+
{ no: 2, name: 'value', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
631
|
+
{ no: 3, name: 'options', kind: 'message', T: Options, opt: true },
|
|
632
|
+
]);
|
|
633
|
+
static fromBinary(bytes, options) {
|
|
634
|
+
return new Value().fromBinary(bytes, options);
|
|
635
|
+
}
|
|
636
|
+
static fromJson(jsonValue, options) {
|
|
637
|
+
return new Value().fromJson(jsonValue, options);
|
|
638
|
+
}
|
|
639
|
+
static fromJsonString(jsonString, options) {
|
|
640
|
+
return new Value().fromJsonString(jsonString, options);
|
|
641
|
+
}
|
|
642
|
+
static equals(a, b) {
|
|
643
|
+
return proto3.util.equals(Value, a, b);
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
/**
|
|
647
|
+
* @generated from message grc20.TextOptions
|
|
648
|
+
*/
|
|
649
|
+
export class TextOptions extends Message {
|
|
650
|
+
/**
|
|
651
|
+
* @generated from field: optional bytes language = 1;
|
|
652
|
+
*/
|
|
653
|
+
language;
|
|
654
|
+
constructor(data) {
|
|
655
|
+
super();
|
|
656
|
+
proto3.util.initPartial(data, this);
|
|
657
|
+
}
|
|
658
|
+
static runtime = proto3;
|
|
659
|
+
static typeName = 'grc20.TextOptions';
|
|
660
|
+
static fields = proto3.util.newFieldList(() => [
|
|
661
|
+
{ no: 1, name: 'language', kind: 'scalar', T: 12 /* ScalarType.BYTES */, opt: true },
|
|
662
|
+
]);
|
|
663
|
+
static fromBinary(bytes, options) {
|
|
664
|
+
return new TextOptions().fromBinary(bytes, options);
|
|
665
|
+
}
|
|
666
|
+
static fromJson(jsonValue, options) {
|
|
667
|
+
return new TextOptions().fromJson(jsonValue, options);
|
|
668
|
+
}
|
|
669
|
+
static fromJsonString(jsonString, options) {
|
|
670
|
+
return new TextOptions().fromJsonString(jsonString, options);
|
|
671
|
+
}
|
|
672
|
+
static equals(a, b) {
|
|
673
|
+
return proto3.util.equals(TextOptions, a, b);
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
/**
|
|
677
|
+
* @generated from message grc20.NumberOptions
|
|
678
|
+
*/
|
|
679
|
+
export class NumberOptions extends Message {
|
|
680
|
+
/**
|
|
681
|
+
* @generated from field: optional bytes unit = 1;
|
|
682
|
+
*/
|
|
683
|
+
unit;
|
|
684
|
+
constructor(data) {
|
|
685
|
+
super();
|
|
686
|
+
proto3.util.initPartial(data, this);
|
|
687
|
+
}
|
|
688
|
+
static runtime = proto3;
|
|
689
|
+
static typeName = 'grc20.NumberOptions';
|
|
690
|
+
static fields = proto3.util.newFieldList(() => [
|
|
691
|
+
{ no: 1, name: 'unit', kind: 'scalar', T: 12 /* ScalarType.BYTES */, opt: true },
|
|
692
|
+
]);
|
|
693
|
+
static fromBinary(bytes, options) {
|
|
694
|
+
return new NumberOptions().fromBinary(bytes, options);
|
|
695
|
+
}
|
|
696
|
+
static fromJson(jsonValue, options) {
|
|
697
|
+
return new NumberOptions().fromJson(jsonValue, options);
|
|
698
|
+
}
|
|
699
|
+
static fromJsonString(jsonString, options) {
|
|
700
|
+
return new NumberOptions().fromJsonString(jsonString, options);
|
|
701
|
+
}
|
|
702
|
+
static equals(a, b) {
|
|
703
|
+
return proto3.util.equals(NumberOptions, a, b);
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
//# sourceMappingURL=ipfs_pb.js.map
|