How to use the @casual-simulation/aux-vm.filterAtomFactory function in @casual-simulation/aux-vm

To help you get started, we’ve selected a few @casual-simulation/aux-vm examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github casual-simulation / aux / src / aux-vm-client / vm / RemoteAuxChannel.ts View on Github external
constructor(
        user: AuxUser,
        config: AuxConfig,
        options: RemoteAuxChannelOptions
    ) {
        super(user, config, options);
        this._partitionOptions = {
            ...(options.partitionOptions || {
                defaultHost: null,
            }),
            treeOptions: {
                filter: filterAtomFactory(() => this.helper),
            },
        };
        //  {
        //     defaultHost: defaultHost,
        //     store: options.store,
        //     crypto: options.crypto,
        //     treeOptions: {
        //         filter: filterAtomFactory(() => this.helper),
        //     },
        // };
    }
github casual-simulation / aux / src / aux-vm-node / vm / NodeAuxChannel.ts View on Github external
protected async _createPartition(
        config: PartitionConfig
    ): Promise {
        return await createAuxPartition(
            config,
            createLocalCausalTreePartitionFactory(
                {
                    treeOptions: {
                        filter: filterAtomFactory(() => this.helper),
                    },
                },
                this.user,
                this._device
            ),
            createMemoryPartition,
            config => createCausalRepoPartition(config, this.user)
        );
    }