Skip to content

Commit

Permalink
fix(ario): update joinNetwork to accept observerWallet param
Browse files Browse the repository at this point in the history
  • Loading branch information
Atticus committed Apr 30, 2024
1 parent a93f712 commit 6a32dd1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,7 @@ const jointNetworkParams = {
label: 'john smith', // min 1, max 64 characters
note: 'The example gateway', // max 256 characters
properties: 'FH1aVetOoulPGqgYukj0VE0wIhDy90WiQoV3U2PeY44', // Arweave transaction ID containing additional properties of the Gateway.
observerWallet: '0VE0wIhDy90WiQoV3U2PeY44FH1aVetOoulPGqgYukj', // wallet address of the observer
/* gateway info */
fqdn: 'example.com',
port: 443,
Expand Down
1 change: 1 addition & 0 deletions src/common/ar-io.ts
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,7 @@ export class ArIOWritable extends ArIOReadable implements ArIOWriteContract {
label: 'john smith', // min 1, max 64 characters
note: 'The example gateway', // max 256 characters
properties: 'FH1aVetOoulPGqgYukj0VE0wIhDy90WiQoV3U2PeY44', // Arweave transaction ID containing additional properties of the Gateway.
observerWallet: '0VE0wIhDy90WiQoV3U2PeY44FH1aVetOoulPGqgYukj', // wallet address of the observer
// gateway info
fqdn: 'example.com',
port: 443,
Expand Down
3 changes: 2 additions & 1 deletion src/contract-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export type GatewayMetadata = {
label: string;
note?: string;
properties?: string;
observerWallet?: WalletAddress;
};

export type GatewayConnectionSettings = {
Expand All @@ -83,7 +84,7 @@ export type GatewaySettings = GatewayConnectionSettings &
GatewayStakingSettings &
GatewayMetadata;

export type AllowedProtocols = 'http' | 'https';
export type AllowedProtocols = 'https';

export type GatewayStats = {
failedConsecutiveEpochs: number;
Expand Down
1 change: 1 addition & 0 deletions tests/integration/ar-io-writable.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ describe('ArIOWriteable', () => {
qty: 20000,
properties: ''.padEnd(43, 'a'),
note: 'a note',
observerWallet: ''.padEnd(43, 'b'),
allowDelegatedStaking: true,
delegateRewardShareRatio: 10,
minDelegatedStake: 100,
Expand Down

0 comments on commit 6a32dd1

Please sign in to comment.