@graphprotocol/grc-20 0.25.6 → 0.26.0
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/dist/contracts.d.ts +2 -0
- package/dist/contracts.d.ts.map +1 -1
- package/dist/contracts.js +14 -12
- package/dist/contracts.js.map +1 -1
- package/dist/index.d.ts +14 -14
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -14
- package/dist/index.js.map +1 -1
- package/dist/proto.d.ts +5 -5
- package/dist/proto.d.ts.map +1 -1
- package/dist/proto.js +5 -5
- package/dist/proto.js.map +1 -1
- package/dist/src/abis/dao-space-factory.d.ts +250 -0
- package/dist/src/abis/dao-space-factory.d.ts.map +1 -0
- package/dist/src/abis/dao-space-factory.js +326 -0
- package/dist/src/abis/dao-space-factory.js.map +1 -0
- package/dist/src/abis/governance-setup.js +234 -234
- package/dist/src/abis/index.d.ts +7 -5
- package/dist/src/abis/index.d.ts.map +1 -1
- package/dist/src/abis/index.js +7 -5
- package/dist/src/abis/index.js.map +1 -1
- package/dist/src/abis/main-voting.js +925 -925
- package/dist/src/abis/member-access.js +345 -345
- package/dist/src/abis/personal-space-admin-setup.js +171 -171
- package/dist/src/abis/personal-space-admin.js +258 -258
- package/dist/src/abis/space-registry.d.ts +367 -0
- package/dist/src/abis/space-registry.d.ts.map +1 -0
- package/dist/src/abis/space-registry.js +192 -0
- package/dist/src/abis/space-registry.js.map +1 -0
- package/dist/src/abis/space-setup.js +208 -208
- package/dist/src/abis/space.js +210 -210
- package/dist/src/core/ids/content.d.ts +1 -0
- package/dist/src/core/ids/content.d.ts.map +1 -1
- package/dist/src/core/ids/content.js +1 -0
- package/dist/src/core/ids/content.js.map +1 -1
- package/dist/src/core/ids/system.d.ts +4 -0
- package/dist/src/core/ids/system.d.ts.map +1 -1
- package/dist/src/core/ids/system.js +4 -0
- package/dist/src/core/ids/system.js.map +1 -1
- package/dist/src/core/position.d.ts.map +1 -1
- package/dist/src/core/position.js +2 -2
- package/dist/src/core/position.js.map +1 -1
- package/dist/src/encodings/get-calldata-for-space-governance-type.d.ts +1 -1
- package/dist/src/encodings/get-calldata-for-space-governance-type.d.ts.map +1 -1
- package/dist/src/encodings/get-calldata-for-space-governance-type.js +8 -13
- package/dist/src/encodings/get-calldata-for-space-governance-type.js.map +1 -1
- package/dist/src/encodings/get-create-dao-space-calldata.d.ts +146 -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 +169 -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 +124 -0
- package/dist/src/encodings/get-create-dao-space-calldata.test.js.map +1 -0
- package/dist/src/encodings/get-process-geo-proposal-arguments.d.ts +1 -1
- package/dist/src/encodings/get-process-geo-proposal-arguments.d.ts.map +1 -1
- package/dist/src/encodings/get-process-geo-proposal-arguments.js +5 -5
- package/dist/src/encodings/get-process-geo-proposal-arguments.js.map +1 -1
- 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/index.d.ts +6 -4
- package/dist/src/encodings/index.d.ts.map +1 -1
- package/dist/src/encodings/index.js +6 -4
- package/dist/src/encodings/index.js.map +1 -1
- package/dist/src/graph/create-entity.js +2 -2
- package/dist/src/graph/create-entity.js.map +1 -1
- package/dist/src/graph/create-image.js +1 -1
- package/dist/src/graph/create-image.js.map +1 -1
- package/dist/src/graph/create-property.d.ts +1 -1
- package/dist/src/graph/create-property.d.ts.map +1 -1
- package/dist/src/graph/create-property.js +12 -12
- package/dist/src/graph/create-property.js.map +1 -1
- package/dist/src/graph/create-relation.js +1 -1
- package/dist/src/graph/create-relation.js.map +1 -1
- package/dist/src/graph/create-type.js +1 -1
- package/dist/src/graph/create-type.js.map +1 -1
- package/dist/src/graph/serialize.d.ts +1 -1
- package/dist/src/graph/unset-relation-fields.d.ts.map +1 -1
- package/dist/src/graph/unset-relation-fields.js +1 -1
- package/dist/src/graph/unset-relation-fields.js.map +1 -1
- package/dist/src/graph/update-entity.js +2 -2
- package/dist/src/graph/update-entity.js.map +1 -1
- package/dist/src/graph/update-entity.test.js +1 -1
- package/dist/src/graph/update-entity.test.js.map +1 -1
- package/dist/src/graph/update-relation.js +1 -1
- package/dist/src/graph/update-relation.js.map +1 -1
- package/dist/src/id-utils.js +1 -1
- package/dist/src/id-utils.js.map +1 -1
- package/dist/src/id-utils.test.js +1 -1
- package/dist/src/id-utils.test.js.map +1 -1
- package/dist/src/id.d.ts.map +1 -1
- package/dist/src/id.js.map +1 -1
- package/dist/src/id.test.js.map +1 -1
- package/dist/src/ipfs.d.ts.map +1 -1
- package/dist/src/ipfs.js.map +1 -1
- package/dist/src/position.d.ts +1 -1
- package/dist/src/position.js +1 -1
- package/dist/src/proto/edit.d.ts.map +1 -1
- package/dist/src/proto/edit.js +1 -1
- package/dist/src/proto/edit.js.map +1 -1
- package/dist/src/proto/edit.test.js +1 -1
- package/dist/src/proto/edit.test.js.map +1 -1
- package/dist/src/proto/gen/src/proto/ipfs_pb.d.ts +14 -14
- package/dist/src/proto/gen/src/proto/ipfs_pb.d.ts.map +1 -1
- package/dist/src/proto/gen/src/proto/ipfs_pb.js +93 -93
- package/dist/src/proto/gen/src/proto/ipfs_pb.js.map +1 -1
- package/dist/src/smart-wallet.js.map +1 -1
- package/dist/src/smart-wallet.test.js +1 -1
- package/dist/src/smart-wallet.test.js.map +1 -1
- package/package.json +3 -3
- package/dist/constants.d.ts +0 -7
- package/dist/constants.d.ts.map +0 -1
- package/dist/constants.js +0 -8
- package/dist/constants.js.map +0 -1
- package/dist/convert-ids.d.ts +0 -2
- package/dist/convert-ids.d.ts.map +0 -1
- package/dist/convert-ids.js +0 -42
- package/dist/convert-ids.js.map +0 -1
- package/dist/protov2.d.ts +0 -11
- package/dist/protov2.d.ts.map +0 -1
- package/dist/protov2.js +0 -11
- package/dist/protov2.js.map +0 -1
- package/dist/src/core/blocks/image.d.ts +0 -15
- package/dist/src/core/blocks/image.d.ts.map +0 -1
- package/dist/src/core/blocks/image.js +0 -15
- package/dist/src/core/blocks/image.js.map +0 -1
- package/dist/src/core/idsv2/content.d.ts +0 -59
- package/dist/src/core/idsv2/content.d.ts.map +0 -1
- package/dist/src/core/idsv2/content.js +0 -59
- package/dist/src/core/idsv2/content.js.map +0 -1
- package/dist/src/core/idsv2/network.d.ts +0 -5
- package/dist/src/core/idsv2/network.d.ts.map +0 -1
- package/dist/src/core/idsv2/network.js +0 -5
- package/dist/src/core/idsv2/network.js.map +0 -1
- package/dist/src/core/idsv2/system.d.ts +0 -222
- package/dist/src/core/idsv2/system.d.ts.map +0 -1
- package/dist/src/core/idsv2/system.js +0 -230
- package/dist/src/core/idsv2/system.js.map +0 -1
- package/dist/src/core/image.d.ts +0 -40
- package/dist/src/core/image.d.ts.map +0 -1
- package/dist/src/core/image.js +0 -76
- package/dist/src/core/image.js.map +0 -1
- package/dist/src/core/image.test.d.ts +0 -2
- package/dist/src/core/image.test.d.ts.map +0 -1
- package/dist/src/core/image.test.js +0 -52
- package/dist/src/core/image.test.js.map +0 -1
- package/dist/src/core/relation.d.ts +0 -88
- package/dist/src/core/relation.d.ts.map +0 -1
- package/dist/src/core/relation.js +0 -89
- package/dist/src/core/relation.js.map +0 -1
- package/dist/src/core/relation.test.d.ts +0 -2
- package/dist/src/core/relation.test.d.ts.map +0 -1
- package/dist/src/core/relation.test.js +0 -45
- package/dist/src/core/relation.test.js.map +0 -1
- package/dist/src/core/triple.d.ts +0 -50
- package/dist/src/core/triple.d.ts.map +0 -1
- package/dist/src/core/triple.js +0 -56
- package/dist/src/core/triple.js.map +0 -1
- package/dist/src/core/triple.test.d.ts +0 -2
- package/dist/src/core/triple.test.d.ts.map +0 -1
- package/dist/src/core/triple.test.js +0 -37
- package/dist/src/core/triple.test.js.map +0 -1
- package/dist/src/graph/delete-entity.d.ts +0 -14
- package/dist/src/graph/delete-entity.d.ts.map +0 -1
- package/dist/src/graph/delete-entity.js +0 -21
- package/dist/src/graph/delete-entity.js.map +0 -1
- package/dist/src/graph/delete-entity.test.d.ts +0 -2
- package/dist/src/graph/delete-entity.test.d.ts.map +0 -1
- package/dist/src/graph/delete-entity.test.js +0 -23
- package/dist/src/graph/delete-entity.test.js.map +0 -1
- package/dist/src/graph/graph.test.d.ts +0 -2
- package/dist/src/graph/graph.test.d.ts.map +0 -1
- package/dist/src/graph/graph.test.js +0 -46
- package/dist/src/graph/graph.test.js.map +0 -1
- package/dist/src/graph/helpers/create-default-properties.d.ts +0 -5
- package/dist/src/graph/helpers/create-default-properties.d.ts.map +0 -1
- package/dist/src/graph/helpers/create-default-properties.js +0 -44
- package/dist/src/graph/helpers/create-default-properties.js.map +0 -1
- package/dist/src/graph/helpers/create-properties.d.ts +0 -8
- package/dist/src/graph/helpers/create-properties.d.ts.map +0 -1
- package/dist/src/graph/helpers/create-properties.js +0 -53
- package/dist/src/graph/helpers/create-properties.js.map +0 -1
- package/dist/src/graphv2/constants.d.ts +0 -2
- package/dist/src/graphv2/constants.d.ts.map +0 -1
- package/dist/src/graphv2/constants.js +0 -2
- package/dist/src/graphv2/constants.js.map +0 -1
- package/dist/src/graphv2/create-entity.d.ts +0 -52
- package/dist/src/graphv2/create-entity.d.ts.map +0 -1
- package/dist/src/graphv2/create-entity.js +0 -140
- package/dist/src/graphv2/create-entity.js.map +0 -1
- package/dist/src/graphv2/create-entity.test.d.ts +0 -2
- package/dist/src/graphv2/create-entity.test.d.ts.map +0 -1
- package/dist/src/graphv2/create-entity.test.js +0 -158
- package/dist/src/graphv2/create-entity.test.js.map +0 -1
- package/dist/src/graphv2/create-image.d.ts +0 -28
- package/dist/src/graphv2/create-image.d.ts.map +0 -1
- package/dist/src/graphv2/create-image.js +0 -71
- package/dist/src/graphv2/create-image.js.map +0 -1
- package/dist/src/graphv2/create-image.test.d.ts +0 -2
- package/dist/src/graphv2/create-image.test.d.ts.map +0 -1
- package/dist/src/graphv2/create-image.test.js +0 -142
- package/dist/src/graphv2/create-image.test.js.map +0 -1
- package/dist/src/graphv2/create-property.d.ts +0 -22
- package/dist/src/graphv2/create-property.d.ts.map +0 -1
- package/dist/src/graphv2/create-property.js +0 -129
- package/dist/src/graphv2/create-property.js.map +0 -1
- package/dist/src/graphv2/create-property.test.d.ts +0 -2
- package/dist/src/graphv2/create-property.test.d.ts.map +0 -1
- package/dist/src/graphv2/create-property.test.js +0 -82
- package/dist/src/graphv2/create-property.test.js.map +0 -1
- package/dist/src/graphv2/create-relation.d.ts +0 -33
- package/dist/src/graphv2/create-relation.d.ts.map +0 -1
- package/dist/src/graphv2/create-relation.js +0 -66
- package/dist/src/graphv2/create-relation.js.map +0 -1
- package/dist/src/graphv2/create-relation.test.d.ts +0 -2
- package/dist/src/graphv2/create-relation.test.d.ts.map +0 -1
- package/dist/src/graphv2/create-relation.test.js +0 -208
- package/dist/src/graphv2/create-relation.test.js.map +0 -1
- package/dist/src/graphv2/create-space.d.ts +0 -13
- package/dist/src/graphv2/create-space.d.ts.map +0 -1
- package/dist/src/graphv2/create-space.js +0 -21
- package/dist/src/graphv2/create-space.js.map +0 -1
- package/dist/src/graphv2/create-type.d.ts +0 -22
- package/dist/src/graphv2/create-type.d.ts.map +0 -1
- package/dist/src/graphv2/create-type.js +0 -64
- package/dist/src/graphv2/create-type.js.map +0 -1
- package/dist/src/graphv2/create-type.test.d.ts +0 -2
- package/dist/src/graphv2/create-type.test.d.ts.map +0 -1
- package/dist/src/graphv2/create-type.test.js +0 -109
- package/dist/src/graphv2/create-type.test.js.map +0 -1
- package/dist/src/graphv2/delete-entity.d.ts +0 -14
- package/dist/src/graphv2/delete-entity.d.ts.map +0 -1
- package/dist/src/graphv2/delete-entity.js +0 -21
- package/dist/src/graphv2/delete-entity.js.map +0 -1
- package/dist/src/graphv2/delete-entity.test.d.ts +0 -2
- package/dist/src/graphv2/delete-entity.test.d.ts.map +0 -1
- package/dist/src/graphv2/delete-entity.test.js +0 -24
- package/dist/src/graphv2/delete-entity.test.js.map +0 -1
- package/dist/src/graphv2/delete-relation.d.ts +0 -14
- package/dist/src/graphv2/delete-relation.d.ts.map +0 -1
- package/dist/src/graphv2/delete-relation.js +0 -21
- package/dist/src/graphv2/delete-relation.js.map +0 -1
- package/dist/src/graphv2/delete-relation.test.d.ts +0 -2
- package/dist/src/graphv2/delete-relation.test.d.ts.map +0 -1
- package/dist/src/graphv2/delete-relation.test.js +0 -24
- package/dist/src/graphv2/delete-relation.test.js.map +0 -1
- package/dist/src/graphv2/index.d.ts +0 -12
- package/dist/src/graphv2/index.d.ts.map +0 -1
- package/dist/src/graphv2/index.js +0 -12
- package/dist/src/graphv2/index.js.map +0 -1
- package/dist/src/graphv2/remove-entity-properties.d.ts +0 -25
- package/dist/src/graphv2/remove-entity-properties.d.ts.map +0 -1
- package/dist/src/graphv2/remove-entity-properties.js +0 -24
- package/dist/src/graphv2/remove-entity-properties.js.map +0 -1
- package/dist/src/graphv2/unset-entity-values.d.ts +0 -21
- package/dist/src/graphv2/unset-entity-values.d.ts.map +0 -1
- package/dist/src/graphv2/unset-entity-values.js +0 -26
- package/dist/src/graphv2/unset-entity-values.js.map +0 -1
- package/dist/src/graphv2/unset-entity-values.test.d.ts +0 -2
- package/dist/src/graphv2/unset-entity-values.test.d.ts.map +0 -1
- package/dist/src/graphv2/unset-entity-values.test.js +0 -40
- package/dist/src/graphv2/unset-entity-values.test.js.map +0 -1
- package/dist/src/graphv2/unset-relation-fields.d.ts +0 -25
- package/dist/src/graphv2/unset-relation-fields.d.ts.map +0 -1
- package/dist/src/graphv2/unset-relation-fields.js +0 -34
- package/dist/src/graphv2/unset-relation-fields.js.map +0 -1
- package/dist/src/graphv2/unset-relation-fields.test.d.ts +0 -2
- package/dist/src/graphv2/unset-relation-fields.test.d.ts.map +0 -1
- package/dist/src/graphv2/unset-relation-fields.test.js +0 -64
- package/dist/src/graphv2/unset-relation-fields.test.js.map +0 -1
- package/dist/src/graphv2/update-entity.d.ts +0 -28
- package/dist/src/graphv2/update-entity.d.ts.map +0 -1
- package/dist/src/graphv2/update-entity.js +0 -73
- package/dist/src/graphv2/update-entity.js.map +0 -1
- package/dist/src/graphv2/update-entity.test.d.ts +0 -2
- package/dist/src/graphv2/update-entity.test.d.ts.map +0 -1
- package/dist/src/graphv2/update-entity.test.js +0 -116
- package/dist/src/graphv2/update-entity.test.js.map +0 -1
- package/dist/src/graphv2/update-relation.d.ts +0 -21
- package/dist/src/graphv2/update-relation.d.ts.map +0 -1
- package/dist/src/graphv2/update-relation.js +0 -37
- package/dist/src/graphv2/update-relation.js.map +0 -1
- package/dist/src/idv2.d.ts +0 -27
- package/dist/src/idv2.d.ts.map +0 -1
- package/dist/src/idv2.js +0 -88
- package/dist/src/idv2.js.map +0 -1
- package/dist/src/idv2.test.d.ts +0 -2
- package/dist/src/idv2.test.d.ts.map +0 -1
- package/dist/src/idv2.test.js +0 -26
- package/dist/src/idv2.test.js.map +0 -1
- package/dist/src/image.d.ts +0 -8
- package/dist/src/image.d.ts.map +0 -1
- package/dist/src/image.js +0 -8
- package/dist/src/image.js.map +0 -1
- package/dist/src/ipfsv2.d.ts +0 -96
- package/dist/src/ipfsv2.d.ts.map +0 -1
- package/dist/src/ipfsv2.js +0 -163
- package/dist/src/ipfsv2.js.map +0 -1
- package/dist/src/ipfsv2.test.d.ts +0 -2
- package/dist/src/ipfsv2.test.d.ts.map +0 -1
- package/dist/src/ipfsv2.test.js +0 -22
- package/dist/src/ipfsv2.test.js.map +0 -1
- package/dist/src/proto/editv2.d.ts +0 -11
- package/dist/src/proto/editv2.d.ts.map +0 -1
- package/dist/src/proto/editv2.js +0 -81
- package/dist/src/proto/editv2.js.map +0 -1
- package/dist/src/proto/editv2.test.d.ts +0 -2
- package/dist/src/proto/editv2.test.d.ts.map +0 -1
- package/dist/src/proto/editv2.test.js +0 -211
- package/dist/src/proto/editv2.test.js.map +0 -1
- package/dist/src/proto/gen/src/proto/ipfsv2_pb.d.ts +0 -410
- package/dist/src/proto/gen/src/proto/ipfsv2_pb.d.ts.map +0 -1
- package/dist/src/proto/gen/src/proto/ipfsv2_pb.js +0 -536
- package/dist/src/proto/gen/src/proto/ipfsv2_pb.js.map +0 -1
- package/dist/src/relation.d.ts +0 -7
- package/dist/src/relation.d.ts.map +0 -1
- package/dist/src/relation.js +0 -7
- package/dist/src/relation.js.map +0 -1
- package/dist/src/smart-wallet-2.test-invalid.d.ts +0 -2
- package/dist/src/smart-wallet-2.test-invalid.d.ts.map +0 -1
- package/dist/src/smart-wallet-2.test-invalid.js +0 -49
- package/dist/src/smart-wallet-2.test-invalid.js.map +0 -1
- package/dist/src/smart-wallet-2.test.d.ts +0 -2
- package/dist/src/smart-wallet-2.test.d.ts.map +0 -1
- package/dist/src/smart-wallet-2.test.js +0 -49
- package/dist/src/smart-wallet-2.test.js.map +0 -1
- package/dist/src/system-ids-v2.d.ts +0 -7
- package/dist/src/system-ids-v2.d.ts.map +0 -1
- package/dist/src/system-ids-v2.js +0 -7
- package/dist/src/system-ids-v2.js.map +0 -1
- package/dist/src/triple.d.ts +0 -7
- package/dist/src/triple.d.ts.map +0 -1
- package/dist/src/triple.js +0 -7
- package/dist/src/triple.js.map +0 -1
- package/dist/src/types-backup.d.ts +0 -134
- package/dist/src/types-backup.d.ts.map +0 -1
- package/dist/src/types-backup.js +0 -13
- package/dist/src/types-backup.js.map +0 -1
- package/dist/src/typesv2.d.ts +0 -173
- package/dist/src/typesv2.d.ts.map +0 -1
- package/dist/src/typesv2.js +0 -8
- package/dist/src/typesv2.js.map +0 -1
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'vitest';
|
|
2
|
-
import { GraphV2, IpfsV2 } from '~/index.js';
|
|
3
|
-
import { getSmartAccountWalletClient } from './smart-wallet.js';
|
|
4
|
-
describe('getSmartAccountWalletClient', { timeout: 6000000 }, () => {
|
|
5
|
-
it('should create a client with the default RPC URL when no RPC URL is provided', async () => {
|
|
6
|
-
const address = '0x7fd1BF705f4202C76434A494b88E7E1515D7688A';
|
|
7
|
-
const spaceId = '0f3aa347-efa3-4919-91d1-bb63a382553d';
|
|
8
|
-
const client = await getSmartAccountWalletClient({
|
|
9
|
-
privateKey: '0x9054bbced0e1a05a5dea2ff9446ea30fc98eb1934342bd2232b8753ffc46894d',
|
|
10
|
-
// rpcUrl: 'https://geo.rpc.pinax.network/v1/b970125fc31219b50e40d56c345496157b71ad1d9ee0016b/',
|
|
11
|
-
});
|
|
12
|
-
console.log('Your spaceId is:', spaceId);
|
|
13
|
-
// Once you have a personal space you can write data to it. Generate
|
|
14
|
-
// ops for your data using Triple.make or Relation.make accordingly.
|
|
15
|
-
const testEntity = await GraphV2.createEntity({
|
|
16
|
-
name: 'Test Entity 4 by Nik',
|
|
17
|
-
});
|
|
18
|
-
console.log('Test Entity Id:', testEntity.id);
|
|
19
|
-
console.log('Test Entity Ops:', testEntity.ops);
|
|
20
|
-
const { cid } = await IpfsV2.publishEdit({
|
|
21
|
-
name: 'creating a test entity',
|
|
22
|
-
author: address,
|
|
23
|
-
ops: testEntity.ops,
|
|
24
|
-
});
|
|
25
|
-
console.log('CID:', cid);
|
|
26
|
-
// This returns the correct contract address and calldata depending on the space id
|
|
27
|
-
// Make sure you use the correct space id in the URL below and the correct network.
|
|
28
|
-
const result = await fetch(`https://api-testnet.grc-20.thegraph.com/space/${spaceId}/edit/calldata`, {
|
|
29
|
-
method: 'POST',
|
|
30
|
-
body: JSON.stringify({
|
|
31
|
-
cid: cid,
|
|
32
|
-
// Optionally specify TESTNET or MAINNET. Defaults to MAINNET
|
|
33
|
-
// network: "TESTNET",
|
|
34
|
-
network: 'MAINNET',
|
|
35
|
-
}),
|
|
36
|
-
});
|
|
37
|
-
const { to, data } = await result.json();
|
|
38
|
-
console.log('To:', to);
|
|
39
|
-
console.log('Data:', data);
|
|
40
|
-
const transaction = await client.sendTransaction({
|
|
41
|
-
to: to,
|
|
42
|
-
value: 0n,
|
|
43
|
-
data: data,
|
|
44
|
-
});
|
|
45
|
-
console.log('Transaction hash:', transaction);
|
|
46
|
-
expect(client).toBeDefined();
|
|
47
|
-
});
|
|
48
|
-
});
|
|
49
|
-
//# sourceMappingURL=smart-wallet-2.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"smart-wallet-2.test.js","sourceRoot":"","sources":["../../src/smart-wallet-2.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE9C,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAEhE,QAAQ,CAAC,6BAA6B,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,GAAG,EAAE;IACjE,EAAE,CAAC,6EAA6E,EAAE,KAAK,IAAI,EAAE;QAC3F,MAAM,OAAO,GAAG,4CAA4C,CAAC;QAC7D,MAAM,OAAO,GAAG,sCAAsC,CAAC;QAEvD,MAAM,MAAM,GAAG,MAAM,2BAA2B,CAAC;YAC/C,UAAU,EAAE,oEAAoE;YAChF,gGAAgG;SACjG,CAAC,CAAC;QAEH,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;QAEzC,oEAAoE;QACpE,oEAAoE;QACpE,MAAM,UAAU,GAAG,MAAM,OAAO,CAAC,YAA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|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This module provides ids for commonly used entities across the Knowledge Graph.
|
|
3
|
-
*/
|
|
4
|
-
export * as ContentIds from './core/idsv2/content.js';
|
|
5
|
-
export * as NetworkIds from './core/idsv2/network.js';
|
|
6
|
-
export * as SystemIds from './core/idsv2/system.js';
|
|
7
|
-
//# sourceMappingURL=system-ids-v2.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"system-ids-v2.d.ts","sourceRoot":"","sources":["../../src/system-ids-v2.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This module provides ids for commonly used entities across the Knowledge Graph.
|
|
3
|
-
*/
|
|
4
|
-
export * as ContentIds from './core/idsv2/content.js';
|
|
5
|
-
export * as NetworkIds from './core/idsv2/network.js';
|
|
6
|
-
export * as SystemIds from './core/idsv2/system.js';
|
|
7
|
-
//# sourceMappingURL=system-ids-v2.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"system-ids-v2.js","sourceRoot":"","sources":["../../src/system-ids-v2.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAC"}
|
package/dist/src/triple.d.ts
DELETED
package/dist/src/triple.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"triple.d.ts","sourceRoot":"","sources":["../../src/triple.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC"}
|
package/dist/src/triple.js
DELETED
package/dist/src/triple.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"triple.js","sourceRoot":"","sources":["../../src/triple.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import type { Id } from './id.js';
|
|
2
|
-
type OmitStrict<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
3
|
-
export type ValueType = 'TEXT' | 'NUMBER' | 'CHECKBOX' | 'URL' | 'TIME' | 'POINT';
|
|
4
|
-
export type Value = {
|
|
5
|
-
type: ValueType;
|
|
6
|
-
value: string;
|
|
7
|
-
options?: TripleValueOptions;
|
|
8
|
-
};
|
|
9
|
-
export type TripleValueOptions = {
|
|
10
|
-
format?: string;
|
|
11
|
-
unit?: string;
|
|
12
|
-
language?: string;
|
|
13
|
-
};
|
|
14
|
-
type Triple = {
|
|
15
|
-
entity: string;
|
|
16
|
-
attribute: string;
|
|
17
|
-
value: Value;
|
|
18
|
-
};
|
|
19
|
-
type Entity = {
|
|
20
|
-
id: string;
|
|
21
|
-
types: string[];
|
|
22
|
-
};
|
|
23
|
-
export type CsvMetadata = {
|
|
24
|
-
type: 'CSV';
|
|
25
|
-
columns: {
|
|
26
|
-
id: string;
|
|
27
|
-
type: ValueType | 'RELATION';
|
|
28
|
-
options?: TripleValueOptions;
|
|
29
|
-
}[];
|
|
30
|
-
};
|
|
31
|
-
export type FileMetadata = CsvMetadata;
|
|
32
|
-
export type ImportFileOp = {
|
|
33
|
-
type: 'IMPORT_FILE';
|
|
34
|
-
/**
|
|
35
|
-
* ipfs:// prefixed cid representing the uploaded file
|
|
36
|
-
*/
|
|
37
|
-
url: string;
|
|
38
|
-
/**
|
|
39
|
-
* ipfs:// prefixed cid representing metadata about the uploaded file
|
|
40
|
-
*/
|
|
41
|
-
metadata: FileMetadata;
|
|
42
|
-
};
|
|
43
|
-
export type SetBatchTripleOp = {
|
|
44
|
-
type: 'SET_BATCH_TRIPLE';
|
|
45
|
-
entity: Entity;
|
|
46
|
-
triples: Triple[];
|
|
47
|
-
};
|
|
48
|
-
export type DeleteEntityOp = {
|
|
49
|
-
type: 'DELETE_ENTITY';
|
|
50
|
-
entity: OmitStrict<Entity, 'types'>;
|
|
51
|
-
};
|
|
52
|
-
export type SetTripleOp = {
|
|
53
|
-
type: 'SET_TRIPLE';
|
|
54
|
-
triple: Triple;
|
|
55
|
-
};
|
|
56
|
-
export type DeleteTripleOp = {
|
|
57
|
-
type: 'DELETE_TRIPLE';
|
|
58
|
-
triple: OmitStrict<Triple, 'value'>;
|
|
59
|
-
};
|
|
60
|
-
type Relation = {
|
|
61
|
-
id: string;
|
|
62
|
-
type: string;
|
|
63
|
-
fromEntity: string;
|
|
64
|
-
toEntity: string;
|
|
65
|
-
index: string;
|
|
66
|
-
};
|
|
67
|
-
export type CreateRelationOp = {
|
|
68
|
-
type: 'CREATE_RELATION';
|
|
69
|
-
relation: Relation;
|
|
70
|
-
};
|
|
71
|
-
export type DeleteRelationOp = {
|
|
72
|
-
type: 'DELETE_RELATION';
|
|
73
|
-
relation: Pick<Relation, 'id'>;
|
|
74
|
-
};
|
|
75
|
-
export type Op = SetTripleOp | DeleteTripleOp | SetBatchTripleOp | DeleteEntityOp | CreateRelationOp | DeleteRelationOp | ImportFileOp;
|
|
76
|
-
export type EditProposalMetadata = {
|
|
77
|
-
type: 'ADD_EDIT';
|
|
78
|
-
version: '0.0.1';
|
|
79
|
-
name: string;
|
|
80
|
-
ops: Op[];
|
|
81
|
-
id: string;
|
|
82
|
-
authors: string[];
|
|
83
|
-
};
|
|
84
|
-
export type MembershipProposalMetadata = {
|
|
85
|
-
type: 'ADD_MEMBER' | 'REMOVE_MEMBER' | 'ADD_EDITOR' | 'REMOVE_EDITOR';
|
|
86
|
-
version: '1.0.0';
|
|
87
|
-
user: `0x${string}`;
|
|
88
|
-
id: string;
|
|
89
|
-
name?: string;
|
|
90
|
-
};
|
|
91
|
-
export type SubspaceProposalMetadata = {
|
|
92
|
-
type: 'ADD_SUBSPACE' | 'REMOVE_SUBSPACE';
|
|
93
|
-
version: '1.0.0';
|
|
94
|
-
subspace: `0x${string}`;
|
|
95
|
-
id: string;
|
|
96
|
-
name?: string;
|
|
97
|
-
};
|
|
98
|
-
export type ProposalMetadata = EditProposalMetadata | MembershipProposalMetadata | SubspaceProposalMetadata;
|
|
99
|
-
export type ProposalType = Uppercase<ProposalMetadata['type']>;
|
|
100
|
-
export declare enum VoteOption {
|
|
101
|
-
None = 0,
|
|
102
|
-
Abstain = 1,
|
|
103
|
-
Yes = 2,
|
|
104
|
-
No = 3
|
|
105
|
-
}
|
|
106
|
-
export declare enum VotingMode {
|
|
107
|
-
Standard = 0,
|
|
108
|
-
EarlyExecution = 1
|
|
109
|
-
}
|
|
110
|
-
export type ProposalStatus = 'PROPOSED' | 'ACCEPTED' | 'REJECTED' | 'CANCELED' | 'EXECUTED';
|
|
111
|
-
export type GraphUri = `graph://${string}`;
|
|
112
|
-
export type DefaultProperties = {
|
|
113
|
-
id?: Id;
|
|
114
|
-
name?: string;
|
|
115
|
-
description?: string;
|
|
116
|
-
cover?: Id;
|
|
117
|
-
};
|
|
118
|
-
type ValueParams = {
|
|
119
|
-
value: string;
|
|
120
|
-
type: ValueType;
|
|
121
|
-
};
|
|
122
|
-
type RelationParams = {
|
|
123
|
-
to: Id;
|
|
124
|
-
relationId?: Id;
|
|
125
|
-
position?: string;
|
|
126
|
-
properties?: Record<string, ValueParams | RelationParams | Array<RelationParams>>;
|
|
127
|
-
};
|
|
128
|
-
export type PropertiesParam = Record<string, ValueParams | RelationParams | Array<RelationParams>>;
|
|
129
|
-
export type CreateResult = {
|
|
130
|
-
id: Id;
|
|
131
|
-
ops: Op[];
|
|
132
|
-
};
|
|
133
|
-
export {};
|
|
134
|
-
//# sourceMappingURL=types-backup.d.ts.map
|
|
@@ -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E,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,EAAE,CAAC;CACZ,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,EAAE,EAAE,EAAE,CAAC;IACP,UAAU,CAAC,EAAE,EAAE,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;CACnF,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;AAEnG,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,EAAE,CAAC;IACP,GAAG,EAAE,EAAE,EAAE,CAAC;CACX,CAAC"}
|
package/dist/src/types-backup.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export var VoteOption;
|
|
2
|
-
(function (VoteOption) {
|
|
3
|
-
VoteOption[VoteOption["None"] = 0] = "None";
|
|
4
|
-
VoteOption[VoteOption["Abstain"] = 1] = "Abstain";
|
|
5
|
-
VoteOption[VoteOption["Yes"] = 2] = "Yes";
|
|
6
|
-
VoteOption[VoteOption["No"] = 3] = "No";
|
|
7
|
-
})(VoteOption || (VoteOption = {}));
|
|
8
|
-
export var VotingMode;
|
|
9
|
-
(function (VotingMode) {
|
|
10
|
-
VotingMode[VotingMode["Standard"] = 0] = "Standard";
|
|
11
|
-
VotingMode[VotingMode["EarlyExecution"] = 1] = "EarlyExecution";
|
|
12
|
-
})(VotingMode || (VotingMode = {}));
|
|
13
|
-
//# sourceMappingURL=types-backup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types-backup.js","sourceRoot":"","sources":["../../src/types-backup.ts"],"names":[],"mappings":"AAuIA,MAAM,CAAN,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,2CAAQ,CAAA;IACR,iDAAW,CAAA;IACX,yCAAO,CAAA;IACP,uCAAM,CAAA;AACR,CAAC,EALW,UAAU,KAAV,UAAU,QAKrB;AAED,MAAM,CAAN,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,mDAAY,CAAA;IACZ,+DAAkB,CAAA;AACpB,CAAC,EAHW,UAAU,KAAV,UAAU,QAGrB"}
|
package/dist/src/typesv2.d.ts
DELETED
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import type { SafeSmartAccountImplementation } from 'permissionless/accounts';
|
|
2
|
-
import type { SmartAccountClient } from 'permissionless/clients';
|
|
3
|
-
import type { Address, Chain, HttpTransport } from 'viem';
|
|
4
|
-
import type { SmartAccountImplementation } from 'viem/account-abstraction';
|
|
5
|
-
import type { Id, IdBase64 } from './idv2.js';
|
|
6
|
-
export type ValueType = 'TEXT' | 'NUMBER' | 'CHECKBOX' | 'URL' | 'TIME' | 'POINT';
|
|
7
|
-
export type Value = {
|
|
8
|
-
propertyId: IdBase64;
|
|
9
|
-
value: string;
|
|
10
|
-
};
|
|
11
|
-
export type Entity = {
|
|
12
|
-
id: IdBase64;
|
|
13
|
-
values: Array<Value>;
|
|
14
|
-
};
|
|
15
|
-
export type Relation = {
|
|
16
|
-
id: IdBase64;
|
|
17
|
-
type: IdBase64;
|
|
18
|
-
fromEntity: IdBase64;
|
|
19
|
-
fromSpace?: IdBase64;
|
|
20
|
-
fromVersion?: IdBase64;
|
|
21
|
-
toEntity: IdBase64;
|
|
22
|
-
toSpace?: IdBase64;
|
|
23
|
-
toVersion?: IdBase64;
|
|
24
|
-
entity: IdBase64;
|
|
25
|
-
position?: string;
|
|
26
|
-
verified?: boolean;
|
|
27
|
-
};
|
|
28
|
-
export type UpdateEntityOp = {
|
|
29
|
-
type: 'UPDATE_ENTITY';
|
|
30
|
-
entity: Entity;
|
|
31
|
-
};
|
|
32
|
-
export type UnsetEntityValuesOp = {
|
|
33
|
-
type: 'UNSET_ENTITY_VALUES';
|
|
34
|
-
unsetEntityValues: {
|
|
35
|
-
id: IdBase64;
|
|
36
|
-
properties: IdBase64[];
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
export type DeleteEntityOp = {
|
|
40
|
-
type: 'DELETE_ENTITY';
|
|
41
|
-
id: IdBase64;
|
|
42
|
-
};
|
|
43
|
-
export type CreateRelationOp = {
|
|
44
|
-
type: 'CREATE_RELATION';
|
|
45
|
-
relation: Relation;
|
|
46
|
-
};
|
|
47
|
-
export type DeleteRelationOp = {
|
|
48
|
-
type: 'DELETE_RELATION';
|
|
49
|
-
id: IdBase64;
|
|
50
|
-
};
|
|
51
|
-
export type UpdateRelationOp = {
|
|
52
|
-
type: 'UPDATE_RELATION';
|
|
53
|
-
relation: Pick<Relation, 'id' | 'position' | 'fromSpace' | 'toSpace' | 'fromVersion' | 'toVersion' | 'verified'>;
|
|
54
|
-
};
|
|
55
|
-
export type UnsetRelationFieldsOp = {
|
|
56
|
-
type: 'UNSET_RELATION_FIELDS';
|
|
57
|
-
unsetRelationFields: {
|
|
58
|
-
id: IdBase64;
|
|
59
|
-
fromSpace?: boolean;
|
|
60
|
-
fromVersion?: boolean;
|
|
61
|
-
toSpace?: boolean;
|
|
62
|
-
toVersion?: boolean;
|
|
63
|
-
position?: boolean;
|
|
64
|
-
verified?: boolean;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
export type Op = UpdateEntityOp | DeleteEntityOp | CreateRelationOp | DeleteRelationOp | UpdateRelationOp | UnsetEntityValuesOp | UnsetRelationFieldsOp;
|
|
68
|
-
type ValueParams = {
|
|
69
|
-
value: string;
|
|
70
|
-
};
|
|
71
|
-
export type DefaultProperties = {
|
|
72
|
-
id?: Id;
|
|
73
|
-
name?: string;
|
|
74
|
-
description?: string;
|
|
75
|
-
cover?: Id;
|
|
76
|
-
};
|
|
77
|
-
export type PropertiesParam = Record<Id, ValueParams>;
|
|
78
|
-
export type RelationsParam = Record<Id, RelationParams | Array<RelationParams>>;
|
|
79
|
-
export type EntityParams = DefaultProperties & {
|
|
80
|
-
values?: PropertiesParam;
|
|
81
|
-
relations?: RelationsParam;
|
|
82
|
-
types?: Array<Id>;
|
|
83
|
-
};
|
|
84
|
-
export type UpdateEntityParams = DefaultProperties & {
|
|
85
|
-
id: Id;
|
|
86
|
-
values?: PropertiesParam;
|
|
87
|
-
};
|
|
88
|
-
type RelationEntityParams = {
|
|
89
|
-
[K in keyof EntityParams as `entity${Capitalize<string & K>}`]?: EntityParams[K];
|
|
90
|
-
};
|
|
91
|
-
export type RelationParams = {
|
|
92
|
-
id?: Id;
|
|
93
|
-
fromEntity: Id;
|
|
94
|
-
toEntity: Id;
|
|
95
|
-
relationId?: Id;
|
|
96
|
-
toSpace?: Id;
|
|
97
|
-
position?: string | undefined;
|
|
98
|
-
type: Id;
|
|
99
|
-
} & RelationEntityParams;
|
|
100
|
-
export type UpdateRelationParams = {
|
|
101
|
-
id: Id;
|
|
102
|
-
position?: string | undefined;
|
|
103
|
-
verified?: boolean;
|
|
104
|
-
fromSpace?: Id;
|
|
105
|
-
fromVersion?: Id;
|
|
106
|
-
toVersion?: Id;
|
|
107
|
-
toSpace?: Id;
|
|
108
|
-
};
|
|
109
|
-
export type CreateResult = {
|
|
110
|
-
id: Id;
|
|
111
|
-
ops: Op[];
|
|
112
|
-
};
|
|
113
|
-
export type UnsetRelationParams = {
|
|
114
|
-
id: Id;
|
|
115
|
-
fromSpace?: boolean;
|
|
116
|
-
fromVersion?: boolean;
|
|
117
|
-
toSpace?: boolean;
|
|
118
|
-
toVersion?: boolean;
|
|
119
|
-
position?: boolean;
|
|
120
|
-
verified?: boolean;
|
|
121
|
-
};
|
|
122
|
-
export type UnsetEntityValuesParams = {
|
|
123
|
-
id: Id;
|
|
124
|
-
properties: Id[];
|
|
125
|
-
};
|
|
126
|
-
export type DeleteRelationParams = {
|
|
127
|
-
id: Id;
|
|
128
|
-
};
|
|
129
|
-
export type DeleteEntityParams = {
|
|
130
|
-
id: Id;
|
|
131
|
-
};
|
|
132
|
-
export type CreateTypeParams = DefaultProperties & {
|
|
133
|
-
properties?: Array<Id>;
|
|
134
|
-
};
|
|
135
|
-
export type CreatePropertyParams = DefaultProperties & ({
|
|
136
|
-
type: ValueType;
|
|
137
|
-
} | {
|
|
138
|
-
type: 'RELATION';
|
|
139
|
-
properties?: Array<Id>;
|
|
140
|
-
relationValueTypes?: Array<Id>;
|
|
141
|
-
});
|
|
142
|
-
export type CreateImageParams = {
|
|
143
|
-
blob: Blob;
|
|
144
|
-
name?: string;
|
|
145
|
-
description?: string;
|
|
146
|
-
id?: Id;
|
|
147
|
-
} | {
|
|
148
|
-
url: string;
|
|
149
|
-
name?: string;
|
|
150
|
-
description?: string;
|
|
151
|
-
id?: Id;
|
|
152
|
-
};
|
|
153
|
-
type SafeSmartAccount = SafeSmartAccountImplementation<'0.7'> & {
|
|
154
|
-
address: Address;
|
|
155
|
-
getNonce: NonNullable<SmartAccountImplementation['getNonce']>;
|
|
156
|
-
isDeployed: () => Promise<boolean>;
|
|
157
|
-
type: 'smart';
|
|
158
|
-
};
|
|
159
|
-
export type GeoSmartAccount = SmartAccountClient<HttpTransport<undefined, false>, Chain, object & SafeSmartAccount & {
|
|
160
|
-
address: Address;
|
|
161
|
-
getNonce: NonNullable<SmartAccountImplementation['getNonce']>;
|
|
162
|
-
isDeployed: () => Promise<boolean>;
|
|
163
|
-
type: 'smart';
|
|
164
|
-
}, undefined, undefined>;
|
|
165
|
-
export type GraphUri = `graph://${string}`;
|
|
166
|
-
export declare enum VoteOption {
|
|
167
|
-
None = 0,
|
|
168
|
-
Abstain = 1,
|
|
169
|
-
Yes = 2,
|
|
170
|
-
No = 3
|
|
171
|
-
}
|
|
172
|
-
export {};
|
|
173
|
-
//# sourceMappingURL=typesv2.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file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Option[VoteOption["None"] = 0] = "None";
|
|
4
|
-
VoteOption[VoteOption["Abstain"] = 1] = "Abstain";
|
|
5
|
-
VoteOption[VoteOption["Yes"] = 2] = "Yes";
|
|
6
|
-
VoteOption[VoteOption["No"] = 3] = "No";
|
|
7
|
-
})(VoteOption || (VoteOption = {}));
|
|
8
|
-
//# sourceMappingURL=typesv2.js.map
|
package/dist/src/typesv2.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typesv2.js","sourceRoot":"","sources":["../../src/typesv2.ts"],"names":[],"mappings":"AAiNA,MAAM,CAAN,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,2CAAQ,CAAA;IACR,iDAAW,CAAA;IACX,yCAAO,CAAA;IACP,uCAAM,CAAA;AACR,CAAC,EALW,UAAU,KAAV,UAAU,QAKrB"}
|