Skip to content

Commit

Permalink
Remove all Web3-related code (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
clayallsopp authored Nov 4, 2024
1 parent 9b92154 commit 1da8736
Show file tree
Hide file tree
Showing 12 changed files with 1 addition and 701 deletions.
14 changes: 0 additions & 14 deletions .storybook/example.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,20 +54,6 @@ stories.add('Component', () => {
);
});

stories.add('web3', () => {
const props = {
token: text('token', ''),
};

button('Save Link configuration', reRender);

return (
<div key={counter}>
<ExampleComponent file="web3" {...props} />
</div>
);
});

stories.add('embedded Link', () => {
const props = {
token: text('token', ''),
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ SRC_FILES = $(shell find src -name '*.js|*.tsx|*.ts' | sort)

.PHONY: clean
clean:
@rm -rf dist lib web3
@rm -rf dist lib


.PHONY: build
Expand Down
104 changes: 0 additions & 104 deletions examples/web3.tsx

This file was deleted.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"registry": "https://registry.npmjs.org",
"files": [
"dist",
"web3",
"src",
"LICENSE"
],
Expand Down
16 changes: 0 additions & 16 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,6 @@ export default [
commonjs(),
],
},
{
input: 'src/web3/index.ts',
external: ['react', 'prop-types'],
output: [
{ file: 'web3/index.js', format: 'cjs' },
{ file: 'web3/index.esm.js', format: 'es' },
],
plugins: [
ts(),
resolve(),
babel({
extensions: ['.ts', '.tsx'],
}),
commonjs(),
],
},
// UMD build with inline PropTypes
{
input: 'src/index.ts',
Expand Down
9 changes: 0 additions & 9 deletions src/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import {
CommonPlaidLinkOptions,
} from './types';

import { EthereumOnboardingOptions } from './types/web3';

export interface PlaidFactory {
open: (() => void) | Function;
submit: ((data: PlaidHandlerSubmissionData) => void)| Function;
Expand Down Expand Up @@ -102,13 +100,6 @@ const createPlaidHandler = <T extends CommonPlaidLinkOptions<{}>>(
};
};

export const createWeb3Plaid = (
options: EthereumOnboardingOptions,
creator: (options: EthereumOnboardingOptions) => PlaidHandler
) => {
return createPlaidHandler(options, creator);
};

export const createPlaid = (
options: PlaidLinkOptions,
creator: (options: PlaidLinkOptions) => PlaidHandler
Expand Down
52 changes: 0 additions & 52 deletions src/types/web3.ts

This file was deleted.

157 changes: 0 additions & 157 deletions src/types/web3Provider.d.ts

This file was deleted.

Loading

0 comments on commit 1da8736

Please sign in to comment.