Skip to content

Commit

Permalink
Refactor: Change default contract address
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravenyjh committed Nov 29, 2024
1 parent 319c761 commit f99b523
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 21 deletions.
3 changes: 1 addition & 2 deletions lib.commonjs/broker/broker.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,7 @@ export declare class ZGServingNetworkBroker {
*
* @param {string} providerAddress - The address of the provider.
* @param {string} svcName - The name of the service.
* @param {number} fee - The fee to be settled. The unit of the fee is neuron.
* 1 A0GI = 1e18 neuron. To accommodate large values, it needs to use string type.
* @param {number} fee - The fee to be settled. The unit of the fee is A0GI.
*
* @returns A promise that resolves when the fee settlement is successful.
*
Expand Down
2 changes: 1 addition & 1 deletion lib.commonjs/broker/broker.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions lib.commonjs/broker/broker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib.commonjs/broker/broker.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions lib.esm/broker/broker.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,7 @@ export declare class ZGServingNetworkBroker {
*
* @param {string} providerAddress - The address of the provider.
* @param {string} svcName - The name of the service.
* @param {number} fee - The fee to be settled. The unit of the fee is neuron.
* 1 A0GI = 1e18 neuron. To accommodate large values, it needs to use string type.
* @param {number} fee - The fee to be settled. The unit of the fee is A0GI.
*
* @returns A promise that resolves when the fee settlement is successful.
*
Expand Down
2 changes: 1 addition & 1 deletion lib.esm/broker/broker.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions lib.esm/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -838,8 +838,7 @@ declare class ZGServingNetworkBroker {
*
* @param {string} providerAddress - The address of the provider.
* @param {string} svcName - The name of the service.
* @param {number} fee - The fee to be settled. The unit of the fee is neuron.
* 1 A0GI = 1e18 neuron. To accommodate large values, it needs to use string type.
* @param {number} fee - The fee to be settled. The unit of the fee is A0GI.
*
* @returns A promise that resolves when the fee settlement is successful.
*
Expand Down
5 changes: 2 additions & 3 deletions lib.esm/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2160,8 +2160,7 @@ class ZGServingNetworkBroker {
*
* @param {string} providerAddress - The address of the provider.
* @param {string} svcName - The name of the service.
* @param {number} fee - The fee to be settled. The unit of the fee is neuron.
* 1 A0GI = 1e18 neuron. To accommodate large values, it needs to use string type.
* @param {number} fee - The fee to be settled. The unit of the fee is A0GI.
*
* @returns A promise that resolves when the fee settlement is successful.
*
Expand All @@ -2186,7 +2185,7 @@ class ZGServingNetworkBroker {
*
* @throws An error if the broker cannot be initialized.
*/
async function createZGServingNetworkBroker(signer, contractAddress = '0x9Ae9b2C822beFF4B4466075006bc6b5ac35E779F') {
async function createZGServingNetworkBroker(signer, contractAddress = '0xE7F0998C83a81f04871BEdfD89aB5f2DAcDBf435') {
const broker = new ZGServingNetworkBroker(signer, contractAddress);
try {
await broker.initialize();
Expand Down
2 changes: 1 addition & 1 deletion lib.esm/index.mjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@0glabs/0g-serving-broker",
"version": "0.1.0",
"description": "TS SDK for 0G Compute Network Customer broker",
"description": "TS SDK for 0G Compute Network",
"main": "./lib.commonjs/index.js",
"files": [
"types",
Expand Down
2 changes: 1 addition & 1 deletion src.ts/broker/broker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ export class ZGServingNetworkBroker {
*/
export async function createZGServingNetworkBroker(
signer: JsonRpcSigner | Wallet,
contractAddress = '0x9Ae9b2C822beFF4B4466075006bc6b5ac35E779F'
contractAddress = '0xE7F0998C83a81f04871BEdfD89aB5f2DAcDBf435'
): Promise<ZGServingNetworkBroker> {
const broker = new ZGServingNetworkBroker(signer, contractAddress)
try {
Expand Down
Loading

0 comments on commit f99b523

Please sign in to comment.