Skip to content

Commit e1e64f1

Browse files
committed
Code format
1 parent bc66dce commit e1e64f1

File tree

3 files changed

+32
-32
lines changed

3 files changed

+32
-32
lines changed

src/extensions/ibc.ts

+30-30
Original file line numberDiff line numberDiff line change
@@ -426,36 +426,36 @@ export function setupIbcExtension(base: QueryClient): IbcExtension {
426426
},
427427
verified: {
428428
channel: {
429-
channel: async (portId: string, channelId: string) => {
430-
// keeper: https://github.com/cosmos/cosmos-sdk/blob/3bafd8255a502e5a9cee07391cf8261538245dfd/x/ibc/04-channel/keeper/keeper.go#L55-L65
431-
// key: https://github.com/cosmos/cosmos-sdk/blob/ef0a7344af345882729598bc2958a21143930a6b/x/ibc/24-host/keys.go#L117-L120
432-
const key = toAscii(`channelEnds/ports/${portId}/channels/${channelId}`);
433-
const { value } = await base.queryStoreVerified("ibc", key);
434-
return value.length ? Channel.decode(value) : null;
435-
},
436-
packetCommitment: async (portId: string, channelId: string, sequence: number) => {
437-
// keeper: https://github.com/cosmos/cosmos-sdk/blob/3bafd8255a502e5a9cee07391cf8261538245dfd/x/ibc/04-channel/keeper/keeper.go#L128-L133
438-
// key: https://github.com/cosmos/cosmos-sdk/blob/ef0a7344af345882729598bc2958a21143930a6b/x/ibc/24-host/keys.go#L183-L185
439-
const key = toAscii(`commitments/ports/${portId}/channels/${channelId}/packets/${sequence}`);
440-
const { value } = await base.queryStoreVerified("ibc", key);
441-
// keeper code doesn't parse, but returns raw
442-
return value;
443-
},
444-
packetAcknowledgement: async (portId: string, channelId: string, sequence: number) => {
445-
// keeper: https://github.com/cosmos/cosmos-sdk/blob/3bafd8255a502e5a9cee07391cf8261538245dfd/x/ibc/04-channel/keeper/keeper.go#L159-L166
446-
// key: https://github.com/cosmos/cosmos-sdk/blob/ef0a7344af345882729598bc2958a21143930a6b/x/ibc/24-host/keys.go#L153-L156
447-
const key = toAscii(`acks/ports/${portId}/channels/${channelId}/acknowledgements/${sequence}`);
448-
const { value } = await base.queryStoreVerified("ibc", key);
449-
// keeper code doesn't parse, but returns raw
450-
return value;
451-
},
452-
nextSequenceReceive: async (portId: string, channelId: string) => {
453-
// keeper: https://github.com/cosmos/cosmos-sdk/blob/3bafd8255a502e5a9cee07391cf8261538245dfd/x/ibc/04-channel/keeper/keeper.go#L92-L101
454-
// key: https://github.com/cosmos/cosmos-sdk/blob/ef0a7344af345882729598bc2958a21143930a6b/x/ibc/24-host/keys.go#L133-L136
455-
const key = toAscii(`seqAcks/ports/${portId}/channels/${channelId}/nextSequenceAck`);
456-
const { value } = await base.queryStoreVerified("ibc", key);
457-
return value.length ? Uint64.fromBytes(value).toNumber() : null;
458-
},
429+
channel: async (portId: string, channelId: string) => {
430+
// keeper: https://github.com/cosmos/cosmos-sdk/blob/3bafd8255a502e5a9cee07391cf8261538245dfd/x/ibc/04-channel/keeper/keeper.go#L55-L65
431+
// key: https://github.com/cosmos/cosmos-sdk/blob/ef0a7344af345882729598bc2958a21143930a6b/x/ibc/24-host/keys.go#L117-L120
432+
const key = toAscii(`channelEnds/ports/${portId}/channels/${channelId}`);
433+
const { value } = await base.queryStoreVerified('ibc', key);
434+
return value.length ? Channel.decode(value) : null;
435+
},
436+
packetCommitment: async (portId: string, channelId: string, sequence: number) => {
437+
// keeper: https://github.com/cosmos/cosmos-sdk/blob/3bafd8255a502e5a9cee07391cf8261538245dfd/x/ibc/04-channel/keeper/keeper.go#L128-L133
438+
// key: https://github.com/cosmos/cosmos-sdk/blob/ef0a7344af345882729598bc2958a21143930a6b/x/ibc/24-host/keys.go#L183-L185
439+
const key = toAscii(`commitments/ports/${portId}/channels/${channelId}/packets/${sequence}`);
440+
const { value } = await base.queryStoreVerified('ibc', key);
441+
// keeper code doesn't parse, but returns raw
442+
return value;
443+
},
444+
packetAcknowledgement: async (portId: string, channelId: string, sequence: number) => {
445+
// keeper: https://github.com/cosmos/cosmos-sdk/blob/3bafd8255a502e5a9cee07391cf8261538245dfd/x/ibc/04-channel/keeper/keeper.go#L159-L166
446+
// key: https://github.com/cosmos/cosmos-sdk/blob/ef0a7344af345882729598bc2958a21143930a6b/x/ibc/24-host/keys.go#L153-L156
447+
const key = toAscii(`acks/ports/${portId}/channels/${channelId}/acknowledgements/${sequence}`);
448+
const { value } = await base.queryStoreVerified('ibc', key);
449+
// keeper code doesn't parse, but returns raw
450+
return value;
451+
},
452+
nextSequenceReceive: async (portId: string, channelId: string) => {
453+
// keeper: https://github.com/cosmos/cosmos-sdk/blob/3bafd8255a502e5a9cee07391cf8261538245dfd/x/ibc/04-channel/keeper/keeper.go#L92-L101
454+
// key: https://github.com/cosmos/cosmos-sdk/blob/ef0a7344af345882729598bc2958a21143930a6b/x/ibc/24-host/keys.go#L133-L136
455+
const key = toAscii(`seqAcks/ports/${portId}/channels/${channelId}/nextSequenceAck`);
456+
const { value } = await base.queryStoreVerified('ibc', key);
457+
return value.length ? Uint64.fromBytes(value).toNumber() : null;
458+
},
459459
},
460460
},
461461
},

src/extensions/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function createProtobufRpcClient(base: QueryClient): ProtobufRpcClient {
1414
const path = `/${service}/${method}`;
1515
const response = await base.queryAbci(path, data, undefined);
1616
return response.value;
17-
},
17+
},
1818
};
1919
}
2020

src/registry/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import { MsgClaimBeam, MsgOpenBeam, MsgUpdateBeam } from '../codec/lum-network/b
4343
import { MsgDeposit as MsgDepositDfract } from '../codec/lum-network/dfract/tx';
4444
import { WithdrawAndMintProposal } from '../codec/lum-network/dfract/proposal';
4545
import { MsgClaimPrize, MsgDeposit as MsgDepositMillions, MsgDepositRetry, MsgDrawRetry, MsgUpdateParams, MsgWithdrawDeposit, MsgWithdrawDepositRetry } from '../codec/lum-network/millions/tx';
46-
import { ProposalRegisterPool, ProposalUpdateParams, ProposalUpdatePool } from "../codec/lum-network/millions/gov";
46+
import { ProposalRegisterPool, ProposalUpdateParams, ProposalUpdatePool } from '../codec/lum-network/millions/gov';
4747

4848
const registryTypes: Iterable<[string, GeneratedType]> = [
4949
['/cosmos.auth.v1beta1.BaseAccount', BaseAccount],

0 commit comments

Comments
 (0)