Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
node: ['18.x']
version: ['latest', 'mainnet', 'devnet', 'testnet']
version: ['latest', 'mainnet', 'devnet']

steps:
- uses: pnpm/action-setup@v4
Expand Down
57 changes: 0 additions & 57 deletions .github/workflows/tapir.yml

This file was deleted.

1 change: 0 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ View resulting published versions:
4. Tag latest release of `@nucypher/taco` for various domains where appropriate:
```bash
npm dist-tag add @nucypher/taco@<new_version> devnet
npm dist-tag add @nucypher/taco@<new_version> testnet
npm dist-tag add @nucypher/taco@<new_version> mainnet
```

Expand Down
1 change: 0 additions & 1 deletion demos/taco-demo/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import { downloadData, getWebIrys, uploadData } from './irys';

const chainIdForDomain = {
[domains.DEVNET]: 80002,
[domains.TESTNET]: 80002,
[domains.MAINNET]: 137,
};

Expand Down
6 changes: 4 additions & 2 deletions demos/taco-demo/src/config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { domains } from '@nucypher/taco';

export const DEFAULT_RITUAL_ID = parseInt(process.env.DEFAULT_RITUAL_ID || '6');
export const DEFAULT_DOMAIN = process.env.DEFAULT_DOMAIN || domains.TESTNET;
export const DEFAULT_RITUAL_ID = parseInt(
process.env.DEFAULT_RITUAL_ID || '27',
);
export const DEFAULT_DOMAIN = process.env.DEFAULT_DOMAIN || domains.DEVNET;

// Node 2 is free
export const IRYS_NODE_URL =
Expand Down
1 change: 0 additions & 1 deletion demos/taco-nft-demo/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import { Spinner } from './Spinner';

const chainIdForDomain = {
[domains.DEVNET]: 80002,
[domains.TESTNET]: 80002,
[domains.MAINNET]: 137,
};

Expand Down
6 changes: 4 additions & 2 deletions demos/taco-nft-demo/src/config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { domains } from '@nucypher/taco';

