diff --git a/.changeset/brave-impalas-flow.md b/.changeset/brave-impalas-flow.md
new file mode 100644
index 000000000..31f32d58e
--- /dev/null
+++ b/.changeset/brave-impalas-flow.md
@@ -0,0 +1,9 @@
+---
+"@colony/colony-js": major
+"@colony/events": major
+"@colony/tokens": major
+"@colony/core": major
+"@colony/sdk": major
+---
+
+Make Arbitrum One the default network in all cases. While this can be considered a breaking change it does not change any of the APIs.
diff --git a/packages/colony-js/README.md b/packages/colony-js/README.md
index 03ff870d0..48dea7648 100644
--- a/packages/colony-js/README.md
+++ b/packages/colony-js/README.md
@@ -22,7 +22,7 @@ import { getColonyNetworkClient, ColonRpcEndpoint, Id, Network, Tokens } from '@
const { formatEther } = utils;
-const provider = new providers.JsonRpcProvider(ColonyRpcEndpoint.Gnosis);
+const provider = new providers.JsonRpcProvider(ColonyRpcEndpoint.ArbitrumOne);
const start = async () => {
// Get a wallet instance
@@ -35,16 +35,16 @@ const start = async () => {
// Check out the logs to see the wallet address
console.log('Wallet Address:', wallet.address);
- // Get a network client instance for Gnosis Chain
+ // Get a network client instance for ArbitrumOne Chain
const networkClient = getColonyNetworkClient(
- Network.Gnosis,
+ Network.ArbitrumOne,
wallet,
);
// Let's connect to the Meta Colony
const metaColonyClient = await networkClient.getMetaColonyClient()
// And check out it's CLNY funding
- const funding = await metaColonyClient.getFundingPotBalance(Id.RootPot, Tokens.Gnosis.CLNY);
+ const funding = await metaColonyClient.getFundingPotBalance(Id.RootPot, Tokens.ArbitrumOne.CLNY);
// We can also see its address
const { address } = metaColonyClient;
console.info(`${formatEther(funding)} CLNY in root domain of MetaColony with address: ${address}`);
diff --git a/packages/colony-js/docs/api/enums/ColonyRpcEndpoint.md b/packages/colony-js/docs/api/enums/ColonyRpcEndpoint.md
index 8b486a761..e9b13eae4 100644
--- a/packages/colony-js/docs/api/enums/ColonyRpcEndpoint.md
+++ b/packages/colony-js/docs/api/enums/ColonyRpcEndpoint.md
@@ -6,7 +6,7 @@ Official Colony RPC2 endpoint (node)
### ArbitrumOne
-• **ArbitrumOne** = ``"https://arbitrum.colony.io/publicrpc/"``
+• **ArbitrumOne** = ``"https://app.colony.io/public-rpc/"``
Colony's own RPC2 endpoint for Arbitrum One
@@ -14,7 +14,7 @@ ___
### ArbitrumSepolia
-• **ArbitrumSepolia** = ``"https://arbitrum-sepolia.colony.io/publicrpc/"``
+• **ArbitrumSepolia** = ``"https://arbitrum-sepolia.colony.io/public-rpc/"``
Colony's own RPC2 endpoint for Arbitrum Sepolia testnet
diff --git a/packages/colony-js/docs/api/enums/MetaTxBroadCasterEndpoint.md b/packages/colony-js/docs/api/enums/MetaTxBroadCasterEndpoint.md
index d9007b425..01c8b1b84 100644
--- a/packages/colony-js/docs/api/enums/MetaTxBroadCasterEndpoint.md
+++ b/packages/colony-js/docs/api/enums/MetaTxBroadCasterEndpoint.md
@@ -6,7 +6,7 @@ HTTP endpoint of the official Colony MetaTransaction (gasless transaction) broad
### ArbitrumOne
-• **ArbitrumOne** = ``"https://arbitrum.colony.io/metatransaction/arbitrum-one"``
+• **ArbitrumOne** = ``"https://app.colony.io/metatransaction/arbitrum-one"``
The metatransaction broadcaster endpoint on Arbitrum One
diff --git a/packages/colony-js/docs/api/enums/ReputationOracleEndpoint.md b/packages/colony-js/docs/api/enums/ReputationOracleEndpoint.md
index cd8fcfecc..1c838d13b 100644
--- a/packages/colony-js/docs/api/enums/ReputationOracleEndpoint.md
+++ b/packages/colony-js/docs/api/enums/ReputationOracleEndpoint.md
@@ -6,7 +6,7 @@ HTTP endpoint of the official Colony reputation oracle
### ArbitrumOne
-• **ArbitrumOne** = ``"https://arbitrum.colony.io/reputation/arbitrum-one"``
+• **ArbitrumOne** = ``"https://app.colony.io/reputation/arbitrum-one"``
___
diff --git a/packages/colony-js/docs/getting-started.md b/packages/colony-js/docs/getting-started.md
index b091583cf..7325f9aaa 100644
--- a/packages/colony-js/docs/getting-started.md
+++ b/packages/colony-js/docs/getting-started.md
@@ -24,16 +24,16 @@ const start = async () => {
// Check out the logs to see the wallet address
console.log('Wallet Address:', wallet.address);
- // Get a network client instance for Gnosis Chain
+ // Get a network client instance for Arbitrum One
const networkClient = await getColonyNetworkClient(
- Network.Gnosis,
+ Network.ArbitrumOne,
wallet,
);
// Let's connect to the Meta Colony
const metaColonyClient = await networkClient.getMetaColonyClient()
// And check out it's CLNY funding
- const funding = await metaColonyClient.getFundingPotBalance(Id.RootPot, Tokens.Gnosis.CLNY);
+ const funding = await metaColonyClient.getFundingPotBalance(Id.RootPot, Tokens.ArbitrumOne.CLNY);
// We can also see its address
const { address } = metaColonyClient;
console.info(`${formatEther(funding)} CLNY in root domain of MetaColony with address: ${address}`);
diff --git a/packages/colony-js/src/__tests__/integration.ts b/packages/colony-js/src/__tests__/integration.ts
index 3a0867949..a74d057c6 100644
--- a/packages/colony-js/src/__tests__/integration.ts
+++ b/packages/colony-js/src/__tests__/integration.ts
@@ -9,18 +9,18 @@ import getColonyNetworkClient from '../clients/ColonyNetworkClient.js';
let provider: JsonRpcProvider;
beforeAll(async () => {
- provider = new providers.JsonRpcProvider(ColonyRpcEndpoint.Gnosis);
+ provider = new providers.JsonRpcProvider(ColonyRpcEndpoint.ArbitrumOne);
});
describe('ColonyNetwork', () => {
it('Can get the colony network', async () => {
const colonyNetworkClient = getColonyNetworkClient(
- Network.Gnosis,
+ Network.ArbitrumOne,
provider,
);
const metaColonyAddress = await colonyNetworkClient.getMetaColony();
expect(metaColonyAddress).toEqual(
- '0xCFD3aa1EbC6119D80Ed47955a87A9d9C281A97B3',
+ '0xa405A3353Bc7d6048C64BC3663f665A01fF3f43f',
);
});
});
diff --git a/packages/core/src/constants.ts b/packages/core/src/constants.ts
index 89f789f86..9954da331 100644
--- a/packages/core/src/constants.ts
+++ b/packages/core/src/constants.ts
@@ -68,7 +68,7 @@ export enum ReputationOracleEndpoint {
Xdai = 'https://xdai.colony.io/reputation/xdai',
XdaiQa = 'https://qa-xdai.colony.io/reputation/xdai',
Custom = 'http://localhost:3000',
- ArbitrumOne = 'https://arbitrum.colony.io/reputation/arbitrum-one',
+ ArbitrumOne = 'https://app.colony.io/reputation/arbitrum-one',
ArbitrumSepolia = `https://arbitrum-sepolia.colony.io/reputation/arbitrum-sepolia`,
}
@@ -89,7 +89,7 @@ export enum MetaTxBroadCasterEndpoint {
/** The metatransaction broadcaster endpoint for a custom network */
Custom = '',
/** The metatransaction broadcaster endpoint on Arbitrum One */
- ArbitrumOne = 'https://arbitrum.colony.io/metatransaction/arbitrum-one',
+ ArbitrumOne = 'https://app.colony.io/metatransaction/arbitrum-one',
/** The metatransaction broadcaster endpoint on Arbitrum Sepolia testnet */
ArbitrumSepolia = `https://arbitrum-sepolia.colony.io/metatransaction/arbitrum-sepolia`,
}
@@ -111,9 +111,9 @@ export enum ColonyRpcEndpoint {
/** Colony's own RPC2 endpoint for a custom network */
Custom = '',
/** Colony's own RPC2 endpoint for Arbitrum One */
- ArbitrumOne = 'https://arbitrum.colony.io/publicrpc/',
+ ArbitrumOne = 'https://app.colony.io/public-rpc/',
/** Colony's own RPC2 endpoint for Arbitrum Sepolia testnet */
- ArbitrumSepolia = 'https://arbitrum-sepolia.colony.io/publicrpc/',
+ ArbitrumSepolia = 'https://arbitrum-sepolia.colony.io/public-rpc/',
}
/**
diff --git a/packages/core/src/helpers/reputation.ts b/packages/core/src/helpers/reputation.ts
index ac3308be0..aa49fffd8 100644
--- a/packages/core/src/helpers/reputation.ts
+++ b/packages/core/src/helpers/reputation.ts
@@ -55,7 +55,7 @@ export class ReputationClient {
this.colony = colony;
this.network = network;
- const networkName = config?.network || Network.Gnosis;
+ const networkName = config?.network || Network.ArbitrumOne;
this.endpointUrl =
config?.customEndpointUrl || ReputationOracleEndpoint[networkName];
}
diff --git a/packages/events/README.md b/packages/events/README.md
index 2982c1f79..a2cbd5d52 100644
--- a/packages/events/README.md
+++ b/packages/events/README.md
@@ -4,7 +4,7 @@
# `@colony/events`
-This package contains pre-compiled Colony event contract bindings. These bindings contain types and ABIs for all events for all contracts across all versions in the Colony Network. You could use them in conjunction with the [EventManger from Colony SDK](https://docs.colony.io/colonysdk/api/classes/ColonyEventManager):
+This package contains pre-compiled Colony event contract bindings. These bindings contain types and ABIs for all events for all contracts across all versions in the Colony Network. You could use them in conjunction with the [EventManager from Colony SDK](https://docs.colony.io/colonysdk/api/classes/ColonyEventManager):
```ts
import { providers } from 'ethers';
@@ -17,7 +17,7 @@ import {
MetadataType,
} from '@colony/sdk';
-const provider = new providers.JsonRpcProvider(ColonyRpcEndpoint.Gnosis);
+const provider = new providers.JsonRpcProvider(ColonyRpcEndpoint.ArbitrumOne);
const manager = new ColonyEventManager(provider);
const colonyEventSource = manager.createEventSource(ColonyEventsFactory);
diff --git a/packages/sdk/README.md b/packages/sdk/README.md
index 3621a872a..ae0a5b8b8 100644
--- a/packages/sdk/README.md
+++ b/packages/sdk/README.md
@@ -20,7 +20,7 @@ import { providers } from 'ethers';
import { ColonyNetwork, toEth } from '@colony/sdk';
// If MetaMask is installed there will be an `ethereum` object on the `window`
-// NOTE: Make sure MetaMask is connected to Gnosis chain (see https://www.xdaichain.com/for-users/wallets/metamask/metamask-setup)
+// NOTE: Make sure MetaMask is connected to ArbitrumOne chain (use https://app.colony.io/public-rpc or see https://chainlist.org/chain/42161)
const provider = new providers.Web3Provider(window.ethereum);
// Get the MetaColony's CLNY funding in the root team (id 1)
@@ -81,7 +81,7 @@ pnpm run examples:browser
### Some notes
-These examples will run on Gnosis chain. If you'd like to make transactions, you will need some XDAI. Reach out to us in our [Discord](https://discord.gg/feVZWwysqM) if you're having trouble starting out.
+These examples will run on the Arbitrum One chain. If you'd like to make transactions, you will need some ETH on that chain. Reach out to us in our [Discord](https://discord.gg/feVZWwysqM) if you're having trouble starting out.
## Development
diff --git a/packages/sdk/docs/api/classes/Colony.md b/packages/sdk/docs/api/classes/Colony.md
index bd79f2efe..e4795ea67 100644
--- a/packages/sdk/docs/api/classes/Colony.md
+++ b/packages/sdk/docs/api/classes/Colony.md
@@ -582,7 +582,7 @@ Get the xDAI balance of the team number 2
```typescript
import { constants } from 'ethers';
import { toEth } from '@colony/sdk';
-// The `AddressZero` means ETH on mainnet and xDAI on Gnosis chain
+// The `AddressZero` means ETH on most networks
const balance = await colony.getBalance(constants.AddressZero, 2);
// This will format the balance as a string in eth and not wei (i.e. 1.0 vs. 1000000000000000000)
console.info(toEth(balance));
diff --git a/packages/sdk/docs/api/classes/ColonyNetwork.md b/packages/sdk/docs/api/classes/ColonyNetwork.md
index cca5e9877..7c2d22982 100644
--- a/packages/sdk/docs/api/classes/ColonyNetwork.md
+++ b/packages/sdk/docs/api/classes/ColonyNetwork.md
@@ -17,8 +17,8 @@ From here you should be able to instantiate all the required instances for Colon
import { providers } from 'ethers';
import { ColonyNetwork, ColonyRpcEndpoint, Tokens } from '@colony/sdk';
-// Connect directly to the deployed Colony Network on Gnosis Chain
-const provider = new providers.JsonRpcProvider(ColonyRpcEndpoint.Gnosis);
+// Connect directly to the deployed Colony Network on Arbitrum One
+const provider = new providers.JsonRpcProvider(ColonyRpcEndpoint.ArbitrumOne);
const colonyNetwork = new ColonyNetwork(provider);
// Now you could call functions on the colonyNetwork, like `colonyNetwork.getMetaColony()`
```
@@ -44,7 +44,7 @@ ___
• **network**: [`Network`](../enums/Network.md)
-The network the client is connected to. Defaults to Gnosis chain
+The network the client is connected to. Defaults to Arbitrum One
___
@@ -90,7 +90,7 @@ import { Tokens } from '@colony/sdk';
// IPFS hash to an image file
colonyAvatarHash: 'QmS26o1Cmsrx7iw1SSFGEcy22TVDq6VmEZ4XNjpWFyaKUe',
// List of token addresses that the Colony should be initialized with (can be changed later) - excluding ETH and the native token from above
- colonyTokens: [Tokens.Gnosis.CLNY],
+ colonyTokens: [Tokens.ArbitrumOne.CLNY],
}).tx().mined();
})();
```
@@ -149,7 +149,7 @@ See the [Colony Creation Guide](../../guides/colony-creation.md).
// Create a colony
// (forced transaction example)
await colonyNetwork
- // Use USDC on Gnosis chain as the native token
+ // Use USDC on Arbitrum One as the native token
.createColony('0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83', 'coolony')
.tx().mined();
})();
diff --git a/packages/sdk/docs/api/classes/OneTxPayment.md b/packages/sdk/docs/api/classes/OneTxPayment.md
index 70af6257c..5514be1c9 100644
--- a/packages/sdk/docs/api/classes/OneTxPayment.md
+++ b/packages/sdk/docs/api/classes/OneTxPayment.md
@@ -61,13 +61,13 @@ import { Id, Tokens, w } from '@colony/sdk';
// Immediately executing async function
(async function() {
- // Pay 10 XDAI (on Gnosis chain) from the root domain to the following address
+ // Pay 10 CLNY (on ArbitrumOne chain) from the root domain to the following address
// (forced transaction example)
await colony.ext.oneTx.pay(
'0xb77D57F4959eAfA0339424b83FcFaf9c15407461',
w`10`,
Id.RootDomain,
- Tokens.Gnosis.XDAI,
+ Tokens.ArbitrumOne.CLNY,
).tx().mined();
})();
```
diff --git a/packages/sdk/docs/api/enums/ColonyRpcEndpoint.md b/packages/sdk/docs/api/enums/ColonyRpcEndpoint.md
index 8b486a761..e9b13eae4 100644
--- a/packages/sdk/docs/api/enums/ColonyRpcEndpoint.md
+++ b/packages/sdk/docs/api/enums/ColonyRpcEndpoint.md
@@ -6,7 +6,7 @@ Official Colony RPC2 endpoint (node)
### ArbitrumOne
-• **ArbitrumOne** = ``"https://arbitrum.colony.io/publicrpc/"``
+• **ArbitrumOne** = ``"https://app.colony.io/public-rpc/"``
Colony's own RPC2 endpoint for Arbitrum One
@@ -14,7 +14,7 @@ ___
### ArbitrumSepolia
-• **ArbitrumSepolia** = ``"https://arbitrum-sepolia.colony.io/publicrpc/"``
+• **ArbitrumSepolia** = ``"https://arbitrum-sepolia.colony.io/public-rpc/"``
Colony's own RPC2 endpoint for Arbitrum Sepolia testnet
diff --git a/packages/sdk/docs/getting-started/index.md b/packages/sdk/docs/getting-started/index.md
index d64702883..bc1f9dfa8 100644
--- a/packages/sdk/docs/getting-started/index.md
+++ b/packages/sdk/docs/getting-started/index.md
@@ -27,7 +27,7 @@ npm install ethers @colony/sdk
You'll need `ethers` v5.x as a dependency in your project.
-## Connecting to Colony on Gnosis Chain
+## Connecting to Colony on ArbitrumOne Chain
Colony SDK browser demos
href="https://github.com/JoinColony/colonyStarter">colonyStarter for more information.
Check out the source code for the examples here.
-These demos interact with LIVE Colonies on Gnosis chain. We recommend to use the Colony
+ These demos interact with LIVE Colonies on ArbitrumOne chain. We recommend to use the Colony
RPC endpoint directly.