Skip to content

Commit db9d439

Browse files
wip: add MicroAgentAlmanac interface
(cherry picked from commit b3c778971a0f9e9616243fe5694c9dce2cb6fbd3)
1 parent 96397ea commit db9d439

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

schema.graphql

+1
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ enum Interface {
261261
Uncertain,
262262
CW20,
263263
LegacyBridgeSwap,
264+
MicroAgentAlmanac,
264265
}
265266

266267
enum AccessType {

src/mappings/utils.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {createHash} from "crypto";
44
import {Attribute} from "@cosmjs/stargate/build/logs";
55
import {LegacyBridgeSwapStructure} from "./wasm/contracts/bridge";
66
import {CW20Structure} from "./wasm/contracts/cw20";
7-
import {Structure} from "./wasm/contracts/types";
7+
import {BaseStructure} from "./wasm/contracts/base";
88
import {MicroAgentAlmanacStructure} from "./wasm/contracts/almanac";
99

1010
export type Primitive = CosmosEvent | CosmosMessage | CosmosTransaction | CosmosBlock;
@@ -31,7 +31,7 @@ export async function checkBalancesAccount(address: string, chainId: string) {
3131
}
3232

3333
export function getJaccardResult(payload: object): Interface {
34-
let prediction = Structure, prediction_coefficient = 0.5; // prediction coefficient can be set as a minimum threshold for the certainty of an output
34+
let prediction = BaseStructure, prediction_coefficient = 0.5; // prediction coefficient can be set as a minimum threshold for the certainty of an output
3535
let diff = 0, match = 0, coefficient = 0; // where coefficient of 1 is a perfect property key match, 2 is a perfect match of property and type
3636
// TODO: refactor
3737
const structs = [CW20Structure, LegacyBridgeSwapStructure, MicroAgentAlmanacStructure];

tests/e2e/entities/test_almanac.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def sql_by_expiry_height(registration_row: Tuple) -> int:
2727
class Scenario:
2828
name: str
2929
query: graphql.DocumentNode
30-
expected: Any
30+
expected: any
3131

3232

3333
class TestAlmanac(EntityTest):

0 commit comments

Comments
 (0)