Skip to content

Commit b22c040

Browse files
committed
Rename devnet into homer
1 parent a139a32 commit b22c040

File tree

19 files changed

+83
-83
lines changed

19 files changed

+83
-83
lines changed

packages/core-sdk/src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class StoryClient {
4343
private constructor(config: StoryConfig) {
4444
this.config = {
4545
...config,
46-
chainId: chain[config.chainId || "devnet"],
46+
chainId: chain[config.chainId || "homer"],
4747
};
4848
if (!this.config.transport) {
4949
throw new Error(

packages/core-sdk/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export { StoryClient } from "./client";
22
export { AddressZero, HashZero } from "./constants/common";
3-
export { devnet } from "./utils/chain";
3+
export { homer } from "./utils/chain";
44
export { IPAssetClient } from "./resources/ipAsset";
55
export { PermissionClient } from "./resources/permission";
66
export { LicenseClient } from "./resources/license";

packages/core-sdk/src/types/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { SimpleWalletClient } from "../abi/generated";
77
*
88
* @public
99
*/
10-
export type SupportedChainIds = "1315" | "devnet";
10+
export type SupportedChainIds = "1315" | "homer";
1111

1212
/**
1313
* Configuration for the SDK Client.

packages/core-sdk/src/utils/chain.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { defineChain } from "viem/utils";
22

3-
export const devnet = defineChain({
3+
export const homer = defineChain({
44
id: 13_15,
5-
name: "devnet",
5+
name: "homer",
66
nativeCurrency: { name: "IP", symbol: "IP", decimals: 18 },
77
rpcUrls: {
88
default: {

packages/core-sdk/src/utils/utils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
} from "viem";
1414

1515
import { SupportedChainIds } from "../types/config";
16-
import { devnet } from "./chain";
16+
import { homer } from "./chain";
1717

1818
export async function waitTxAndFilterLog<
1919
const TAbi extends Abi | readonly unknown[],
@@ -80,15 +80,15 @@ export async function waitTx(
8080
export function chainStringToViemChain(chainId: SupportedChainIds): Chain {
8181
switch (chainId.toString()) {
8282
case "1315":
83-
case "devnet":
84-
return devnet;
83+
case "homer":
84+
return homer;
8585
default:
8686
throw new Error(`ChainId ${chainId as string} not supported`);
8787
}
8888
}
8989

9090
export const chain: { [key in SupportedChainIds]: "1315" } = {
91-
devnet: "1315",
91+
homer: "1315",
9292
1315: "1315",
9393
};
9494

packages/core-sdk/test/integration/dispute.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import chai from "chai";
22
import { StoryClient } from "../../src";
33
import { RaiseDisputeRequest } from "../../src/index";
4-
import { mockERC721, getStoryClient, getTokenId, devnet } from "./utils/util";
4+
import { mockERC721, getStoryClient, getTokenId, homer } from "./utils/util";
55
import chaiAsPromised from "chai-as-promised";
66
import { Address } from "viem";
77
import { MockERC20 } from "./utils/mockERC20";
@@ -17,8 +17,8 @@ describe("Dispute Functions", () => {
1717
before(async () => {
1818
clientA = getStoryClient();
1919
clientB = getStoryClient();
20-
const mockERC20 = new MockERC20(erc20TokenAddress[devnet]);
21-
await mockERC20.approve(arbitrationPolicyUmaAddress[devnet]);
20+
const mockERC20 = new MockERC20(erc20TokenAddress[homer]);
21+
await mockERC20.approve(arbitrationPolicyUmaAddress[homer]);
2222
const tokenId = await getTokenId();
2323
ipIdB = (
2424
await clientB.ipAsset.register({

packages/core-sdk/test/integration/group.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import chai from "chai";
22
import chaiAsPromised from "chai-as-promised";
33
import { Address, zeroAddress } from "viem";
4-
import { devnet, getStoryClient, mintBySpg } from "./utils/util";
4+
import { homer, getStoryClient, mintBySpg } from "./utils/util";
55
import { StoryClient } from "../../src";
66
import { MockERC20 } from "./utils/mockERC20";
77
import {
@@ -11,7 +11,7 @@ import {
1111
royaltyPolicyLrpAddress,
1212
} from "../../src/abi/generated";
1313

14-
const groupPoolAddress = evenSplitGroupPoolAddress[devnet];
14+
const groupPoolAddress = evenSplitGroupPoolAddress[homer];
1515

1616
chai.use(chaiAsPromised);
1717
const expect = chai.expect;
@@ -44,7 +44,7 @@ describe("Group Functions", () => {
4444
{
4545
terms: {
4646
transferable: true,
47-
royaltyPolicy: royaltyPolicyLrpAddress[devnet],
47+
royaltyPolicy: royaltyPolicyLrpAddress[homer],
4848
defaultMintingFee: 0n,
4949
expiration: BigInt(1000),
5050
commercialUse: true,
@@ -58,7 +58,7 @@ describe("Group Functions", () => {
5858
derivativesApproval: false,
5959
derivativesReciprocal: true,
6060
derivativeRevCeiling: BigInt(0),
61-
currency: mockErc20Address[devnet],
61+
currency: mockErc20Address[homer],
6262
uri: "test case",
6363
},
6464
licensingConfig: {
@@ -83,7 +83,7 @@ describe("Group Functions", () => {
8383
await client.license.setLicensingConfig({
8484
ipId: ipId,
8585
licenseTermsId: licenseTermsId,
86-
licenseTemplate: piLicenseTemplateAddress[devnet],
86+
licenseTemplate: piLicenseTemplateAddress[homer],
8787
licensingConfig: {
8888
isSet: true,
8989
mintingFee: 0n,

packages/core-sdk/test/integration/ipAccount.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import chai from "chai";
22
import chaiAsPromised from "chai-as-promised";
33
import { AccessPermission, StoryClient } from "../../src";
4-
import { mockERC721, getStoryClient, getTokenId, devnet } from "./utils/util";
4+
import { mockERC721, getStoryClient, getTokenId, homer } from "./utils/util";
55
import { Hex, encodeFunctionData, getAddress, toFunctionSelector } from "viem";
66
import {
77
accessControllerAbi,
@@ -15,8 +15,8 @@ describe("Ip Account functions", () => {
1515
let client: StoryClient;
1616
let ipId: Hex;
1717
let data: Hex;
18-
const coreMetadataModule = coreMetadataModuleAddress[devnet];
19-
const permissionAddress = accessControllerAddress[devnet];
18+
const coreMetadataModule = coreMetadataModuleAddress[homer];
19+
const permissionAddress = accessControllerAddress[homer];
2020

2121
before(async () => {
2222
client = getStoryClient();

packages/core-sdk/test/integration/ipAsset.test.ts

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
getTokenId,
99
mintBySpg,
1010
approveForLicenseToken,
11-
devnet,
11+
homer,
1212
} from "./utils/util";
1313
import { MockERC20 } from "./utils/mockERC20";
1414
import {
@@ -22,7 +22,7 @@ import {
2222
chai.use(chaiAsPromised);
2323
const expect = chai.expect;
2424

25-
const pool = evenSplitGroupPoolAddress[devnet];
25+
const pool = evenSplitGroupPoolAddress[homer];
2626
describe("IP Asset Functions ", () => {
2727
let client: StoryClient;
2828
let noCommercialLicenseTermsId: bigint;
@@ -160,7 +160,7 @@ describe("IP Asset Functions ", () => {
160160
{
161161
terms: {
162162
transferable: true,
163-
royaltyPolicy: royaltyPolicyLapAddress[devnet],
163+
royaltyPolicy: royaltyPolicyLapAddress[homer],
164164
defaultMintingFee: 1n,
165165
expiration: 0n,
166166
commercialUse: true,
@@ -174,7 +174,7 @@ describe("IP Asset Functions ", () => {
174174
derivativesApproval: false,
175175
derivativesReciprocal: true,
176176
derivativeRevCeiling: 0n,
177-
currency: mockErc20Address[devnet],
177+
currency: mockErc20Address[homer],
178178
uri: "",
179179
},
180180
licensingConfig: {
@@ -196,8 +196,8 @@ describe("IP Asset Functions ", () => {
196196
parentIpId = result.ipId!;
197197
licenseTermsId = result.licenseTermsIds![0];
198198
const mockERC20 = new MockERC20();
199-
await mockERC20.approve(derivativeWorkflowsAddress[devnet]);
200-
await mockERC20.approve(royaltyTokenDistributionWorkflowsAddress[devnet]);
199+
await mockERC20.approve(derivativeWorkflowsAddress[homer]);
200+
await mockERC20.approve(royaltyTokenDistributionWorkflowsAddress[homer]);
201201
await mockERC20.mint();
202202
});
203203
it("should not throw error when register a IP Asset given metadata", async () => {
@@ -263,7 +263,7 @@ describe("IP Asset Functions ", () => {
263263
derivativesApproval: false,
264264
derivativesReciprocal: true,
265265
derivativeRevCeiling: 0n,
266-
currency: mockErc20Address[devnet],
266+
currency: mockErc20Address[homer],
267267
uri: "",
268268
},
269269
licensingConfig: {
@@ -280,7 +280,7 @@ describe("IP Asset Functions ", () => {
280280
{
281281
terms: {
282282
transferable: true,
283-
royaltyPolicy: royaltyPolicyLapAddress[devnet],
283+
royaltyPolicy: royaltyPolicyLapAddress[homer],
284284
defaultMintingFee: 10000n,
285285
expiration: 1000n,
286286
commercialUse: true,
@@ -294,7 +294,7 @@ describe("IP Asset Functions ", () => {
294294
derivativesApproval: false,
295295
derivativesReciprocal: true,
296296
derivativeRevCeiling: 0n,
297-
currency: mockErc20Address[devnet],
297+
currency: mockErc20Address[homer],
298298
uri: "test case",
299299
},
300300
licensingConfig: {
@@ -375,7 +375,7 @@ describe("IP Asset Functions ", () => {
375375
derivativesApproval: false,
376376
derivativesReciprocal: true,
377377
derivativeRevCeiling: 0n,
378-
currency: mockErc20Address[devnet],
378+
currency: mockErc20Address[homer],
379379
uri: "",
380380
},
381381
licensingConfig: {
@@ -392,7 +392,7 @@ describe("IP Asset Functions ", () => {
392392
{
393393
terms: {
394394
transferable: true,
395-
royaltyPolicy: royaltyPolicyLapAddress[devnet],
395+
royaltyPolicy: royaltyPolicyLapAddress[homer],
396396
defaultMintingFee: 10000n,
397397
expiration: 1000n,
398398
commercialUse: true,
@@ -406,7 +406,7 @@ describe("IP Asset Functions ", () => {
406406
derivativesApproval: false,
407407
derivativesReciprocal: true,
408408
derivativeRevCeiling: 0n,
409-
currency: mockErc20Address[devnet],
409+
currency: mockErc20Address[homer],
410410
uri: "test case",
411411
},
412412
licensingConfig: {
@@ -441,7 +441,7 @@ describe("IP Asset Functions ", () => {
441441
},
442442
});
443443
await approveForLicenseToken(
444-
derivativeWorkflowsAddress[devnet],
444+
derivativeWorkflowsAddress[homer],
445445
mintLicenseTokensResult.licenseTokenIds![0],
446446
);
447447
const result = await client.ipAsset.mintAndRegisterIpAndMakeDerivativeWithLicenseTokens({
@@ -474,7 +474,7 @@ describe("IP Asset Functions ", () => {
474474
},
475475
});
476476
await approveForLicenseToken(
477-
derivativeWorkflowsAddress[devnet],
477+
derivativeWorkflowsAddress[homer],
478478
mintLicenseTokensResult.licenseTokenIds![0],
479479
);
480480
const result = await client.ipAsset.registerIpAndMakeDerivativeWithLicenseTokens({
@@ -506,7 +506,7 @@ describe("IP Asset Functions ", () => {
506506
{
507507
terms: {
508508
transferable: true,
509-
royaltyPolicy: royaltyPolicyLapAddress[devnet],
509+
royaltyPolicy: royaltyPolicyLapAddress[homer],
510510
defaultMintingFee: 10000n,
511511
expiration: 1000n,
512512
commercialUse: true,
@@ -520,7 +520,7 @@ describe("IP Asset Functions ", () => {
520520
derivativesApproval: false,
521521
derivativesReciprocal: true,
522522
derivativeRevCeiling: 0n,
523-
currency: mockErc20Address[devnet],
523+
currency: mockErc20Address[homer],
524524
uri: "test case",
525525
},
526526
licensingConfig: {
@@ -594,7 +594,7 @@ describe("IP Asset Functions ", () => {
594594
{
595595
terms: {
596596
transferable: true,
597-
royaltyPolicy: royaltyPolicyLapAddress[devnet],
597+
royaltyPolicy: royaltyPolicyLapAddress[homer],
598598
defaultMintingFee: 10000n,
599599
expiration: 1000n,
600600
commercialUse: true,
@@ -608,7 +608,7 @@ describe("IP Asset Functions ", () => {
608608
derivativesApproval: false,
609609
derivativesReciprocal: true,
610610
derivativeRevCeiling: 0n,
611-
currency: mockErc20Address[devnet],
611+
currency: mockErc20Address[homer],
612612
uri: "test case",
613613
},
614614
licensingConfig: {
@@ -625,7 +625,7 @@ describe("IP Asset Functions ", () => {
625625
{
626626
terms: {
627627
transferable: false,
628-
royaltyPolicy: royaltyPolicyLapAddress[devnet],
628+
royaltyPolicy: royaltyPolicyLapAddress[homer],
629629
defaultMintingFee: 10000n,
630630
expiration: 1000n,
631631
commercialUse: true,
@@ -639,7 +639,7 @@ describe("IP Asset Functions ", () => {
639639
derivativesApproval: false,
640640
derivativesReciprocal: true,
641641
derivativeRevCeiling: 0n,
642-
currency: mockErc20Address[devnet],
642+
currency: mockErc20Address[homer],
643643
uri: "test case",
644644
},
645645
licensingConfig: {
@@ -769,7 +769,7 @@ describe("IP Asset Functions ", () => {
769769
{
770770
terms: {
771771
transferable: true,
772-
royaltyPolicy: royaltyPolicyLapAddress[devnet],
772+
royaltyPolicy: royaltyPolicyLapAddress[homer],
773773
defaultMintingFee: 8n,
774774
expiration: 0n,
775775
commercialUse: true,
@@ -783,7 +783,7 @@ describe("IP Asset Functions ", () => {
783783
derivativesApproval: false,
784784
derivativesReciprocal: true,
785785
derivativeRevCeiling: 0n,
786-
currency: mockErc20Address[devnet],
786+
currency: mockErc20Address[homer],
787787
uri: "",
788788
},
789789
licensingConfig: {
@@ -806,7 +806,7 @@ describe("IP Asset Functions ", () => {
806806
{
807807
terms: {
808808
transferable: true,
809-
royaltyPolicy: royaltyPolicyLapAddress[devnet],
809+
royaltyPolicy: royaltyPolicyLapAddress[homer],
810810
defaultMintingFee: 8n,
811811
expiration: 0n,
812812
commercialUse: true,
@@ -820,7 +820,7 @@ describe("IP Asset Functions ", () => {
820820
derivativesApproval: false,
821821
derivativesReciprocal: true,
822822
derivativeRevCeiling: 0n,
823-
currency: mockErc20Address[devnet],
823+
currency: mockErc20Address[homer],
824824
uri: "",
825825
},
826826
licensingConfig: {

0 commit comments

Comments
 (0)