Skip to content

Commit

Permalink
refactor: update package namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
hopeyen committed Aug 20, 2024
1 parent fe08a1d commit 566a89d
Show file tree
Hide file tree
Showing 16 changed files with 1,207 additions and 278 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ TypeScript SDK for building [Arbitrum Orbit](https://arbitrum.io/orbit) chains.
Make sure you are using Node.js v18 or greater.

```bash
yarn add @arbitrum/orbit-sdk viem@^1.20.0
yarn add @eigenda/orbit-sdk viem@^1.20.0
```

## Run integration tests

Clone the branch `main` of [nitro-testnode](https://github.com/OffchainLabs/nitro-testnode), and run the testnode using the following arguments:
Clone the branch `main` of [nitro-testnode](https://github.com/Layr-Labs/nitro-testnode), and run the testnode using the following arguments:

```bash
./test-node.bash --init --tokenbridge --l3node --l3-fee-token --l3-token-bridge
Expand Down
4 changes: 2 additions & 2 deletions examples/create-rollup-custom-fee-token/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import {
prepareChainConfig,
createRollupPrepareDeploymentParamsConfig,
createRollup,
} from '@arbitrum/orbit-sdk';
import { sanitizePrivateKey, generateChainId } from '@arbitrum/orbit-sdk/utils';
} from '@eigenda/orbit-sdk';
import { sanitizePrivateKey, generateChainId } from '@eigenda/orbit-sdk/utils';
import { config } from 'dotenv';
config();

Expand Down
4 changes: 2 additions & 2 deletions examples/create-rollup-custom-fee-token/low_level.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {
createRollupPrepareCustomFeeTokenApprovalTransactionRequest,
createRollupPrepareTransactionRequest,
createRollupPrepareTransactionReceipt,
} from '@arbitrum/orbit-sdk';
import { sanitizePrivateKey, generateChainId } from '@arbitrum/orbit-sdk/utils';
} from '@eigenda/orbit-sdk';
import { sanitizePrivateKey, generateChainId } from '@eigenda/orbit-sdk/utils';
import { config } from 'dotenv';
config();

Expand Down
4 changes: 2 additions & 2 deletions examples/create-rollup-eth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import {
prepareChainConfig,
createRollupPrepareDeploymentParamsConfig,
createRollup,
} from '@arbitrum/orbit-sdk';
import { sanitizePrivateKey, generateChainId } from '@arbitrum/orbit-sdk/utils';
} from '@eigenda/orbit-sdk';
import { sanitizePrivateKey, generateChainId } from '@eigenda/orbit-sdk/utils';
import { config } from 'dotenv';
config();

Expand Down
4 changes: 2 additions & 2 deletions examples/create-rollup-eth/low_level.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import {
prepareChainConfig,
createRollupPrepareTransactionRequest,
createRollupPrepareTransactionReceipt,
} from '@arbitrum/orbit-sdk';
import { sanitizePrivateKey, generateChainId } from '@arbitrum/orbit-sdk/utils';
} from '@eigenda/orbit-sdk';
import { sanitizePrivateKey, generateChainId } from '@eigenda/orbit-sdk/utils';
import { config } from 'dotenv';
config();

Expand Down
4 changes: 2 additions & 2 deletions examples/create-token-bridge-custom-fee-token/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import {
createTokenBridgePrepareCustomFeeTokenApprovalTransactionRequest,
createTokenBridgePrepareTransactionRequest,
createTokenBridgePrepareTransactionReceipt,
} from '@arbitrum/orbit-sdk';
import { sanitizePrivateKey } from '@arbitrum/orbit-sdk/utils';
} from '@eigenda/orbit-sdk';
import { sanitizePrivateKey } from '@eigenda/orbit-sdk/utils';
import { config } from 'dotenv';
config();

Expand Down
4 changes: 2 additions & 2 deletions examples/create-token-bridge-eth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import {
createTokenBridgePrepareSetWethGatewayTransactionRequest,
createTokenBridgePrepareTransactionReceipt,
createTokenBridgePrepareTransactionRequest,
} from '@arbitrum/orbit-sdk';
import { sanitizePrivateKey } from '@arbitrum/orbit-sdk/utils';
} from '@eigenda/orbit-sdk';
import { sanitizePrivateKey } from '@eigenda/orbit-sdk/utils';
import { config } from 'dotenv';
config();

Expand Down
4 changes: 2 additions & 2 deletions examples/prepare-node-config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import {
createRollupPrepareTransaction,
createRollupPrepareTransactionReceipt,
prepareNodeConfig,
} from '@arbitrum/orbit-sdk';
import { getParentChainLayer } from '@arbitrum/orbit-sdk/utils';
} from '@eigenda/orbit-sdk';
import { getParentChainLayer } from '@eigenda/orbit-sdk/utils';
import { config } from 'dotenv';
config();

Expand Down
4 changes: 2 additions & 2 deletions examples/set-new-validators/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import {
createRollupFetchTransactionHash,
createRollupPrepareTransactionReceipt,
rollupAdminLogicPublicActions,
} from '@arbitrum/orbit-sdk';
import { sanitizePrivateKey } from '@arbitrum/orbit-sdk/utils';
} from '@eigenda/orbit-sdk';
import { sanitizePrivateKey } from '@eigenda/orbit-sdk/utils';
import { config } from 'dotenv';
config();

Expand Down
4 changes: 2 additions & 2 deletions examples/set-valid-keyset/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Chain, createPublicClient, http } from 'viem';
import { privateKeyToAccount } from 'viem/accounts';
import { arbitrumSepolia } from 'viem/chains';
import { setValidKeysetPrepareTransactionRequest } from '@arbitrum/orbit-sdk';
import { sanitizePrivateKey } from '@arbitrum/orbit-sdk/utils';
import { setValidKeysetPrepareTransactionRequest } from '@eigenda/orbit-sdk';
import { sanitizePrivateKey } from '@eigenda/orbit-sdk/utils';

function getBlockExplorerUrl(chain: Chain) {
return chain.blockExplorers?.default.url;
Expand Down
4 changes: 2 additions & 2 deletions examples/setup-aep-fee-router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import {
arbOwnerPublicActions,
arbGasInfoPublicActions,
parentChainIsArbitrum,
} from '@arbitrum/orbit-sdk';
import { sanitizePrivateKey, getParentChainFromId } from '@arbitrum/orbit-sdk/utils';
} from '@eigenda/orbit-sdk';
import { sanitizePrivateKey, getParentChainFromId } from '@eigenda/orbit-sdk/utils';
import { config } from 'dotenv';
config();

Expand Down
6 changes: 3 additions & 3 deletions examples/setup-fast-withdrawal/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import {
createSafePrepareTransactionRequest,
rollupAdminLogicPublicActions,
setAnyTrustFastConfirmerPrepareTransactionRequest,
} from '@arbitrum/orbit-sdk';
import { sanitizePrivateKey, getParentChainFromId } from '@arbitrum/orbit-sdk/utils';
import { base, baseSepolia } from '@arbitrum/orbit-sdk/chains';
} from '@eigenda/orbit-sdk';
import { sanitizePrivateKey, getParentChainFromId } from '@eigenda/orbit-sdk/utils';
import { base, baseSepolia } from '@eigenda/orbit-sdk/chains';
import { config } from 'dotenv';
config();

Expand Down
4 changes: 2 additions & 2 deletions examples/setup-fee-distributor-contract/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import {
createRollupFetchCoreContracts,
createTokenBridgeFetchTokenBridgeContracts,
arbOwnerPublicActions,
} from '@arbitrum/orbit-sdk';
import { getParentChainFromId, sanitizePrivateKey } from '@arbitrum/orbit-sdk/utils';
} from '@eigenda/orbit-sdk';
import { getParentChainFromId, sanitizePrivateKey } from '@eigenda/orbit-sdk/utils';
import { config } from 'dotenv';
config();

Expand Down
4 changes: 2 additions & 2 deletions examples/upgrade-executor-add-account/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import {
upgradeExecutorFetchPrivilegedAccounts,
upgradeExecutorPrepareAddExecutorTransactionRequest,
createTokenBridgeFetchTokenBridgeContracts,
} from '@arbitrum/orbit-sdk';
import { sanitizePrivateKey } from '@arbitrum/orbit-sdk/utils';
} from '@eigenda/orbit-sdk';
import { sanitizePrivateKey } from '@eigenda/orbit-sdk/utils';
import { config } from 'dotenv';
config();

Expand Down
Loading

0 comments on commit 566a89d

Please sign in to comment.