duly / web/lib/config.js · raw
// Public, non-secret deployment facts. Both networks use the same code.export const NETWORKS = {  mainnet: {    id: 'mainnet',    label: 'Live',    // Live routes open only with a pinned code hash: the contract name is public, so    // the site must never read a contract it has not checked.    live: true,    codeHash: '7jt6GbQnA7VyUGs65Azim73ypuZbBZa2GSKfXHkMQqvj',    contract: 'dulypay.near',    usdc: '17208628f84f5d6ad33f0da3bbbeb27ffcb398eac501a31bd6ad2011e36133a1',    intents: 'intents.near',    rpc: ['https://free.rpc.fastnear.com', 'https://rpc.mainnet.fastnear.com', 'https://rpc.mainnet.near.org'],    explorer: 'https://nearblocks.io',  },  testnet: {    id: 'testnet',    label: 'Test mode',    live: true,    contract: 'dulypay.testnet',    usdc: 'tusdc-duly.testnet',    intents: 'intents.testnet',    testPayer: 'relayer-duly.testnet',    rpc: ['https://test.rpc.fastnear.com', 'https://rpc.testnet.fastnear.com', 'https://rpc.testnet.near.org'],    explorer: 'https://testnet.nearblocks.io',  },};export const USDC_DECIMALS = 6;export const ONE_CLICK = 'https://1click.chaindefuser.com/v0';/** Public key 1Click signs quotes with, from its official SDK. */export const ONE_CLICK_QUOTE_KEY = 'reYaWhvwu8Jzo3WUM3zhn6VrhuMEF4eADL17qtRVifc';/** NEAR-native USDC as 1Click names it. Mainnet only: Intents has no testnet. */export const USDC_ASSET = 'nep141:17208628f84f5d6ad33f0da3bbbeb27ffcb398eac501a31bd6ad2011e36133a1';