-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
15baddb
commit 77e46fb
Showing
619 changed files
with
108,898 additions
and
28,537 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
81 changes: 81 additions & 0 deletions
81
__fixtures__/v-next/outputicjsdeps/akash/audit/v1beta1/audit.amino.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
/* eslint-disable */ | ||
import { Attribute, AttributeSDKType } from "../../base/v1beta1/attribute.js"; | ||
import { ReadOnlyAminoMsg as AminoMsg } from "@interchainjs/ReadOnlyAminoMsg"; | ||
import { MsgSignProviderAttributes, MsgSignProviderAttributesSDKType, MsgDeleteProviderAttributes, MsgDeleteProviderAttributesSDKType } from "./audit.js"; | ||
export interface MsgSignProviderAttributesAminoType extends AminoMsg { | ||
type: "akash/audit/testonly-sign-provider-attributes"; | ||
value: { | ||
owner: string; | ||
auditor: string; | ||
attributes: { | ||
key: string; | ||
value: string; | ||
}[]; | ||
}; | ||
} | ||
export interface MsgDeleteProviderAttributesAminoType extends AminoMsg { | ||
type: "akash/audit/testonly-delete-provider-attributes"; | ||
value: { | ||
owner: string; | ||
auditor: string; | ||
keys: string[]; | ||
}; | ||
} | ||
export const AminoConverter = { | ||
"/akash.audit.v1beta1.MsgSignProviderAttributes": { | ||
aminoType: "akash/audit/testonly-sign-provider-attributes", | ||
toAmino: ({ | ||
owner, | ||
auditor, | ||
attributes | ||
}: MsgSignProviderAttributes): MsgSignProviderAttributesAminoType["value"] => { | ||
return { | ||
owner, | ||
auditor, | ||
attributes: attributes.map(el0 => ({ | ||
key: el0.key, | ||
value: el0.value | ||
})) | ||
}; | ||
}, | ||
fromAmino: ({ | ||
owner, | ||
auditor, | ||
attributes | ||
}: MsgSignProviderAttributesAminoType["value"]): MsgSignProviderAttributes => { | ||
return { | ||
owner, | ||
auditor, | ||
attributes: attributes.map(el0 => ({ | ||
key: el0.key, | ||
value: el0.value | ||
})) | ||
}; | ||
} | ||
}, | ||
"/akash.audit.v1beta1.MsgDeleteProviderAttributes": { | ||
aminoType: "akash/audit/testonly-delete-provider-attributes", | ||
toAmino: ({ | ||
owner, | ||
auditor, | ||
keys | ||
}: MsgDeleteProviderAttributes): MsgDeleteProviderAttributesAminoType["value"] => { | ||
return { | ||
owner, | ||
auditor, | ||
keys | ||
}; | ||
}, | ||
fromAmino: ({ | ||
owner, | ||
auditor, | ||
keys | ||
}: MsgDeleteProviderAttributesAminoType["value"]): MsgDeleteProviderAttributes => { | ||
return { | ||
owner, | ||
auditor, | ||
keys | ||
}; | ||
} | ||
} | ||
}; |
81 changes: 81 additions & 0 deletions
81
__fixtures__/v-next/outputicjsdeps/akash/audit/v1beta1/audit.registry.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
import { Attribute, AttributeSDKType } from "../../base/v1beta1/attribute.js"; | ||
import { GeneratedType, Registry } from "@cosmjs/proto-signing"; | ||
import { MsgSignProviderAttributes, MsgSignProviderAttributesSDKType, MsgDeleteProviderAttributes, MsgDeleteProviderAttributesSDKType } from "./audit.js"; | ||
export const registry: ReadonlyArray<[string, GeneratedType]> = [["/akash.audit.v1beta1.MsgSignProviderAttributes", MsgSignProviderAttributes], ["/akash.audit.v1beta1.MsgDeleteProviderAttributes", MsgDeleteProviderAttributes]]; | ||
export const load = (protoRegistry: Registry) => { | ||
registry.forEach(([typeUrl, mod]) => { | ||
protoRegistry.register(typeUrl, mod); | ||
}); | ||
}; | ||
export const MessageComposer = { | ||
encoded: { | ||
signProviderAttributes(value: MsgSignProviderAttributes) { | ||
return { | ||
typeUrl: "/akash.audit.v1beta1.MsgSignProviderAttributes", | ||
value: MsgSignProviderAttributes.encode(value).finish() | ||
}; | ||
}, | ||
deleteProviderAttributes(value: MsgDeleteProviderAttributes) { | ||
return { | ||
typeUrl: "/akash.audit.v1beta1.MsgDeleteProviderAttributes", | ||
value: MsgDeleteProviderAttributes.encode(value).finish() | ||
}; | ||
} | ||
}, | ||
withTypeUrl: { | ||
signProviderAttributes(value: MsgSignProviderAttributes) { | ||
return { | ||
typeUrl: "/akash.audit.v1beta1.MsgSignProviderAttributes", | ||
value | ||
}; | ||
}, | ||
deleteProviderAttributes(value: MsgDeleteProviderAttributes) { | ||
return { | ||
typeUrl: "/akash.audit.v1beta1.MsgDeleteProviderAttributes", | ||
value | ||
}; | ||
} | ||
}, | ||
toJSON: { | ||
signProviderAttributes(value: MsgSignProviderAttributes) { | ||
return { | ||
typeUrl: "/akash.audit.v1beta1.MsgSignProviderAttributes", | ||
value: MsgSignProviderAttributes.toJSON(value) | ||
}; | ||
}, | ||
deleteProviderAttributes(value: MsgDeleteProviderAttributes) { | ||
return { | ||
typeUrl: "/akash.audit.v1beta1.MsgDeleteProviderAttributes", | ||
value: MsgDeleteProviderAttributes.toJSON(value) | ||
}; | ||
} | ||
}, | ||
fromJSON: { | ||
signProviderAttributes(value: any) { | ||
return { | ||
typeUrl: "/akash.audit.v1beta1.MsgSignProviderAttributes", | ||
value: MsgSignProviderAttributes.fromJSON(value) | ||
}; | ||
}, | ||
deleteProviderAttributes(value: any) { | ||
return { | ||
typeUrl: "/akash.audit.v1beta1.MsgDeleteProviderAttributes", | ||
value: MsgDeleteProviderAttributes.fromJSON(value) | ||
}; | ||
} | ||
}, | ||
fromPartial: { | ||
signProviderAttributes(value: MsgSignProviderAttributes) { | ||
return { | ||
typeUrl: "/akash.audit.v1beta1.MsgSignProviderAttributes", | ||
value: MsgSignProviderAttributes.fromPartial(value) | ||
}; | ||
}, | ||
deleteProviderAttributes(value: MsgDeleteProviderAttributes) { | ||
return { | ||
typeUrl: "/akash.audit.v1beta1.MsgDeleteProviderAttributes", | ||
value: MsgDeleteProviderAttributes.fromPartial(value) | ||
}; | ||
} | ||
} | ||
}; |
32 changes: 32 additions & 0 deletions
32
__fixtures__/v-next/outputicjsdeps/akash/audit/v1beta1/audit.rpc.msg.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { Attribute, AttributeSDKType } from "../../base/v1beta1/attribute.js"; | ||
import { Rpc } from "../../../helpers.js"; | ||
import { BinaryReader } from "../../../binary.js"; | ||
import { MsgSignProviderAttributes, MsgSignProviderAttributesSDKType, MsgSignProviderAttributesResponse, MsgSignProviderAttributesResponseSDKType, MsgDeleteProviderAttributes, MsgDeleteProviderAttributesSDKType, MsgDeleteProviderAttributesResponse, MsgDeleteProviderAttributesResponseSDKType } from "./audit.js"; | ||
/** Msg defines the provider Msg service */ | ||
export interface Msg { | ||
/** SignProviderAttributes defines a method that signs provider attributes */ | ||
signProviderAttributes(request: MsgSignProviderAttributes): Promise<MsgSignProviderAttributesResponse>; | ||
/** DeleteProviderAttributes defines a method that deletes provider attributes */ | ||
deleteProviderAttributes(request: MsgDeleteProviderAttributes): Promise<MsgDeleteProviderAttributesResponse>; | ||
} | ||
export class MsgClientImpl implements Msg { | ||
private readonly rpc: Rpc; | ||
constructor(rpc: Rpc) { | ||
this.rpc = rpc; | ||
} | ||
/* SignProviderAttributes defines a method that signs provider attributes */ | ||
signProviderAttributes = async (request: MsgSignProviderAttributes): Promise<MsgSignProviderAttributesResponse> => { | ||
const data = MsgSignProviderAttributes.encode(request).finish(); | ||
const promise = this.rpc.request("akash.audit.v1beta1.Msg", "SignProviderAttributes", data); | ||
return promise.then(data => MsgSignProviderAttributesResponse.decode(new BinaryReader(data))); | ||
}; | ||
/* DeleteProviderAttributes defines a method that deletes provider attributes */ | ||
deleteProviderAttributes = async (request: MsgDeleteProviderAttributes): Promise<MsgDeleteProviderAttributesResponse> => { | ||
const data = MsgDeleteProviderAttributes.encode(request).finish(); | ||
const promise = this.rpc.request("akash.audit.v1beta1.Msg", "DeleteProviderAttributes", data); | ||
return promise.then(data => MsgDeleteProviderAttributesResponse.decode(new BinaryReader(data))); | ||
}; | ||
} | ||
export const createClientImpl = (rpc: Rpc) => { | ||
return new MsgClientImpl(rpc); | ||
}; |
Oops, something went wrong.