export const DEFAULT_RITUAL_ID = parseInt(process.env.DEFAULT_RITUAL_ID || '6');
export const DEFAULT_DOMAIN = process.env.DEFAULT_DOMAIN || domains.TESTNET;
export const DEFAULT_RITUAL_ID = parseInt(
process.env.DEFAULT_RITUAL_ID || '27',
);
export const DEFAULT_DOMAIN = process.env.DEFAULT_DOMAIN || domains.DEVNET;
4 changes: 2 additions & 2 deletions examples/pre/nextjs/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ function App() {
const policy = await alice.grant(
provider,
provider.getSigner(),
domains.TESTNET,
await getPorterUri(domains.TESTNET),
domains.DEVNET,
await getPorterUri(domains.DEVNET),
policyParams,
);

Expand Down
4 changes: 2 additions & 2 deletions examples/pre/nodejs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ const runExample = async () => {
const policy = await alice.grant(
provider,
signer,
domains.TESTNET,
await getPorterUri(domains.TESTNET),
domains.DEVNET,
await getPorterUri(domains.DEVNET),
policyParams,
);

Expand Down
4 changes: 2 additions & 2 deletions examples/pre/react/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ function App() {
const policy = await alice.grant(
provider,
provider.getSigner(),
domains.TESTNET,
await getPorterUri(domains.TESTNET),
domains.DEVNET,
await getPorterUri(domains.DEVNET),
policyParams,
);

Expand Down
4 changes: 2 additions & 2 deletions examples/pre/webpack-5/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ const runExample = async () => {
const policy = await alice.grant(
provider,
provider.getSigner(),
domains.TESTNET,
await getPorterUri(domains.TESTNET),
domains.DEVNET,
await getPorterUri(domains.DEVNET),
policyParams,
);

Expand Down
4 changes: 2 additions & 2 deletions examples/taco/nextjs/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import useTaco from '../hooks/useTaco';
// eslint-disable-next-line @typescript-eslint/no-explicit-any
declare const window: any;

const ritualId = 6; // Replace with your own ritual ID
const domain = domains.TESTNET;
const ritualId = 27; // Replace with your own ritual ID
const domain = domains.DEVNET;

function App() {
const [provider, setProvider] = useState<
Expand Down
4 changes: 2 additions & 2 deletions examples/taco/nodejs/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ RPC_PROVIDER_URL=https://rpc-amoy.polygon.technology
# We provide here some defaults, but we encourage you to choose your own.
ENCRYPTOR_PRIVATE_KEY=0x900edb9e8214b2353f82aa195e915128f419a92cfb8bbc0f4784f10ef4112b86
CONSUMER_PRIVATE_KEY=0xf307e165339cb5deb2b8ec59c31a5c0a957b8e8453ce7fe8a19d9a4c8acf36d4
RITUAL_ID=6
DOMAIN=tapir
RITUAL_ID=27
DOMAIN=lynx
5 changes: 2 additions & 3 deletions examples/taco/nodejs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,11 @@ if (!consumerPrivateKey) {
throw new Error('CONSUMER_PRIVATE_KEY is not set.');
}

const domain = process.env.DOMAIN || domains.TESTNET;
const ritualId = parseInt(process.env.RITUAL_ID || '6');
const domain = process.env.DOMAIN || domains.DEVNET;
const ritualId = parseInt(process.env.RITUAL_ID || '27');
const provider = new ethers.providers.JsonRpcProvider(rpcProviderUrl);
const CHAIN_ID_FOR_DOMAIN = {
[domains.MAINNET]: 137,
[domains.TESTNET]: 80002,
[domains.DEVNET]: 80002,
};
const chainId = CHAIN_ID_FOR_DOMAIN[domain];
Expand Down
4 changes: 2 additions & 2 deletions examples/taco/react/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import useTaco from './hooks/useTaco';
// eslint-disable-next-line @typescript-eslint/no-explicit-any
declare const window: any;

const ritualId = 6; // Replace with your own ritual ID
const domain = domains.TESTNET;
const ritualId = 27; // Replace with your own ritual ID
const domain = domains.DEVNET;

function App() {
const [provider, setProvider] = useState<
Expand Down
4 changes: 2 additions & 2 deletions examples/taco/webpack-5/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ declare const window: any;
const runExample = async () => {
await initialize();

const ritualId = 6; // Replace with your own ritual ID
const domain = domains.TESTNET;
const ritualId = 27; // Replace with your own ritual ID
const domain = domains.DEVNET;

const provider = new ethers.providers.Web3Provider(window.ethereum!, 'any');
await provider.send('eth_requestAccounts', []);
Expand Down
2 changes: 0 additions & 2 deletions packages/shared/src/porter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { fromBase64, fromHexString, toBase64, toHexString } from './utils';

const defaultPorterUri: Record<string, string> = {
mainnet: 'https://porter.nucypher.io',
tapir: 'https://porter-tapir.nucypher.io',
lynx: 'https://porter-lynx.nucypher.io',
};

Expand All @@ -32,7 +31,6 @@ export type PorterURISourceResponse = Record<string, string[]>;

export const domains: Record<string, Domain> = {
DEVNET: 'lynx',
TESTNET: 'tapir',
MAINNET: 'mainnet',
};

Expand Down
6 changes: 3 additions & 3 deletions packages/taco/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## Supported `taco` versions

To use `taco`, you need to connect with a proper network: `mainnet`, `testnet`, or `devnet`. You can find a proper version for each network in the [npmjs.com package tags](https://www.npmjs.com/package/@nucypher/taco?activeTab=versions).
To use `taco`, you need to connect with a proper network: `mainnet` or `devnet`. You can find a proper version for each network in the [npmjs.com package tags](https://www.npmjs.com/package/@nucypher/taco?activeTab=versions).

Visit [our documentation](https://docs.taco.build/taco-integration/) to learn more.

Expand Down Expand Up @@ -37,7 +37,7 @@ const message = 'my secret message';

const messageKit = await encrypt(
web3Provider,
domains.TESTNET,
domains.DEVNET,
message,
ownsNFT,
ritualId,
Expand All @@ -58,7 +58,7 @@ const web3Provider = new ethers.providers.Web3Provider(window.ethereum);

const decryptedMessage = await decrypt(
web3Provider,
domains.TESTNET,
domains.DEVNET,
messageKit,
web3Provider.getSigner(),
);
Expand Down
6 changes: 3 additions & 3 deletions packages/taco/examples/encrypt-decrypt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
toBytes,
} from '../src';

const ritualId = 1;
const ritualId = 27;

const run = async () => {
// The data encryptor runs this part
Expand All @@ -32,7 +32,7 @@ const run = async () => {
});
const messageKit = await encrypt(
web3Provider,
domains.TESTNET,
domains.DEVNET,
message,
ownsNFT,
ritualId,
Expand All @@ -57,7 +57,7 @@ const run = async () => {
conditionContext.addAuthProvider(USER_ADDRESS_PARAM_DEFAULT, authProvider);
const decryptedMessage = await decrypt(
web3Provider,
domains.TESTNET,
domains.DEVNET,
messageKit,
conditionContext,
);
Expand Down
Loading